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.
@@ -109,7 +109,6 @@ import EIcon from '../Basic/EIcon.vue';
109
109
 
110
110
  export default defineComponent({
111
111
  name: 'BasicDialog',
112
- // mixins: [mixins.InputFieldValidator],
113
112
  emits: ['hide', 'ok', 'cancel'],
114
113
  props: {
115
114
  persistent: { type: Boolean, default: true },
@@ -224,7 +224,7 @@ export default defineComponent({
224
224
  for (let i = 0; i < tableData.value.length; i += 1) {
225
225
  const td = tableData.value[i];
226
226
 
227
- td.auto__index = td.auto__index || i;
227
+ td.auto__index = i;
228
228
  }
229
229
  }
230
230
  });
@@ -334,8 +334,6 @@ export default defineComponent({
334
334
  }
335
335
  }
336
336
 
337
- console.log('uploadedFiles', uploadedFiles);
338
-
339
337
  setFieldData(uploadedFiles, emit);
340
338
  selfValidate();
341
339
  }
@@ -392,8 +392,6 @@ export default defineComponent({
392
392
  // ...(uploader.value?.files || []),
393
393
  // ];
394
394
 
395
- console.log('allFiles', fieldData.value, localFiles.value);
396
-
397
395
  return [].concat(fieldData.value || []).concat(localFiles.value)
398
396
  });
399
397
 
@@ -301,8 +301,6 @@ export default defineComponent({
301
301
  // ...(uploader.value?.files || []),
302
302
  // ];
303
303
 
304
- console.log('allFiles', fieldData.value, localFiles.value);
305
-
306
304
  return [].concat(fieldData.value || []).concat(localFiles.value)
307
305
  });
308
306
 
@@ -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
 
@@ -61,6 +61,8 @@
61
61
  :use-chips="Field && (Field.UseChip || (Field.Info && Field.Info.Chip))"
62
62
  v-bind="inputControlSettings"
63
63
  :rules="Field.Rules"
64
+
65
+ :new-value-mode="Field?.NewValueMode ? 'add' : undefined"
64
66
  >
65
67
  <template v-slot:before>
66
68
  <span
@@ -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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-fe-core-modules",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/freeeis/free-fe-core-modules.git",
6
6
  "author": "zhiquan",