Socket
Book a DemoInstallSign in
Socket

@nebulars/editor-widgets

Package Overview
Dependencies
Maintainers
3
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebulars/editor-widgets

页面编辑器 -- 组件库

0.5.18
latest
npmnpm
Version published
Weekly downloads
7
-90.14%
Maintainers
3
Weekly downloads
 
Created
Source

页面编辑器 -- 组件库

安装

npm i -s @nebulars/editor-widgets
# or
yarn add @nebulars/editor-widgets

初始化

import widgets from `@nebulars/editor-widgets`

Vue.use(widgets, { /* options */ });

使用

<n-header />

组件数据格式

{
  // 组件名称
  name: `header`,
  // 组件中文名
  label: `页头`,
  // 图标
  icon: ``,
  // 参数
  props: {
    // 配置参数
    option: {
      // 缺省类型(勿修改)
      type: [Object],
      // 默认参数
      default () {
        return {
          color: `red`
        }
      }
    },
    // 源数据
    source: { ... }
  }
}

面板参数示例

{
  // 组件名称
  name: `header`,
  // 参数
  props: {
    // 配置参数
    option: {
      // 缺省类型(勿修改)
  	  type: [Object],
      // 默认参数
  	  default() {
  		  return {
          // ...
  		  }
  	  }
    }
  }
}

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.