0.1.4 • Published 4 years ago
@nebular.js/editor-widgets v0.1.4
页面编辑器 -- 组件库
安装
npm i -s @nebular.js/editor-widgets
# or
yarn add @nebular.js/editor-widgets
初始化
import widgets from `@nebular.js/editor-widgets`
Vue.use(widgets, { /* options */ });
使用
<n-header />
组件数据格式
{
// 组件名称
name: `header`,
// 组件中文名
label: `页头`,
// 图标
icon: ``,
// 参数面板的参数
options: {
color: `#f90`
}
}