cloud-web-corejs 1.0.54-dev.806 → 1.0.54-dev.808
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 +1 -1
- package/src/components/VabUpload/image-viewer.vue +1 -1
- package/src/components/VabUpload/mixins.js +48 -15
- package/src/components/VabUpload/previewGroup.js +128 -0
- package/src/components/VabUpload/view.vue +1 -1
- package/src/components/excelExport/exportFieldDialog.vue +23 -12
- package/src/components/excelExport/exportItemConfigUtil.js +30 -0
- package/src/components/excelExport/mixins.js +3 -3
- package/src/components/table/plugins/cell-area/index.js +1041 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +2 -0
- package/src/components/xform/form-designer/indexMixin.js +7 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +7 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +36 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +98 -81
- package/src/components/xform/form-render/indexMixin.js +7 -3
- package/src/components/xform/utils/textMaskUtil.js +6 -3
- package/src/components/xform/utils/util.js +23 -0
- package/src/index.js +6 -1
|
@@ -878,6 +878,29 @@ export function cloneColumnFieldWidget(fieldWidget) {
|
|
|
878
878
|
return newWidget;
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
+
/**
|
|
882
|
+
* 展平数据表格列配置,只返回叶子列。
|
|
883
|
+
* tableColumns 里带 children 的是分组表头(自身 prop 为空),真正的业务字段挂在 children 上,
|
|
884
|
+
* 因此凡是按 prop 取字段的逻辑都必须先展平,不能只看顶层。
|
|
885
|
+
*/
|
|
886
|
+
export function flattenLeafColumns(columns) {
|
|
887
|
+
let result = [];
|
|
888
|
+
let loopDo = (cols) => {
|
|
889
|
+
(cols || []).forEach((item) => {
|
|
890
|
+
if (!item) {
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
if (item.children && item.children.length) {
|
|
894
|
+
loopDo(item.children);
|
|
895
|
+
} else {
|
|
896
|
+
result.push(item);
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
};
|
|
900
|
+
loopDo(columns);
|
|
901
|
+
return result;
|
|
902
|
+
}
|
|
903
|
+
|
|
881
904
|
/** 将列级 label / keyName / required 同步到列内 field widget(动态列 label 在列顶层) */
|
|
882
905
|
export function applyColumnMetaToFieldWidget(fieldWidget, row, isEdit = false) {
|
|
883
906
|
if (!fieldWidget || !row) {
|
package/src/index.js
CHANGED
|
@@ -28,7 +28,12 @@ Vue.component("BaseKeepAlive", BaseKeepAlive);
|
|
|
28
28
|
import VXETable from "vxe-table";
|
|
29
29
|
import "vxe-table/lib/style.css";
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// 区域选取/复制粘贴:自研实现,通过 window.VXETableMixin 挂载,
|
|
32
|
+
// 必须在下面的 Vue.use(VXETable) 之前求值(core 在 install 时读取一次并 delete)
|
|
33
|
+
import "@base/components/table/plugins/cell-area/index.js";
|
|
34
|
+
import "@base/components/table/plugins/cell-area/index.scss";
|
|
35
|
+
|
|
36
|
+
// 引入扩展插件(官方付费插件,已由上面的自研 cell-area 替代,保留仅作回退参考)
|
|
32
37
|
// import "@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js";
|
|
33
38
|
// import "@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css";
|
|
34
39
|
|