fix: 表单设计器富文本加载错误
parent
3cf79bd188
commit
c1b786e0e8
|
|
@ -38,6 +38,11 @@ import VueMeta from 'vue-meta'
|
|||
// 字典数据组件
|
||||
import DictData from '@/components/DictData'
|
||||
|
||||
import Tinymce from '@/components/tinymce/index.vue'
|
||||
|
||||
|
||||
|
||||
|
||||
// 全局方法挂载
|
||||
Vue.prototype.getDicts = getDicts
|
||||
Vue.prototype.getConfigKey = getConfigKey
|
||||
|
|
@ -57,6 +62,7 @@ Vue.component('Editor', Editor)
|
|||
Vue.component('FileUpload', FileUpload)
|
||||
Vue.component('ImageUpload', ImageUpload)
|
||||
Vue.component('ImagePreview', ImagePreview)
|
||||
Vue.component('tinymce', Tinymce)
|
||||
|
||||
Vue.use(directive)
|
||||
Vue.use(plugins)
|
||||
|
|
|
|||
|
|
@ -546,84 +546,84 @@ export const layoutComponents = [
|
|||
circle: false,
|
||||
disabled: false
|
||||
},
|
||||
{
|
||||
__config__: {
|
||||
layout: 'colFormItem',
|
||||
tagIcon: 'table',
|
||||
tag: 'el-table',
|
||||
document: 'https://element.eleme.cn/#/zh-CN/component/table',
|
||||
span: 24,
|
||||
formId: 101,
|
||||
renderKey: 1595761764203,
|
||||
componentName: 'row101',
|
||||
showLabel: true,
|
||||
changeTag: true,
|
||||
labelWidth: null,
|
||||
label: '表格[开发中]',
|
||||
dataType: 'dynamic',
|
||||
method: 'get',
|
||||
dataPath: 'list',
|
||||
dataConsumer: 'data',
|
||||
url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/tableData',
|
||||
children: [{
|
||||
__config__: {
|
||||
layout: 'raw',
|
||||
tag: 'el-table-column',
|
||||
renderKey: 15957617660153
|
||||
},
|
||||
prop: 'date',
|
||||
label: '日期'
|
||||
}, {
|
||||
__config__: {
|
||||
layout: 'raw',
|
||||
tag: 'el-table-column',
|
||||
renderKey: 15957617660152
|
||||
},
|
||||
prop: 'address',
|
||||
label: '地址'
|
||||
}, {
|
||||
__config__: {
|
||||
layout: 'raw',
|
||||
tag: 'el-table-column',
|
||||
renderKey: 15957617660151
|
||||
},
|
||||
prop: 'name',
|
||||
label: '名称'
|
||||
}, {
|
||||
__config__: {
|
||||
layout: 'raw',
|
||||
tag: 'el-table-column',
|
||||
renderKey: 1595774496335,
|
||||
children: [
|
||||
{
|
||||
__config__: {
|
||||
label: '按钮',
|
||||
tag: 'el-button',
|
||||
tagIcon: 'button',
|
||||
layout: 'raw',
|
||||
renderKey: 1595779809901
|
||||
},
|
||||
__slot__: {
|
||||
default: '主要按钮'
|
||||
},
|
||||
type: 'primary',
|
||||
icon: 'el-icon-search',
|
||||
round: false,
|
||||
size: 'medium'
|
||||
}
|
||||
]
|
||||
},
|
||||
label: '操作'
|
||||
}]
|
||||
},
|
||||
data: [],
|
||||
directives: [{
|
||||
name: 'loading',
|
||||
value: true
|
||||
}],
|
||||
border: true,
|
||||
type: 'default',
|
||||
justify: 'start',
|
||||
align: 'top'
|
||||
}
|
||||
// {
|
||||
// __config__: {
|
||||
// layout: 'colFormItem',
|
||||
// tagIcon: 'table',
|
||||
// tag: 'el-table',
|
||||
// document: 'https://element.eleme.cn/#/zh-CN/component/table',
|
||||
// span: 24,
|
||||
// formId: 101,
|
||||
// renderKey: 1595761764203,
|
||||
// componentName: 'row101',
|
||||
// showLabel: true,
|
||||
// changeTag: true,
|
||||
// labelWidth: null,
|
||||
// label: '表格[开发中]',
|
||||
// dataType: 'dynamic',
|
||||
// method: 'get',
|
||||
// dataPath: 'list',
|
||||
// dataConsumer: 'data',
|
||||
// url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/tableData',
|
||||
// children: [{
|
||||
// __config__: {
|
||||
// layout: 'raw',
|
||||
// tag: 'el-table-column',
|
||||
// renderKey: 15957617660153
|
||||
// },
|
||||
// prop: 'date',
|
||||
// label: '日期'
|
||||
// }, {
|
||||
// __config__: {
|
||||
// layout: 'raw',
|
||||
// tag: 'el-table-column',
|
||||
// renderKey: 15957617660152
|
||||
// },
|
||||
// prop: 'address',
|
||||
// label: '地址'
|
||||
// }, {
|
||||
// __config__: {
|
||||
// layout: 'raw',
|
||||
// tag: 'el-table-column',
|
||||
// renderKey: 15957617660151
|
||||
// },
|
||||
// prop: 'name',
|
||||
// label: '名称'
|
||||
// }, {
|
||||
// __config__: {
|
||||
// layout: 'raw',
|
||||
// tag: 'el-table-column',
|
||||
// renderKey: 1595774496335,
|
||||
// children: [
|
||||
// {
|
||||
// __config__: {
|
||||
// label: '按钮',
|
||||
// tag: 'el-button',
|
||||
// tagIcon: 'button',
|
||||
// layout: 'raw',
|
||||
// renderKey: 1595779809901
|
||||
// },
|
||||
// __slot__: {
|
||||
// default: '主要按钮'
|
||||
// },
|
||||
// type: 'primary',
|
||||
// icon: 'el-icon-search',
|
||||
// round: false,
|
||||
// size: 'medium'
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// label: '操作'
|
||||
// }]
|
||||
// },
|
||||
// data: [],
|
||||
// directives: [{
|
||||
// name: 'loading',
|
||||
// value: true
|
||||
// }],
|
||||
// border: true,
|
||||
// type: 'default',
|
||||
// justify: 'start',
|
||||
// align: 'top'
|
||||
// }
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue