qn-lcdp
Version:
青能科技低代码前端
804 lines (800 loc) • 15.8 kB
JavaScript
// const Address = require('@/data/regions.json')
const config = [{
uitype: 0,
label: '区块容器',
group: 'layout',
type: 'grid',
text: '区块',
icon: 'icon-kaifamoshi',
props: {
blockLabel: '容器标题',
showTitle: true,
columns: [{
id: '',
span: 12,
nodes: []
}]
}
}, {
uitype: 1,
label: '普通文本框',
group: 'fields',
type: 'inputs',
text: '文本',
icon: 'icon-putongwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
append: '',
align: 'left',
editWidth: '',
listWidth: '',
datarule: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 2,
label: '新增可编辑框',
group: 'fields',
type: 'inputs',
text: '文本',
icon: 'icon-xinzengkebianjiwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
append: '',
align: 'left',
editWidth: '',
listWidth: '',
datarule: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 3,
label: '密码文本框',
group: 'fields',
type: 'password',
text: '文本',
icon: 'icon-jiamiwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
displayType: 0,
append: '',
editWidth: '',
showTitle: true
}
}, {
uitype: 4,
label: '编号文本框',
group: 'fields',
type: 'inputs',
text: '文本',
icon: 'icon-bianmawenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
append: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false
}
}, {
uitype: 6,
label: '日期文本框',
group: 'fields',
type: 'date',
text: '日期',
icon: 'icon-riqishifenwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 7,
label: '日期时分文本框',
group: 'fields',
type: 'datetime',
text: '日期',
icon: 'icon-riqiwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 8,
label: '时间文本框',
group: 'fields',
type: 'selecttime',
text: '日期',
icon: 'icon-shijianwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 9,
label: '颜色选择框',
group: 'fields',
type: 'color',
text: '文本',
icon: 'icon-yansexuanzekuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 10,
label: '部门选择',
group: 'fields',
type: 'departments',
text: '关联',
icon: 'icon-bumenxuanzekuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
append: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
multiSelect: false,
outSidelinks: true,
isArray: false,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 11,
label: '关联选择框(单行)',
group: 'fields',
type: 'popup',
text: '关联',
icon: 'icon-guanlianxuanzekuangdanhang1',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
relmodule: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
outSidelinks: true,
multiSelect: false,
isArray: false,
required: false,
readonly: false
}
}, {
uitype: 12,
label: '关联选择框(多行)',
group: 'fields',
type: 'popup',
text: '关联',
icon: 'icon-guanlianxuanzekuangdanhang1',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
relmodule: '',
rows: 1,
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
outSidelinks: true,
multiSelect: true,
isArray: false,
required: false,
readonly: false
}
}, {
uitype: 13,
label: '单项选择框(文本)',
group: 'fields',
type: 'radio',
text: '字典',
icon: 'icon-danxiangxuanzekuangwenben',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
picklist: '',
options: [{
id: '1',
label: '选项1',
intval: 1,
strval: 'label1'
}, {
id: '2',
label: '选项2',
intval: 2,
strval: 'label2'
}],
showTitle: true,
isArray: false,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 14,
label: '单项选择框(数值)',
group: 'fields',
type: 'radio',
text: '字典',
icon: 'icon-danxiangxuanzekuangshuzhi',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
picklist: '',
options: [{
id: '1',
label: '选项1',
intval: 1,
strval: 'label1'
}, {
id: '2',
label: '选项2',
intval: 2,
strval: 'label2'
}],
showTitle: true,
isArray: false,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 15,
label: '多项选择框(文本)',
group: 'fields',
type: 'checkbox',
text: '字典',
icon: 'icon-duoxiangxuanzekuangwenben',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
picklist: '',
options: [{
id: '1',
label: '选项1',
intval: 1,
strval: 'label1'
}, {
id: '2',
label: '选项2',
intval: 2,
strval: 'label2'
}],
showTitle: true,
isArray: false,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 16,
label: '多项选择框(数值)',
group: 'fields',
type: 'checkbox',
text: '字典',
icon: 'icon-duoxiangxuanzekuanshuzhi',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
editWidth: '',
listWidth: '',
align: 'left',
displayType: 0,
picklist: '',
options: [{
id: '1',
label: '选项1',
intval: 1,
strval: 'label1'
}, {
id: '2',
label: '选项2',
intval: 2,
strval: 'label2'
}],
showTitle: true,
isArray: false,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 17,
label: '图片类型',
group: 'fields',
type: 'images',
text: '图片',
icon: 'icon-tupianleixing',
props: {
width: '100%',
action: '',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
editWidth: '',
displayType: 0,
showTitle: true,
multiSelect: false,
required: false,
readonly: false
}
}, {
uitype: 18,
label: '附件类型',
group: 'fields',
type: 'upload',
text: '附件',
icon: 'icon-fujianleixing',
props: {
width: '100%',
action: '',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
editWidth: '',
displayType: 0,
showTitle: true,
multiSelect: false,
required: false,
readonly: false
}
}, {
uitype: 19,
label: '下拉选择框(文本)',
group: 'fields',
type: 'selects',
text: '字典',
icon: 'icon-xialaxuanzekuangwenben1',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
displayType: 0,
picklist: '',
options: [{
id: '1',
label: '选项1',
intval: 1,
strval: 'label1'
}, {
id: '2',
label: '选项2',
intval: 2,
strval: 'label2'
}],
showTitle: true,
isArray: false,
isSort: false,
isNumsort: false,
isStatistic: false,
multiSelect: false,
required: false,
readonly: false
}
}, {
uitype: 20,
label: '下拉选择框(数值)',
group: 'fields',
type: 'selects',
text: '字典',
icon: 'icon-xialaxuanzekuangshuzhi',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
displayType: 0,
picklist: '',
options: [{
id: '1',
label: '选项1',
intval: 1,
strval: 'label1'
}, {
id: '2',
label: '选项2',
intval: 2,
strval: 'label2'
}],
showTitle: true,
isArray: false,
isSort: false,
isNumsort: false,
isStatistic: false,
multiSelect: false,
required: false,
readonly: false
}
}, {
uitype: 5,
label: '是否选择框',
group: 'fields',
type: 'radio',
text: '字典',
icon: 'icon-shifouxuanzekuang',
props: {
options: [{
id: '1',
label: '否',
intval: 0,
strval: '0'
}, {
id: '2',
label: '是',
intval: 1,
strval: '1'
}],
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 28,
label: '星级评分类型',
group: 'fields',
type: 'rate',
text: '评分',
icon: 'icon-xingjipingfenleixing',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: 0,
align: 'left',
editWidth: '',
listWidth: '',
score: '5',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
required: false,
readonly: false
}
}, {
uitype: 23,
label: '多行文本框',
group: 'fields',
type: 'textareas',
text: '文本',
icon: 'icon-duohangwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
rows: 3,
align: 'left',
append: '',
editWidth: '',
listWidth: '',
datarule: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 24,
label: '文本编辑器',
group: 'fields',
type: 'editer',
text: '编辑器',
icon: 'icon-wenbenbianjiqi',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
datarule: '',
displayType: 0,
showTitle: true,
required: false,
readonly: false
}
}, {
uitype: 25,
label: '用户选择',
group: 'fields',
type: 'users',
text: '关联',
icon: 'icon-yonghuxuanzexing',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
outSidelinks: true,
required: false,
readonly: false
}
}, {
uitype: 26,
label: '地址选择框',
group: 'fields',
type: 'address',
text: '地区',
icon: 'icon-dizhixuanzexing',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
city: '',
district: '',
region: 'district',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
relation: '',
displayType: 0,
showTitle: true,
isSort: false,
required: false,
readonly: false
}
}, {
uitype: 27,
label: '货币文本框',
group: 'fields',
type: 'inputs',
text: '文本',
icon: 'icon-huobiwenbenkuang',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
isSort: false,
isNumsort: false,
isStatistic: false,
required: false,
readonly: false
}
}, {
uitype: 22,
label: '分割线',
group: 'fields',
type: 'divider',
text: '容器',
icon: 'icon-fengexianleixing',
props: {
rowSpan: '12',
fieldLabel: '容器标题',
fieldName: '',
showTitle: true
}
}, {
uitype: 29,
label: '自定义组件',
group: 'fields',
type: 'selects',
text: '文本',
icon: 'icon-guanlianxuanzekuangdanhang1',
props: {
width: '100%',
rowSpan: '12',
fieldLabel: '',
fieldName: '',
defaultValue: '',
align: 'left',
append: '',
editWidth: '',
listWidth: '',
displayType: 0,
showTitle: true,
onlySelect: false,
isArray: false,
multiSelect: false,
popup: true,
required: false,
readonly: false
}
}, {
uitype: 30,
label: '普通文本',
group: 'fields',
type: 'texts',
text: '文本',
icon: 'icon-guanlianxuanzekuangdanhang1',
props: {
width: '100%',
rowSpan: '12',
fieldName: '',
fieldLabel: '',
fontSize: '14px',
fontAlign: 'left',
color: ''
}
}, {
uitype: 31,
label: 'HTML文本',
group: 'fields',
type: 'htmls',
text: '文本',
icon: 'icon-guanlianxuanzekuangdanhang1',
props: {
width: '100%',
rowSpan: '12',
fieldName: '',
defaultValue: ''
}
}]
export default config