mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-05 00:39:51 +08:00
183 lines
4.2 KiB
JavaScript
183 lines
4.2 KiB
JavaScript
/*
|
|
有关组件的一些配置文件,也可以写到数据库从接口来取
|
|
*/
|
|
export default [
|
|
{
|
|
title: '基础组件',
|
|
components: [
|
|
{
|
|
elName: 'qk-text',
|
|
title: '文字',
|
|
icon: 'iconfont iconwenben',
|
|
// 每个组件设置props来展示哪些显示哪些编辑项
|
|
valueType: '', // 标识数据类型,用于表单组件
|
|
defaultStyle: {
|
|
height: 40
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-image',
|
|
title: '图片',
|
|
icon: 'iconfont icontupian',
|
|
valueType: '', // 标识数据类型,用于表单组件,
|
|
defaultStyle: {
|
|
height: 200
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-button',
|
|
title: '按钮',
|
|
icon: 'iconfont iconanniuzu',
|
|
// 每个组件设置props来展示哪些显示哪些编辑项
|
|
valueType: '', // 标识数据类型,用于表单组件
|
|
defaultStyle: {
|
|
width: 140,
|
|
height: 40,
|
|
paddingTop: 10,
|
|
paddingBottom: 10,
|
|
borderColor: '#999999',
|
|
borderStyle: 'solid',
|
|
borderWidth: 1,
|
|
borderRadius: 4
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-rectangle-border',
|
|
title: '矩形边框',
|
|
icon: 'iconfont iconjuxing',
|
|
valueType: '',
|
|
defaultStyle: {
|
|
width: 120,
|
|
height: 100,
|
|
borderColor: '#999999',
|
|
borderStyle: 'solid',
|
|
borderWidth: 2
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-rectangle-border',
|
|
title: '分割线',
|
|
icon: 'iconfont icon758bianjiqi_fengexian',
|
|
valueType: '',
|
|
defaultStyle: {
|
|
height: 1,
|
|
width: 300,
|
|
backgroundColor: '#999999'
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-image-carousel',
|
|
title: '图片轮播',
|
|
icon: 'iconfont iconshouyelunbotu',
|
|
valueType: '', // 标识数据类型,用于表单组件,
|
|
defaultStyle: {
|
|
height: 210
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-iframe',
|
|
title: '内嵌iframe',
|
|
icon: 'iconfont iconiframetianjia',
|
|
valueType: '',
|
|
defaultStyle: {
|
|
// width: $config.canvasH5Width,
|
|
width: 200,
|
|
height: 300,
|
|
paddingTop: 10,
|
|
paddingBottom: 10
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: '表单组件',
|
|
components: [
|
|
{
|
|
elName: 'qk-input',
|
|
title: '文本框',
|
|
icon: 'iconfont iconwenbenkuang',
|
|
isForm: true,
|
|
defaultStyle: {
|
|
height: 38,
|
|
width: 250,
|
|
paddingTop: 2,
|
|
paddingBottom: 2,
|
|
paddingLeft: 10,
|
|
paddingRight: 10,
|
|
borderColor: '#999999',
|
|
borderStyle: 'solid',
|
|
borderWidth: 1,
|
|
borderRadius: 4
|
|
}
|
|
},
|
|
{
|
|
elName: 'qk-textarea',
|
|
title: '多行文本',
|
|
icon: 'iconfont iconwenbenkuang',
|
|
isForm: true,
|
|
defaultStyle: {
|
|
height: 58,
|
|
width: 250,
|
|
paddingTop: 6,
|
|
paddingBottom: 6,
|
|
paddingLeft: 10,
|
|
paddingRight: 10,
|
|
borderColor: '#999999',
|
|
borderStyle: 'solid',
|
|
borderWidth: 1,
|
|
borderRadius: 4
|
|
}
|
|
},
|
|
{
|
|
elName: 'radio',
|
|
title: '单选框',
|
|
icon: 'iconfont iconplus-radio',
|
|
isForm: true
|
|
},
|
|
{
|
|
elName: 'checkbox',
|
|
title: '复选框',
|
|
icon: 'iconfont iconduoxuan',
|
|
isForm: true
|
|
},
|
|
{
|
|
elName: 'date',
|
|
title: '日期选择器',
|
|
icon: 'iconfont iconriqi',
|
|
isForm: true
|
|
},
|
|
{
|
|
elName: 'time',
|
|
title: '时间选择器',
|
|
icon: 'iconfont iconshijian',
|
|
isForm: true
|
|
},
|
|
{
|
|
elName: 'datetime',
|
|
title: '日期时间',
|
|
icon: 'iconfont iconriqishijian',
|
|
isForm: true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: '功能组件',
|
|
components: [
|
|
{
|
|
elName: 'qk-bg-music',
|
|
title: '音乐',
|
|
icon: 'iconfont iconyinlemusic217',
|
|
valueType: '',
|
|
defaultStyle: {
|
|
height: 52,
|
|
width: 52
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: '业务组件',
|
|
components: []
|
|
}
|
|
]
|