0.0.11 • Published 2 years ago
xplus-tools v0.0.11
first-package
//组件引用与注册
import XPlusTools from "xplus-tools"
import "xplus-tools/lib/XPlusTools.css";
Vue.use(XPlusTools)
组件使用
编辑页面组件
<div style="width: 1600px; height: 800px;">
<XplusEditor :theme="theme" @viewCode="viewCode" />
</div>
//需要设置父元素的宽高
theme:"black" 支持两种主题为 [white:白色、black:黑色] 默认为黑色主题
//查看源码,返回配置项数据
viewCode(json){
//json 即页面的拖拽json配置项
}
参数配置页面组件
\
//TODO
"邮箱": "970433266@qq.com"