0.0.27 • Published 3 years ago

sjf-h5-editor v0.0.27

Weekly downloads
-
License
-
Repository
-
Last release
3 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

3 years ago

0.0.26

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago