123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- const title = '指标卡二'
- // 右侧配置项
- const setting = [
- {
- label: '背景色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'customize_bgColor',
- optionField: 'customize.bgColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '',
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '边框颜色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'customize_borderColor',
- optionField: 'customize.borderColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '',
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '边框粗细',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_borderWidth',
- optionField: 'customize.borderWidth', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 0,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '边框圆角',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_borderRadius',
- optionField: 'customize.borderRadius', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 0,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- // {
- // label: '图标链接',
- // // 设置组件类型, select / input / colorPicker
- // type: 'input',
- // // 字段
- // field: 'customize_src',
- // optionField: 'customize.src', // 对应options中的字段
- // // 是否多选
- // multiple: false,
- // // 绑定的值
- // value: 'http://60.174.249.206:11080/upload/webDesign/uiSucai/dir/icon/icon_top6.png',
- // // tab页。 data: 数据, custom: 自定义
- // tabName: 'custom'
- // },
- // {
- // label: '左右间距',
- // // 设置组件类型, select / input / colorPicker
- // type: 'inputNumber',
- // // 字段
- // field: 'customize_distance',
- // optionField: 'customize.distance', // 对应options中的字段
- // // 是否多选
- // multiple: false,
- // // 绑定的值
- // value: 30,
- // // tab页。 data: 数据, custom: 自定义
- // tabName: 'custom'
- // },
- {
- label: '上下间距',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_lineDistance',
- optionField: 'customize.lineDistance', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 25,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- // {
- // label: '图标大小',
- // // 设置组件类型, select / input / colorPicker
- // type: 'inputNumber',
- // // 字段
- // field: 'customize_imgSize',
- // optionField: 'customize.imgSize', // 对应options中的字段
- // // 是否多选
- // multiple: false,
- // // 绑定的值
- // value: 110,
- // // tab页。 data: 数据, custom: 自定义
- // tabName: 'custom'
- // },
- {
- label: '首行字段',
- // 设置组件类型, select / input / colorPicker
- type: 'select',
- // 字段
- field: 'yField', // 字段
- optionField: 'yField', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '',
- // tab页。 data: 数据, custom: 自定义
- tabName: 'data'
- },
- {
- label: '首行文字大小',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_firstSize',
- optionField: 'customize.firstSize', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 50,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '首行字体颜色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'customize_firstColor',
- optionField: 'customize.firstColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '#fff',
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '首行字体粗细',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_firstWeight',
- optionField: 'customize.firstWeight', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 500,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '第二行文字内容',
- // 设置组件类型, select / input / colorPicker
- type: 'input',
- // 字段
- field: 'customize_secondLine',
- optionField: 'customize.secondLine', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '装机处理及时率',
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '第二行文字大小',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_secondSize',
- optionField: 'customize.secondSize', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 36,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '第二行字体颜色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'customize_secondColor',
- optionField: 'customize.secondColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '#fff',
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- },
- {
- label: '第二行字体粗细',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'customize_secondWeight',
- optionField: 'customize.secondWeight', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 500,
- // tab页。 data: 数据, custom: 自定义
- tabName: 'custom'
- }
- ]
- // 模拟数据
- const option = {
- // 自定义组件其他属性
- customize: {
- borderRadius: 0,
- borderWidth: 0,
- lineDistance: 25,
- borderColor: '',
- bgColor: '',
- // distance: 30,
- // imgSize: 110,
- firstSize: 50,
- firstColor: '#ffffff',
- firstWeight: 500,
- secondSize: 50,
- secondColor: '#ffffff',
- secondWeight: 500,
- secondLine: '装机处理及时率'
- }
- }
- export default {
- title,
- setting,
- option: {
- ...option,
- displayOption: {
- dataAllocation: {
- enable: false
- }
- }
- }
- }
|