qianlishi 3 years ago
parent e53ae751a1
commit cc011a2236

@ -146,7 +146,45 @@ const widgetTools = [
], ],
// 数据 // 数据
data: [], data: [
{
type: 'el-radio-group',
label: '数据类型',
name: 'dataType',
require: false,
placeholder: '',
selectValue: true,
selectOptions: [
{
code: 'staticData',
name: '静态数据',
},
{
code: 'dynamicData',
name: '动态数据',
},
],
value: 'staticData',
},
{
type: 'el-input-number',
label: '刷新时间(毫秒)',
name: 'refreshTime',
relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData',
value: 5000
},
{
type: 'el-button',
label: '静态数据',
name: 'staticData',
required: false,
placeholder: 'px',
relactiveDom: 'dataType',
relactiveDomValue: 'staticData',
value: '文本框',
},
],
// 坐标 // 坐标
position: [ position: [
@ -841,62 +879,62 @@ const widgetTools = [
], ],
}, },
}, },
// { {
// code: 'widget-table', code: 'widget-table',
// type: 'html', type: 'html',
// label: '表格', label: '表格',
// icon: 'iconbiaoge', icon: 'iconbiaoge',
// options: { options: {
// setup: [ setup: [
// { {
// type: 'el-input-text', type: 'el-input-text',
// label: '图层名称', label: '图层名称',
// name: 'layerName', name: 'layerName',
// required: false, required: false,
// placeholder: '', placeholder: '',
// value: '表格', value: '表格',
// }, },
// { {
// type: 'dynamic-add-table', type: 'dynamic-add-table',
// } }
// ], ],
// data: [], data: [],
// position: [ position: [
// { {
// type: 'el-input-number', type: 'el-input-number',
// label: '左边距', label: '左边距',
// name: 'left', name: 'left',
// required: false, required: false,
// placeholder: 'px', placeholder: 'px',
// value: 0, value: 0,
// }, },
// { {
// type: 'el-input-number', type: 'el-input-number',
// label: '上边距', label: '上边距',
// name: 'top', name: 'top',
// required: false, required: false,
// placeholder: 'px', placeholder: 'px',
// value: 0, value: 0,
// }, },
// { {
// type: 'el-input-number', type: 'el-input-number',
// label: '宽度', label: '宽度',
// name: 'width', name: 'width',
// required: false, required: false,
// placeholder: '该容器在1920px大屏中的宽度', placeholder: '该容器在1920px大屏中的宽度',
// value: 600, value: 600,
// }, },
// { {
// type: 'el-input-number', type: 'el-input-number',
// label: '高度', label: '高度',
// name: 'height', name: 'height',
// required: false, required: false,
// placeholder: '该容器在1080px大屏中的高度', placeholder: '该容器在1080px大屏中的高度',
// value: 300, value: 300,
// }, },
// ] ]
// } }
// }, },
{ {
code: 'widget-iframe', code: 'widget-iframe',
type: 'html', type: 'html',

Loading…
Cancel
Save