cnhis-design-vue 3.1.22-beta.0 → 3.1.22-beta.2
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/es/components/big-table/index2.js +0 -2
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +7 -6
- package/es/components/field-set/index.d.ts +4 -3
- package/es/components/field-set/src/FieldSet.js +9 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -3
- package/es/components/form-render/src/components/renderer/combination.d.ts +7 -0
- package/es/components/form-render/src/components/renderer/combination.js +4 -1
- package/es/components/grid/index2.js +0 -2
- package/es/components/iho-table/index.d.ts +4011 -11
- package/es/components/iho-table/index2.js +1 -0
- package/es/components/iho-table/src/IhoTable.js +13 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4011 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -0
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +66 -1
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +34 -3
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +39 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +3 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/index2.js +7 -5
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +2 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.js +44 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.d.ts → widgets/checkRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.js → widgets/checkRendererPlugin.js} +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.d.ts → widgets/colorRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.js → widgets/colorRendererPlugin.js} +6 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.d.ts → widgets/defaultRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.js → widgets/defaultRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.d.ts +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.js +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.d.ts → widgets/labelRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.js → widgets/labelRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +89 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.d.ts → widgets/seqRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.js → widgets/seqRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/types/index.d.ts +7 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +14 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/index2.js +12 -1
- package/package.json +3 -3
- package/es/shared/utils/loadVxe.d.ts +0 -2
- package/es/shared/utils/loadVxe.js +0 -1
- package/es/shared/utils/loadVxe2.js +0 -12
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable2.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index2.js';
|
|
3
|
-
import { loadVxeTable } from '../../shared/utils/loadVxe2.js';
|
|
4
3
|
import { expandXEUtils } from '../../shared/utils/utilExpand.js';
|
|
5
4
|
import '../index2.js';
|
|
6
5
|
import script from './src/BigTable.js';
|
|
@@ -12,7 +11,6 @@ const BigTable = script;
|
|
|
12
11
|
BigTable.install = function(app) {
|
|
13
12
|
safeComponentRegister(app, BigTable, COMPONENT_NAMESPACE + "BigTable");
|
|
14
13
|
safeComponentRegister(app, Grid, COMPONENT_NAMESPACE + "Grid");
|
|
15
|
-
loadVxeTable(app);
|
|
16
14
|
return expandXEUtils();
|
|
17
15
|
};
|
|
18
16
|
|
|
@@ -430,7 +430,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
const currentColumns = fieldList.map((item, index) => {
|
|
433
|
-
var _a2, _b2, _c2, _d, _e, _f, _g;
|
|
433
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h;
|
|
434
434
|
let filterField = false;
|
|
435
435
|
let filterItems = [];
|
|
436
436
|
try {
|
|
@@ -445,6 +445,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
445
445
|
let sortable = props.isNestTable ? false : !filterField && item.isSort == 1 && notParticipatingSort != 1 && item.isMerge != 1;
|
|
446
446
|
let treeNode = props.isNestTable ? false : state.isTree != 0 ? index === 0 : false;
|
|
447
447
|
let type = index === 0 && props.showNestTable ? "expand" : "";
|
|
448
|
+
const isShow = item.isShow == 1 && ((_e = item == null ? void 0 : item.settingObj) == null ? void 0 : _e.isHide) != 1;
|
|
448
449
|
if (isScanMultiTable2) {
|
|
449
450
|
fixed = "";
|
|
450
451
|
sortable = false;
|
|
@@ -452,15 +453,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
452
453
|
type = "";
|
|
453
454
|
}
|
|
454
455
|
const col = Object.assign(item, {
|
|
455
|
-
visible: item.columnName == "operatorColumn" ? showButtonTop == 0 :
|
|
456
|
+
visible: item.columnName == "operatorColumn" ? showButtonTop == 0 : isShow,
|
|
456
457
|
field: item.columnName,
|
|
457
458
|
title: handleName(item, "title"),
|
|
458
459
|
minWidth: item.colWidth,
|
|
459
460
|
fixed,
|
|
460
461
|
sortable,
|
|
461
462
|
headerClassName: "mycolumn",
|
|
462
|
-
resizable: (
|
|
463
|
-
showOverflow: (
|
|
463
|
+
resizable: (_f = item.resizable) != null ? _f : true,
|
|
464
|
+
showOverflow: (_g = item.showOverflow) != null ? _g : "title",
|
|
464
465
|
treeNode,
|
|
465
466
|
type,
|
|
466
467
|
slots: {
|
|
@@ -475,7 +476,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
475
476
|
if (filterField && !props.isNestTable && !isScanMultiTable2) {
|
|
476
477
|
state.filterFields[item.columnName] = Object.assign({}, XEUtils.clone({
|
|
477
478
|
...item,
|
|
478
|
-
setting: item.settingObj
|
|
479
|
+
setting: item.settingObj || {}
|
|
479
480
|
}, true), {
|
|
480
481
|
visible: false,
|
|
481
482
|
left: "initial",
|
|
@@ -497,7 +498,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
497
498
|
if (!isScanMultiTable2 && !isFunction(attr.footerMethod) && !isFunction(attr["footer-method"])) {
|
|
498
499
|
col.slots.footer = "tooltip_footer";
|
|
499
500
|
}
|
|
500
|
-
if (props.showNestTable && state.isTree == 0 && ((
|
|
501
|
+
if (props.showNestTable && state.isTree == 0 && ((_h = props.curNestColumnConfig) == null ? void 0 : _h.isTree) == 0) {
|
|
501
502
|
col.slots.content = "nest_table_content";
|
|
502
503
|
}
|
|
503
504
|
return col;
|
|
@@ -19,7 +19,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
19
19
|
}, {
|
|
20
20
|
fieldsMapping: Record<string, string>;
|
|
21
21
|
selectOptions: Record<string, string>[];
|
|
22
|
-
emit: (event: "onSave" | "onClose", ...args: any[]) => void;
|
|
22
|
+
emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
|
|
23
23
|
settingView: any;
|
|
24
24
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
fields: {
|
|
@@ -39,11 +39,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
41
|
}>> & {
|
|
42
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
42
43
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
43
44
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
44
45
|
}>>;
|
|
45
46
|
initFields: () => any[];
|
|
46
|
-
realityFields: import("vue").ComputedRef<any[]>;
|
|
47
47
|
state: {
|
|
48
48
|
spinning: boolean;
|
|
49
49
|
isCustomSearch: boolean;
|
|
@@ -212,7 +212,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
212
212
|
modelValue: unknown[];
|
|
213
213
|
componentData: Record<string, any>;
|
|
214
214
|
}>;
|
|
215
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
215
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
216
216
|
fields: {
|
|
217
217
|
type: import("vue").PropType<any[]>;
|
|
218
218
|
default: () => never[];
|
|
@@ -230,6 +230,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
230
230
|
default: boolean;
|
|
231
231
|
};
|
|
232
232
|
}>> & {
|
|
233
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
233
234
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
234
235
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
235
236
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
1
|
+
import { defineComponent, ref, reactive, watch, onMounted, openBlock, createElementBlock, normalizeStyle, createVNode, unref, withCtx, createElementVNode, normalizeClass, createCommentVNode, createBlock, toDisplayString, withDirectives, vShow, renderSlot, createTextVNode } from 'vue';
|
|
2
2
|
import { NSpin, NCheckbox, NTooltip, NSelect, NInput, NInputNumber, NButton } from 'naive-ui';
|
|
3
3
|
import Draggable from 'vuedraggable';
|
|
4
4
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -78,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
default: false
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
emits: ["onSave", "onClose"],
|
|
81
|
+
emits: ["onSave", "onClose", "reset"],
|
|
82
82
|
setup(__props, { expose, emit }) {
|
|
83
83
|
const props = __props;
|
|
84
84
|
const fieldsMapping = {
|
|
@@ -126,12 +126,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
126
|
});
|
|
127
127
|
return result;
|
|
128
128
|
}
|
|
129
|
-
const realityFields = computed(initFields);
|
|
130
129
|
const state = reactive({
|
|
131
130
|
spinning: false,
|
|
132
131
|
isCustomSearch: true,
|
|
133
132
|
clickItem: {},
|
|
134
|
-
fields:
|
|
133
|
+
fields: [],
|
|
135
134
|
widthShow: "10%",
|
|
136
135
|
widthLarge: "20%"
|
|
137
136
|
});
|
|
@@ -181,6 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
181
180
|
};
|
|
182
181
|
function reset() {
|
|
183
182
|
state.fields = initFields();
|
|
183
|
+
emit("reset");
|
|
184
184
|
}
|
|
185
185
|
const calculateCheck = (key) => {
|
|
186
186
|
if (!state.fields.length)
|
|
@@ -213,6 +213,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
213
213
|
state.widthLarge = "15%";
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
watch(() => props.fields, (value) => {
|
|
217
|
+
if ((value == null ? void 0 : value.length) > 0) {
|
|
218
|
+
state.fields = initFields();
|
|
219
|
+
}
|
|
220
|
+
}, { immediate: true, deep: true });
|
|
216
221
|
onMounted(() => {
|
|
217
222
|
hideTab();
|
|
218
223
|
setWidth();
|
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
}, {
|
|
47
47
|
fieldsMapping: Record<string, string>;
|
|
48
48
|
selectOptions: Record<string, string>[];
|
|
49
|
-
emit: (event: "onSave" | "onClose", ...args: any[]) => void;
|
|
49
|
+
emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
|
|
50
50
|
settingView: any;
|
|
51
51
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
52
52
|
fields: {
|
|
@@ -66,11 +66,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
68
|
}>> & {
|
|
69
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
69
70
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
70
71
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
71
72
|
}>>;
|
|
72
73
|
initFields: () => any[];
|
|
73
|
-
realityFields: import("vue").ComputedRef<any[]>;
|
|
74
74
|
state: Istate;
|
|
75
75
|
leftStyle: (ele: Ifields) => {
|
|
76
76
|
background: string | undefined;
|
|
@@ -166,7 +166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
166
|
modelValue: unknown[];
|
|
167
167
|
componentData: Record<string, any>;
|
|
168
168
|
}>;
|
|
169
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
170
170
|
fields: {
|
|
171
171
|
type: PropType<any[]>;
|
|
172
172
|
default: () => never[];
|
|
@@ -184,6 +184,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
184
|
default: boolean;
|
|
185
185
|
};
|
|
186
186
|
}>> & {
|
|
187
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
187
188
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
188
189
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
189
190
|
}, {
|
|
@@ -11,6 +11,9 @@ export declare const COMBINATION: import("vue").DefineComponent<{
|
|
|
11
11
|
maxGroupNum: {
|
|
12
12
|
type: NumberConstructor;
|
|
13
13
|
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
14
17
|
getProperties: {
|
|
15
18
|
type: PropType<() => FieldItem[]>;
|
|
16
19
|
default: () => never[];
|
|
@@ -29,6 +32,9 @@ export declare const COMBINATION: import("vue").DefineComponent<{
|
|
|
29
32
|
maxGroupNum: {
|
|
30
33
|
type: NumberConstructor;
|
|
31
34
|
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
32
38
|
getProperties: {
|
|
33
39
|
type: PropType<() => FieldItem[]>;
|
|
34
40
|
default: () => never[];
|
|
@@ -39,6 +45,7 @@ export declare const COMBINATION: import("vue").DefineComponent<{
|
|
|
39
45
|
}>> & {
|
|
40
46
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
41
47
|
}, {
|
|
48
|
+
disabled: boolean;
|
|
42
49
|
title: string;
|
|
43
50
|
getProperties: () => FieldItem[];
|
|
44
51
|
}>;
|
|
@@ -22,6 +22,9 @@ const script = defineComponent({
|
|
|
22
22
|
maxGroupNum: {
|
|
23
23
|
type: Number
|
|
24
24
|
},
|
|
25
|
+
disabled: {
|
|
26
|
+
type: Boolean
|
|
27
|
+
},
|
|
25
28
|
getProperties: {
|
|
26
29
|
type: Function,
|
|
27
30
|
default: () => []
|
|
@@ -70,7 +73,7 @@ const script = defineComponent({
|
|
|
70
73
|
"onClick": addGroup,
|
|
71
74
|
"type": "info",
|
|
72
75
|
"text": true,
|
|
73
|
-
"disabled": currentGroupNum.value >= maxGroupNum.value
|
|
76
|
+
"disabled": currentGroupNum.value >= maxGroupNum.value || props.disabled
|
|
74
77
|
}, {
|
|
75
78
|
icon: () => createVNode(NIcon, {
|
|
76
79
|
"component": AddCircleOutline
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable2.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index2.js';
|
|
3
|
-
import { loadVxeTable } from '../../shared/utils/loadVxe2.js';
|
|
4
3
|
import '../../shared/utils/utilExpand.js';
|
|
5
4
|
import script from './src/Grid.js';
|
|
6
5
|
|
|
7
6
|
const Grid = script;
|
|
8
7
|
Grid.install = function(app) {
|
|
9
8
|
safeComponentRegister(app, Grid, COMPONENT_NAMESPACE + "Grid");
|
|
10
|
-
loadVxeTable(app);
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
export { Grid as default };
|