1.0.0 • Published 1 year ago

hundun-pc-editor v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

huawen-pc-editor 前端富文本组件

仓库

当前组件库发布在 私有仓库中,仓库地址: http://10.43.219.188:4873/

// 设置仓库地址
npm config set registry http://10.43.219.188:4873

安装

npm install --save  hundun-pc-editor

引用与配置

 // 导入组件库
import hundunPcEditor  from 'hundun-pc-editor'
// 导入样式
import 'hundun-pc-editor/lib/hundun-pc-editor.css'
// 注册组件库
Vue.use(hundunPcEditor) 
 

页面引用示例

<div id="app"> 
    <hundun-pc-editor  v-model="value" upload-url="/api/file/upload" :preview="true" :html="true">
    </hundun-pc-editor>
    
</div>

示例

Attributes

参数说明类型可选值默认值
v-model绑定值String--
preview是否打开预览Booleantrue/falsetrue
dsiabled是否禁用Booleantrue/falsefalse
html是否打开HTML查看Booleantrue/falsetrue
placeholder提示placeholderString--
upload-url文件上传urlString-/api/file/upload
custom-config自定义配置, 参考wangeditorObject--
1.0.0

1 year ago