tianheng-ui 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -851,7 +851,6 @@ export const businessComponents = [
|
|
851
851
|
format: "",
|
852
852
|
style: {
|
853
853
|
label: {
|
854
|
-
width: "",
|
855
854
|
customStyle: ""
|
856
855
|
},
|
857
856
|
value: {
|
@@ -870,7 +869,6 @@ export const businessComponents = [
|
|
870
869
|
format: "",
|
871
870
|
style: {
|
872
871
|
label: {
|
873
|
-
width: "",
|
874
872
|
customStyle: ""
|
875
873
|
},
|
876
874
|
value: {
|
@@ -890,7 +888,6 @@ export const businessComponents = [
|
|
890
888
|
format: "",
|
891
889
|
style: {
|
892
890
|
label: {
|
893
|
-
width: "",
|
894
891
|
customStyle: ""
|
895
892
|
},
|
896
893
|
value: {
|
@@ -1039,7 +1036,9 @@ export const businessComponents = [
|
|
1039
1036
|
]
|
1040
1037
|
},
|
1041
1038
|
hideLabel: true
|
1042
|
-
}
|
1039
|
+
},
|
1040
|
+
events: {},
|
1041
|
+
rules: []
|
1043
1042
|
}
|
1044
1043
|
];
|
1045
1044
|
|
@@ -182,11 +182,11 @@
|
|
182
182
|
<el-form-item label="图标">
|
183
183
|
<th-icons v-model="dialog.data.icon"></th-icons>
|
184
184
|
</el-form-item>
|
185
|
-
<el-form-item label="标题宽度">
|
185
|
+
<!-- <el-form-item label="标题宽度">
|
186
186
|
<el-input
|
187
187
|
v-model="dialog.data.options.style.label.width"
|
188
188
|
></el-input>
|
189
|
-
</el-form-item>
|
189
|
+
</el-form-item> -->
|
190
190
|
<el-form-item label="数据类型">
|
191
191
|
<el-select
|
192
192
|
style="width:100%"
|
@@ -238,7 +238,7 @@ export default {
|
|
238
238
|
format: "", //type=date 时选填
|
239
239
|
//样式对象
|
240
240
|
style: {
|
241
|
-
label: {
|
241
|
+
label: { customStyle: "" }, // 标题样式
|
242
242
|
value: { customStyle: "" } // 内容样式
|
243
243
|
}
|
244
244
|
}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<el-descriptions-item v-for="(item, index) in dataModel" :key="index">
|
16
16
|
<template slot="label">
|
17
17
|
<div :style="labelStyle(item)">
|
18
|
-
<i :class="item.icon"></i>
|
18
|
+
<i v-if="item.icon" :class="item.icon"></i>
|
19
19
|
<span v-html="item.label"></span>
|
20
20
|
<span v-if="widget.options.colon">:</span>
|
21
21
|
</div>
|
@@ -38,7 +38,9 @@ export default {
|
|
38
38
|
width: this.widget.options.labelWidth,
|
39
39
|
textAlignLast: this.widget.options.textAlignLast
|
40
40
|
};
|
41
|
-
|
41
|
+
if (item.options?.style?.label) {
|
42
|
+
style = Object.assign(style, item.options.style.label);
|
43
|
+
}
|
42
44
|
return this.initStyle(style);
|
43
45
|
};
|
44
46
|
}
|