cnhis-design-vue 3.1.18-beta.9 → 3.1.18

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 (37) hide show
  1. package/es/components/annotation-edit/style/index.css +1 -15
  2. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +12 -4
  3. package/es/components/big-table/src/components/edit-form/edit-input.js +4 -1
  4. package/es/components/big-table/src/hooks/useEvent2.js +22 -7
  5. package/es/components/big-table/style/index.css +1 -634
  6. package/es/components/bpmn-workflow/style/index.css +1 -29
  7. package/es/components/button-print/src/utils/print.d.ts +1 -1
  8. package/es/components/button-print/src/utils/print2.js +12 -14
  9. package/es/components/button-print/style/index.css +1 -24
  10. package/es/components/chunk-upload/style/index.css +1 -365
  11. package/es/components/drag-layout/style/index.css +1 -175
  12. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/useCenter2.js +58 -38
  14. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -0
  15. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/useDraw2.js +30 -1
  17. package/es/components/fabric-chart/src/hooks/useLeft2.js +8 -1
  18. package/es/components/fabric-chart/style/index.css +1 -43
  19. package/es/components/field-set/style/index.css +1 -139
  20. package/es/components/form-config/src/utils/index2.js +1 -1
  21. package/es/components/form-config/style/index.css +1 -158
  22. package/es/components/form-render/style/index.css +1 -146
  23. package/es/components/form-table/style/index.css +1 -214
  24. package/es/components/grid/src/hooks2.js +1 -0
  25. package/es/components/grid/style/index.css +1 -10
  26. package/es/components/index.css +1 -3346
  27. package/es/components/info-header/style/index.css +1 -121
  28. package/es/components/map/style/index.css +1 -61
  29. package/es/components/scale-view/style/index.css +1 -738
  30. package/es/components/select-label/style/index.css +1 -164
  31. package/es/components/select-person/style/index.css +1 -193
  32. package/es/components/shortcut-provider/style/index.css +1 -3
  33. package/es/components/shortcut-setter/style/index.css +1 -8
  34. package/es/components/steps-wheel/style/index.css +1 -161
  35. package/es/components/time-line/style/index.css +1 -37
  36. package/es/env.d.ts +0 -18
  37. package/package.json +2 -2
@@ -1,15 +1 @@
1
- .annotation-edit {
2
- cursor: pointer;
3
- color: #0067ee;
4
- font-size: 16px;
5
- user-select: none;
6
- display: inline-flex;
7
- align-items: center;
8
- }
9
- .annotation-edit.is-active {
10
- color: rgba(255, 152, 40);
11
- }
12
- .annotation-edit__icon {
13
- display: inline-flex;
14
- align-items: center;
15
- }
1
+ .annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}
@@ -1317,13 +1317,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1317
1317
  updateAddCheckedRows(row);
1318
1318
  };
1319
1319
  const handlerClickRow = (data) => {
1320
- var _a;
1320
+ var _a, _b;
1321
1321
  let {
1322
1322
  row,
1323
1323
  $event = {},
1324
- $rowIndex
1324
+ $rowIndex,
1325
+ triggerCheckbox
1325
1326
  } = data;
1326
- if (((_a = attr.checkboxConfig) == null ? void 0 : _a.trigger) === "default") {
1327
+ if (((_a = attr.checkboxConfig) == null ? void 0 : _a.noTriggerCellClick) && triggerCheckbox) {
1328
+ return false;
1329
+ }
1330
+ if (((_b = attr.checkboxConfig) == null ? void 0 : _b.trigger) === "default") {
1327
1331
  emit("handlerClickRow", row, $rowIndex);
1328
1332
  return false;
1329
1333
  }
@@ -2277,6 +2281,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2277
2281
  loadData
2278
2282
  });
2279
2283
  return (_ctx, _cache) => {
2284
+ var _a;
2280
2285
  return openBlock(), createElementBlock(Fragment, null, [state.anchorList.length ? (openBlock(), createBlock(unref(NTabs), {
2281
2286
  key: 0,
2282
2287
  type: "line",
@@ -2317,6 +2322,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2317
2322
  "auto-resize": "",
2318
2323
  height: props.height ? "auto" : void 0
2319
2324
  }, _ctx.$attrs, {
2325
+ "mouse-config": {
2326
+ selected: ((_a = _ctx.columnConfig.keyboardConfig) == null ? void 0 : _a.isEdit) ? true : false
2327
+ },
2320
2328
  "seq-config": unref(handleSeqConfig),
2321
2329
  "tree-config": unref(treeConfig),
2322
2330
  "row-class-name": getRowClassName,
@@ -2418,7 +2426,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2418
2426
  }
2419
2427
  })]),
2420
2428
  _: 3
2421
- }, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "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", {
2429
+ }, 16, ["height", "mouse-config", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "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", {
2422
2430
  class: "refresh",
2423
2431
  onClick: hanldeClickRefresh
2424
2432
  }, [createVNode(unref(NIcon), {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createVNode, mergeProps } from 'vue';
1
+ import { defineComponent, ref, watch, createVNode, mergeProps } from 'vue';
2
2
  import { NInput, NInputNumber } from 'naive-ui';
3
3
  import { useCommon } from './useCommon2.js';
4
4
 
@@ -56,6 +56,9 @@ var EditInput = defineComponent({
56
56
  placeholder: props.col.placeholder || "\u8BF7\u8F93\u5165",
57
57
  ...props.col.componentProps || {}
58
58
  };
59
+ watch(() => attrs.value, (value) => {
60
+ __value.value = value;
61
+ });
59
62
  return () => props.type === "input" ? createVNode(NInput, mergeProps({
60
63
  "ref": formRef
61
64
  }, attrs, config, {
@@ -5,6 +5,7 @@ import { hideFilterWrap } from '../utils2.js';
5
5
  const useEvent = (props, state, emit, xGrid, anchorEvent) => {
6
6
  function keyDown({ $event }) {
7
7
  var _a, _b;
8
+ const { isArrow, isEnter, isChecked, isTab, isEdit } = ((_a = props.columnConfig) == null ? void 0 : _a.keyboardConfig) || {};
8
9
  let activeRow = null;
9
10
  let index = 0;
10
11
  const xGridRef = xGrid.value;
@@ -13,9 +14,8 @@ const useEvent = (props, state, emit, xGrid, anchorEvent) => {
13
14
  index = xGridRef.getRowIndex(activeRow);
14
15
  }
15
16
  let activeIndex = index || 0;
16
- if (!activeRow)
17
+ if (!activeRow && !isEdit)
17
18
  return;
18
- const { isArrow, isEnter, isChecked } = ((_a = props.columnConfig) == null ? void 0 : _a.keyboardConfig) || {};
19
19
  function emitKeyBoard() {
20
20
  emit("keyboard", {
21
21
  key: $event.key,
@@ -31,19 +31,34 @@ const useEvent = (props, state, emit, xGrid, anchorEvent) => {
31
31
  activeIndex = index + 1;
32
32
  }
33
33
  const row = xGridRef.getData(activeIndex);
34
- xGridRef.setCurrentRow(row);
35
34
  xGridRef.scrollToRow(row);
35
+ xGridRef.setCurrentRow(row);
36
36
  emitKeyBoard();
37
- }
38
- if (isEnter && $event.key === "Enter") {
39
- emitKeyBoard();
37
+ return;
40
38
  }
41
39
  if (isChecked && $event.key === " ") {
42
40
  $event.preventDefault();
41
+ xGridRef.scrollToRow(activeRow);
43
42
  xGridRef.setCheckboxRow(activeRow, true);
44
43
  emitKeyBoard();
45
- xGridRef.scrollToRow(activeRow);
44
+ return;
45
+ }
46
+ if (isEdit && (isTab && $event.key === "Tab" || isEnter && $event.key === "Enter")) {
47
+ $event.preventDefault();
48
+ setTimeout(() => {
49
+ const { row, column, $rowIndex } = xGridRef.getSelectedCell();
50
+ emit("keyboard", {
51
+ key: $event.key,
52
+ index: $rowIndex,
53
+ row,
54
+ column
55
+ });
56
+ xGridRef.scrollToRow(row);
57
+ xGridRef.setEditCell(row, column);
58
+ });
59
+ return;
46
60
  }
61
+ emitKeyBoard();
47
62
  }
48
63
  let scrollEvent = (params) => {
49
64
  emit("scroll", params);