cnhis-design-vue 3.1.15-beta.0 → 3.1.15-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.
Files changed (46) hide show
  1. package/es/packages/annotation-edit/src/AnnotationEdit.js +2 -1
  2. package/es/packages/big-table/index.d.ts +12 -11
  3. package/es/packages/big-table/src/BigTable.vue.d.ts +28 -19
  4. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +16 -11
  5. package/es/packages/big-table/src/bigTableProps.d.ts +5 -3
  6. package/es/packages/big-table/src/bigTableProps.js +1 -1
  7. package/es/packages/big-table/src/components/edit-form/edit-separate.js +18 -9
  8. package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +3 -1
  9. package/es/packages/big-table/src/hooks/useAnnotation.d.ts +4 -0
  10. package/es/packages/big-table/src/hooks/useAnnotation.js +21 -0
  11. package/es/packages/big-table/src/hooks/useEdit.d.ts +3 -1
  12. package/es/packages/big-table/style/index.css +27 -1
  13. package/es/packages/button-print/src/utils/print.d.ts +1 -1
  14. package/es/packages/button-print/src/utils/print.js +1 -1
  15. package/es/packages/fabric-chart/index.d.ts +1 -0
  16. package/es/packages/fabric-chart/src/FabricChart.js +12 -16
  17. package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +5 -4
  18. package/es/packages/fabric-chart/src/hooks/useCenter.js +29 -71
  19. package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +4 -2
  20. package/es/packages/form-render/src/components/renderer/cascader.js +7 -7
  21. package/es/packages/form-render/src/components/renderer/combination.js +11 -8
  22. package/es/packages/form-render/src/components/renderer/complex.d.ts +2 -0
  23. package/es/packages/form-render/src/components/renderer/complex.js +2 -5
  24. package/es/packages/form-render/src/components/renderer/date.d.ts +29 -0
  25. package/es/packages/form-render/src/components/renderer/date.js +63 -56
  26. package/es/packages/form-render/src/components/renderer/select.js +7 -7
  27. package/es/packages/form-render/src/hooks/useCommonInjection.d.ts +6 -0
  28. package/es/packages/form-render/src/hooks/useCommonInjection.js +19 -0
  29. package/es/packages/form-render/src/types/fieldItem.d.ts +15 -2
  30. package/es/packages/form-render/src/utils/index.d.ts +1 -0
  31. package/es/packages/form-render/src/utils/index.js +30 -2
  32. package/es/packages/form-render/style/index.css +11 -10
  33. package/es/packages/index.css +38 -11
  34. package/es/packages/shortcut-provider/index.d.ts +2 -11
  35. package/es/packages/shortcut-provider/src/ShortcutProvider.js +1 -5
  36. package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -11
  37. package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +11 -8
  38. package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +44 -28
  39. package/es/packages/shortcut-provider/src/types/index.d.ts +32 -4
  40. package/es/packages/shortcut-provider/src/utils/index.d.ts +3 -0
  41. package/es/packages/shortcut-provider/src/utils/index.js +15 -5
  42. package/es/packages/shortcut-setter/index.d.ts +6 -4
  43. package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -4
  44. package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +6 -4
  45. package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +6 -4
  46. package/package.json +1 -1
@@ -36,7 +36,8 @@ var script = defineComponent({
36
36
  });
37
37
  const isEdit = ref(false);
38
38
  let clickTimer;
39
- function iconClick() {
39
+ function iconClick(evt) {
40
+ evt.stopPropagation();
40
41
  clearTimeout(clickTimer);
41
42
  if (showPopper.value && isEdit.value) {
42
43
  showPopper.value = false;
@@ -9,9 +9,9 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
9
9
  type: NumberConstructor;
10
10
  default: number;
11
11
  };
12
- checkboxBindRowClick: {
13
- type: BooleanConstructor;
14
- default: boolean;
12
+ annotation: {
13
+ type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
14
+ default: () => {};
15
15
  };
16
16
  showFooter: BooleanConstructor;
17
17
  sumData: {
@@ -2595,9 +2595,9 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
2595
2595
  type: NumberConstructor;
2596
2596
  default: number;
2597
2597
  };
2598
- checkboxBindRowClick: {
2599
- type: BooleanConstructor;
2600
- default: boolean;
2598
+ annotation: {
2599
+ type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
2600
+ default: () => {};
2601
2601
  };
2602
2602
  showFooter: BooleanConstructor;
2603
2603
  sumData: {
@@ -2945,7 +2945,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
2945
2945
  maskUp: (e: any) => void;
2946
2946
  setGroupTreeExpand: () => void;
2947
2947
  resetTableInlineEditStatus: () => false | undefined;
2948
- toolTipTitle: (item: any, type: any) => any;
2948
+ renderAnnotation: (columnConfig: import("../../../es/src/types").AnyObject) => JSX.Element | null;
2949
+ toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
2949
2950
  triggerExpand: (e: any, isExpand: any) => void;
2950
2951
  getOtherConfigInit: () => any;
2951
2952
  refreshTable: () => void;
@@ -4082,9 +4083,9 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
4082
4083
  type: NumberConstructor;
4083
4084
  default: number;
4084
4085
  };
4085
- checkboxBindRowClick: {
4086
- type: BooleanConstructor;
4087
- default: boolean;
4086
+ annotation: {
4087
+ type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
4088
+ default: () => {};
4088
4089
  };
4089
4090
  showFooter: BooleanConstructor;
4090
4091
  sumData: {
@@ -4281,7 +4282,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
4281
4282
  columnConfig: Record<string, any>;
4282
4283
  menuConfig: Record<string, any>;
4283
4284
  maxCheckSize: number;
4284
- checkboxBindRowClick: boolean;
4285
+ annotation: import("../../../es/src/types").AnyObject;
4285
4286
  sumData: Record<string, any>;
4286
4287
  avgData: Record<string, any>;
4287
4288
  refreshRow: number;
@@ -7,9 +7,9 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: NumberConstructor;
8
8
  default: number;
9
9
  };
10
- checkboxBindRowClick: {
11
- type: BooleanConstructor;
12
- default: boolean;
10
+ annotation: {
11
+ type: import("vue").PropType<import("../../../src/types").AnyObject>;
12
+ default: () => {};
13
13
  };
14
14
  showFooter: BooleanConstructor;
15
15
  sumData: {
@@ -1162,7 +1162,14 @@ declare const _default: import("vue").DefineComponent<{
1162
1162
  paddingMedium: string;
1163
1163
  paddingLarge: string;
1164
1164
  paddingRoundTiny: string;
1165
- paddingRoundSmall: string;
1165
+ paddingRoundSmall: string; /**
1166
+ * 初始化props
1167
+ * @param {*} unionItem
1168
+ * @param {*} row
1169
+ * @param {*} column
1170
+ * @param {*} $rowIndex
1171
+ * @returns
1172
+ */
1166
1173
  paddingRoundMedium: string;
1167
1174
  paddingRoundLarge: string;
1168
1175
  iconMarginTiny: string;
@@ -1252,9 +1259,7 @@ declare const _default: import("vue").DefineComponent<{
1252
1259
  borderHoverPrimary: string;
1253
1260
  borderPressedPrimary: string;
1254
1261
  borderFocusPrimary: string;
1255
- borderDisabledPrimary: string; /**
1256
- * tsx渲染表格
1257
- */
1262
+ borderDisabledPrimary: string;
1258
1263
  rippleColorPrimary: string;
1259
1264
  colorInfo: string;
1260
1265
  colorHoverInfo: string;
@@ -2595,9 +2600,9 @@ declare const _default: import("vue").DefineComponent<{
2595
2600
  type: NumberConstructor;
2596
2601
  default: number;
2597
2602
  };
2598
- checkboxBindRowClick: {
2599
- type: BooleanConstructor;
2600
- default: boolean;
2603
+ annotation: {
2604
+ type: import("vue").PropType<import("../../../src/types").AnyObject>;
2605
+ default: () => {};
2601
2606
  };
2602
2607
  showFooter: BooleanConstructor;
2603
2608
  sumData: {
@@ -2945,7 +2950,8 @@ declare const _default: import("vue").DefineComponent<{
2945
2950
  maskUp: (e: any) => void;
2946
2951
  setGroupTreeExpand: () => void;
2947
2952
  resetTableInlineEditStatus: () => false | undefined;
2948
- toolTipTitle: (item: any, type: any) => any;
2953
+ renderAnnotation: (columnConfig: import("../../../src/types").AnyObject) => JSX.Element | null;
2954
+ toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
2949
2955
  triggerExpand: (e: any, isExpand: any) => void;
2950
2956
  getOtherConfigInit: () => any;
2951
2957
  refreshTable: () => void;
@@ -3292,7 +3298,10 @@ declare const _default: import("vue").DefineComponent<{
3292
3298
  buttonColor2: string;
3293
3299
  buttonColor2Hover: string;
3294
3300
  buttonColor2Pressed: string;
3295
- boxShadow1: string; /**
3301
+ boxShadow1: string;
3302
+ boxShadow2: string;
3303
+ boxShadow3: string;
3304
+ /**
3296
3305
  * 针对 bigTable 的设置列
3297
3306
  * type: 列的类型
3298
3307
  * field: 列字段名(注:属性层级越深,渲染性能将直线下降)
@@ -3308,8 +3317,6 @@ declare const _default: import("vue").DefineComponent<{
3308
3317
  * formatter: 格式化显示内容 Function({cellValue, row, column})
3309
3318
  * sortable: 是否允许列排序
3310
3319
  */
3311
- boxShadow2: string;
3312
- boxShadow3: string;
3313
3320
  fontFamily: string;
3314
3321
  fontFamilyMono: string;
3315
3322
  fontWeight: string;
@@ -4061,7 +4068,9 @@ declare const _default: import("vue").DefineComponent<{
4061
4068
  color: string;
4062
4069
  opacity1Depth: string;
4063
4070
  opacity2Depth: string;
4064
- opacity3Depth: string;
4071
+ opacity3Depth: string; /**
4072
+ * computed
4073
+ */
4065
4074
  opacity4Depth: string;
4066
4075
  opacity5Depth: string;
4067
4076
  }, any>>;
@@ -4097,9 +4106,9 @@ declare const _default: import("vue").DefineComponent<{
4097
4106
  type: NumberConstructor;
4098
4107
  default: number;
4099
4108
  };
4100
- checkboxBindRowClick: {
4101
- type: BooleanConstructor;
4102
- default: boolean;
4109
+ annotation: {
4110
+ type: import("vue").PropType<import("../../../src/types").AnyObject>;
4111
+ default: () => {};
4103
4112
  };
4104
4113
  showFooter: BooleanConstructor;
4105
4114
  sumData: {
@@ -4296,7 +4305,7 @@ declare const _default: import("vue").DefineComponent<{
4296
4305
  columnConfig: Record<string, any>;
4297
4306
  menuConfig: Record<string, any>;
4298
4307
  maxCheckSize: number;
4299
- checkboxBindRowClick: boolean;
4308
+ annotation: import("../../../src/types").AnyObject;
4300
4309
  sumData: Record<string, any>;
4301
4310
  avgData: Record<string, any>;
4302
4311
  refreshRow: number;
@@ -1,5 +1,6 @@
1
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';
2
2
  import { isArray, isFunction } from 'lodash-es';
3
+ import { useAnnotation } from '../../../packages/big-table/src/hooks/useAnnotation';
3
4
  import { useSeparateRow } from '../../../packages/big-table/src/hooks/useSeparateRow';
4
5
  import bigTableState from './bigTableState.js';
5
6
  import bigTableProps from './bigTableProps.js';
@@ -950,6 +951,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
950
951
  return false;
951
952
  handleClickCancelBtnByInline();
952
953
  };
954
+ const {
955
+ renderAnnotation
956
+ } = useAnnotation(props);
953
957
  const toolTipTitle = (item, type) => {
954
958
  var _a;
955
959
  let name = item.formTitle || item.alias || item.title;
@@ -962,11 +966,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
962
966
  isAlias = !!tooltipTitle;
963
967
  }
964
968
  if (type === "format")
965
- return createVNode(TextOverTooltip, {
969
+ return [createVNode(TextOverTooltip, {
966
970
  "tooltipTitle": tooltipTitle,
967
971
  "content": name,
968
972
  "isAlias": isAlias
969
- }, null);
973
+ }, null), renderAnnotation(item)];
970
974
  return () => {
971
975
  return [createVNode(TextOverTooltip, {
972
976
  "tooltipTitle": tooltipTitle,
@@ -977,7 +981,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
977
981
  "component": state.isExpand && state.total < 1001 ? CaretDown : CaretForward,
978
982
  "onClick": (e) => triggerExpand(e, state.isExpand)
979
983
  }, null) : ""]
980
- })];
984
+ }), renderAnnotation(item)];
981
985
  };
982
986
  };
983
987
  const triggerExpand = (e, isExpand) => {
@@ -1341,9 +1345,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1341
1345
  }
1342
1346
  isAboutNestTable.value && emit("setNestLastClickTable", table, props.isNestTable, row[handleRowId.value], row);
1343
1347
  emit("setNestTableClick", false);
1344
- if (!props.checkboxBindRowClick) {
1345
- return;
1346
- }
1347
1348
  if (props.isNestTable) {
1348
1349
  table == null ? void 0 : table.setAllCheckboxRow(false);
1349
1350
  nestHandleClickRow(table, data);
@@ -2314,7 +2315,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2314
2315
  "span-method": colspanMethod,
2315
2316
  "footer-span-method": footerRowspanMethod,
2316
2317
  "tooltip-config": {
2317
- enterable: false
2318
+ enterable: false,
2319
+ ..._ctx.$attrs.tooltipConfig || {}
2318
2320
  },
2319
2321
  "checkbox-config": {
2320
2322
  checkField: "checked",
@@ -2330,10 +2332,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2330
2332
  checkField: "checked",
2331
2333
  trigger: "cell",
2332
2334
  reserve: true,
2333
- highlight: true
2335
+ highlight: true,
2336
+ ..._ctx.$attrs.radioConfig || {}
2334
2337
  },
2335
2338
  "scroll-y": {
2336
- gt: 50
2339
+ gt: 50,
2340
+ ..._ctx.$attrs.scrollY || {}
2337
2341
  },
2338
2342
  "row-style": unref(getRowStyle),
2339
2343
  "edit-config": state.editConfig,
@@ -2343,7 +2347,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2343
2347
  loadMethod: unref(loadExpandMethod),
2344
2348
  toggleMethod: unref(toggleExpandMethod),
2345
2349
  iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
2346
- iconClose: "iconfont icon-a-xitongtubiaotianjia"
2350
+ iconClose: "iconfont icon-a-xitongtubiaotianjia",
2351
+ ..._ctx.$attrs.expandConfig || {}
2347
2352
  },
2348
2353
  "keyboard-config": _ctx.columnConfig.keyboardConfig || {},
2349
2354
  "edit-rules": _ctx.columnConfig.editRules || {},
@@ -2413,7 +2418,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2413
2418
  }
2414
2419
  })]),
2415
2420
  _: 3
2416
- }, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
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", {
2417
2422
  class: "refresh",
2418
2423
  onClick: hanldeClickRefresh
2419
2424
  }, [createVNode(unref(NIcon), {
@@ -1,3 +1,5 @@
1
+ import { AnyObject } from '../../../../es/src/types';
2
+ import { PropType } from 'vue';
1
3
  declare const bigTableProps: {
2
4
  data: {
3
5
  type: ArrayConstructor;
@@ -7,9 +9,9 @@ declare const bigTableProps: {
7
9
  type: NumberConstructor;
8
10
  default: number;
9
11
  };
10
- checkboxBindRowClick: {
11
- type: BooleanConstructor;
12
- default: boolean;
12
+ annotation: {
13
+ type: PropType<AnyObject>;
14
+ default: () => {};
13
15
  };
14
16
  showFooter: BooleanConstructor;
15
17
  sumData: {
@@ -1,7 +1,7 @@
1
1
  const bigTableProps = {
2
2
  data: { type: Array, default: () => [] },
3
3
  maxCheckSize: { type: Number, default: 0 },
4
- checkboxBindRowClick: { type: Boolean, default: true },
4
+ annotation: { type: Object, default: () => ({}) },
5
5
  showFooter: Boolean,
6
6
  sumData: { type: Object, default: () => ({}) },
7
7
  avgData: { type: Object, default: () => ({}) },
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
1
+ import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
2
2
  import SlotRender from '../../../../../src/components/SlotRender';
3
3
  import { cloneDeep, isObject, isArray } from 'lodash-es';
4
4
  import { NPopover, NInput } from 'naive-ui';
@@ -17,14 +17,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  setup(__props, { emit }) {
18
18
  const props = __props;
19
19
  const popoverRef = ref();
20
+ const show = ref(false);
21
+ function setShow(v) {
22
+ show.value = v;
23
+ }
24
+ watch(show, updateShow);
20
25
  const editContent = ref();
21
26
  const { getRowData } = useSeparateMap();
22
- function updateShow(show) {
27
+ async function updateShow(show2) {
28
+ var _a;
23
29
  const target = getRowData(props.row);
24
30
  if (!target)
25
31
  return;
26
- if (show) {
32
+ if (show2) {
27
33
  editContent.value = cloneDeep(target.row[props.col.field]);
34
+ await new Promise((resolve) => setTimeout(resolve));
35
+ (_a = popoverRef.value) == null ? void 0 : _a.syncPosition();
28
36
  return;
29
37
  }
30
38
  const old = target.row[props.col.field];
@@ -52,14 +60,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
60
  return openBlock(), createBlock(unref(NPopover), {
53
61
  ref_key: "popoverRef",
54
62
  ref: popoverRef,
55
- trigger: "click",
56
- "show-arrow": false,
57
- "onUpdate:show": updateShow
63
+ trigger: "manual",
64
+ show: show.value,
65
+ "onUpdate:show": _cache[3] || (_cache[3] = ($event) => show.value = $event),
66
+ "show-arrow": false
58
67
  }, {
59
68
  trigger: withCtx(() => [
60
69
  createVNode(Separate, {
61
- onClick: _cache[0] || (_cache[0] = withModifiers(() => {
62
- }, ["stop"])),
70
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => show.value = !show.value, ["stop"])),
63
71
  style,
64
72
  col: __props.col,
65
73
  row: __props.row
@@ -71,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
79
  renderer: __props.col.separateSlot,
72
80
  value: editContent.value,
73
81
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => editContent.value = $event),
82
+ "onUpdate:show": setShow,
74
83
  col: __props.col,
75
84
  row: __props.row
76
85
  }, null, 8, ["renderer", "value", "col", "row"])) : (openBlock(), createBlock(unref(NInput), {
@@ -81,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
90
  }, null, 8, ["value"]))
82
91
  ]),
83
92
  _: 1
84
- }, 512);
93
+ }, 8, ["show"]);
85
94
  };
86
95
  }
87
96
  });
@@ -31,6 +31,8 @@ declare const _default: import("vue").DefineComponent<{
31
31
  onFormChange?: ((...args: any[]) => any) | undefined;
32
32
  }>>;
33
33
  popoverRef: import("vue").Ref<any>;
34
+ show: import("vue").Ref<boolean>;
35
+ setShow: (v: boolean) => void;
34
36
  emit: (event: "formChange", ...args: any[]) => void;
35
37
  editContent: import("vue").Ref<any>;
36
38
  getRowData: (row: AnyObject) => {
@@ -39,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
39
41
  rawRow: AnyObject;
40
42
  row: AnyObject;
41
43
  } | undefined;
42
- updateShow: (show: boolean) => void;
44
+ updateShow: (show: boolean) => Promise<void>;
43
45
  style: CSSProperties;
44
46
  SlotRender: import("vue").DefineComponent<{
45
47
  renderer: {
@@ -0,0 +1,4 @@
1
+ import { AnyObject } from '../../../../../es/src/types';
2
+ export declare function useAnnotation(props: AnyObject): {
3
+ renderAnnotation: (columnConfig: AnyObject) => JSX.Element | null;
4
+ };
@@ -0,0 +1,21 @@
1
+ import { createVNode } from 'vue';
2
+ import { isObject } from '@vue/shared';
3
+ import Annotation from '../../../annotation-edit/index.js';
4
+
5
+ function useAnnotation(props) {
6
+ function renderAnnotation(columnConfig) {
7
+ if (!isObject(props.annotation))
8
+ return null;
9
+ return createVNode("section", {
10
+ "class": "big-table__annotationWrapper"
11
+ }, [createVNode(Annotation, {
12
+ "modelValue": props.annotation[columnConfig.columnName],
13
+ "onUpdate:modelValue": ($event) => props.annotation[columnConfig.columnName] = $event
14
+ }, null)]);
15
+ }
16
+ return {
17
+ renderAnnotation
18
+ };
19
+ }
20
+
21
+ export { useAnnotation };
@@ -223,6 +223,8 @@ export declare const comps: {
223
223
  onFormChange?: ((...args: any[]) => any) | undefined;
224
224
  }>>;
225
225
  popoverRef: import("vue").Ref<any>;
226
+ show: import("vue").Ref<boolean>;
227
+ setShow: (v: boolean) => void;
226
228
  emit: (event: "formChange", ...args: any[]) => void;
227
229
  editContent: import("vue").Ref<any>;
228
230
  getRowData: (row: import("../../../../src/types").AnyObject) => {
@@ -231,7 +233,7 @@ export declare const comps: {
231
233
  rawRow: import("../../../../src/types").AnyObject;
232
234
  row: import("../../../../src/types").AnyObject;
233
235
  } | undefined;
234
- updateShow: (show: boolean) => void;
236
+ updateShow: (show: boolean) => Promise<void>;
235
237
  style: import("vue").CSSProperties;
236
238
  SlotRender: import("vue").DefineComponent<{
237
239
  renderer: {
@@ -291,7 +291,7 @@ body > .vxe-table--tooltip-wrapper {
291
291
  width: 100%;
292
292
  }
293
293
  .custom-big-table .filter-box .text-over-tooltip-components {
294
- max-width: calc(100% - 20px);
294
+ max-width: calc(100% - 40px);
295
295
  }
296
296
  .custom-big-table .filter-box .vxe-filter--btn {
297
297
  border-top-color: #c0c4cc;
@@ -539,6 +539,21 @@ body > .vxe-table--tooltip-wrapper {
539
539
  margin-right: 6px;
540
540
  box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
541
541
  }
542
+ .annotation-edit {
543
+ cursor: pointer;
544
+ color: #0067ee;
545
+ font-size: 16px;
546
+ user-select: none;
547
+ display: inline-flex;
548
+ align-items: center;
549
+ }
550
+ .annotation-edit.is-active {
551
+ color: rgba(255, 152, 40);
552
+ }
553
+ .annotation-edit__icon {
554
+ display: inline-flex;
555
+ align-items: center;
556
+ }
542
557
  .no-data-tip {
543
558
  display: flex;
544
559
  flex-direction: column;
@@ -601,3 +616,14 @@ body > .vxe-table--tooltip-wrapper {
601
616
  fill: currentColor;
602
617
  overflow: hidden;
603
618
  }
619
+ .vxe-header--column [annotation-hover-show='true'] {
620
+ visibility: hidden;
621
+ }
622
+ .vxe-header--column:hover [annotation-hover-show='true'] {
623
+ visibility: visible;
624
+ }
625
+ .big-table__annotationWrapper {
626
+ width: 20px;
627
+ display: inline-flex;
628
+ align-items: center;
629
+ }
@@ -11,7 +11,7 @@ export declare class Print {
11
11
  _queryServicesPrint(params: AnyObject): Promise<any>;
12
12
  _callPrintWithFile(queryParams: AnyObject): Promise<any>;
13
13
  _handleResult(data: AnyObject, errorCallbackFn?: Func): false | AnyObject;
14
- _handleResultTest(result: any, errorCallbackFn?: Func): boolean;
14
+ _handleResultTest(result: unknown, errorCallbackFn?: Func): boolean;
15
15
  _handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, errorCallbackFn?: Func): Promise<false | {
16
16
  file: any;
17
17
  printerName: any;
@@ -29,7 +29,7 @@ class Print {
29
29
  const { resolve, reject } = handler;
30
30
  try {
31
31
  console.log(e);
32
- resolve(JSON.parse(e.data.res));
32
+ resolve(JSON.parse(e.data).res);
33
33
  } catch (e2) {
34
34
  reject(e2);
35
35
  }
@@ -53,6 +53,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
53
53
  }>;
54
54
  topList: import("vue").ComputedRef<import("./src/interface").IDate[]>;
55
55
  propItems: any;
56
+ computedYCell: (type: import("./src/interface").IPointType) => number;
56
57
  cumputedX: (value: string | number) => any;
57
58
  cumputedY: (type: import("./src/interface").IPointType, scaleValueList: number[], value: string | number) => number;
58
59
  getXValue: (pointX: number) => string | undefined;
@@ -130,28 +130,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  return timeList.flat();
131
131
  });
132
132
  const breatheYCell = computed(() => {
133
- var _a;
134
- const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
135
- const list = (_a = yScaleValue.find((v) => v.type === "breathe")) == null ? void 0 : _a.list;
136
- return list ? yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber) : 0;
133
+ return computedYCell("breathe");
137
134
  });
138
135
  const pulseYCell = computed(() => {
139
- const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
140
- const list = yScaleValue.find((v) => v.type === "pulse").list;
141
- return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber);
136
+ return computedYCell("pulse");
142
137
  });
143
138
  const temperatureYCell = computed(() => {
144
- const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
145
- const list = yScaleValue.find((v) => v.type === "temperature").list;
146
- return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber);
139
+ return computedYCell("temperature");
147
140
  });
148
141
  const painYCell = computed(() => {
149
- const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
150
- const item = yScaleValue.find((v) => v.type === "pain");
151
- const list = (item == null ? void 0 : item.list) || [];
152
- if (!list.length)
153
- return 0;
154
- return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / item.spaceGridNumber);
142
+ return computedYCell("pain");
155
143
  });
156
144
  const event = computed(() => {
157
145
  var _a;
@@ -261,6 +249,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
261
249
  event: event.value,
262
250
  itemList: itemList.value
263
251
  });
252
+ function computedYCell(type) {
253
+ const { yScaleValue } = props.data.left;
254
+ const item = yScaleValue.find((v) => v.type === type);
255
+ const list = (item == null ? void 0 : item.list) || [];
256
+ if (!list.length)
257
+ return 0;
258
+ return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / item.spaceGridNumber);
259
+ }
264
260
  const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
265
261
  useTop(canvas, propItems);
266
262
  const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
@@ -1,4 +1,4 @@
1
- import { IData, IDate } from './interface';
1
+ import { IData, IDate, IPointType } from './interface';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  data: {
4
4
  type: null;
@@ -53,10 +53,11 @@ declare const _default: import("vue").DefineComponent<{
53
53
  }>;
54
54
  topList: import("vue").ComputedRef<IDate[]>;
55
55
  propItems: any;
56
+ computedYCell: (type: IPointType) => number;
56
57
  cumputedX: (value: string | number) => any;
57
- cumputedY: (type: import("./interface").IPointType, scaleValueList: number[], value: string | number) => number;
58
+ cumputedY: (type: IPointType, scaleValueList: number[], value: string | number) => number;
58
59
  getXValue: (pointX: number) => string | undefined;
59
- getYValue: (type: import("./interface").IPointType, pointY: number) => number;
60
+ getYValue: (type: IPointType, pointY: number) => number;
60
61
  pointTipProps: {
61
62
  show: boolean;
62
63
  point: {
@@ -79,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
79
80
  target: any;
80
81
  }) => void;
81
82
  setPopup: (point: any) => void;
82
- getEqualXTypes: (pointX: number) => import("./interface").IPointType[];
83
+ getEqualXTypes: (pointX: number) => IPointType[];
83
84
  PopupTip: import("vue").DefineComponent<{
84
85
  show: {
85
86
  type: BooleanConstructor;