gcs-ui-lib 1.2.25 → 1.2.26

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcs-ui-lib",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "private": false,
5
5
  "main": "./lib/gcs-ui-lib.common.js",
6
6
  "scripts": {
@@ -212,11 +212,12 @@ export default {
212
212
  return {
213
213
  ...rest,
214
214
  label: item.label || item.prop,
215
+ slotName,
215
216
  };
216
217
  });
217
218
  },
218
219
  },
219
- watch: {
220
+ watch: {
220
221
  tableData: {
221
222
  handler() {
222
223
  this.formData.tableData = this.tableData;
@@ -226,9 +227,7 @@ export default {
226
227
  },
227
228
  mergedColumns: {
228
229
  handler(newVal) {
229
- if (!this.displayColumns.length && newVal.length) {
230
- this.displayColumns = newVal;
231
- }
230
+ this.displayColumns = newVal;
232
231
  this.$emit("columns-change", newVal);
233
232
  },
234
233
  immediate: true,
@@ -251,7 +250,7 @@ export default {
251
250
  //获取固定分组数据必填字段
252
251
  this.setFieldHeader(Field);
253
252
  //获取拓展字段分组数据必填字段
254
- this.setExTHeader(exField);
253
+ await this.setExTHeader(exField);
255
254
  },
256
255
  setFieldHeader(Field) {
257
256
  for (let i of Field) {
@@ -339,7 +338,6 @@ export default {
339
338
  });
340
339
  },
341
340
  setColumns(columns) {
342
- // 确保每列都有 label 属性用于显示
343
341
  this.displayColumns = columns.map((col) => ({
344
342
  ...col,
345
343
  label: col.label || col.label2 || col.prop,