free-fe-core-modules 0.0.38 → 0.0.39
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/components/Dialog/BasicDialog.vue +0 -1
- package/free-field/Fields/DynamicList.js +1 -1
- package/free-field/Fields/File.vue +0 -2
- package/free-field/Fields/FileList.vue +0 -2
- package/free-field/Fields/ImageList.vue +0 -2
- package/free-field/Fields/Number.js +0 -1
- package/free-field/Fields/Select.vue +2 -0
- package/free-field/Fields/Tabs.vue +10 -0
- package/package.json +1 -1
|
@@ -149,7 +149,6 @@ export default defineComponent({
|
|
|
149
149
|
|
|
150
150
|
if (props.Field.Options.IntegerOnly) {
|
|
151
151
|
const ll = props.Field.Options.MaxLength || 15;
|
|
152
|
-
console.log('mask', Array.from({length: ll}).map(() => '#').join(''))
|
|
153
152
|
return Array.from({length: ll}).map(() => '#').join('');
|
|
154
153
|
}
|
|
155
154
|
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
v-for="(t, idx) in fieldData.value" :key="idx"
|
|
38
38
|
:name="idx">
|
|
39
39
|
<free-field
|
|
40
|
+
:class="`${Field.Options.HideFieldWhenEmpty ? `free-field-tabs-panel-field-${Object.nestValue(t, field.Name) === void 0 ? 'empty' : 'with-value'}` : ''}`"
|
|
40
41
|
v-for="(field, idx) in Field.Options?.Fields"
|
|
41
42
|
:Field="field"
|
|
42
43
|
:values="t"
|
|
@@ -72,6 +73,11 @@ export default defineComponent({
|
|
|
72
73
|
Label: '数值字段名',
|
|
73
74
|
Name: 'Options.ValueField',
|
|
74
75
|
},
|
|
76
|
+
{
|
|
77
|
+
Type: 'Boolean',
|
|
78
|
+
Label: '子字段值不存在时隐藏',
|
|
79
|
+
Name: 'Options.HideFieldWhenEmpty',
|
|
80
|
+
},
|
|
75
81
|
{
|
|
76
82
|
Label: '字段',
|
|
77
83
|
Name: 'Options.Fields',
|
|
@@ -157,5 +163,9 @@ export default defineComponent({
|
|
|
157
163
|
border-bottom: 1px solid;
|
|
158
164
|
}
|
|
159
165
|
}
|
|
166
|
+
|
|
167
|
+
.input-field-tabs-panel-field-empty {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
160
170
|
}
|
|
161
171
|
</style>
|