|
|
|
@ -132,382 +132,409 @@ const categories = ref([{ icon: 'trash', text: '媒体' }, { icon: 'trash', text |
|
|
|
|
categories.value.unshift({ |
|
|
|
|
icon: 'trash', |
|
|
|
|
text: '基础', |
|
|
|
|
modules: [{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
mid: hash(`${++nextId}`), |
|
|
|
|
title: '轮播图', |
|
|
|
|
maxReferenceCount: -1, |
|
|
|
|
referenceCount: 0, |
|
|
|
|
image: undefined, |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'list', |
|
|
|
|
field: 'items', |
|
|
|
|
label: '轮播图设置', |
|
|
|
|
help: '最多可添加10张图片,建议宽度750px;鼠标拖拽左侧圆点可调整图片顺序', |
|
|
|
|
addable: true, |
|
|
|
|
configs: [{ |
|
|
|
|
type: 'image', |
|
|
|
|
field: 'image', |
|
|
|
|
label: '图片', |
|
|
|
|
required: true, |
|
|
|
|
// 表示内联数据 |
|
|
|
|
inlines: [{ |
|
|
|
|
type: 'text', |
|
|
|
|
field: 'title', |
|
|
|
|
label: '标题', |
|
|
|
|
help: '选填,不超过 4 个字', |
|
|
|
|
modules: [ |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
mid: hash(`${++nextId}`), |
|
|
|
|
title: '轮播图', |
|
|
|
|
maxReferenceCount: -1, |
|
|
|
|
referenceCount: 0, |
|
|
|
|
image: undefined, |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'list', |
|
|
|
|
field: 'items', |
|
|
|
|
label: '轮播图设置', |
|
|
|
|
help: '最多可添加10张图片,建议宽度750px;鼠标拖拽左侧圆点可调整图片顺序', |
|
|
|
|
addable: true, |
|
|
|
|
configs: [{ |
|
|
|
|
type: 'image', |
|
|
|
|
field: 'image', |
|
|
|
|
label: '图片', |
|
|
|
|
required: true, |
|
|
|
|
// 表示内联数据 |
|
|
|
|
inlines: [{ |
|
|
|
|
type: 'text', |
|
|
|
|
field: 'title', |
|
|
|
|
label: '标题', |
|
|
|
|
help: '选填,不超过 4 个字', |
|
|
|
|
}, { |
|
|
|
|
type: 'text', |
|
|
|
|
field: 'link', |
|
|
|
|
label: '链接', |
|
|
|
|
help: '请输入链接', // 自动生成:"请输入${label}" |
|
|
|
|
}], |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'object', |
|
|
|
|
field: 'indicator', |
|
|
|
|
label: '指示器', |
|
|
|
|
configs: [{ |
|
|
|
|
type: 'mark', |
|
|
|
|
field: 'style', |
|
|
|
|
label: '指示器样式', |
|
|
|
|
values: [ |
|
|
|
|
{ label: '圆形', value: '#circle' }, |
|
|
|
|
{ label: '直线', value: '#line' }, |
|
|
|
|
{ label: '数字', value: '#number' }, |
|
|
|
|
], |
|
|
|
|
}, { |
|
|
|
|
type: 'text', |
|
|
|
|
field: 'link', |
|
|
|
|
label: '链接', |
|
|
|
|
help: '请输入链接', // 自动生成:"请输入${label}" |
|
|
|
|
type: 'mark', |
|
|
|
|
field: 'position', |
|
|
|
|
label: '指示器位置', |
|
|
|
|
values: [ |
|
|
|
|
{ label: '居左', value: 'start' }, |
|
|
|
|
{ label: '居中', value: 'center' }, |
|
|
|
|
{ label: '居右', value: 'end' }, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'color', |
|
|
|
|
field: 'color', |
|
|
|
|
label: '指示器颜色', |
|
|
|
|
}], |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'object', |
|
|
|
|
field: 'indicator', |
|
|
|
|
label: '指示器', |
|
|
|
|
configs: [{ |
|
|
|
|
type: 'mark', |
|
|
|
|
field: 'style', |
|
|
|
|
label: '指示器样式', |
|
|
|
|
values: [ |
|
|
|
|
{ label: '圆形', value: '#circle' }, |
|
|
|
|
{ label: '直线', value: '#line' }, |
|
|
|
|
{ label: '数字', value: '#number' }, |
|
|
|
|
], |
|
|
|
|
}, { |
|
|
|
|
type: 'mark', |
|
|
|
|
field: 'position', |
|
|
|
|
label: '指示器位置', |
|
|
|
|
values: [ |
|
|
|
|
{ label: '居左', value: 'start' }, |
|
|
|
|
{ label: '居中', value: 'center' }, |
|
|
|
|
{ label: '居右', value: 'end' }, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'color', |
|
|
|
|
field: 'color', |
|
|
|
|
label: '指示器颜色', |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'object', |
|
|
|
|
field: 'background', |
|
|
|
|
label: '背景', |
|
|
|
|
configs: [{ |
|
|
|
|
type: 'boolean', |
|
|
|
|
field: 'enabled', |
|
|
|
|
label: '是否显示背景色', |
|
|
|
|
}, { |
|
|
|
|
type: 'background', |
|
|
|
|
field: 'value', |
|
|
|
|
// 背景的不同实现方式,可以在里面添加 image 选项来支持图片 |
|
|
|
|
// 这里只能支持颜色和渐变, |
|
|
|
|
features: ['color', 'gradient'], |
|
|
|
|
type: 'object', |
|
|
|
|
field: 'background', |
|
|
|
|
label: '背景', |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
init: { |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
image: '', |
|
|
|
|
title: '123', |
|
|
|
|
link: '123', |
|
|
|
|
configs: [{ |
|
|
|
|
type: 'boolean', |
|
|
|
|
field: 'enabled', |
|
|
|
|
label: '是否显示背景色', |
|
|
|
|
}, { |
|
|
|
|
type: 'background', |
|
|
|
|
field: 'value', |
|
|
|
|
// 背景的不同实现方式,可以在里面添加 image 选项来支持图片 |
|
|
|
|
// 这里只能支持颜色和渐变, |
|
|
|
|
features: ['color', 'gradient'], |
|
|
|
|
label: '背景', |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
indicator: { |
|
|
|
|
style: '#circle', |
|
|
|
|
color: 'green', |
|
|
|
|
position: 'start', |
|
|
|
|
}, |
|
|
|
|
background: { |
|
|
|
|
enabled: true, |
|
|
|
|
value: "#ffffff", |
|
|
|
|
}, |
|
|
|
|
theme: { |
|
|
|
|
color: 'white', |
|
|
|
|
radius: 24 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
templates: { |
|
|
|
|
'#circle': { |
|
|
|
|
theme: { |
|
|
|
|
gap: 20, |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'each', |
|
|
|
|
key: 'items', |
|
|
|
|
handle: { |
|
|
|
|
theme: { |
|
|
|
|
width: 20, |
|
|
|
|
height: 20, |
|
|
|
|
radius: 10, |
|
|
|
|
color: '@@indicator.color', |
|
|
|
|
}, |
|
|
|
|
init: { |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
image: '', |
|
|
|
|
title: '123', |
|
|
|
|
link: '123', |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
indicator: { |
|
|
|
|
style: '#circle', |
|
|
|
|
color: 'green', |
|
|
|
|
position: 'start', |
|
|
|
|
}, |
|
|
|
|
background: { |
|
|
|
|
enabled: true, |
|
|
|
|
value: "#ffffff", |
|
|
|
|
}, |
|
|
|
|
theme: { |
|
|
|
|
color: 'white', |
|
|
|
|
radius: 24 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'#line': { |
|
|
|
|
theme: { |
|
|
|
|
gap: 20, |
|
|
|
|
templates: { |
|
|
|
|
'#circle': { |
|
|
|
|
theme: { |
|
|
|
|
gap: 20, |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'each', |
|
|
|
|
key: 'items', |
|
|
|
|
handle: { |
|
|
|
|
theme: { |
|
|
|
|
width: 20, |
|
|
|
|
height: 20, |
|
|
|
|
radius: 10, |
|
|
|
|
color: '@@indicator.color', |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'each', |
|
|
|
|
key: 'items', |
|
|
|
|
handle: { |
|
|
|
|
theme: { |
|
|
|
|
width: 40, |
|
|
|
|
height: 20, |
|
|
|
|
color: '@@indicator.color', |
|
|
|
|
}, |
|
|
|
|
'#line': { |
|
|
|
|
theme: { |
|
|
|
|
gap: 20, |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'each', |
|
|
|
|
key: 'items', |
|
|
|
|
handle: { |
|
|
|
|
theme: { |
|
|
|
|
width: 40, |
|
|
|
|
height: 20, |
|
|
|
|
color: '@@indicator.color', |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"#number": { |
|
|
|
|
theme: { |
|
|
|
|
color: 'rgba(0,0,0,0.4)', |
|
|
|
|
textColor: '#fff' |
|
|
|
|
}, |
|
|
|
|
children: '1/len(items)' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"#number": { |
|
|
|
|
theme: { |
|
|
|
|
color: 'rgba(0,0,0,0.4)', |
|
|
|
|
textColor: '#fff' |
|
|
|
|
theme: { |
|
|
|
|
position: 'relative', |
|
|
|
|
height: 200, |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 12.0, |
|
|
|
|
vertical: 12, |
|
|
|
|
}, |
|
|
|
|
children: '1/len(items)' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
theme: { |
|
|
|
|
position: 'relative', |
|
|
|
|
height: 200, |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 12.0, |
|
|
|
|
vertical: 12, |
|
|
|
|
color: 'cyan', |
|
|
|
|
}, |
|
|
|
|
color: 'cyan', |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: '100%', |
|
|
|
|
height: '100%', |
|
|
|
|
color: '@@theme.color', |
|
|
|
|
radius: "@@theme.radius", |
|
|
|
|
textAlign: 'center', |
|
|
|
|
}, |
|
|
|
|
children: '设置轮播图', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
position: 'absolute', |
|
|
|
|
flexible: true, |
|
|
|
|
mainAlign: '@@indicator.position', |
|
|
|
|
bottom: 20, |
|
|
|
|
left: 20, |
|
|
|
|
right: 20, |
|
|
|
|
height: 20, |
|
|
|
|
color: 'red', |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'template', |
|
|
|
|
key: 'indicator.style' |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
children: [{ |
|
|
|
|
{ |
|
|
|
|
title: '产品组', |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: '100%', |
|
|
|
|
height: '100%', |
|
|
|
|
color: '@@theme.color', |
|
|
|
|
radius: "@@theme.radius", |
|
|
|
|
textAlign: 'center', |
|
|
|
|
}, |
|
|
|
|
children: '设置轮播图', |
|
|
|
|
}, { |
|
|
|
|
theme: { |
|
|
|
|
position: 'absolute', |
|
|
|
|
flexible: true, |
|
|
|
|
mainAlign: '@@indicator.position', |
|
|
|
|
bottom: 20, |
|
|
|
|
left: 20, |
|
|
|
|
right: 20, |
|
|
|
|
height: 20, |
|
|
|
|
color: 'red', |
|
|
|
|
}, |
|
|
|
|
// children: { |
|
|
|
|
// type: 'each', |
|
|
|
|
// key: 'indicator.position', |
|
|
|
|
// handle: { |
|
|
|
|
// theme: { |
|
|
|
|
// width: 20, |
|
|
|
|
// height: 20, |
|
|
|
|
// radius: 10, |
|
|
|
|
// color: 'black', |
|
|
|
|
// } |
|
|
|
|
// }, |
|
|
|
|
// } |
|
|
|
|
children: { |
|
|
|
|
type: 'template', |
|
|
|
|
key: 'indicator.style' |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
mid: hash(`${++nextId}`), |
|
|
|
|
title: '产品组', |
|
|
|
|
maxReferenceCount: -1, |
|
|
|
|
referenceCount: 0, |
|
|
|
|
image: undefined, |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'object', |
|
|
|
|
field: 'titleAndDesc', |
|
|
|
|
label: '产品标题及说明', |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
label: '产品标题', |
|
|
|
|
field: 'mainTitle' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
label: '说明', |
|
|
|
|
field: 'content', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
help: '最多可添加10张图片,建议宽度750px;鼠标拖拽左侧圆点可调整图片顺序', |
|
|
|
|
addable: true, |
|
|
|
|
type: 'list', |
|
|
|
|
field: 'groups', |
|
|
|
|
label: '产品组列表', |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'image', |
|
|
|
|
label: '产品图片', |
|
|
|
|
field: 'productPhoto', |
|
|
|
|
// 表示内联数据 |
|
|
|
|
inlines: [{ |
|
|
|
|
mid: hash(`${++nextId}`), |
|
|
|
|
maxReferenceCount: -1, |
|
|
|
|
referenceCount: 0, |
|
|
|
|
image: undefined, |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'object', |
|
|
|
|
field: 'titleAndDesc', |
|
|
|
|
label: '产品标题及说明', |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
field: 'link', |
|
|
|
|
label: '链接', |
|
|
|
|
help: '请输入链接', // 自动生成:"请输入${label}" |
|
|
|
|
label: '产品标题', |
|
|
|
|
field: 'mainTitle' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
label: '自定义标题', |
|
|
|
|
field: 'productTitle', |
|
|
|
|
label: '说明', |
|
|
|
|
field: 'content', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
label: '自定义说明', |
|
|
|
|
field: 'productDesc', |
|
|
|
|
label: '提示', |
|
|
|
|
field: 'more', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
init: { |
|
|
|
|
titleAndDesc: { |
|
|
|
|
mainTitle: '标题', |
|
|
|
|
content: '说明', |
|
|
|
|
}, |
|
|
|
|
groups: [ |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
help: '帮助', |
|
|
|
|
addable: true, |
|
|
|
|
type: 'list', |
|
|
|
|
field: 'groups', |
|
|
|
|
label: '产品组列表', |
|
|
|
|
configs: [ |
|
|
|
|
{ |
|
|
|
|
type: 'image', |
|
|
|
|
label: '产品图片', |
|
|
|
|
field: 'productPhoto', |
|
|
|
|
// 表示内联数据 |
|
|
|
|
inlines: [{ |
|
|
|
|
type: 'text', |
|
|
|
|
field: 'link', |
|
|
|
|
label: '链接', |
|
|
|
|
help: '请输入链接', // 自动生成:"请输入${label}" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
label: '自定义标题', |
|
|
|
|
field: 'productTitle', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'text', |
|
|
|
|
label: '自定义说明', |
|
|
|
|
field: 'productDesc', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
productTitle: '111', |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
theme: { |
|
|
|
|
height: 200, |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 12.0, |
|
|
|
|
init: { |
|
|
|
|
titleAndDesc: { |
|
|
|
|
mainTitle: '标题123', |
|
|
|
|
content: '说明123', |
|
|
|
|
more: '查看更多', |
|
|
|
|
}, |
|
|
|
|
groups: [ |
|
|
|
|
{ |
|
|
|
|
productTitle: '111', |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
theme: { |
|
|
|
|
color: 'blue', |
|
|
|
|
}, |
|
|
|
|
children:{ |
|
|
|
|
theme: { |
|
|
|
|
radius: 12 |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
color: 'pink', |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: '100%', |
|
|
|
|
height: '100%', |
|
|
|
|
color: 'white', |
|
|
|
|
radius: 12.0, |
|
|
|
|
textAlign: 'center', |
|
|
|
|
height: 200, |
|
|
|
|
padding: 12, |
|
|
|
|
color: '@@theme.color', |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
flexible: true, |
|
|
|
|
gap: 12, |
|
|
|
|
crossAlign: 'center', |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 5 |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
flexible: true, |
|
|
|
|
gap: 5, |
|
|
|
|
crossAlign: 'center', |
|
|
|
|
children: { |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: '100%', |
|
|
|
|
height: '100%', |
|
|
|
|
color: 'white', |
|
|
|
|
clip: 'hidden', |
|
|
|
|
radius: '@@children.theme.radius', |
|
|
|
|
textAlign: 'center', |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
flexible: true, |
|
|
|
|
gap: 12, |
|
|
|
|
crossAlign: 'center', |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 5 |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
fontSize: 16, |
|
|
|
|
}, |
|
|
|
|
children: '左侧标题', |
|
|
|
|
}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
flexible: true, |
|
|
|
|
gap: 5, |
|
|
|
|
crossAlign: 'center', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
fontSize: 16, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
fontSize: 16, |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'text', |
|
|
|
|
key: 'titleAndDesc.mainTitle' |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
children: '左侧说明', |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
grow: 1, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: 'auto', |
|
|
|
|
margin: { |
|
|
|
|
horizontal: 5, |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
fontSize: 16, |
|
|
|
|
}, |
|
|
|
|
children: { |
|
|
|
|
type: 'text', |
|
|
|
|
key: 'titleAndDesc.content' |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
theme: { |
|
|
|
|
grow: 1, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: 'auto', |
|
|
|
|
margin: { |
|
|
|
|
horizontal: 5, |
|
|
|
|
}, |
|
|
|
|
fontSize: 12, |
|
|
|
|
padding: { |
|
|
|
|
vertical: 1, |
|
|
|
|
horizontal: 5, |
|
|
|
|
}, |
|
|
|
|
color: '@@children.children.children.children.children.2.color', |
|
|
|
|
textColor: '#fff', |
|
|
|
|
radius: 16, |
|
|
|
|
}, |
|
|
|
|
fontSize: 12, |
|
|
|
|
padding: { |
|
|
|
|
vertical: 1, |
|
|
|
|
horizontal: 5, |
|
|
|
|
children: { |
|
|
|
|
type: 'text', |
|
|
|
|
key: 'titleAndDesc.more' |
|
|
|
|
}, |
|
|
|
|
color: 'pink', |
|
|
|
|
radius: 16, |
|
|
|
|
}, |
|
|
|
|
children: '查看更多', |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: "94%", |
|
|
|
|
height: "70%", |
|
|
|
|
color: 'pink', |
|
|
|
|
radius: 12.0, |
|
|
|
|
margin: { |
|
|
|
|
top: '1%', |
|
|
|
|
left: '3%', |
|
|
|
|
right: '3%', |
|
|
|
|
bottom: '2%', |
|
|
|
|
}, |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 3, |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
children: [{ |
|
|
|
|
{ |
|
|
|
|
vid: hash(`${++nextId}`), |
|
|
|
|
theme: { |
|
|
|
|
width: '35%', |
|
|
|
|
height: '100%', |
|
|
|
|
mainAlign: "center", |
|
|
|
|
color: '#fff', |
|
|
|
|
crossAlign: "center" |
|
|
|
|
|
|
|
|
|
width: "94%", |
|
|
|
|
height: "70%", |
|
|
|
|
color: 'pink', |
|
|
|
|
radius: 12.0, |
|
|
|
|
margin: { |
|
|
|
|
top: '1%', |
|
|
|
|
left: '3%', |
|
|
|
|
right: '3%', |
|
|
|
|
bottom: '2%', |
|
|
|
|
}, |
|
|
|
|
padding: { |
|
|
|
|
horizontal: 3, |
|
|
|
|
}, |
|
|
|
|
gap: 3, |
|
|
|
|
clip: 'autoX', |
|
|
|
|
}, |
|
|
|
|
children: '产品' |
|
|
|
|
children: |
|
|
|
|
{ |
|
|
|
|
type: 'each', |
|
|
|
|
key: 'groups', |
|
|
|
|
handle: { |
|
|
|
|
theme: { |
|
|
|
|
width: '100px', |
|
|
|
|
height: '100%', |
|
|
|
|
radius: 10, |
|
|
|
|
color: '#fff', |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// [{ |
|
|
|
|
// theme: { |
|
|
|
|
// width: '35%', |
|
|
|
|
// height: '100%', |
|
|
|
|
// mainAlign: "center", |
|
|
|
|
// color: '#fff', |
|
|
|
|
// crossAlign: "center" |
|
|
|
|
// |
|
|
|
|
// }, |
|
|
|
|
// children: { } |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|