cnhis-design-vue 3.1.16-beta.1 → 3.1.16-beta.4

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 (75) hide show
  1. package/es/packages/big-table/index.d.ts +651 -1
  2. package/es/packages/big-table/src/BigTable.vue.d.ts +674 -23
  3. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +46 -18
  4. package/es/packages/big-table/src/bigTableProps.d.ts +4 -0
  5. package/es/packages/big-table/src/bigTableProps.js +2 -1
  6. package/es/packages/big-table/src/bigTableState.d.ts +2 -0
  7. package/es/packages/big-table/src/bigTableState.js +3 -1
  8. package/es/packages/big-table/src/components/edit-form/edit-time.js +1 -1
  9. package/es/packages/big-table/src/hooks/index.d.ts +9 -0
  10. package/es/packages/big-table/src/hooks/index.js +9 -0
  11. package/es/packages/big-table/src/hooks/useAnchor.d.ts +7 -0
  12. package/es/packages/big-table/src/hooks/useAnchor.js +41 -0
  13. package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +24 -8
  14. package/es/packages/big-table/src/hooks/useEdit.js +1 -1
  15. package/es/packages/big-table/src/hooks/useEvent.d.ts +1 -1
  16. package/es/packages/big-table/src/hooks/useEvent.js +3 -2
  17. package/es/packages/button-print/index.d.ts +2 -2
  18. package/es/packages/button-print/src/ButtonPrint.vue.d.ts +2 -2
  19. package/es/packages/button-print/src/components/IdentityVerification.vue.d.ts +2 -2
  20. package/es/packages/drag-layout/index.d.ts +2 -2
  21. package/es/packages/drag-layout/src/DragLayout.vue.d.ts +2 -2
  22. package/es/packages/fabric-chart/src/FabricChart.js +2 -1
  23. package/es/packages/field-set/index.d.ts +1 -1
  24. package/es/packages/field-set/src/FieldSet.vue.d.ts +1 -1
  25. package/es/packages/form-config/index.d.ts +17 -35
  26. package/es/packages/form-config/src/FormConfig.vue.d.ts +17 -35
  27. package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +6 -15
  28. package/es/packages/form-config/src/components/FormConfigEdit.js +1 -1
  29. package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +8 -17
  30. package/es/packages/form-config/src/constants/index.d.ts +47 -13
  31. package/es/packages/form-config/src/constants/index.js +52 -14
  32. package/es/packages/form-config/src/hooks/index.d.ts +1 -0
  33. package/es/packages/form-config/src/hooks/index.js +1 -0
  34. package/es/packages/form-config/src/hooks/useConfigurationField.js +6 -43
  35. package/es/packages/form-config/src/hooks/usePresetRenderer.js +1 -1
  36. package/es/packages/form-config/src/hooks/useSortable.d.ts +0 -1
  37. package/es/packages/form-render/index.d.ts +6 -15
  38. package/es/packages/form-render/src/FormRender.js +3 -4
  39. package/es/packages/form-render/src/FormRender.vue.d.ts +7 -16
  40. package/es/packages/form-render/src/components/renderer/cascader.js +1 -1
  41. package/es/packages/form-render/src/components/renderer/checkbox.js +1 -1
  42. package/es/packages/form-render/src/components/renderer/combination/index.js +2 -1
  43. package/es/packages/form-render/src/components/renderer/complex.js +1 -1
  44. package/es/packages/form-render/src/components/renderer/input.js +2 -1
  45. package/es/packages/form-render/src/components/renderer/inputNumber.js +2 -1
  46. package/es/packages/form-render/src/components/renderer/radio.js +1 -1
  47. package/es/packages/form-render/src/components/renderer/select.js +1 -1
  48. package/es/packages/form-render/src/components/renderer/slider.js +1 -1
  49. package/es/packages/form-render/src/components/renderer/switch.js +1 -1
  50. package/es/packages/form-render/src/components/renderer/textarea.js +1 -1
  51. package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +12 -9
  52. package/es/packages/form-render/src/hooks/useBusinessBinding.js +58 -58
  53. package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +9 -2
  54. package/es/packages/form-render/src/hooks/useFormContext.d.ts +2 -1
  55. package/es/packages/form-render/src/hooks/useFormContext.js +2 -2
  56. package/es/packages/form-render/src/hooks/useTypeNormalize.js +1 -1
  57. package/es/packages/form-render/src/types/index.d.ts +0 -8
  58. package/es/packages/form-render/src/utils/business.d.ts +12 -0
  59. package/es/packages/form-render/src/utils/business.js +65 -0
  60. package/es/packages/form-render/src/utils/dom.d.ts +6 -0
  61. package/es/packages/form-render/src/utils/dom.js +14 -0
  62. package/es/packages/form-render/src/utils/index.d.ts +5 -25
  63. package/es/packages/form-render/src/utils/index.js +5 -137
  64. package/es/packages/form-render/src/utils/schema.d.ts +15 -0
  65. package/es/packages/form-render/src/utils/schema.js +83 -0
  66. package/es/packages/scale-view/src/hooks/use-component.d.ts +7 -7
  67. package/es/packages/select-label/index.d.ts +10 -10
  68. package/es/packages/select-label/src/LabelFormContent.vue.d.ts +3 -3
  69. package/es/packages/select-label/src/SelectLabel.vue.d.ts +7 -7
  70. package/es/packages/shortcut-setter/index.d.ts +6 -15
  71. package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -15
  72. package/es/packages/time-line/index.d.ts +2 -2
  73. package/es/packages/time-line/src/TimeLine.vue.d.ts +2 -2
  74. package/global.d.ts +8 -8
  75. 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, createElementVNode, normalizeClass, normalizeStyle, unref, mergeProps, withCtx, renderSlot, createBlock, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
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];
@@ -1364,7 +1371,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1364
1371
  emit("checkboxChange", {
1365
1372
  checked: checked2,
1366
1373
  row,
1367
- index: $rowIndex
1374
+ index: $rowIndex,
1375
+ records: [row]
1368
1376
  });
1369
1377
  return;
1370
1378
  }
@@ -1437,7 +1445,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1437
1445
  emit("checkboxChange", {
1438
1446
  checked: setChecked,
1439
1447
  row,
1440
- index: $rowIndex
1448
+ index: $rowIndex,
1449
+ records: checkedRow
1441
1450
  });
1442
1451
  setChecked && emit("handlerClickRow", row, $rowIndex);
1443
1452
  return;
@@ -1454,7 +1463,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1454
1463
  emit("checkboxChange", {
1455
1464
  checked: setChecked,
1456
1465
  row,
1457
- index: $rowIndex
1466
+ index: $rowIndex,
1467
+ records: checkedRow
1458
1468
  });
1459
1469
  setChecked && emit("handlerClickRow", row, $rowIndex);
1460
1470
  };
@@ -1474,6 +1484,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1474
1484
  };
1475
1485
  const treeTableSelectionChange = (records) => {
1476
1486
  if (state.isTree == 0) {
1487
+ emit("selectionChange", records);
1477
1488
  return false;
1478
1489
  }
1479
1490
  pubCheckChange(records);
@@ -1494,7 +1505,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1494
1505
  emit("checkboxChange", {
1495
1506
  checked,
1496
1507
  row,
1497
- index: $rowIndex
1508
+ index: $rowIndex,
1509
+ records
1498
1510
  });
1499
1511
  if (treeTableSelectionChange(records))
1500
1512
  return;
@@ -2278,7 +2290,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2278
2290
  'expand-padding': !props.isNestTable
2279
2291
  }"
2280
2292
  :style="{ height: state.tableHeight }"
2281
- > `), createElementVNode("div", {
2293
+ > `), state.anchorList.length ? (openBlock(), createBlock(unref(NTabs), {
2294
+ key: 0,
2295
+ type: "line",
2296
+ animated: "",
2297
+ "pane-style": "padding: 0",
2298
+ value: state.anchorValue,
2299
+ "onUpdate:value": [_cache[0] || (_cache[0] = ($event) => state.anchorValue = $event), unref(updateAnchor)]
2300
+ }, {
2301
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(props.anchor, (item) => {
2302
+ return openBlock(), createBlock(unref(NTabPane), {
2303
+ name: item.field,
2304
+ tab: item.title,
2305
+ key: item.field
2306
+ }, null, 8, ["name", "tab"]);
2307
+ }), 128))]),
2308
+ _: 1
2309
+ }, 8, ["value", "onUpdate:value"])) : createCommentVNode("v-if", true), createElementVNode("div", {
2282
2310
  class: normalizeClass(["big-table custom-big-table", {
2283
2311
  mt: state.hasRefresh,
2284
2312
  "expand-padding": !props.isNestTable
@@ -2425,7 +2453,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2425
2453
  }, [createVNode(unref(NIcon), {
2426
2454
  size: "14",
2427
2455
  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)], 2112);
2456
+ }, null, 8, ["component"]), createElementVNode("p", _hoisted_6, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6)], 64);
2429
2457
  };
2430
2458
  }
2431
2459
  });
@@ -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 };
@@ -52,5 +52,7 @@ declare const bigTableState: {
52
52
  isHover: boolean;
53
53
  isCurrent: boolean;
54
54
  };
55
+ anchorValue: string;
56
+ anchorList: never[];
55
57
  };
56
58
  export default bigTableState;
@@ -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 };
@@ -44,7 +44,7 @@ var editTime = defineComponent({
44
44
  ...props.col.componentProps || {}
45
45
  };
46
46
  return () => createVNode(NTimePicker, mergeProps(attrs, config, {
47
- "onUpdateValue": onUpdateValue
47
+ "onUpdateFormattedValue": onUpdateValue
48
48
  }), null);
49
49
  }
50
50
  });
@@ -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,7 @@
1
+ export declare const useAnchor: (props: any, state: any, emit: any, xGrid: any) => {
2
+ initAnchor: () => void;
3
+ updateAnchor: (field: string) => void;
4
+ anchorEvent: ({ scrollLeft }: {
5
+ scrollLeft: number;
6
+ }) => void;
7
+ };
@@ -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
- result.componentProps = Object.assign({}, result.comonentProps, {
44
- maxlength: value.max_length,
45
- minlength: value.min_length,
46
- max: value.max_value,
47
- min: value.min_value,
48
- precision: value.decimal_length
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", { property: "formType", valueMap: htmlTypeValueMap }],
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,4 +1,4 @@
1
- export declare const useEvent: (props: any, state: any, emit: any, xGrid: any) => {
1
+ export declare const useEvent: (props: any, state: any, emit: any, xGrid: any, anchorEvent: Function) => {
2
2
  keyDown: ({ $event }: {
3
3
  $event: KeyboardEvent;
4
4
  }) => void;
@@ -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
- let row = xGridRef.getData(activeIndex);
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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" | "confirm" | "card">;
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">;
@@ -115,7 +115,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
115
  const times = top.xScalevalue.times;
116
116
  let left = originX.value - xCellWidth.value;
117
117
  function getDate(date) {
118
- return String(date).length < 9 ? `20${date}` : date;
118
+ const [year = "2022", month = "01", day = "01"] = String(date).match(/\d+/g) || [];
119
+ return `20${year}`.slice(-4) + "-" + `00${month}`.slice(-2) + "-" + `00${day}`.slice(-2);
119
120
  }
120
121
  const timeList = dateList.map((item) => {
121
122
  return times.map((v) => {
@@ -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")[], "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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")[], "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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[];