0.0.27 • Published 2 years ago

sjf-h5-editor v0.0.27

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

水井坊-H5 编辑器

安装

npm install --save sjf-h5-editor

引入

在 main.js 中引入

// 引入样式
import 'sjf-h5-editor/dist/sjf-h5-editor.css';

// 引入组件
import H5editor from 'sjf-h5-editor';

// 需要传入store
Vue.use(H5editor, { store });

示例

<H5editor
  :jsonData="jsonData"
  :ifCreate="true"
  :templateId="1"
  :successful="successful"
/>

属性

参数说明类型默认值
jsonData数据源,接收一个 jsonstring''
ifCreate是否为创建模式,非创建模式下只允许编辑配置过权限的文字和图片内容booleantrue
templateId模板 id,根据 id 请求对应模板数据进行编辑number | string''
successful编辑状态下,点击完成请求发送成功后的回调 返回 落地页地址function()=>{}
multipage是否为多页booleantrue
createContentInfo保存内容信息function
getData获取当前模板数据,并返回一个临时预览地址function
preview预览function
0.0.27

2 years ago

0.0.26

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago