123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- import $config from '@client/config'
- export default [{
- title: '常用组件',
- components: [{
- elName: 'Ds-text',
- title: '文字',
- img: require('@/common/images/elementIcon/text.png'),
- // 每个组件设置props来展示哪些显示哪些编辑项
- valueType: '', // 标识数据类型,用于表单组件
- defaultStyle: {
- height: 40
- }
- },
- {
- elName: 'Ds-image',
- title: '图片',
- img: require('@/common/images/elementIcon/image.png'),
- valueType: '',
- defaultStyle: {
- width: 375,
- height: 200
- }
- },
- {
- elName: 'Ds-banner',
- title: 'Banner',
- img: require('@/common/images/elementIcon/banner.png'),
- valueType: '',
- defaultStyle: {
- height: 160
- }
- },
- // {
- // elName: 'Ds-avatar',
- // title: '随机头像',
- // img: require('@/common/images/elementIcon/avatar.png'),
- // valueType: '',
- // defaultStyle: {
- // width: 150,
- // height: 50
- // }
- // },
- {
- elName: 'Ds-button',
- title: '按钮',
- img: require('@/common/images/elementIcon/button.png'),
- // 每个组件设置props来展示哪些显示哪些编辑项
- valueType: '', // 标识数据类型,用于表单组件
- defaultStyle: {
- width: 150,
- height: 50,
- }
- },
- {
- elName: 'Ds-image-carousel',
- title: '图片轮播',
- img: require('@/common/images/elementIcon/carousel.png'),
- valueType: '', // 标识数据类型,用于表单组件,
- defaultStyle: {
- height: 140
- }
- },
- {
- elName: 'Ds-notice',
- title: '通知栏',
- img: require('@/common/images/elementIcon/notice.png'),
- valueType: '',
- defaultStyle: {
- height: 40,
- width: $config.canvasH5Width,
- }
- },
- // {
- // elName: 'Ds-tabars',
- // title: '页面导航',
- // img: require('@/common/images/elementIcon/tabars.png'),
- // valueType: '',
- // defaultStyle: {
- // height: 50,
- // width: $config.canvasH5Width,
- // }
- // },
- ]
- },
- {
- title: '基础组件',
- components: [{
- elName: 'Ds-rectangle-border',
- title: '矩形边框',
- img: require('@/common/images/elementIcon/border.png'),
- valueType: '',
- defaultStyle: {
- width: 120,
- height: 100,
- borderColor: "#999999",
- borderStyle: 'solid',
- borderWidth: 2
- }
- }, {
- elName: 'Ds-circle-border',
- title: '圆形边框',
- img: require('@/common/images/elementIcon/circle-border.png'),
- valueType: '',
- defaultStyle: {
- width: 100,
- height: 100,
- borderColor: "#999999",
- borderStyle: 'solid',
- borderWidth: 2,
- borderRadius: $config.canvasH5Width
- }
- },
- {
- elName: 'Ds-rectangle-border',
- title: '分割线',
- img: require('@/common/images/elementIcon/splitLine.png'),
- valueType: '',
- defaultStyle: {
- height: 1,
- width: 300,
- backgroundColor: '#999999'
- }
- },
- {
- elName: 'Ds-iframe',
- title: '内嵌iframe',
- img: require('@/common/images/elementIcon/iframe.png'),
- valueType: '',
- defaultStyle: {
- width: $config.canvasH5Width,
- height: 300,
- paddingTop: 10,
- paddingBottom: 10,
- scrolling: 'no'
- }
- }
- ]
- },
- // {
- // title: '表单组件',
- // components: [{
- // elName: 'Ds-input',
- // title: '文本框',
- // img: require('@/common/images/elementIcon/form.png'),
- // valueType: 'input',
- // defaultStyle: {
- // height: 52,
- // width: $config.canvasH5Width,
- // }
- // },
- // {
- // elName: 'Ds-radio',
- // title: '单选框',
- // img: require('@/common/images/elementIcon/radio.jpg'),
- // valueType: 'radio',
- //
- // defaultStyle: {
- // height: 52,
- // width: $config.canvasH5Width,
- // }
- // },
- // {
- // elName: 'Ds-checkbox',
- // title: '复选框',
- // img: require('@/common/images/elementIcon/checkbox.jpg'),
- // valueType: 'checkbox',
- // defaultStyle: {
- // height: 30,
- // width: $config.canvasH5Width,
- // }
- // },
- // {
- // elName: 'Ds-rate',
- // title: '评分',
- // img: require('@/common/images/elementIcon/rate.jpg'),
- // defaultStyle: {
- // height: 30,
- // width: $config.canvasH5Width / 2,
- // }
- // },
- // {
- // elName: 'Ds-stepper',
- // title: '步进器',
- // img: require('@/common/images/elementIcon/stepper.jpg'),
- // defaultStyle: {
- // height: 30,
- // width: $config.canvasH5Width / 2,
- // }
- // },
- // {
- // elName: 'Ds-switch',
- // title: '开关',
- // img: require('@/common/images/elementIcon/Switch.jpg'),
- // defaultStyle: {
- // height: 52,
- // width: $config.canvasH5Width,
- // }
- // }
- // ]
- // },
- {
- title: '功能组件',
- components: [{
- elName: 'Ds-qrcode',
- title: '二维码',
- img: require('@/common/images/elementIcon/qcode.png'),
- valueType: '',
- defaultStyle: {
- width: 120,
- height: 120,
- }
- }, {
- elName: 'Ds-bg-music',
- title: '音乐',
- img: require('@/common/images/elementIcon/music.png'),
- valueType: '',
- defaultStyle: {
- height: 52,
- width: 52,
- }
- },
- {
- elName: 'Ds-video',
- title: '视频',
- img: require('@/common/images/elementIcon/video.png'),
- valueType: '',
- defaultStyle: {
- width: $config.canvasH5Width,
- height: 200,
- }
- }, {
- elName: 'Ds-map',
- title: '地图',
- img: require('@/common/images/elementIcon/map.png'),
- valueType: '',
- defaultStyle: {
- width: $config.canvasH5Width,
- height: 200,
- }
- },
- ]
- },
- // {
- // title: '图表组件',
- // components: [{
- // elName: 'Ds-linechart',
- // title: '折线图',
- // img: require('@/common/images/elementIcon/lineCharts.jpg'),
- // valueType: '',
- // defaultStyle: {
- // width: $config.canvasH5Width,
- // height: 350,
- // }
- // },
- // {
- // elName: 'Ds-piechart',
- // title: '饼图',
- // img: require('@/common/images/elementIcon/pieCharts.jpg'),
- // valueType: '',
- // defaultStyle: {
- // width: $config.canvasH5Width,
- // height: 350,
- // }
- // }, {
- // elName: 'Ds-wordcloud',
- // title: '词云',
- // img: require('@/common/images/elementIcon/wordcloud.jpg'),
- // valueType: '',
- // defaultStyle: {
- // width: $config.canvasH5Width,
- // height: 370,
- // }
- // }, {
- // elName: 'Ds-funnel',
- // title: '漏斗图',
- // img: require('@/common/images/elementIcon/funnel.jpg'),
- // valueType: '',
- // defaultStyle: {
- // width: $config.canvasH5Width,
- // height: 370,
- // }
- // }
- // ]
- // },
- {
- title: '业务组件',
- components: [
- {
- elName: 'Ds-source-form',
- title: '留资表单',
- img: require('@/common/images/elementIcon/form.png'),
- valueType: 'input',
- defaultStyle: {
- height: 590,
- width: $config.canvasH5Width,
- }
- },
- ]
- }
- ]
|