cloud-web-corejs 1.0.54-dev.714 → 1.0.54-dev.715

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.
Files changed (21) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/XFormTabContainer//346/226/260/345/242/236/351/241/265/347/255/276/346/250/241/345/274/217-/350/220/275/345/234/260/345/256/236/346/226/275/346/226/207/346/241/243.md +232 -0
  3. package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +563 -0
  4. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +48 -0
  5. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +60 -0
  6. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +116 -13
  7. package/src/components/xform/form-designer/form-widget/field-widget/mixins/autocomplete-mixin.js +5 -0
  8. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +13 -0
  9. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +11 -0
  10. package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +9 -1
  11. package/src/components/xform/form-designer/widget-panel/index.vue +29 -0
  12. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +137 -0
  13. package/src/components/xform/form-render/compareDelList.vue +83 -0
  14. package/src/components/xform/form-render/compareView.vue +76 -0
  15. package/src/components/xform/form-render/container-item/data-table-item.vue +15 -0
  16. package/src/components/xform/form-render/container-item/data-table-mixin.js +19 -0
  17. package/src/components/xform/form-render/index.vue +8 -1
  18. package/src/components/xform/form-render/indexMixin.js +757 -3
  19. package/src/components/xform/lang/en-US_extension.js +3 -0
  20. package/src/components/xform/lang/zh-CN.js +3 -0
  21. package/src/components/xform/mixins/defaultHandle.js +17 -0
@@ -1424,6 +1424,24 @@ modules = {
1424
1424
  getTableData: function () {
1425
1425
  return this.widget.options.tableData;
1426
1426
  },
1427
+ /**
1428
+ * 注入对比行样式:变更行/新增行整行高亮。组合已有 rowClassName,不覆盖原逻辑。
1429
+ */
1430
+ applyCompareRowClassName: function () {
1431
+ if (!this.vxeOption) return;
1432
+ let prev = this.vxeOption.rowClassName;
1433
+ let self = this;
1434
+ this.$set(this.vxeOption, "rowClassName", function (params) {
1435
+ let cls =
1436
+ typeof prev === "function" ? prev(params) || "" : prev || "";
1437
+ let formRef = self.getFormRef();
1438
+ if (formRef && formRef.isCompare && formRef.getCompareRowClass) {
1439
+ let extra = formRef.getCompareRowClass(self.fieldKeyName, params.row);
1440
+ if (extra) cls = (cls + " " + extra).trim();
1441
+ }
1442
+ return cls;
1443
+ });
1444
+ },
1427
1445
  /**
1428
1446
  * 重置查询表单,并按配置决定是否立即重新查询。
1429
1447
  * @param {Object} options 可覆盖默认重置行为。
@@ -2568,6 +2586,7 @@ modules = {
2568
2586
  }
2569
2587
  this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
2570
2588
  this.vxeOption = opts;
2589
+ this.applyCompareRowClassName();
2571
2590
  this.tryAutoLoadDynamicColumns().finally(() => {
2572
2591
  if (!isQueryTable) {
2573
2592
  setTimeout(() => {
@@ -105,6 +105,11 @@
105
105
  :visiable.sync="showUniverDialog"
106
106
  :option="univerDialogOption"
107
107
  ></univerDialog>
108
+ <compareDelList
109
+ v-if="showCompareDelList"
110
+ :visiable.sync="showCompareDelList"
111
+ :option="compareDelListOption"
112
+ ></compareDelList>
108
113
  </div>
109
114
  </template>
110
115
 
@@ -134,7 +139,9 @@ export default {
134
139
  fileReferenceDialog: () =>
135
140
  import(
136
141
  "../../../components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue"
137
- )
142
+ ),
143
+ compareDelList: () =>
144
+ import("../../../components/xform/form-render/compareDelList.vue"),
138
145
  },
139
146
  mixins: [indexMixin, formDynamicFieldMixin],
140
147
  };