123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- const title = '边框组件'
- const setting = [
- {
- label: '对齐类型',
-
- type: 'select',
-
- field: 'customize_diagonalType',
- optionField: 'customize.diagonalType',
-
- multiple: false,
- options: [
- {
- label: '左上右下',
- value: 'leftTopRightBottom'
- },
- {
- label: '右上左下',
- value: 'rightTopLeftBottom'
- }
- ],
-
- value: 'leftTopRightBottom',
-
- tabName: 'custom'
- },
- {
- label: '背景颜色',
-
- type: 'colorPicker',
-
- field: 'customize_backgroundColor',
- optionField: 'customize.backgroundColor',
-
- multiple: false,
-
- value: '#D3D3D32B',
-
- tabName: 'custom'
- },
- {
- label: '长度',
-
- type: 'inputNumber',
-
- field: 'customize_borderLength',
- optionField: 'customize.borderLength',
-
- multiple: false,
-
- value: '30',
-
- tabName: 'custom'
- },
- {
- label: '粗细',
-
- type: 'inputNumber',
-
- field: 'customize_borderWidth',
- optionField: 'customize.borderWidth',
-
- multiple: false,
-
- value: '4',
-
- tabName: 'custom'
- },
- {
- label: '边框颜色',
-
- type: 'colorPicker',
-
- field: 'customize_borderColor',
- optionField: 'customize.borderColor',
-
- multiple: false,
-
- value: '#409EFF',
-
- tabName: 'custom'
- },
- {
- label: '边框圆角',
-
- type: 'inputNumber',
-
- min: 0,
- max: 100,
-
- field: 'customize_borderRadius',
- optionField: 'customize.borderRadius',
-
- multiple: false,
-
- value: 4,
-
- tabName: 'custom'
- }
- ]
- const option = {
-
- customize: {
- diagonalType: 'leftTopRightBottom',
- borderLength: 30,
- borderWidth: 4,
- backgroundColor: '#D3D3D32B',
- borderRadius: 0,
- borderColor: '#409EFF'
- }
- }
- export default {
- title,
- setting,
- option: {
- ...option,
- displayOption: {
- dataAllocation: {
- enable: false
- }
- }
- }
- }
|