pg-file-editor
v1.1.3
Published
文件模板在线编辑器
Readme
文件在线编辑器
下载
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%