Browse Source

字段和组件分组排序调整

lwx_v9
liwenxuan 2 years ago
parent
commit
3cdaa4c593
  1. 429
      src/components/DesignForm/assembly/index.ts

429
src/components/DesignForm/assembly/index.ts

@ -12,11 +12,11 @@ const selectOption: any = [
label: '标签3', label: '标签3',
value: 'value3' value: 'value3'
}*/ }*/
] ]
const config: { optionsType: number } = { const config: { optionsType: number } = {
optionsType: 0 // 0固定 1数据源 2 接口字典 optionsType: 0 // 0固定 1数据源 2 接口字典
} }
export default [ export default [
{ {
title: '基础字段', title: '基础字段',
children: [ children: [
@ -29,10 +29,10 @@ const selectOption: any = [
modelValue: '标题' modelValue: '标题'
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -43,20 +43,20 @@ const selectOption: any = [
control: { control: {
// 组件所有属性 // 组件所有属性
modelValue: '', modelValue: '',
mathFormula:{ mathFormula: {
formulaHtml:'', formulaHtml: '',
mathsString:'', mathsString: '',
mathsFormula:'', mathsFormula: '',
takingMethod:1, takingMethod: 1,
digit:2 digit: 2
} }
}, },
config: {}, // 其他配置信息 config: {}, // 其他配置信息
selectvalue: "default", selectvalue: "default",
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -69,10 +69,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, // 其他配置信息 config: {}, // 其他配置信息
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
@ -85,10 +85,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -98,14 +98,14 @@ const selectOption: any = [
iconFont: 'fa-dot-circle-o', iconFont: 'fa-dot-circle-o',
control: { control: {
modelValue: '', modelValue: '',
glxxsz:[], glxxsz: [],
}, },
options: selectOption, // 下拉选项数据集合 options: selectOption, // 下拉选项数据集合
config: config, config: config,
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -115,14 +115,14 @@ const selectOption: any = [
iconFont: 'fa-check-square-o', iconFont: 'fa-check-square-o',
control: { control: {
modelValue: [], modelValue: [],
glxxszForCheckBox:[], glxxszForCheckBox: [],
}, },
options: selectOption, options: selectOption,
config: config, config: config,
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -133,14 +133,14 @@ const selectOption: any = [
control: { control: {
modelValue: '', modelValue: '',
appendToBody: true, appendToBody: true,
glxxsz:[], glxxsz: [],
}, },
options: selectOption, options: selectOption,
config: config, config: config,
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -153,10 +153,10 @@ const selectOption: any = [
}, },
options: [], options: [],
config: config, config: config,
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -169,10 +169,10 @@ const selectOption: any = [
type: 'date' type: 'date'
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -184,10 +184,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -199,10 +199,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -213,10 +213,10 @@ const selectOption: any = [
control: { control: {
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -226,24 +226,24 @@ const selectOption: any = [
iconFont: 'fa-toggle-on', iconFont: 'fa-toggle-on',
control: { control: {
modelValue: "", modelValue: "",
glxxszSwitch:[ glxxszSwitch: [
{ {
conditionField:'', conditionField: '',
openValue:"", openValue: "",
showFields:[] showFields: []
}, },
{ {
conditionField:'', conditionField: '',
offValue:"", offValue: "",
showFields:[] showFields: []
}, },
] ]
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -255,10 +255,10 @@ const selectOption: any = [
label: '保存' label: '保存'
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -270,10 +270,10 @@ const selectOption: any = [
modelValue: 0 modelValue: 0
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
@ -313,10 +313,10 @@ const selectOption: any = [
], ],
control: {}, control: {},
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -328,10 +328,10 @@ const selectOption: any = [
control: {}, control: {},
config: {}, config: {},
item: {}, // label标题相关 item: {}, // label标题相关
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -345,10 +345,10 @@ const selectOption: any = [
config: { config: {
addBtnText: '添加一行' addBtnText: '添加一行'
}, },
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -359,10 +359,10 @@ const selectOption: any = [
control: {}, control: {},
config: {}, config: {},
list: [], list: [],
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -378,10 +378,10 @@ const selectOption: any = [
], ],
control: {}, control: {},
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
@ -392,10 +392,10 @@ const selectOption: any = [
iconFont: '', iconFont: '',
control: {}, control: {},
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
@ -412,29 +412,29 @@ const selectOption: any = [
iconFont: 'fa-photo', iconFont: 'fa-photo',
control: { control: {
modelValue: '', modelValue: '',
uploadFlag:false, uploadFlag: false,
imgId:'', imgId: '',
imgUrl: '', imgUrl: '',
link: '', link: '',
fit:1, fit: 1,
radius:false, radius: false,
radiusNum:5, radiusNum: 5,
boderAndShadow:false, boderAndShadow: false,
showMode:'自定义像素值', showMode: '自定义像素值',
pxWidth:448, pxWidth: 448,
pxHeight:252, pxHeight: 252,
widthPercent:90, widthPercent: 90,
heightPercent:90, heightPercent: 90,
mt:0, mt: 0,
mb:0, mb: 0,
ml:0, ml: 0,
mr:0, mr: 0,
pt:0, pt: 0,
pb:0, pb: 0,
pl:0, pl: 0,
pr:0, pr: 0,
floatFlag:false, floatFlag: false,
floatValue:'left', floatValue: 'left',
}, },
config: {} config: {}
}, },
@ -445,7 +445,7 @@ const selectOption: any = [
iconFont: 'fa-play-circle', iconFont: 'fa-play-circle',
control: { control: {
modelValue: '', modelValue: '',
videoMsg:[{ videoMsg: [{
CreatedAt: '', CreatedAt: '',
UpdatedAt: '', UpdatedAt: '',
fileSize: "0n", fileSize: "0n",
@ -458,19 +458,19 @@ const selectOption: any = [
type: 0, type: 0,
url: '', url: '',
videoReady: false, videoReady: false,
videoHeight:400, videoHeight: 400,
videoWidth:700, videoWidth: 700,
videoAutoPlay: false, videoAutoPlay: false,
attrId: '', attrId: '',
poster:'', poster: '',
loop: false loop: false
}] }]
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -483,10 +483,10 @@ const selectOption: any = [
modelValue: '' // 也可以是[{name:'',url:''}]形式 modelValue: '' // 也可以是[{name:'',url:''}]形式
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
@ -498,10 +498,10 @@ const selectOption: any = [
control: { control: {
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -517,10 +517,10 @@ const selectOption: any = [
config: { config: {
addBtnText: '添加一行' addBtnText: '添加一行'
}, },
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -531,10 +531,10 @@ const selectOption: any = [
control: { control: {
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -546,10 +546,10 @@ const selectOption: any = [
modelValue: 0 modelValue: 0
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -561,10 +561,10 @@ const selectOption: any = [
modelValue: 0 modelValue: 0
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -576,10 +576,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -589,25 +589,25 @@ const selectOption: any = [
iconFont: 'fa-window-restore', iconFont: 'fa-window-restore',
control: { control: {
modelValue: '', modelValue: '',
carsuselConfigArr:[{ carsuselConfigArr: [{
uploadFlag:false, uploadFlag: false,
imgId:'', imgId: '',
imgSort:1, imgSort: 1,
imgUrl: '', imgUrl: '',
link: '' link: ''
}], }],
config: { config: {
carsuselWidth:448, carsuselWidth: 448,
carsuselHeight:252, carsuselHeight: 252,
interval:2000, interval: 2000,
} }
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
@ -619,10 +619,10 @@ const selectOption: any = [
control: { control: {
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -646,10 +646,10 @@ const selectOption: any = [
}] }]
}, },
config: { config: {
transferName:'穿梭框', transferName: '穿梭框',
transferDataSource:'固定选项', transferDataSource: '固定选项',
apiUrl:'/javasys/lowCode/transfer/getOrgAndManTree', apiUrl: '/javasys/lowCode/transfer/getOrgAndManTree',
method:'post', method: 'post',
} }
}, },
{ {
@ -662,10 +662,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -681,10 +681,10 @@ const selectOption: any = [
config: { config: {
optionsType: 0 optionsType: 0
}, },
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -694,17 +694,17 @@ const selectOption: any = [
iconFont: 'fa-wpforms', iconFont: 'fa-wpforms',
control: { control: {
modelValue: '', modelValue: '',
hideConditionHtml:'', hideConditionHtml: '',
hideConditionHtmlCopy:'', hideConditionHtmlCopy: '',
formid: '', formid: '',
dataRangeConditionHtml:'', dataRangeConditionHtml: '',
dataRangeConditionHtmlCopy:'', dataRangeConditionHtmlCopy: '',
saveFlag: false, saveFlag: false,
fillRoles: [ fillRoles: [
{ {
leftValue:'', leftValue: '',
rightValue:'', rightValue: '',
id:'', id: '',
} }
], ],
}, },
@ -719,10 +719,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
/*template: '', // /*template: '', //
component: '' // 根据template注入的组件*/ component: '' // 根据template注入的组件*/
@ -749,12 +749,12 @@ const selectOption: any = [
control: { control: {
}, },
config: { config: {
automatic:false automatic: false
}, },
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -767,10 +767,10 @@ const selectOption: any = [
modelValue: '' modelValue: ''
}, },
config: {}, // 其他配置信息 config: {}, // 其他配置信息
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
}, },
{ {
@ -781,17 +781,16 @@ const selectOption: any = [
control: { control: {
}, },
config: {}, config: {},
styles:{ styles: {
divStyle:{}, divStyle: {},
labelStyle:{}, labelStyle: {},
inputStyle:{} inputStyle: {}
} }
} }
] ]
}, },
{ {
title: '扩展组件',// title: '扩展组件',//
chileren:[] chileren: []
} }
] ]

Loading…
Cancel
Save