cnhis-design-vue 3.1.23-beta.1 → 3.1.23-beta.11
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/index.d.ts +0 -3
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -3
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +9 -20
- package/es/components/big-table/src/utils.d.ts +1 -1
- package/es/components/big-table/src/utils2.js +11 -37
- package/es/components/fabric-chart/src/components/PopupMenu.js +7 -2
- package/es/components/fabric-chart/src/hooks/useCenter2.js +9 -5
- package/es/components/fabric-chart/src/hooks/useEvent2.js +40 -8
- package/es/components/field-set/index.d.ts +1 -0
- package/es/components/field-set/src/FieldSet.js +16 -10
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -0
- package/es/components/form-config/index.d.ts +6 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +6 -0
- package/es/components/form-render/index2.js +2 -1
- package/es/components/form-render/src/components/renderer/index.d.ts +2 -1
- package/es/components/form-render/src/components/renderer/index.js +2 -1
- package/es/components/form-render/src/components/renderer/index2.js +2 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +86 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascade.js +229 -0
- package/es/components/form-render/src/components/renderer/search.d.ts +13 -1
- package/es/components/form-render/src/components/renderer/search.js +2 -1
- package/es/components/form-render/src/components/renderer/{cascader.d.ts → searchCascade.d.ts} +0 -0
- package/es/components/form-render/src/components/renderer/{cascader.js → searchCascade.js} +1 -0
- package/es/components/form-render/src/components/renderer/select.js +2 -1
- package/es/components/form-render/src/hooks/useAsyncQueue2.js +4 -4
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +11 -4
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormRequest2.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +6 -0
- package/es/components/form-render/src/utils/schema2.js +1 -4
- package/es/components/iho-table/index.d.ts +0 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -1
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +9 -7
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
- package/es/components/iho-table/src/plugins/index.js +4 -1
- package/es/components/iho-table/src/plugins/index2.js +4 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +11 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +205 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +39 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon2.js +17 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.d.ts +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.js +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{inputRendererPlugins.js → inputRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +60 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +40 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils2.js +20 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.js → editSeparate.js} +20 -22
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.vue.d.ts → editSeparate.vue.d.ts} +1 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +13 -9
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.d.ts → separateUtils.d.ts} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.js → separateUtils.js} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils2.js → separateUtils2.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +60 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +39 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +4 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +1 -46
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +11 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js +50 -0
- package/es/components/iho-table/src/types/index.d.ts +0 -3
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -0
- package/es/components/search-cascader/index.d.ts +196 -0
- package/es/components/search-cascader/index.js +1 -0
- package/es/components/search-cascader/index2.js +10 -0
- package/es/components/search-cascader/src/SearchCascader.js +168 -0
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +198 -0
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +45 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +134 -0
- package/es/components/search-cascader/src/components/index.d.ts +1 -0
- package/es/components/search-cascader/src/components/index.js +1 -0
- package/es/components/search-cascader/src/constants/index.d.ts +3 -0
- package/es/components/search-cascader/src/constants/index.js +1 -0
- package/es/components/search-cascader/src/constants/index2.js +3 -0
- package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
- package/es/components/search-cascader/src/hooks/index.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable2.js +7 -0
- package/es/components/search-cascader/src/utils/index.d.ts +2 -0
- package/es/components/search-cascader/src/utils/index.js +1 -0
- package/es/components/search-cascader/src/utils/index2.js +11 -0
- package/es/components/search-cascader/style/index.css +1 -0
- package/es/components/select-label/index.d.ts +1 -0
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -0
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +16 -4
- package/es/components/shortcut-provider/src/ShortcutProvider.js +2 -1
- package/es/components/shortcut-setter/index.d.ts +6 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -0
- package/es/shared/components/no-data/NoData.js +74 -0
- package/es/shared/components/no-data/NoData.vue.d.ts +51 -0
- package/es/shared/components/no-data/index.d.ts +2 -0
- package/es/shared/components/no-data/index.js +1 -0
- package/es/shared/components/no-data/index2.js +2 -0
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index2.js +14 -5
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugins.d.ts +0 -1
|
@@ -643,9 +643,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
643
643
|
userInfo: Record<string, any>;
|
|
644
644
|
sysImageSize: unknown[];
|
|
645
645
|
}>;
|
|
646
|
-
handleSeqConfig: import("vue").ComputedRef<{
|
|
647
|
-
startIndex: number;
|
|
648
|
-
}>;
|
|
649
646
|
treeConfig: import("vue").ComputedRef<null>;
|
|
650
647
|
hideAllWrap: (e: any) => void;
|
|
651
648
|
bindDocumentClick: () => void;
|
|
@@ -641,9 +641,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
641
641
|
userInfo: Record<string, any>;
|
|
642
642
|
sysImageSize: unknown[];
|
|
643
643
|
}>;
|
|
644
|
-
handleSeqConfig: import("vue").ComputedRef<{
|
|
645
|
-
startIndex: number;
|
|
646
|
-
}>;
|
|
647
644
|
treeConfig: import("vue").ComputedRef<null>;
|
|
648
645
|
hideAllWrap: (e: any) => void;
|
|
649
646
|
bindDocumentClick: () => void;
|
|
@@ -136,21 +136,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
sysImageSize: props.sysImageSize || {}
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
const handleSeqConfig = computed(() => {
|
|
140
|
-
if (props.isNestTable)
|
|
141
|
-
return {
|
|
142
|
-
startIndex: 0
|
|
143
|
-
};
|
|
144
|
-
if (props.isBatchEditing) {
|
|
145
|
-
return {
|
|
146
|
-
startIndex: 0
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
let startIndex = (props.pageVO.pageIndex - 1) * props.pageVO.pageSize;
|
|
150
|
-
return {
|
|
151
|
-
startIndex: startIndex < 0 ? 0 : startIndex
|
|
152
|
-
};
|
|
153
|
-
});
|
|
154
139
|
const treeConfig = computed(() => {
|
|
155
140
|
let result = null;
|
|
156
141
|
let {
|
|
@@ -2149,8 +2134,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2149
2134
|
}, {
|
|
2150
2135
|
immediate: true
|
|
2151
2136
|
});
|
|
2152
|
-
|
|
2153
|
-
|
|
2137
|
+
watch([() => props.data, () => {
|
|
2138
|
+
var _a;
|
|
2139
|
+
return (_a = props.data) == null ? void 0 : _a.length;
|
|
2140
|
+
}], async ([value]) => {
|
|
2141
|
+
await nextTick();
|
|
2142
|
+
loadData(value);
|
|
2143
|
+
}, {
|
|
2144
|
+
immediate: true
|
|
2154
2145
|
});
|
|
2155
2146
|
watch(() => currentCheckedKeys, (val) => {
|
|
2156
2147
|
setVisibleCheckAllWrap(state, props, currentCheckedKeys.value);
|
|
@@ -2314,10 +2305,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2314
2305
|
"mouse-config": {
|
|
2315
2306
|
selected: ((_a = _ctx.columnConfig.keyboardConfig) == null ? void 0 : _a.isEdit) ? true : false
|
|
2316
2307
|
},
|
|
2317
|
-
"seq-config": unref(handleSeqConfig),
|
|
2318
2308
|
"tree-config": unref(treeConfig),
|
|
2319
2309
|
"row-class-name": getRowClassName,
|
|
2320
|
-
"cell-class-name": _ctx.columnConfig.cellClassName || null,
|
|
2321
2310
|
"row-config": {
|
|
2322
2311
|
...state.rowConfig,
|
|
2323
2312
|
...unref(getAttr)("row-config")
|
|
@@ -2419,7 +2408,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2419
2408
|
}
|
|
2420
2409
|
})]),
|
|
2421
2410
|
_: 3
|
|
2422
|
-
}, 16, ["height", "mouse-config", "
|
|
2411
|
+
}, 16, ["height", "mouse-config", "tree-config", "row-config", "show-footer", "sort-config", "tooltip-config", "checkbox-config", "radio-config", "scroll-y", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2423
2412
|
class: "refresh",
|
|
2424
2413
|
onClick: hanldeClickRefresh
|
|
2425
2414
|
}, [createVNode(unref(NIcon), {
|
|
@@ -5,7 +5,7 @@ export declare const getMapVal: (row: any, item: any) => any;
|
|
|
5
5
|
export declare const getageShowType: (row: any, item: any) => any;
|
|
6
6
|
export declare const reScrollFilterWrap: () => void;
|
|
7
7
|
export declare const showFilter: (field: any, columnName: any, event: any, props: any, state: any) => false | undefined;
|
|
8
|
-
export declare const handleGroupColums: (columns: any, props: any) => any;
|
|
8
|
+
export declare const handleGroupColums: (columns: any, props: any) => any[];
|
|
9
9
|
export declare const handlerInitSearchItem: (arr: any) => void;
|
|
10
10
|
export declare const generateEditRender: (fieldItem: any) => {
|
|
11
11
|
name: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import img from '../../../shared/assets/img/xb_small.js';
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
3
|
import 'moment';
|
|
4
|
-
import
|
|
4
|
+
import { nextTick } from 'vue';
|
|
5
|
+
import { groupTraverser, createRowGroupList } from '../../iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js';
|
|
5
6
|
|
|
6
7
|
const isJSON = (str) => {
|
|
7
8
|
if (typeof str == "string") {
|
|
@@ -166,43 +167,16 @@ const showFilter = (field, columnName, event, props, state) => {
|
|
|
166
167
|
field.indeterminate = !!len && len !== field.setting.showSetting.length;
|
|
167
168
|
field.searchFilterText = "";
|
|
168
169
|
};
|
|
169
|
-
const handleRowColumns = (rowColumns, columns, key) => {
|
|
170
|
-
rowColumns.map((item) => {
|
|
171
|
-
var _a;
|
|
172
|
-
const children = [];
|
|
173
|
-
let spliceIndex = -1;
|
|
174
|
-
const indexArr = [];
|
|
175
|
-
((_a = item.list) == null ? void 0 : _a.length) && item.list.forEach((v) => {
|
|
176
|
-
const matchItem = columns == null ? void 0 : columns.find((column) => column[key] === v);
|
|
177
|
-
if (matchItem) {
|
|
178
|
-
const matchIndex = columns.findIndex((column) => column[key] === v);
|
|
179
|
-
indexArr.push(matchIndex);
|
|
180
|
-
delete matchItem.fixed;
|
|
181
|
-
children.push(matchItem);
|
|
182
|
-
columns.splice(matchIndex, 1);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
const obj = {
|
|
186
|
-
title: item.title,
|
|
187
|
-
align: "center",
|
|
188
|
-
children
|
|
189
|
-
};
|
|
190
|
-
spliceIndex = Math.min(...indexArr);
|
|
191
|
-
spliceIndex > -1 && columns.splice(spliceIndex, 0, obj);
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
170
|
const handleGroupColums = (columns, props) => {
|
|
195
171
|
const { rowGroupSetting } = props;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
handleRowColumns(secondRowGroup, columns, "title");
|
|
205
|
-
return columns;
|
|
172
|
+
return groupTraverser(createRowGroupList(rowGroupSetting, columns, (field) => field.columnName || field.type), (fieldName, isBlock) => {
|
|
173
|
+
if (isBlock)
|
|
174
|
+
return { field: fieldName, title: fieldName, align: "center" };
|
|
175
|
+
return fieldSearcher(fieldName, columns);
|
|
176
|
+
});
|
|
177
|
+
function fieldSearcher(fieldName, fieldList) {
|
|
178
|
+
return fieldList.find((field) => (field.columnName || field.type) === fieldName);
|
|
179
|
+
}
|
|
206
180
|
};
|
|
207
181
|
const handlerInitSearchItem = (arr) => {
|
|
208
182
|
if (!Array.isArray(arr))
|
|
@@ -87,6 +87,11 @@ var PopupMenu = defineComponent({
|
|
|
87
87
|
watch(() => props.show, (value) => {
|
|
88
88
|
if (value) {
|
|
89
89
|
setNoShow = true;
|
|
90
|
+
props.list.forEach((item) => {
|
|
91
|
+
if (typeof item === "object" && Reflect.has(item, "value") && typeof item.value !== "boolean") {
|
|
92
|
+
item.value = void 0;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
90
95
|
}
|
|
91
96
|
});
|
|
92
97
|
return () => {
|
|
@@ -98,12 +103,12 @@ var PopupMenu = defineComponent({
|
|
|
98
103
|
"class": "c-fabric-chart-popup-menu",
|
|
99
104
|
"style": pointStyle.value
|
|
100
105
|
}, [props.list.map((item) => {
|
|
101
|
-
return createVNode("li", {
|
|
106
|
+
return props.show ? createVNode("li", {
|
|
102
107
|
"class": {
|
|
103
108
|
"no-click": setNoClick(item)
|
|
104
109
|
},
|
|
105
110
|
"onClick": (event) => clickItem(event, item)
|
|
106
|
-
}, [getItemContent(item)]);
|
|
111
|
+
}, [getItemContent(item)]) : null;
|
|
107
112
|
})]), [[vShow, props.show]])]
|
|
108
113
|
});
|
|
109
114
|
};
|
|
@@ -20,6 +20,12 @@ function getPointArr(arr) {
|
|
|
20
20
|
return pre;
|
|
21
21
|
}, []);
|
|
22
22
|
}
|
|
23
|
+
function deleteProperty(data, list) {
|
|
24
|
+
list.map((v) => v.type).forEach((key) => {
|
|
25
|
+
if (Reflect.has(data, key))
|
|
26
|
+
Reflect.deleteProperty(data, key);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
23
29
|
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem) {
|
|
24
30
|
useGrid(canvas, propItems);
|
|
25
31
|
const {
|
|
@@ -138,7 +144,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
138
144
|
if (event2.button === 3) {
|
|
139
145
|
const { x = 0, y = 0 } = event2.pointer || {};
|
|
140
146
|
if (x >= originX && x <= endX && y >= originY && y <= endY) {
|
|
141
|
-
pointTipProps.show = false;
|
|
142
147
|
pointMenuProps.point = { x, y };
|
|
143
148
|
pointMenuProps.show = true;
|
|
144
149
|
const { type } = ((_a = event2.target) == null ? void 0 : _a.origin) || {};
|
|
@@ -552,10 +557,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
552
557
|
...item.origin
|
|
553
558
|
});
|
|
554
559
|
} else {
|
|
555
|
-
const data = {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
};
|
|
560
|
+
const data = { ...target.origin.data };
|
|
561
|
+
deleteProperty(data, TEMPERATURE_MENU);
|
|
562
|
+
deleteProperty(data, PAIN_MENU);
|
|
559
563
|
data[`${item.type}`] = item.value;
|
|
560
564
|
if (target.origin.type === "temperature") {
|
|
561
565
|
data["key"] = target.origin.key;
|
|
@@ -27,14 +27,10 @@ function useCanvasEvent(canvas, propItems, emits) {
|
|
|
27
27
|
...selectionStyle
|
|
28
28
|
});
|
|
29
29
|
canvas.value.add(rect);
|
|
30
|
-
rect.on("mousedown", () => {
|
|
31
|
-
emits("select", key);
|
|
32
|
-
});
|
|
33
30
|
return rect;
|
|
34
31
|
}
|
|
32
|
+
let selections = [];
|
|
35
33
|
function initSelection() {
|
|
36
|
-
if (typeof (selectionStyle == null ? void 0 : selectionStyle.evented) === "boolean" && !(selectionStyle == null ? void 0 : selectionStyle.evented))
|
|
37
|
-
return;
|
|
38
34
|
const selections2 = [];
|
|
39
35
|
selections2.push(drawRect({
|
|
40
36
|
left: iconsWidth,
|
|
@@ -73,17 +69,53 @@ function useCanvasEvent(canvas, propItems, emits) {
|
|
|
73
69
|
width: endX - originX,
|
|
74
70
|
height: endY - originY - 3
|
|
75
71
|
}, "grid"));
|
|
72
|
+
selections2.forEach((obj) => {
|
|
73
|
+
if (obj.key.endsWith("All")) {
|
|
74
|
+
obj.sendToBack();
|
|
75
|
+
obj.on("mouseup", (event) => {
|
|
76
|
+
const { button, pointer } = event;
|
|
77
|
+
if (button == 1) {
|
|
78
|
+
const _key = obj.key.replace("All", "");
|
|
79
|
+
const key = pointer.x <= originX ? _key + "Title" : _key;
|
|
80
|
+
select(key);
|
|
81
|
+
emits("select", key);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
} else {
|
|
85
|
+
obj.on("mousedown", () => {
|
|
86
|
+
emits("select", obj.key);
|
|
87
|
+
});
|
|
88
|
+
setTimeout(() => {
|
|
89
|
+
obj.bringToFront();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
});
|
|
76
93
|
canvas.value.renderAll();
|
|
77
94
|
return selections2;
|
|
78
95
|
}
|
|
79
|
-
|
|
96
|
+
function addSelectionListener() {
|
|
97
|
+
canvas.value.on("selection:cleared", selectionCB);
|
|
98
|
+
canvas.value.on("selection:updated", selectionCB);
|
|
99
|
+
function selectionCB(event) {
|
|
100
|
+
const { deselected = [] } = event;
|
|
101
|
+
deselected.forEach((obj) => {
|
|
102
|
+
obj.key.endsWith("All") && obj.sendToBack();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
80
106
|
function select(key) {
|
|
81
|
-
canvas.value.discardActiveObject();
|
|
82
|
-
canvas.value.renderAll();
|
|
107
|
+
canvas.value.discardActiveObject().renderAll();
|
|
83
108
|
const obj = selections == null ? void 0 : selections.find((obj2) => obj2.key === key);
|
|
84
109
|
obj == null ? void 0 : obj.bringToFront();
|
|
85
110
|
obj && canvas.value.setActiveObject(obj);
|
|
86
111
|
}
|
|
112
|
+
function init() {
|
|
113
|
+
if (typeof (selectionStyle == null ? void 0 : selectionStyle.evented) === "boolean" && !(selectionStyle == null ? void 0 : selectionStyle.evented))
|
|
114
|
+
return;
|
|
115
|
+
selections = initSelection();
|
|
116
|
+
addSelectionListener();
|
|
117
|
+
}
|
|
118
|
+
init();
|
|
87
119
|
return { select };
|
|
88
120
|
}
|
|
89
121
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
import { NSpin, NCheckbox, NTooltip, NSelect, NInput, NInputNumber, NButton } from 'naive-ui';
|
|
2
|
+
import { NSpin, NCheckbox, NTooltip, NSelect, NInput, NInputNumber, NPopconfirm, NButton } from 'naive-ui';
|
|
3
3
|
import Draggable from 'vuedraggable';
|
|
4
4
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
5
5
|
|
|
@@ -54,8 +54,9 @@ const _hoisted_28 = {
|
|
|
54
54
|
};
|
|
55
55
|
const _hoisted_29 = { class: "btn-operate" };
|
|
56
56
|
const _hoisted_30 = /* @__PURE__ */ createTextVNode("\u6062\u590D\u9ED8\u8BA4\u8BBE\u7F6E");
|
|
57
|
-
const _hoisted_31 = /* @__PURE__ */ createTextVNode("\
|
|
58
|
-
const _hoisted_32 = /* @__PURE__ */ createTextVNode("\
|
|
57
|
+
const _hoisted_31 = /* @__PURE__ */ createTextVNode(" \u786E\u8BA4\u8981\u6062\u590D\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F ");
|
|
58
|
+
const _hoisted_32 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
59
|
+
const _hoisted_33 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
59
60
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
61
|
__name: "FieldSet",
|
|
61
62
|
props: {
|
|
@@ -403,12 +404,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
403
404
|
props.footerFlag ? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
404
405
|
createElementVNode("div", _hoisted_29, [
|
|
405
406
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
406
|
-
createVNode(unref(
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
407
|
+
createVNode(unref(NPopconfirm), { onPositiveClick: reset }, {
|
|
408
|
+
trigger: withCtx(() => [
|
|
409
|
+
createVNode(unref(NButton), { style: { "margin-right": "8px" } }, {
|
|
410
|
+
default: withCtx(() => [
|
|
411
|
+
_hoisted_30
|
|
412
|
+
]),
|
|
413
|
+
_: 1
|
|
414
|
+
})
|
|
415
|
+
]),
|
|
410
416
|
default: withCtx(() => [
|
|
411
|
-
|
|
417
|
+
_hoisted_31
|
|
412
418
|
]),
|
|
413
419
|
_: 1
|
|
414
420
|
}),
|
|
@@ -417,7 +423,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
417
423
|
onClick: onCancle
|
|
418
424
|
}, {
|
|
419
425
|
default: withCtx(() => [
|
|
420
|
-
|
|
426
|
+
_hoisted_32
|
|
421
427
|
]),
|
|
422
428
|
_: 1
|
|
423
429
|
}),
|
|
@@ -426,7 +432,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
426
432
|
onClick: handleFieldSave
|
|
427
433
|
}, {
|
|
428
434
|
default: withCtx(() => [
|
|
429
|
-
|
|
435
|
+
_hoisted_33
|
|
430
436
|
]),
|
|
431
437
|
_: 1
|
|
432
438
|
})
|
|
@@ -940,6 +940,12 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
940
940
|
search_key?: string[] | undefined;
|
|
941
941
|
type?: string | undefined;
|
|
942
942
|
value_key?: string | undefined;
|
|
943
|
+
level_key?: string | undefined;
|
|
944
|
+
link_key?: string | undefined;
|
|
945
|
+
link_key_split?: string | undefined;
|
|
946
|
+
show_key?: string[] | undefined;
|
|
947
|
+
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
948
|
+
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
943
949
|
} | undefined;
|
|
944
950
|
open?: {
|
|
945
951
|
value?: any;
|
|
@@ -942,6 +942,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
942
942
|
search_key?: string[] | undefined;
|
|
943
943
|
type?: string | undefined;
|
|
944
944
|
value_key?: string | undefined;
|
|
945
|
+
level_key?: string | undefined;
|
|
946
|
+
link_key?: string | undefined;
|
|
947
|
+
link_key_split?: string | undefined;
|
|
948
|
+
show_key?: string[] | undefined;
|
|
949
|
+
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
950
|
+
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
945
951
|
} | undefined;
|
|
946
952
|
open?: {
|
|
947
953
|
value?: any;
|
|
@@ -69,6 +69,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
69
69
|
search_key?: string[] | undefined;
|
|
70
70
|
type?: string | undefined;
|
|
71
71
|
value_key?: string | undefined;
|
|
72
|
+
level_key?: string | undefined;
|
|
73
|
+
link_key?: string | undefined;
|
|
74
|
+
link_key_split?: string | undefined;
|
|
75
|
+
show_key?: string[] | undefined;
|
|
76
|
+
conObj?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
77
|
+
conObjFirstLevel?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
72
78
|
} | undefined;
|
|
73
79
|
open?: {
|
|
74
80
|
value?: any;
|
|
@@ -26,7 +26,7 @@ import './src/components/renderer/inputNumber.js';
|
|
|
26
26
|
import './src/components/renderer/linebar.js';
|
|
27
27
|
import './src/components/renderer/inputGroup2.js';
|
|
28
28
|
import './src/components/renderer/date.js';
|
|
29
|
-
import './src/components/renderer/
|
|
29
|
+
import './src/components/renderer/levelSearchCascade.js';
|
|
30
30
|
import './src/components/renderer/jsonCombination/index.js';
|
|
31
31
|
import './src/components/renderer/combination.js';
|
|
32
32
|
import './src/components/renderer/checkbox.js';
|
|
@@ -37,6 +37,7 @@ import './src/components/renderer/slider.js';
|
|
|
37
37
|
import './src/components/renderer/complex.js';
|
|
38
38
|
import './src/components/renderer/simpleComponent.js';
|
|
39
39
|
import './src/components/renderer/search.js';
|
|
40
|
+
import './src/components/renderer/searchCascade.js';
|
|
40
41
|
|
|
41
42
|
const FormRender = script;
|
|
42
43
|
FormRender.install = function(app) {
|
|
@@ -6,7 +6,7 @@ export * from './inputNumber';
|
|
|
6
6
|
export * from './linebar';
|
|
7
7
|
export * from './inputGroup';
|
|
8
8
|
export * from './date';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './levelSearchCascade';
|
|
10
10
|
export * from './jsonCombination';
|
|
11
11
|
export * from './combination';
|
|
12
12
|
export * from './checkbox';
|
|
@@ -17,3 +17,4 @@ export * from './slider';
|
|
|
17
17
|
export * from './complex';
|
|
18
18
|
export * from './simpleComponent';
|
|
19
19
|
export * from './search';
|
|
20
|
+
export * from './searchCascade';
|
|
@@ -6,7 +6,7 @@ export { INPUT_NUMBER } from './inputNumber.js';
|
|
|
6
6
|
export { LINEBAR } from './linebar.js';
|
|
7
7
|
export { INPUT_GROUP } from './inputGroup2.js';
|
|
8
8
|
export { DATE } from './date.js';
|
|
9
|
-
export {
|
|
9
|
+
export { LEVEL_SEARCH_CASCADE } from './levelSearchCascade.js';
|
|
10
10
|
export { JSON_COMBINATION } from './jsonCombination/index.js';
|
|
11
11
|
export { COMBINATION } from './combination.js';
|
|
12
12
|
export { CHECKBOX } from './checkbox.js';
|
|
@@ -17,3 +17,4 @@ export { SLIDER } from './slider.js';
|
|
|
17
17
|
export { COMPLEX } from './complex.js';
|
|
18
18
|
export { BUTTON, LINE_BREAKS, TEXT } from './simpleComponent.js';
|
|
19
19
|
export { SEARCH } from './search.js';
|
|
20
|
+
export { SEARCH_CASCADE } from './searchCascade.js';
|
|
@@ -6,7 +6,7 @@ export { INPUT_NUMBER } from './inputNumber.js';
|
|
|
6
6
|
export { LINEBAR } from './linebar.js';
|
|
7
7
|
export { INPUT_GROUP } from './inputGroup2.js';
|
|
8
8
|
export { DATE } from './date.js';
|
|
9
|
-
export {
|
|
9
|
+
export { LEVEL_SEARCH_CASCADE } from './levelSearchCascade.js';
|
|
10
10
|
export { JSON_COMBINATION } from './jsonCombination/index.js';
|
|
11
11
|
export { COMBINATION } from './combination.js';
|
|
12
12
|
export { CHECKBOX } from './checkbox.js';
|
|
@@ -17,3 +17,4 @@ export { SLIDER } from './slider.js';
|
|
|
17
17
|
export { COMPLEX } from './complex.js';
|
|
18
18
|
export { BUTTON, LINE_BREAKS, TEXT } from './simpleComponent.js';
|
|
19
19
|
export { SEARCH } from './search.js';
|
|
20
|
+
export { SEARCH_CASCADE } from './searchCascade.js';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AnyObject, Func } from '../../../../../../es/shared/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare type ValueType = string | AnyObject[];
|
|
4
|
+
export declare const LEVEL_SEARCH_CASCADE: import("vue").DefineComponent<{
|
|
5
|
+
options: {
|
|
6
|
+
type: PropType<AnyObject[]>;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
onFocus: {
|
|
10
|
+
type: PropType<Func<any[], any>>;
|
|
11
|
+
};
|
|
12
|
+
autograph: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
lazyRequest: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
wordbook: {
|
|
21
|
+
type: PropType<Partial<{
|
|
22
|
+
level_num: number;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
render_key: string[];
|
|
26
|
+
search_key: string[];
|
|
27
|
+
type: string;
|
|
28
|
+
value_key: string;
|
|
29
|
+
level_key: string;
|
|
30
|
+
link_key: string;
|
|
31
|
+
link_key_split: string;
|
|
32
|
+
show_key: string[];
|
|
33
|
+
conObj: AnyObject[];
|
|
34
|
+
conObjFirstLevel: AnyObject[];
|
|
35
|
+
}>>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
onChange: {};
|
|
39
|
+
value: {
|
|
40
|
+
type: PropType<ValueType>;
|
|
41
|
+
};
|
|
42
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
options: {
|
|
44
|
+
type: PropType<AnyObject[]>;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
onFocus: {
|
|
48
|
+
type: PropType<Func<any[], any>>;
|
|
49
|
+
};
|
|
50
|
+
autograph: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
lazyRequest: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
wordbook: {
|
|
59
|
+
type: PropType<Partial<{
|
|
60
|
+
level_num: number;
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
render_key: string[];
|
|
64
|
+
search_key: string[];
|
|
65
|
+
type: string;
|
|
66
|
+
value_key: string;
|
|
67
|
+
level_key: string;
|
|
68
|
+
link_key: string;
|
|
69
|
+
link_key_split: string;
|
|
70
|
+
show_key: string[];
|
|
71
|
+
conObj: AnyObject[];
|
|
72
|
+
conObjFirstLevel: AnyObject[];
|
|
73
|
+
}>>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
onChange: {};
|
|
77
|
+
value: {
|
|
78
|
+
type: PropType<ValueType>;
|
|
79
|
+
};
|
|
80
|
+
}>> & {
|
|
81
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
options: AnyObject[];
|
|
84
|
+
lazyRequest: boolean;
|
|
85
|
+
}>;
|
|
86
|
+
export {};
|