|
@@ -7,24 +7,24 @@ export { Component } from "./component";
|
|
|
|
|
|
const defaultData = [
|
|
|
{
|
|
|
- label: `<p style="text-align:center;"><span style="color:hsl(0,0%,100%);">产品名称</span></p>`,
|
|
|
- content: "P190(注塑)",
|
|
|
+ label: `<p style="text-align:center;line-height:1.5;"><span style="color:hsl(0,0%,100%);">产品名称</span></p>`,
|
|
|
+ content: `<p style="line-height:1.5;">P190(注塑)</p>`,
|
|
|
},
|
|
|
{
|
|
|
- label: `<p style="text-align:center;"><span style="color:hsl(0,0%,100%);">产品规格</span></p>`,
|
|
|
- content: "52英寸",
|
|
|
+ label: `<p style="text-align:center;line-height:1.5;"><span style="color:hsl(0,0%,100%);">产品规格</span></p>`,
|
|
|
+ content: `<p style="line-height:1.5;">52英寸</p>`,
|
|
|
},
|
|
|
{
|
|
|
- label: `<p style="text-align:center;"><span style="color:hsl(0,0%,100%);">产品厚度</span></p>`,
|
|
|
- content: "1.0mm+0.05mm",
|
|
|
+ label: `<p style="text-align:center;line-height:1.5;"><span style="color:hsl(0,0%,100%);">产品厚度</span></p>`,
|
|
|
+ content: `<p style="line-height:1.5;">1.0mm+0.05mm</p>`,
|
|
|
},
|
|
|
{
|
|
|
- label: `<p style="text-align:center;"><span style="color:hsl(0,0%,100%);">产品底材</span></p>`,
|
|
|
- content: "鹿皮绒",
|
|
|
+ label: `<p style="text-align:center;line-height:1.5;"><span style="color:hsl(0,0%,100%);">产品底材</span></p>`,
|
|
|
+ content: `<p style="line-height:1.5;">鹿皮绒</p>`,
|
|
|
},
|
|
|
{
|
|
|
- label: `<p style="text-align:center;"><span style="color:hsl(0,0%,100%);">产品用途</span></p>`,
|
|
|
- content: "凉鞋、跟鞋、高更鞋、时尚休闲鞋等",
|
|
|
+ label: `<p style="text-align:center;line-height:1.5;"><span style="color:hsl(0,0%,100%);">产品用途</span></p>`,
|
|
|
+ content: `<p style="line-height:1.5;">凉鞋、跟鞋、高更鞋、时尚休闲鞋等</p>`,
|
|
|
},
|
|
|
];
|
|
|
|
|
@@ -35,12 +35,12 @@ export const options = {
|
|
|
|
|
|
export const { createComp, useCompData, useCreateChild } = createCompHooks({
|
|
|
layout: {
|
|
|
- size: [750, 420],
|
|
|
+ size: [750, 460],
|
|
|
},
|
|
|
value: {
|
|
|
columns: 5,
|
|
|
gap: 20,
|
|
|
- width: 156,
|
|
|
+ width: 160,
|
|
|
showBackground: true,
|
|
|
},
|
|
|
children: {
|
|
@@ -52,13 +52,13 @@ export const { createComp, useCompData, useCreateChild } = createCompHooks({
|
|
|
label: createCompId("Text", {
|
|
|
value: defaultData[i]?.label,
|
|
|
layout: {
|
|
|
- size: [160, 60],
|
|
|
+ size: [140, 36],
|
|
|
},
|
|
|
}),
|
|
|
content: createCompId("Text", {
|
|
|
value: defaultData[i]?.content,
|
|
|
layout: {
|
|
|
- size: [160, 60],
|
|
|
+ size: [160, 36],
|
|
|
},
|
|
|
}),
|
|
|
};
|