File size: 2,831 Bytes
c9d0005 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | export default {
type: 'object',
displayType: 'row',
properties: {
void1: {
title: '常用组件',
type: 'void',
widget: 'voidTitle'
},
input1: {
title: '输入框',
type: 'string',
widget: 'input'
},
number1: {
title: '数字输入框',
type: 'number',
widget: 'inputNumber'
},
select1: {
title: '下拉单选',
type: 'string',
widget: 'select',
props: {
options: [
{ label: '早', value: 'a' },
{ label: '中', value: 'b' },
{ label: '晚', value: 'c' }
]
}
},
multiSelect1: {
title: '多选',
type: 'array',
widget: 'multiSelect',
description: '下拉多选',
props: {
options: [
{ label: '杭州', value: 'a' },
{ label: '武汉', value: 'b' },
{ label: '湖州', value: 'c' },
{ label: '贵阳', value: 'd' }
]
}
},
radio1: {
title: '点击单选',
type: 'string',
widget: 'radio',
props: {
options: [
{ label: '早', value: 'a' },
{ label: '中', value: 'b' },
{ label: '晚', value: 'c' }
]
}
},
checkboxes1: {
title: '点击多选',
type: 'array',
widget: 'checkboxes',
props: {
options: [
{ label: '杭州', value: 'a' },
{ label: '武汉', value: 'b' },
{ label: '湖州', value: 'c' },
{ label: '贵阳', value: 'd' }
]
}
},
textarea1: {
title: '长文本',
type: 'string',
widget: 'textArea'
},
date1: {
title: '日期选择',
type: 'string',
widget: 'datePicker'
},
dateRange1: {
title: '日期范围',
type: 'range',
widget: 'dateRange'
},
time1: {
title: '时间选择',
type: 'string',
widget: 'timePicker'
},
timeRange1: {
title: '时间范围',
type: 'range',
widget: 'timeRange'
},
void2: {
title: '其他组件',
type: 'void',
widget: 'voidTitle'
},
html1: {
title: 'HTML',
type: 'string',
widget: 'html'
},
switch1: {
title: '开关',
type: 'boolean',
widget: 'switch'
},
checkbox1: {
title: '是否选择',
type: 'boolean',
widget: 'checkbox'
},
slider1: {
title: '带滑动条',
type: 'number',
widget: 'slider'
},
image1: {
title: '图片展示',
type: 'string',
widget: 'imageInput'
},
color1: {
title: '颜色选择',
type: 'string',
widget: 'color'
},
url1: {
title: '链接',
type: 'string',
widget: 'urlInput'
}
}
}; |