cnhis-design-vue 3.1.16-beta.0 → 3.1.16-beta.3
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/packages/big-table/index.d.ts +651 -1
- package/es/packages/big-table/src/BigTable.vue.d.ts +672 -28
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +37 -14
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -0
- package/es/packages/big-table/src/bigTableProps.js +2 -1
- package/es/packages/big-table/src/bigTableState.d.ts +2 -0
- package/es/packages/big-table/src/bigTableState.js +3 -1
- package/es/packages/big-table/src/components/edit-form/edit-time.js +1 -1
- package/es/packages/big-table/src/hooks/index.d.ts +9 -0
- package/es/packages/big-table/src/hooks/index.js +9 -0
- package/es/packages/big-table/src/hooks/useAnchor.d.ts +7 -0
- package/es/packages/big-table/src/hooks/useAnchor.js +41 -0
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +24 -8
- package/es/packages/big-table/src/hooks/useEdit.js +1 -1
- package/es/packages/big-table/src/hooks/useEvent.d.ts +1 -1
- package/es/packages/big-table/src/hooks/useEvent.js +3 -2
- package/es/packages/button-print/index.d.ts +2 -2
- package/es/packages/button-print/src/ButtonPrint.vue.d.ts +2 -2
- package/es/packages/button-print/src/components/IdentityVerification.vue.d.ts +2 -2
- package/es/packages/drag-layout/index.d.ts +2 -2
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +2 -2
- package/es/packages/field-set/index.d.ts +1 -1
- package/es/packages/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/packages/form-config/index.d.ts +14 -32
- package/es/packages/form-config/src/FormConfig.vue.d.ts +14 -32
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +6 -15
- package/es/packages/form-config/src/components/FormConfigEdit.js +1 -1
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +8 -17
- package/es/packages/form-config/src/constants/index.d.ts +47 -13
- package/es/packages/form-config/src/constants/index.js +52 -14
- package/es/packages/form-config/src/hooks/index.d.ts +1 -0
- package/es/packages/form-config/src/hooks/index.js +1 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.js +6 -43
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +1 -1
- package/es/packages/form-render/index.d.ts +6 -15
- package/es/packages/form-render/src/FormRender.js +3 -4
- package/es/packages/form-render/src/FormRender.vue.d.ts +7 -16
- package/es/packages/form-render/src/components/renderer/cascader.js +1 -1
- package/es/packages/form-render/src/components/renderer/checkbox.js +1 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +2 -1
- package/es/packages/form-render/src/components/renderer/complex.js +1 -1
- package/es/packages/form-render/src/components/renderer/input.js +2 -1
- package/es/packages/form-render/src/components/renderer/inputNumber.js +2 -1
- package/es/packages/form-render/src/components/renderer/radio.js +1 -1
- package/es/packages/form-render/src/components/renderer/select.js +1 -1
- package/es/packages/form-render/src/components/renderer/slider.js +1 -1
- package/es/packages/form-render/src/components/renderer/switch.js +1 -1
- package/es/packages/form-render/src/components/renderer/textarea.js +1 -1
- package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +12 -9
- package/es/packages/form-render/src/hooks/useBusinessBinding.js +58 -58
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +9 -2
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +2 -1
- package/es/packages/form-render/src/hooks/useFormContext.js +2 -2
- package/es/packages/form-render/src/hooks/useTypeNormalize.js +1 -1
- package/es/packages/form-render/src/types/index.d.ts +0 -8
- package/es/packages/form-render/src/utils/business.d.ts +12 -0
- package/es/packages/form-render/src/utils/business.js +65 -0
- package/es/packages/form-render/src/utils/dom.d.ts +6 -0
- package/es/packages/form-render/src/utils/dom.js +14 -0
- package/es/packages/form-render/src/utils/index.d.ts +5 -25
- package/es/packages/form-render/src/utils/index.js +5 -137
- package/es/packages/form-render/src/utils/schema.d.ts +15 -0
- package/es/packages/form-render/src/utils/schema.js +83 -0
- package/es/packages/scale-view/src/hooks/scaleview-init.js +35 -35
- package/es/packages/scale-view/src/hooks/use-component.d.ts +7 -7
- package/es/packages/select-label/index.d.ts +10 -10
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +3 -3
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +7 -7
- package/es/packages/shortcut-setter/index.d.ts +3445 -1
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +5 -2
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +3449 -1
- package/es/packages/time-line/index.d.ts +2 -2
- package/es/packages/time-line/src/TimeLine.vue.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createCommentVNode,
|
|
1
|
+
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, unref, withCtx, renderList, createElementVNode, normalizeClass, normalizeStyle, mergeProps, renderSlot, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
|
|
2
2
|
import { isArray, isFunction } from 'lodash-es';
|
|
3
|
-
import { useAnnotation } from '../../../packages/big-table/src/hooks/useAnnotation';
|
|
4
|
-
import { useSeparateRow } from '../../../packages/big-table/src/hooks/useSeparateRow';
|
|
5
3
|
import bigTableState from './bigTableState.js';
|
|
6
4
|
import bigTableProps from './bigTableProps.js';
|
|
7
5
|
import bigTableEmits from './bigTableEmits.js';
|
|
8
|
-
import { useFormat } from './hooks/useFormat.js';
|
|
9
|
-
import { useTableParse } from './hooks/useTableParse.js';
|
|
10
|
-
import { useBatchEditing } from './hooks/useBatchEditing.js';
|
|
11
|
-
import { useNestTable } from './hooks/useNestTable.js';
|
|
12
|
-
import { useEdit, comps } from './hooks/useEdit.js';
|
|
13
|
-
import { useEvent } from './hooks/useEvent.js';
|
|
14
6
|
import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline } from '@vicons/ionicons5';
|
|
15
7
|
import NoData from './components/NoData.js';
|
|
16
8
|
import TextOverTooltip from '../../../src/components/TextOverTooltip';
|
|
17
9
|
import SvgIcon from '../../../src/components/SvgIcon';
|
|
18
|
-
import { useMessage, NIcon, NTooltip, NCheckbox, NCheckboxGroup, NGrid, NGi, NSpace, NButton, NPopconfirm, NProgress, NDropdown, NSwitch, NPopover } from 'naive-ui';
|
|
10
|
+
import { useMessage, NIcon, NTooltip, NCheckbox, NCheckboxGroup, NGrid, NGi, NSpace, NButton, NPopconfirm, NProgress, NDropdown, NSwitch, NPopover, NTabs, NTabPane } from 'naive-ui';
|
|
19
11
|
import CGrid from '../../../packages/grid';
|
|
20
12
|
import vexutils from '../../../src/utils/vexutils';
|
|
21
13
|
import { handleTableHeight, setTableConfig, handleGroupColums, treeToList, checkMethod, setTreeGroupTitle, handleName, generateEditRender, handlerInitSearchItem, getEvaluate, getMapVal, getCandidateComponents, getageShowType, isLink, showFilter, reScrollFilterWrap, hideFilterWrap, mergeConObjFn, setDefaultFormData, handleImgArr, handleImgSrc, modalDetailImage, handleQrCodeContent, getInlineEditBtn, isCopy, setVisibleCheckAllWrap, handleTableImageSize, visibleMethod, getRowStyle, getFooterGroup, flattenRow, intersectRow, removeCheckedDisabledRows } from './utils.js';
|
|
@@ -23,6 +15,15 @@ import InputButtonScript from './components/input-button.js';
|
|
|
23
15
|
import Separate from './components/separate.js';
|
|
24
16
|
import xb_big from '../../../src/assets/img/xb_big';
|
|
25
17
|
import qr from '../../../src/assets/img/qr';
|
|
18
|
+
import { useBatchEditing } from './hooks/useBatchEditing.js';
|
|
19
|
+
import { useNestTable } from './hooks/useNestTable.js';
|
|
20
|
+
import { useAnchor } from './hooks/useAnchor.js';
|
|
21
|
+
import { useEvent } from './hooks/useEvent.js';
|
|
22
|
+
import { useSeparateRow } from './hooks/useSeparateRow.js';
|
|
23
|
+
import { useFormat } from './hooks/useFormat.js';
|
|
24
|
+
import { useTableParse } from './hooks/useTableParse.js';
|
|
25
|
+
import { useEdit, comps } from './hooks/useEdit.js';
|
|
26
|
+
import { useAnnotation } from './hooks/useAnnotation.js';
|
|
26
27
|
|
|
27
28
|
const _hoisted_1 = {
|
|
28
29
|
key: 0,
|
|
@@ -99,10 +100,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
100
|
loadExpandMethod,
|
|
100
101
|
nestHandleClickRow
|
|
101
102
|
} = useNestTable(props, state, emit);
|
|
103
|
+
const {
|
|
104
|
+
initAnchor,
|
|
105
|
+
updateAnchor,
|
|
106
|
+
anchorEvent
|
|
107
|
+
} = useAnchor(props, state, emit, xGrid);
|
|
102
108
|
const {
|
|
103
109
|
keyDown,
|
|
104
110
|
scroll
|
|
105
|
-
} = useEvent(props, state, emit, xGrid);
|
|
111
|
+
} = useEvent(props, state, emit, xGrid, anchorEvent);
|
|
106
112
|
const attr = useAttrs();
|
|
107
113
|
const currentCheckedKeys = computed(() => {
|
|
108
114
|
var _a;
|
|
@@ -240,6 +246,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
246
|
let columns = formatColumns(config);
|
|
241
247
|
columns = handleGroupColums(columns, props);
|
|
242
248
|
xGrid.value && xGrid.value.reloadColumn(columns);
|
|
249
|
+
initAnchor();
|
|
243
250
|
setGroupTreeExpand();
|
|
244
251
|
resetTableInlineEditStatus();
|
|
245
252
|
};
|
|
@@ -551,7 +558,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
551
558
|
});
|
|
552
559
|
}
|
|
553
560
|
};
|
|
554
|
-
if (formType === "date") {
|
|
561
|
+
if (formType === "date" || formType === "time") {
|
|
555
562
|
propsData.formattedValue = row[col.columnName];
|
|
556
563
|
} else if (formatMap) {
|
|
557
564
|
propsData.value = row[formatMap.value];
|
|
@@ -2278,7 +2285,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2278
2285
|
'expand-padding': !props.isNestTable
|
|
2279
2286
|
}"
|
|
2280
2287
|
:style="{ height: state.tableHeight }"
|
|
2281
|
-
> `),
|
|
2288
|
+
> `), state.anchorList.length ? (openBlock(), createBlock(unref(NTabs), {
|
|
2289
|
+
key: 0,
|
|
2290
|
+
type: "line",
|
|
2291
|
+
animated: "",
|
|
2292
|
+
"pane-style": "padding: 0",
|
|
2293
|
+
value: state.anchorValue,
|
|
2294
|
+
"onUpdate:value": [_cache[0] || (_cache[0] = ($event) => state.anchorValue = $event), unref(updateAnchor)]
|
|
2295
|
+
}, {
|
|
2296
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(props.anchor, (item) => {
|
|
2297
|
+
return openBlock(), createBlock(unref(NTabPane), {
|
|
2298
|
+
name: item.field,
|
|
2299
|
+
tab: item.title,
|
|
2300
|
+
key: item.field
|
|
2301
|
+
}, null, 8, ["name", "tab"]);
|
|
2302
|
+
}), 128))]),
|
|
2303
|
+
_: 1
|
|
2304
|
+
}, 8, ["value", "onUpdate:value"])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
2282
2305
|
class: normalizeClass(["big-table custom-big-table", {
|
|
2283
2306
|
mt: state.hasRefresh,
|
|
2284
2307
|
"expand-padding": !props.isNestTable
|
|
@@ -2425,7 +2448,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2425
2448
|
}, [createVNode(unref(NIcon), {
|
|
2426
2449
|
size: "14",
|
|
2427
2450
|
component: unref(SyncOutline)
|
|
2428
|
-
}, null, 8, ["component"]), createElementVNode("p", _hoisted_6, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6)],
|
|
2451
|
+
}, null, 8, ["component"]), createElementVNode("p", _hoisted_6, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6)], 64);
|
|
2429
2452
|
};
|
|
2430
2453
|
}
|
|
2431
2454
|
});
|
|
@@ -199,5 +199,9 @@ declare const bigTableProps: {
|
|
|
199
199
|
};
|
|
200
200
|
resetInlineBatchEdit: FunctionConstructor;
|
|
201
201
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
202
|
+
anchor: {
|
|
203
|
+
type: ArrayConstructor;
|
|
204
|
+
default: () => never[];
|
|
205
|
+
};
|
|
202
206
|
};
|
|
203
207
|
export default bigTableProps;
|
|
@@ -112,7 +112,8 @@ const bigTableProps = {
|
|
|
112
112
|
batchError: Boolean,
|
|
113
113
|
batchFormData: { type: Object, default: () => ({}) },
|
|
114
114
|
resetInlineBatchEdit: Function,
|
|
115
|
-
resetBatchEditRowStatus: Function
|
|
115
|
+
resetBatchEditRowStatus: Function,
|
|
116
|
+
anchor: { type: Array, default: () => [] }
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
export { bigTableProps as default };
|
|
@@ -54,7 +54,9 @@ const bigTableState = {
|
|
|
54
54
|
return !row.$__SEPARATE;
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
rowConfig: { height: 32, isHover: true, isCurrent: true }
|
|
57
|
+
rowConfig: { height: 32, isHover: true, isCurrent: true },
|
|
58
|
+
anchorValue: "",
|
|
59
|
+
anchorList: []
|
|
58
60
|
};
|
|
59
61
|
|
|
60
62
|
export { bigTableState as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './useAnchor';
|
|
2
|
+
export * from './useEdit';
|
|
3
|
+
export * from './useFormat';
|
|
4
|
+
export * from './useTableParse';
|
|
5
|
+
export * from './useBatchEditing';
|
|
6
|
+
export * from './useNestTable';
|
|
7
|
+
export * from './useEvent';
|
|
8
|
+
export * from './useAnnotation';
|
|
9
|
+
export * from './useSeparateRow';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { useAnchor } from './useAnchor.js';
|
|
2
|
+
export { comps, useEdit } from './useEdit.js';
|
|
3
|
+
export { useFormat } from './useFormat.js';
|
|
4
|
+
export { useTableParse } from './useTableParse.js';
|
|
5
|
+
export { useBatchEditing } from './useBatchEditing.js';
|
|
6
|
+
export { useNestTable } from './useNestTable.js';
|
|
7
|
+
export { useEvent } from './useEvent.js';
|
|
8
|
+
export { useAnnotation } from './useAnnotation.js';
|
|
9
|
+
export { SeparateHandle, useSeparateMap, useSeparateRow } from './useSeparateRow.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useThrottleFn } from '@vueuse/core';
|
|
2
|
+
|
|
3
|
+
const useAnchor = (props, state, emit, xGrid) => {
|
|
4
|
+
function initAnchor() {
|
|
5
|
+
var _a;
|
|
6
|
+
if ((_a = props.anchor) == null ? void 0 : _a.length) {
|
|
7
|
+
const columns = xGrid.value.getColumns();
|
|
8
|
+
let left = 0;
|
|
9
|
+
columns.forEach((column) => {
|
|
10
|
+
const { field, minWidth, width } = column;
|
|
11
|
+
const colWidth = +(minWidth || width);
|
|
12
|
+
left += colWidth;
|
|
13
|
+
const anchorObj = props.anchor.find((v) => v.field === field);
|
|
14
|
+
anchorObj && state.anchorList.push({
|
|
15
|
+
...anchorObj,
|
|
16
|
+
left: left - colWidth
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
state.anchorValue = state.anchorList[0].field;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function updateAnchor(field) {
|
|
23
|
+
xGrid.value.scrollToColumn(field);
|
|
24
|
+
}
|
|
25
|
+
function setAnchorValue({ scrollLeft }) {
|
|
26
|
+
if (state.anchorList.length) {
|
|
27
|
+
const anchorObj = state.anchorList.find((v) => scrollLeft < v.left);
|
|
28
|
+
if (anchorObj) {
|
|
29
|
+
state.anchorValue = anchorObj.field;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const anchorEvent = useThrottleFn(setAnchorValue, 800);
|
|
34
|
+
return {
|
|
35
|
+
initAnchor,
|
|
36
|
+
updateAnchor,
|
|
37
|
+
anchorEvent
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { useAnchor };
|
|
@@ -28,6 +28,7 @@ function useColumnConfigAdaptor() {
|
|
|
28
28
|
type,
|
|
29
29
|
"select"
|
|
30
30
|
]),
|
|
31
|
+
...["DATE"].map((type) => [type, "date"]),
|
|
31
32
|
...["INPUT"].map((type) => [type, "input"]),
|
|
32
33
|
...["DIGITAL"].map((type) => [type, "number"])
|
|
33
34
|
]);
|
|
@@ -40,13 +41,17 @@ function useColumnConfigAdaptor() {
|
|
|
40
41
|
const validateHandler = (value, result) => {
|
|
41
42
|
if (!isObject(value))
|
|
42
43
|
return;
|
|
43
|
-
|
|
44
|
-
maxlength:
|
|
45
|
-
minlength:
|
|
46
|
-
max:
|
|
47
|
-
min:
|
|
48
|
-
precision:
|
|
49
|
-
}
|
|
44
|
+
const keyMap = {
|
|
45
|
+
maxlength: "max_length",
|
|
46
|
+
minlength: "min_length",
|
|
47
|
+
max: "max_value",
|
|
48
|
+
min: "min_value",
|
|
49
|
+
precision: "decimal_length"
|
|
50
|
+
};
|
|
51
|
+
result.componentProps = Object.assign({}, result.comonentProps, Object.entries(keyMap).reduce((res, [k, v]) => {
|
|
52
|
+
res[k] = value[v];
|
|
53
|
+
return res;
|
|
54
|
+
}, {}));
|
|
50
55
|
};
|
|
51
56
|
const dateRangeValidate = (value, result) => {
|
|
52
57
|
if (!isObject(value))
|
|
@@ -71,14 +76,25 @@ function useColumnConfigAdaptor() {
|
|
|
71
76
|
const option = { label: value.describe, ...value };
|
|
72
77
|
result.options = isArray(result.options) ? [...result.options, option] : [option];
|
|
73
78
|
};
|
|
79
|
+
const htmlTypeHandler = (value, result, fieldItem) => {
|
|
80
|
+
var _a;
|
|
81
|
+
if (!isString(value))
|
|
82
|
+
return;
|
|
83
|
+
if (value === "DATE") {
|
|
84
|
+
result.formType = isString(fieldItem.date_format) && fieldItem.date_format.startsWith("HH:mm") ? "time" : "date";
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
result.formType = (_a = htmlTypeValueMap.get(value)) != null ? _a : value;
|
|
88
|
+
};
|
|
74
89
|
const settingMap = new Map([
|
|
75
90
|
["multi_select_value", { property: "multiple", valueMap: multipleValueMap }],
|
|
76
91
|
["is_null", isNullHandler],
|
|
77
92
|
["validate", validateHandler],
|
|
78
93
|
["dateValidate", dateRangeValidate],
|
|
94
|
+
["date_format", "valueFormat"],
|
|
79
95
|
...["open", "close"].map((key) => [key, switchOptionHandler]),
|
|
80
96
|
["is_edit", { property: "isEdit", valueMap: isEditValueMap }],
|
|
81
|
-
["html_type",
|
|
97
|
+
["html_type", htmlTypeHandler],
|
|
82
98
|
["option", { property: "options", fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }],
|
|
83
99
|
[
|
|
84
100
|
"alias",
|
|
@@ -100,7 +100,7 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
100
100
|
} else {
|
|
101
101
|
row[column.columnName] = value;
|
|
102
102
|
}
|
|
103
|
-
if ((column == null ? void 0 : column.formType) === "date" && !value) {
|
|
103
|
+
if (((column == null ? void 0 : column.formType) === "date" || (column == null ? void 0 : column.formType) === "time") && !value) {
|
|
104
104
|
row[column.columnName] = void 0;
|
|
105
105
|
}
|
|
106
106
|
emit("formChange", { value, row, column, index, oldValue });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import vexutils from '../../../../src/utils/vexutils';
|
|
2
2
|
import { hideFilterWrap } from '../utils.js';
|
|
3
3
|
|
|
4
|
-
const useEvent = (props, state, emit, xGrid) => {
|
|
4
|
+
const useEvent = (props, state, emit, xGrid, anchorEvent) => {
|
|
5
5
|
function keyDown({ $event }) {
|
|
6
6
|
var _a, _b;
|
|
7
7
|
let activeRow = null;
|
|
@@ -29,7 +29,7 @@ const useEvent = (props, state, emit, xGrid) => {
|
|
|
29
29
|
if ($event.key === "ArrowDown" && index < ((_b = props.data) == null ? void 0 : _b.length) - 1) {
|
|
30
30
|
activeIndex = index + 1;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
const row = xGridRef.getData(activeIndex);
|
|
33
33
|
xGridRef.setCurrentRow(row);
|
|
34
34
|
xGridRef.scrollToRow(row);
|
|
35
35
|
emitKeyBoard();
|
|
@@ -60,6 +60,7 @@ const useEvent = (props, state, emit, xGrid) => {
|
|
|
60
60
|
hideFilterWrap(state, props);
|
|
61
61
|
}
|
|
62
62
|
scrollEvent(params);
|
|
63
|
+
anchorEvent(params);
|
|
63
64
|
};
|
|
64
65
|
return {
|
|
65
66
|
keyDown,
|
|
@@ -4016,7 +4016,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4016
4016
|
type: BooleanConstructor;
|
|
4017
4017
|
default: boolean;
|
|
4018
4018
|
};
|
|
4019
|
-
preset: import("vue").PropType<"dialog" | "
|
|
4019
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
4020
4020
|
to: import("vue").PropType<string | HTMLElement>;
|
|
4021
4021
|
displayDirective: {
|
|
4022
4022
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -4978,7 +4978,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4978
4978
|
type: BooleanConstructor;
|
|
4979
4979
|
default: boolean;
|
|
4980
4980
|
};
|
|
4981
|
-
preset: import("vue").PropType<"dialog" | "
|
|
4981
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
4982
4982
|
to: import("vue").PropType<string | HTMLElement>;
|
|
4983
4983
|
displayDirective: {
|
|
4984
4984
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -4020,7 +4020,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4020
4020
|
type: BooleanConstructor;
|
|
4021
4021
|
default: boolean;
|
|
4022
4022
|
};
|
|
4023
|
-
preset: import("vue").PropType<"dialog" | "
|
|
4023
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
4024
4024
|
to: import("vue").PropType<string | HTMLElement>;
|
|
4025
4025
|
displayDirective: {
|
|
4026
4026
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -4982,7 +4982,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4982
4982
|
type: BooleanConstructor;
|
|
4983
4983
|
default: boolean;
|
|
4984
4984
|
};
|
|
4985
|
-
preset: import("vue").PropType<"dialog" | "
|
|
4985
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
4986
4986
|
to: import("vue").PropType<string | HTMLElement>;
|
|
4987
4987
|
displayDirective: {
|
|
4988
4988
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -1505,7 +1505,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1505
1505
|
type: BooleanConstructor;
|
|
1506
1506
|
default: boolean;
|
|
1507
1507
|
};
|
|
1508
|
-
preset: import("vue").PropType<"dialog" | "
|
|
1508
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
1509
1509
|
to: import("vue").PropType<string | HTMLElement>;
|
|
1510
1510
|
displayDirective: {
|
|
1511
1511
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -2467,7 +2467,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2467
2467
|
type: BooleanConstructor;
|
|
2468
2468
|
default: boolean;
|
|
2469
2469
|
};
|
|
2470
|
-
preset: import("vue").PropType<"dialog" | "
|
|
2470
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
2471
2471
|
to: import("vue").PropType<string | HTMLElement>;
|
|
2472
2472
|
displayDirective: {
|
|
2473
2473
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -1888,7 +1888,7 @@ declare const DragLayout: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1888
1888
|
type: BooleanConstructor;
|
|
1889
1889
|
default: boolean;
|
|
1890
1890
|
};
|
|
1891
|
-
preset: import("vue").PropType<"dialog" | "
|
|
1891
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
1892
1892
|
to: import("vue").PropType<string | HTMLElement>;
|
|
1893
1893
|
displayDirective: {
|
|
1894
1894
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -2850,7 +2850,7 @@ declare const DragLayout: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2850
2850
|
type: BooleanConstructor;
|
|
2851
2851
|
default: boolean;
|
|
2852
2852
|
};
|
|
2853
|
-
preset: import("vue").PropType<"dialog" | "
|
|
2853
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
2854
2854
|
to: import("vue").PropType<string | HTMLElement>;
|
|
2855
2855
|
displayDirective: {
|
|
2856
2856
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -1888,7 +1888,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1888
1888
|
type: BooleanConstructor;
|
|
1889
1889
|
default: boolean;
|
|
1890
1890
|
};
|
|
1891
|
-
preset: import("vue").PropType<"dialog" | "
|
|
1891
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
1892
1892
|
to: import("vue").PropType<string | HTMLElement>;
|
|
1893
1893
|
displayDirective: {
|
|
1894
1894
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -2850,7 +2850,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2850
2850
|
type: BooleanConstructor;
|
|
2851
2851
|
default: boolean;
|
|
2852
2852
|
};
|
|
2853
|
-
preset: import("vue").PropType<"dialog" | "
|
|
2853
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
2854
2854
|
to: import("vue").PropType<string | HTMLElement>;
|
|
2855
2855
|
displayDirective: {
|
|
2856
2856
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -6974,7 +6974,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6974
6974
|
modelValue: unknown[];
|
|
6975
6975
|
componentData: Record<string, any>;
|
|
6976
6976
|
}>;
|
|
6977
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "
|
|
6977
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "onClose" | "onSave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6978
6978
|
fields: {
|
|
6979
6979
|
type: import("vue").PropType<any[]>;
|
|
6980
6980
|
default: () => never[];
|
|
@@ -6954,7 +6954,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6954
6954
|
modelValue: unknown[];
|
|
6955
6955
|
componentData: Record<string, any>;
|
|
6956
6956
|
}>;
|
|
6957
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "
|
|
6957
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "onClose" | "onSave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6958
6958
|
fields: {
|
|
6959
6959
|
type: PropType<any[]>;
|
|
6960
6960
|
default: () => never[];
|
|
@@ -5154,7 +5154,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5154
5154
|
type: BooleanConstructor;
|
|
5155
5155
|
default: boolean;
|
|
5156
5156
|
};
|
|
5157
|
-
preset: import("vue").PropType<"dialog" | "
|
|
5157
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
5158
5158
|
to: import("vue").PropType<string | HTMLElement>;
|
|
5159
5159
|
displayDirective: {
|
|
5160
5160
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -6116,7 +6116,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6116
6116
|
type: BooleanConstructor;
|
|
6117
6117
|
default: boolean;
|
|
6118
6118
|
};
|
|
6119
|
-
preset: import("vue").PropType<"dialog" | "
|
|
6119
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
6120
6120
|
to: import("vue").PropType<string | HTMLElement>;
|
|
6121
6121
|
displayDirective: {
|
|
6122
6122
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -7101,9 +7101,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7101
7101
|
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
7102
7102
|
default: () => {};
|
|
7103
7103
|
};
|
|
7104
|
-
businessFilter: {
|
|
7105
|
-
type: import("vue").PropType<import("..").FormBusinessFilter>;
|
|
7106
|
-
};
|
|
7107
7104
|
scope: {
|
|
7108
7105
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
7109
7106
|
default: () => {};
|
|
@@ -7216,9 +7213,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7216
7213
|
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
7217
7214
|
default: () => {};
|
|
7218
7215
|
};
|
|
7219
|
-
businessFilter: {
|
|
7220
|
-
type: import("vue").PropType<import("..").FormBusinessFilter>;
|
|
7221
|
-
};
|
|
7222
7216
|
scope: {
|
|
7223
7217
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
7224
7218
|
default: () => {};
|
|
@@ -7245,14 +7239,14 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7245
7239
|
}>>;
|
|
7246
7240
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
7247
7241
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
7242
|
+
formModel: import("@formily/core").Form<{
|
|
7243
|
+
[x: string]: any;
|
|
7244
|
+
}>;
|
|
7248
7245
|
SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
7249
7246
|
businessCollector: import("..").BusinessCollector;
|
|
7250
7247
|
formItemDepsCollector: import("..").FormItemDepsCollector;
|
|
7251
7248
|
changeContextCollector: import("..").ContextCollector;
|
|
7252
7249
|
formUUID: string;
|
|
7253
|
-
formModel: import("@formily/core").Form<{
|
|
7254
|
-
[x: string]: any;
|
|
7255
|
-
}>;
|
|
7256
7250
|
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
7257
7251
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
7258
7252
|
[key: symbol]: any;
|
|
@@ -7768,7 +7762,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7768
7762
|
readonly default: "bar";
|
|
7769
7763
|
};
|
|
7770
7764
|
readonly closable: BooleanConstructor;
|
|
7771
|
-
readonly justifyContent: import("vue").PropType<"
|
|
7765
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
7772
7766
|
readonly size: {
|
|
7773
7767
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
7774
7768
|
readonly default: "medium";
|
|
@@ -8044,7 +8038,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8044
8038
|
addTabFixed: import("vue").Ref<boolean>;
|
|
8045
8039
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
8046
8040
|
display: string;
|
|
8047
|
-
justifyContent: "
|
|
8041
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
8048
8042
|
} | undefined>;
|
|
8049
8043
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
8050
8044
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -8100,7 +8094,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8100
8094
|
readonly default: "bar";
|
|
8101
8095
|
};
|
|
8102
8096
|
readonly closable: BooleanConstructor;
|
|
8103
|
-
readonly justifyContent: import("vue").PropType<"
|
|
8097
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
8104
8098
|
readonly size: {
|
|
8105
8099
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
8106
8100
|
readonly default: "medium";
|
|
@@ -8718,9 +8712,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8718
8712
|
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
8719
8713
|
default: () => {};
|
|
8720
8714
|
};
|
|
8721
|
-
businessFilter: {
|
|
8722
|
-
type: import("vue").PropType<import("..").FormBusinessFilter>;
|
|
8723
|
-
};
|
|
8724
8715
|
scope: {
|
|
8725
8716
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
8726
8717
|
default: () => {};
|
|
@@ -12188,9 +12179,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12188
12179
|
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
12189
12180
|
default: () => {};
|
|
12190
12181
|
};
|
|
12191
|
-
businessFilter: {
|
|
12192
|
-
type: import("vue").PropType<import("..").FormBusinessFilter>;
|
|
12193
|
-
};
|
|
12194
12182
|
scope: {
|
|
12195
12183
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
12196
12184
|
default: () => {};
|
|
@@ -12303,9 +12291,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12303
12291
|
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
12304
12292
|
default: () => {};
|
|
12305
12293
|
};
|
|
12306
|
-
businessFilter: {
|
|
12307
|
-
type: import("vue").PropType<import("..").FormBusinessFilter>;
|
|
12308
|
-
};
|
|
12309
12294
|
scope: {
|
|
12310
12295
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
12311
12296
|
default: () => {};
|
|
@@ -12332,14 +12317,14 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12332
12317
|
}>>;
|
|
12333
12318
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
12334
12319
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
12320
|
+
formModel: import("@formily/core").Form<{
|
|
12321
|
+
[x: string]: any;
|
|
12322
|
+
}>;
|
|
12335
12323
|
SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
12336
12324
|
businessCollector: import("..").BusinessCollector;
|
|
12337
12325
|
formItemDepsCollector: import("..").FormItemDepsCollector;
|
|
12338
12326
|
changeContextCollector: import("..").ContextCollector;
|
|
12339
12327
|
formUUID: string;
|
|
12340
|
-
formModel: import("@formily/core").Form<{
|
|
12341
|
-
[x: string]: any;
|
|
12342
|
-
}>;
|
|
12343
12328
|
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
12344
12329
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
12345
12330
|
[key: symbol]: any;
|
|
@@ -12855,7 +12840,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12855
12840
|
readonly default: "bar";
|
|
12856
12841
|
};
|
|
12857
12842
|
readonly closable: BooleanConstructor;
|
|
12858
|
-
readonly justifyContent: import("vue").PropType<"
|
|
12843
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
12859
12844
|
readonly size: {
|
|
12860
12845
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
12861
12846
|
readonly default: "medium";
|
|
@@ -13131,7 +13116,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13131
13116
|
addTabFixed: import("vue").Ref<boolean>;
|
|
13132
13117
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
13133
13118
|
display: string;
|
|
13134
|
-
justifyContent: "
|
|
13119
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
13135
13120
|
} | undefined>;
|
|
13136
13121
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
13137
13122
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -13187,7 +13172,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13187
13172
|
readonly default: "bar";
|
|
13188
13173
|
};
|
|
13189
13174
|
readonly closable: BooleanConstructor;
|
|
13190
|
-
readonly justifyContent: import("vue").PropType<"
|
|
13175
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
13191
13176
|
readonly size: {
|
|
13192
13177
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
13193
13178
|
readonly default: "medium";
|
|
@@ -13805,9 +13790,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13805
13790
|
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
13806
13791
|
default: () => {};
|
|
13807
13792
|
};
|
|
13808
|
-
businessFilter: {
|
|
13809
|
-
type: import("vue").PropType<import("..").FormBusinessFilter>;
|
|
13810
|
-
};
|
|
13811
13793
|
scope: {
|
|
13812
13794
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
13813
13795
|
default: () => {};
|