cnhis-design-vue 3.1.33-beta.9 → 3.1.34-beta.0

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 (150) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +1 -1
  3. package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
  4. package/es/components/big-table/src/BigTable.vue2.js +7 -9
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
  8. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  9. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  10. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  11. package/es/components/button-print/index.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +8 -1
  14. package/es/components/button-print/src/utils/print.d.ts +2 -2
  15. package/es/components/button-print/src/utils/print.js +7 -4
  16. package/es/components/fabric-chart/index.d.ts +133 -2
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
  18. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
  19. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
  20. package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
  22. package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
  23. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  24. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  25. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  26. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  27. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
  28. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
  29. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  30. package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
  31. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  32. package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
  33. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
  34. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
  35. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  36. package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
  37. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  38. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  39. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  40. package/es/components/iho-table/index.d.ts +4 -3
  41. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
  42. package/es/components/iho-table/src/IhoTable.vue.js +6 -4
  43. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  44. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  45. package/es/components/iho-table/src/constants/index.js +0 -1
  46. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
  47. package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
  48. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  49. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
  50. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
  51. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  52. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
  53. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
  54. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
  55. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
  57. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
  58. package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
  59. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
  60. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
  61. package/es/components/iho-table/src/plugins/index.js +1 -1
  62. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +8 -8
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +8 -12
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +2 -2
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.d.ts → useAutoFocus.d.ts} +2 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.js → useAutoFocus.js} +6 -2
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +4 -2
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +11 -5
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +5 -5
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +14 -15
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +2 -2
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +9 -9
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +9 -10
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +5 -5
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +7 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
  79. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
  80. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  81. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  82. package/es/components/iho-table/src/types/index.d.ts +10 -12
  83. package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
  84. package/es/components/iho-table/src/utils/index.d.ts +5 -10
  85. package/es/components/iho-table/src/utils/index.js +19 -26
  86. package/es/components/iho-table/style/index.css +1 -1
  87. package/es/components/index.css +1 -1
  88. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  89. package/es/components/info-header/style/index.css +1 -1
  90. package/es/components/keyboard/index.d.ts +62 -1
  91. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  92. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  93. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  94. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  95. package/es/components/keyboard/style/index.css +1 -1
  96. package/es/components/select-person/index.d.ts +1 -2
  97. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -2
  98. package/es/components/select-person/src/SelectPerson.vue2.js +20 -19
  99. package/es/components/select-person/src/utils/index.d.ts +1 -0
  100. package/es/components/select-person/src/utils/index.js +15 -1
  101. package/es/shared/assets/img/failure.js +1 -1
  102. package/es/shared/assets/img/failure.png.js +1 -1
  103. package/es/shared/assets/img/icon-asc.js +1 -1
  104. package/es/shared/assets/img/icon-desc.js +1 -1
  105. package/es/shared/assets/img/no-permission.js +1 -1
  106. package/es/shared/assets/img/no-permission.png.js +1 -1
  107. package/es/shared/assets/img/nodata.js +1 -1
  108. package/es/shared/assets/img/nodata.png.js +1 -1
  109. package/es/shared/assets/img/notfound.js +1 -1
  110. package/es/shared/assets/img/notfound.png.js +1 -1
  111. package/es/shared/assets/img/qr.js +1 -1
  112. package/es/shared/assets/img/qr.png.js +1 -1
  113. package/es/shared/assets/img/success.js +1 -1
  114. package/es/shared/assets/img/success.png.js +1 -1
  115. package/es/shared/assets/img/video.js +1 -1
  116. package/es/shared/assets/img/video.png.js +1 -1
  117. package/es/shared/assets/img/video_default_cover.js +1 -1
  118. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  119. package/es/shared/assets/img/video_hover.js +1 -1
  120. package/es/shared/assets/img/video_play_hover.js +1 -1
  121. package/es/shared/assets/img/xb_big.js +1 -1
  122. package/es/shared/assets/img/xb_big.png.js +1 -1
  123. package/es/shared/assets/img/xb_small.js +1 -1
  124. package/es/shared/assets/img/xb_small.png.js +1 -1
  125. package/package.json +2 -2
  126. package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +0 -36
  127. package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +0 -37
  128. package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +0 -45
  129. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  130. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  131. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  132. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  133. package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
  134. package/es/components/fabric-chart/src/constants/index.js +0 -4
  135. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  136. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -65
  137. package/es/components/form-render/src/components/renderer/dist/radio.d.ts +0 -64
  138. package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +0 -46
  139. package/es/components/form-render/src/components/renderer/dist/search.d.ts +0 -56
  140. package/es/components/form-render/src/components/renderer/dist/select.d.ts +0 -55
  141. package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +0 -20
  142. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  143. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +0 -3
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +0 -3
  145. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +0 -3
  146. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +0 -42
  147. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +0 -3
  148. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +0 -3
  149. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  150. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -93,6 +93,24 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
93
93
  mode: {
94
94
  type: StringConstructor;
95
95
  };
96
+ positionInitialValue: {
97
+ type: import("vue").PropType<import("@vueuse/core").Position>;
98
+ default: () => {
99
+ x: number;
100
+ y: number;
101
+ };
102
+ };
103
+ moveOffset: {
104
+ type: import("vue").PropType<import("@vueuse/core").Position>;
105
+ default: () => {
106
+ x: number;
107
+ y: number;
108
+ };
109
+ };
110
+ drag: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
96
114
  }, {
97
115
  NUMBERKEYS: string;
98
116
  DAYS: number[];
@@ -103,6 +121,24 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
103
121
  mode: {
104
122
  type: StringConstructor;
105
123
  };
124
+ positionInitialValue: {
125
+ type: import("vue").PropType<import("@vueuse/core").Position>;
126
+ default: () => {
127
+ x: number;
128
+ y: number;
129
+ };
130
+ };
131
+ moveOffset: {
132
+ type: import("vue").PropType<import("@vueuse/core").Position>;
133
+ default: () => {
134
+ x: number;
135
+ y: number;
136
+ };
137
+ };
138
+ drag: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
106
142
  }>> & {
107
143
  onChange?: ((...args: any[]) => any) | undefined;
108
144
  }>>;
@@ -119,9 +155,12 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
119
155
  inputValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
120
156
  numeratorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
121
157
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
158
+ keyboardRef: import("vue").Ref<HTMLElement | null>;
122
159
  history: import("vue").Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
123
160
  undo: () => void;
124
161
  redo: () => void;
162
+ style: import("vue").ComputedRef<string> | undefined;
163
+ init: () => import("vue").ComputedRef<string> | undefined;
125
164
  keydown: (key: string | number) => void;
126
165
  updateFraction: (value: number) => void;
127
166
  calculateFraction: () => void;
@@ -198,9 +237,31 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
198
237
  mode: {
199
238
  type: StringConstructor;
200
239
  };
240
+ positionInitialValue: {
241
+ type: import("vue").PropType<import("@vueuse/core").Position>;
242
+ default: () => {
243
+ x: number;
244
+ y: number;
245
+ };
246
+ };
247
+ moveOffset: {
248
+ type: import("vue").PropType<import("@vueuse/core").Position>;
249
+ default: () => {
250
+ x: number;
251
+ y: number;
252
+ };
253
+ };
254
+ drag: {
255
+ type: BooleanConstructor;
256
+ default: boolean;
257
+ };
201
258
  }>> & {
202
259
  onChange?: ((...args: any[]) => any) | undefined;
203
- }, {}>;
260
+ }, {
261
+ drag: boolean;
262
+ positionInitialValue: import("@vueuse/core").Position;
263
+ moveOffset: import("@vueuse/core").Position;
264
+ }>;
204
265
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
205
266
  mode: {
206
267
  type: import("vue").PropType<"day" | "dose" | "english">;
@@ -94,6 +94,24 @@ declare const _default: import("vue").DefineComponent<{
94
94
  mode: {
95
95
  type: StringConstructor;
96
96
  };
97
+ positionInitialValue: {
98
+ type: PropType<Position>;
99
+ default: () => {
100
+ x: number;
101
+ y: number;
102
+ };
103
+ };
104
+ moveOffset: {
105
+ type: PropType<Position>;
106
+ default: () => {
107
+ x: number;
108
+ y: number;
109
+ };
110
+ };
111
+ drag: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
97
115
  }, {
98
116
  NUMBERKEYS: string;
99
117
  DAYS: number[];
@@ -104,6 +122,24 @@ declare const _default: import("vue").DefineComponent<{
104
122
  mode: {
105
123
  type: StringConstructor;
106
124
  };
125
+ positionInitialValue: {
126
+ type: PropType<Position>;
127
+ default: () => {
128
+ x: number;
129
+ y: number;
130
+ };
131
+ };
132
+ moveOffset: {
133
+ type: PropType<Position>;
134
+ default: () => {
135
+ x: number;
136
+ y: number;
137
+ };
138
+ };
139
+ drag: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
107
143
  }>> & {
108
144
  onChange?: ((...args: any[]) => any) | undefined;
109
145
  }>>;
@@ -120,9 +156,12 @@ declare const _default: import("vue").DefineComponent<{
120
156
  inputValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
121
157
  numeratorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
122
158
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
159
+ keyboardRef: import("vue").Ref<HTMLElement | null>;
123
160
  history: import("vue").Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
124
161
  undo: () => void;
125
162
  redo: () => void;
163
+ style: import("vue").ComputedRef<string> | undefined;
164
+ init: () => import("vue").ComputedRef<string> | undefined;
126
165
  keydown: (key: string | number) => void;
127
166
  updateFraction: (value: number) => void;
128
167
  calculateFraction: () => void;
@@ -199,9 +238,31 @@ declare const _default: import("vue").DefineComponent<{
199
238
  mode: {
200
239
  type: StringConstructor;
201
240
  };
241
+ positionInitialValue: {
242
+ type: PropType<Position>;
243
+ default: () => {
244
+ x: number;
245
+ y: number;
246
+ };
247
+ };
248
+ moveOffset: {
249
+ type: PropType<Position>;
250
+ default: () => {
251
+ x: number;
252
+ y: number;
253
+ };
254
+ };
255
+ drag: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
202
259
  }>> & {
203
260
  onChange?: ((...args: any[]) => any) | undefined;
204
- }, {}>;
261
+ }, {
262
+ drag: boolean;
263
+ positionInitialValue: Position;
264
+ moveOffset: Position;
265
+ }>;
205
266
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
206
267
  mode: {
207
268
  type: PropType<"day" | "dose" | "english">;
@@ -96,8 +96,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
96
  key: 1,
97
97
  mode: __props.mode,
98
98
  defaultValue: __props.defaultValue,
99
+ positionInitialValue: __props.positionInitialValue,
100
+ moveOffset: __props.moveOffset,
101
+ drag: __props.drag,
99
102
  onChange: onchange
100
- }, null, 8, ["mode", "defaultValue"])) : (openBlock(), createElementBlock("div", {
103
+ }, null, 8, ["mode", "defaultValue", "positionInitialValue", "moveOffset", "drag"])) : (openBlock(), createElementBlock("div", {
101
104
  key: 2,
102
105
  class: normalizeClass(["c-keyboard-english", { isFixed: __props.drag }]),
103
106
  ref_key: "englishKeyboardRef",
@@ -1,4 +1,5 @@
1
- import { Ref } from 'vue';
1
+ import { Ref, PropType } from 'vue';
2
+ import { Position } from '@vueuse/core';
2
3
  import { FormValidationStatus } from 'naive-ui/es/form/src/interface';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  defaultValue: {
@@ -7,6 +8,24 @@ declare const _default: import("vue").DefineComponent<{
7
8
  mode: {
8
9
  type: StringConstructor;
9
10
  };
11
+ positionInitialValue: {
12
+ type: PropType<Position>;
13
+ default: () => {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ };
18
+ moveOffset: {
19
+ type: PropType<Position>;
20
+ default: () => {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ };
25
+ drag: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
10
29
  }, {
11
30
  NUMBERKEYS: string;
12
31
  DAYS: number[];
@@ -17,6 +36,24 @@ declare const _default: import("vue").DefineComponent<{
17
36
  mode: {
18
37
  type: StringConstructor;
19
38
  };
39
+ positionInitialValue: {
40
+ type: PropType<Position>;
41
+ default: () => {
42
+ x: number;
43
+ y: number;
44
+ };
45
+ };
46
+ moveOffset: {
47
+ type: PropType<Position>;
48
+ default: () => {
49
+ x: number;
50
+ y: number;
51
+ };
52
+ };
53
+ drag: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
20
57
  }>> & {
21
58
  onChange?: ((...args: any[]) => any) | undefined;
22
59
  }>>;
@@ -33,9 +70,12 @@ declare const _default: import("vue").DefineComponent<{
33
70
  inputValueStatus: Ref<FormValidationStatus>;
34
71
  numeratorValueStatus: Ref<FormValidationStatus>;
35
72
  denominatorValueStatus: Ref<FormValidationStatus>;
73
+ keyboardRef: Ref<HTMLElement | null>;
36
74
  history: Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
37
75
  undo: () => void;
38
76
  redo: () => void;
77
+ style: import("vue").ComputedRef<string> | undefined;
78
+ init: () => import("vue").ComputedRef<string> | undefined;
39
79
  keydown: (key: string | number) => void;
40
80
  updateFraction: (value: number) => void;
41
81
  calculateFraction: () => void;
@@ -54,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
54
94
  default: boolean;
55
95
  };
56
96
  status: {
57
- type: import("vue").PropType<FormValidationStatus>;
97
+ type: PropType<FormValidationStatus>;
58
98
  default: string;
59
99
  };
60
100
  }, {
@@ -68,7 +108,7 @@ declare const _default: import("vue").DefineComponent<{
68
108
  default: boolean;
69
109
  };
70
110
  status: {
71
- type: import("vue").PropType<FormValidationStatus>;
111
+ type: PropType<FormValidationStatus>;
72
112
  default: string;
73
113
  };
74
114
  }>> & {
@@ -94,7 +134,7 @@ declare const _default: import("vue").DefineComponent<{
94
134
  default: boolean;
95
135
  };
96
136
  status: {
97
- type: import("vue").PropType<FormValidationStatus>;
137
+ type: PropType<FormValidationStatus>;
98
138
  default: string;
99
139
  };
100
140
  }>> & {
@@ -112,7 +152,29 @@ declare const _default: import("vue").DefineComponent<{
112
152
  mode: {
113
153
  type: StringConstructor;
114
154
  };
155
+ positionInitialValue: {
156
+ type: PropType<Position>;
157
+ default: () => {
158
+ x: number;
159
+ y: number;
160
+ };
161
+ };
162
+ moveOffset: {
163
+ type: PropType<Position>;
164
+ default: () => {
165
+ x: number;
166
+ y: number;
167
+ };
168
+ };
169
+ drag: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
115
173
  }>> & {
116
174
  onChange?: ((...args: any[]) => any) | undefined;
117
- }, {}>;
175
+ }, {
176
+ drag: boolean;
177
+ positionInitialValue: Position;
178
+ moveOffset: Position;
179
+ }>;
118
180
  export default _default;
@@ -1,26 +1,28 @@
1
- import { defineComponent, computed, ref, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, normalizeClass, toDisplayString, createBlock, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, ref, openBlock, createElementBlock, normalizeClass, normalizeStyle, unref, createElementVNode, createVNode, withCtx, Fragment, renderList, toDisplayString, createBlock, createCommentVNode } from 'vue';
2
2
  import { NSpace, NIcon } from 'naive-ui';
3
3
  import { ArrowUndoSharp } from '@vicons/ionicons5';
4
4
  import InputNumber from './InputNumber.vue.js';
5
- import { useRefHistory } from '@vueuse/core';
5
+ import { useRefHistory, useDraggable } from '@vueuse/core';
6
6
  import { getNumber } from '../utils/index.js';
7
7
  import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
8
8
 
9
- const _hoisted_1 = { class: "c-keyboard" };
10
- const _hoisted_2 = { class: "left" };
11
- const _hoisted_3 = { class: "keys" };
9
+ const _hoisted_1 = { class: "left" };
10
+ const _hoisted_2 = { class: "keys" };
11
+ const _hoisted_3 = ["onClick"];
12
12
  const _hoisted_4 = ["onClick"];
13
- const _hoisted_5 = ["onClick"];
14
- const _hoisted_6 = { class: "btns" };
15
- const _hoisted_7 = ["onClick"];
16
- const _hoisted_8 = { class: "inputs" };
17
- const _hoisted_9 = { class: "inputs-right" };
18
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
13
+ const _hoisted_5 = { class: "btns" };
14
+ const _hoisted_6 = ["onClick"];
15
+ const _hoisted_7 = { class: "inputs" };
16
+ const _hoisted_8 = { class: "inputs-right" };
17
+ const _hoisted_9 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
19
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
19
  __name: "NumberPanel",
21
20
  props: {
22
21
  defaultValue: { type: Number },
23
- mode: { type: String }
22
+ mode: { type: String },
23
+ positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) },
24
+ moveOffset: { type: Object, default: () => ({ x: 0, y: 0 }) },
25
+ drag: { type: Boolean, default: false }
24
26
  },
25
27
  emits: ["change"],
26
28
  setup(__props, { emit }) {
@@ -39,10 +41,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
41
  const inputValueStatus = ref("success");
40
42
  const numeratorValueStatus = ref("success");
41
43
  const denominatorValueStatus = ref("success");
42
- if (props.defaultValue) {
43
- inputValue.value = props.defaultValue.toString();
44
- }
44
+ const keyboardRef = ref(null);
45
45
  const { history, undo, redo } = useRefHistory(inputValue);
46
+ const style = init();
47
+ function init() {
48
+ if (props.defaultValue) {
49
+ inputValue.value = props.defaultValue.toString();
50
+ }
51
+ if (props.drag) {
52
+ const { x, y, style: style2 } = useDraggable(keyboardRef, {
53
+ initialValue: props.positionInitialValue,
54
+ onMove: (position, event) => {
55
+ var _a, _b, _c, _d;
56
+ position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
57
+ position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
58
+ }
59
+ });
60
+ return style2;
61
+ }
62
+ }
46
63
  function keydown(key) {
47
64
  var _a, _b;
48
65
  switch (key) {
@@ -88,15 +105,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
105
  inputValueStatus.value = !inputValue.value ? "error" : "success";
89
106
  }
90
107
  return (_ctx, _cache) => {
91
- return openBlock(), createElementBlock("div", _hoisted_1, [
92
- createElementVNode("div", _hoisted_2, [
108
+ return openBlock(), createElementBlock("div", {
109
+ class: normalizeClass(["c-keyboard", { isFixed: __props.drag }]),
110
+ ref_key: "keyboardRef",
111
+ ref: keyboardRef,
112
+ style: normalizeStyle(unref(style))
113
+ }, [
114
+ createElementVNode("div", _hoisted_1, [
93
115
  createVNode(InputNumber, {
94
116
  modelValue: inputValue.value,
95
117
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
96
118
  status: inputValueStatus.value,
97
119
  "onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event)
98
120
  }, null, 8, ["modelValue", "status"]),
99
- createElementVNode("div", _hoisted_3, [
121
+ createElementVNode("div", _hoisted_2, [
100
122
  createVNode(unref(NSpace), null, {
101
123
  default: withCtx(() => [
102
124
  (openBlock(true), createElementBlock(Fragment, null, renderList(numberKeys.value, (key) => {
@@ -104,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
126
  key,
105
127
  class: normalizeClass(key === "0" ? "is-0" : ""),
106
128
  onClick: ($event) => keydown(key)
107
- }, toDisplayString(key), 11, _hoisted_4);
129
+ }, toDisplayString(key), 11, _hoisted_3);
108
130
  }), 128))
109
131
  ]),
110
132
  _: 1
@@ -138,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
160
  class: "btn",
139
161
  key: day,
140
162
  onClick: ($event) => keydown(day)
141
- }, toDisplayString(day) + "\u5929", 9, _hoisted_5);
163
+ }, toDisplayString(day) + "\u5929", 9, _hoisted_4);
142
164
  }), 128))
143
165
  ]),
144
166
  _: 1
@@ -149,13 +171,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
171
  "wrap-item": false
150
172
  }, {
151
173
  default: withCtx(() => [
152
- createElementVNode("div", _hoisted_6, [
174
+ createElementVNode("div", _hoisted_5, [
153
175
  (openBlock(true), createElementBlock(Fragment, null, renderList(doses.value, (dose) => {
154
176
  return openBlock(), createElementBlock("span", {
155
177
  class: "btn",
156
178
  key: dose,
157
179
  onClick: ($event) => updateFraction(dose)
158
- }, "1/" + toDisplayString(dose), 9, _hoisted_7);
180
+ }, "1/" + toDisplayString(dose), 9, _hoisted_6);
159
181
  }), 128))
160
182
  ]),
161
183
  createVNode(unref(NSpace), {
@@ -163,13 +185,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
185
  vertical: ""
164
186
  }, {
165
187
  default: withCtx(() => [
166
- createElementVNode("div", _hoisted_8, [
188
+ createElementVNode("div", _hoisted_7, [
167
189
  createVNode(InputNumber, {
168
190
  integer: "",
169
191
  modelValue: integerValue.value,
170
192
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => integerValue.value = $event)
171
193
  }, null, 8, ["modelValue"]),
172
- createElementVNode("div", _hoisted_9, [
194
+ createElementVNode("div", _hoisted_8, [
173
195
  createVNode(InputNumber, {
174
196
  integer: "",
175
197
  modelValue: numeratorValue.value,
@@ -177,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
199
  status: numeratorValueStatus.value,
178
200
  "onUpdate:status": _cache[6] || (_cache[6] = ($event) => numeratorValueStatus.value = $event)
179
201
  }, null, 8, ["modelValue", "status"]),
180
- _hoisted_10,
202
+ _hoisted_9,
181
203
  createVNode(InputNumber, {
182
204
  integer: "",
183
205
  modelValue: denominatorValue.value,
@@ -197,7 +219,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
197
219
  ]),
198
220
  _: 1
199
221
  })) : createCommentVNode("v-if", true)
200
- ]);
222
+ ], 6);
201
223
  };
202
224
  }
203
225
  });
@@ -1 +1 @@
1
- .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{display:flex;height:160px}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .btn:active{background:#2474ff;color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .left{border-right:1px solid #d5d5d5;box-sizing:border-box;padding:6px;width:130px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys .n-space{gap:4px 4px!important}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .left .keys span:active{background:#2474ff;color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;width:56px}.c-keyboard .right-dose{gap:8px 8px!important;padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;gap:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space{gap:0 0!important}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;gap:4px 4px;margin-top:5px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard-english .keys span:active{background:#2474ff;color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
1
+ .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{background:#fff;display:flex;height:160px}.c-keyboard.isFixed{position:fixed;z-index:1}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .btn:active{background:#2474ff;color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .left{border-right:1px solid #d5d5d5;box-sizing:border-box;padding:6px;width:130px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys .n-space{gap:4px 4px!important}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .left .keys span:active{background:#2474ff;color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;width:56px}.c-keyboard .right-dose{gap:8px 8px!important;padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;gap:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space{gap:0 0!important}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;gap:4px 4px;margin-top:5px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard-english .keys span:active{background:#2474ff;color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
@@ -104,14 +104,13 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
104
104
  allCheckedKeys: never[];
105
105
  isRemote: import("vue").ComputedRef<boolean>;
106
106
  init: () => void;
107
- transformTree: (tree: any) => void;
108
107
  setDisabled: (data: any) => void;
109
108
  renderLabel: ({ option }: {
110
109
  option: any;
111
110
  }) => any;
112
111
  getLabelName: (option: any) => any;
113
112
  setAllCheckedKeys: (tree: any) => void;
114
- searchClick: () => Promise<void>;
113
+ onSearch: () => Promise<void>;
115
114
  setTreeCheckd: (tree: any, checked: any) => void;
116
115
  checkedAllChange: (checked: any) => void;
117
116
  uniq: (arr: any) => any;
@@ -103,14 +103,13 @@ declare const _default: import("vue").DefineComponent<{
103
103
  allCheckedKeys: never[];
104
104
  isRemote: import("vue").ComputedRef<boolean>;
105
105
  init: () => void;
106
- transformTree: (tree: any) => void;
107
106
  setDisabled: (data: any) => void;
108
107
  renderLabel: ({ option }: {
109
108
  option: any;
110
109
  }) => any;
111
110
  getLabelName: (option: any) => any;
112
111
  setAllCheckedKeys: (tree: any) => void;
113
- searchClick: () => Promise<void>;
112
+ onSearch: () => Promise<void>;
114
113
  setTreeCheckd: (tree: any, checked: any) => void;
115
114
  checkedAllChange: (checked: any) => void;
116
115
  uniq: (arr: any) => any;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createBlock, unref, withCtx, createVNode, withKeys, createTextVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createElementBlock, createElementVNode, Fragment, renderList } from 'vue';
2
2
  import { NGrid, NGi, NSpace, NInputGroup, NInput, NButton, NCheckbox, NTree, NIcon, NTooltip } from 'naive-ui';
3
3
  import { CloseCircleSharp } from '@vicons/ionicons5';
4
- import { filterTree } from './utils/index.js';
4
+ import { filterTree, getExpandedKeys } from './utils/index.js';
5
5
  import { cloneDeep } from 'lodash-es';
6
6
 
7
7
  const _hoisted_1 = {
@@ -88,22 +88,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
88
88
  setTagData(temp);
89
89
  }
90
90
  }
91
- }
92
- function transformTree(tree) {
93
- var _a, _b;
94
- for (let i = 0, len = tree.length; i < len; i++) {
95
- const item = tree[i];
96
- item.title = getLabelName(item);
97
- if (!item.key)
98
- item.key = item[props.wordbookChild.user_id_obj] || item[props.wordbook.parent_id_obj] || Date.now();
99
- if ((_a = item.children) == null ? void 0 : _a.length) {
100
- transformTree(item.children);
101
- setDisabled(item);
102
- } else if (((_b = item.children) == null ? void 0 : _b.length) === 0) {
103
- Reflect.deleteProperty(item, "children");
91
+ function transformTree(tree) {
92
+ var _a, _b;
93
+ for (let i = 0, len = tree.length; i < len; i++) {
94
+ const item = tree[i];
95
+ item.title = getLabelName(item);
96
+ if (!item.key)
97
+ item.key = item[props.wordbookChild.user_id_obj] || item[props.wordbook.parent_id_obj] || Date.now();
98
+ if ((_a = item.children) == null ? void 0 : _a.length) {
99
+ transformTree(item.children);
100
+ setDisabled(item);
101
+ } else if (((_b = item.children) == null ? void 0 : _b.length) === 0) {
102
+ Reflect.deleteProperty(item, "children");
103
+ }
104
+ if (!item.disabled && !item.children)
105
+ allCheckedKeys.push(item.key);
104
106
  }
105
- if (!item.disabled && !item.children)
106
- allCheckedKeys.push(item.key);
107
107
  }
108
108
  }
109
109
  function setDisabled(data) {
@@ -141,7 +141,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
141
141
  allCheckedKeys.push(item.key);
142
142
  }
143
143
  }
144
- async function searchClick() {
144
+ async function onSearch() {
145
145
  if (!isRemote.value) {
146
146
  treeData.value = filterTree(temp, keyword.value);
147
147
  allCheckedKeys = [];
@@ -150,6 +150,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
150
150
  } else {
151
151
  treeData.value = await props.queryTreeSearch(keyword.value);
152
152
  }
153
+ expandedKeys.value = treeData.value.length && keyword.value ? getExpandedKeys(treeData.value) : [];
153
154
  }
154
155
  function setTreeCheckd(tree, checked) {
155
156
  for (let i = 0, len = tree.length; i < len; i++) {
@@ -223,10 +224,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
223
224
  value: keyword.value,
224
225
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => keyword.value = $event),
225
226
  placeholder: __props.searchPlaceholder,
226
- onKeyup: withKeys(searchClick, ["enter"])
227
+ onKeyup: withKeys(onSearch, ["enter"])
227
228
  }, null, 8, ["value", "placeholder", "onKeyup"]), createVNode(unref(NButton), {
228
229
  type: "primary",
229
- onClick: searchClick
230
+ onClick: onSearch
230
231
  }, {
231
232
  default: withCtx(() => [createTextVNode(toDisplayString(__props.searchButtonText), 1)]),
232
233
  _: 1
@@ -1,2 +1,3 @@
1
1
  import { type TreeOption } from 'naive-ui';
2
2
  export declare function filterTree(data: TreeOption[], keyword: string): TreeOption[];
3
+ export declare function getExpandedKeys(tree: TreeOption[]): (string | number)[];
@@ -40,5 +40,19 @@ function filterHandle(data) {
40
40
  return false;
41
41
  });
42
42
  }
43
+ function getExpandedKeys(tree) {
44
+ const expandedKeys = [];
45
+ getExpandedKeys2(tree);
46
+ function getExpandedKeys2(tree2) {
47
+ for (let i = 0, len = tree2.length; i < len; i++) {
48
+ const item = tree2[i];
49
+ if (item.children) {
50
+ expandedKeys.push(item.key);
51
+ getExpandedKeys2(item.children);
52
+ }
53
+ }
54
+ }
55
+ return expandedKeys;
56
+ }
43
57
 
44
- export { filterTree };
58
+ export { filterTree, getExpandedKeys };