1.1.3 • Published 2 years ago

pg-file-editor v1.1.3

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

文件在线编辑器

下载

yarn add pg-file-editor

引入

import FileTemplateEditor from pg-file-editor

使用

new FileTemplateEditor({
    target: '#ID',  // 必填 
    isOff: Boolean, // 默认为false
})

参数事件

 target: 根节点 -> '#ID'
 isOff: 是否关闭编辑 -> Boolean
 getData: () => {} // 获取数据
 getInitiate: () => {} // 获取发起数据

样式覆盖

/* toolbar 宽度 */
--toolbar-width: 100%