cnhis-design-vue 3.1.18-beta.8 → 3.1.19-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 (133) hide show
  1. package/es/components/annotation-edit/style/index.css +1 -15
  2. package/es/components/big-table/index.d.ts +9 -3395
  3. package/es/components/big-table/src/BigTable.vue.d.ts +9 -3396
  4. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +12 -4
  5. package/es/components/big-table/src/components/edit-form/edit-date.d.ts +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-input.d.ts +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-input.js +4 -1
  8. package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +2 -2
  9. package/es/components/big-table/src/components/edit-form/edit-select.d.ts +1 -1
  10. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +2 -1163
  11. package/es/components/big-table/src/components/edit-form/edit-time.d.ts +1 -1
  12. package/es/components/big-table/src/components/input-button.vue.d.ts +2 -2263
  13. package/es/components/big-table/src/hooks/useEdit.d.ts +7 -1168
  14. package/es/components/big-table/src/hooks/useEvent2.js +22 -7
  15. package/es/components/big-table/style/index.css +1 -634
  16. package/es/components/bpmn-workflow/style/index.css +1 -29
  17. package/es/components/button-print/index.d.ts +16 -6819
  18. package/es/components/button-print/src/ButtonPrint.vue.d.ts +16 -6819
  19. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +10 -4469
  20. package/es/components/button-print/src/utils/print.d.ts +1 -1
  21. package/es/components/button-print/src/utils/print2.js +12 -14
  22. package/es/components/button-print/style/index.css +1 -24
  23. package/es/components/chunk-upload/index.d.ts +2 -1472
  24. package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +3 -1742
  25. package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +2 -1472
  26. package/es/components/chunk-upload/style/index.css +1 -365
  27. package/es/components/drag-layout/index.d.ts +155 -19744
  28. package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +5 -8012
  29. package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +4 -3107
  30. package/es/components/drag-layout/src/DragLayout.vue.d.ts +156 -19745
  31. package/es/components/drag-layout/style/index.css +1 -175
  32. package/es/components/fabric-chart/index.d.ts +2 -2
  33. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  34. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/useCenter2.js +58 -38
  36. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -0
  37. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/useDraw2.js +30 -1
  39. package/es/components/fabric-chart/src/hooks/useLeft2.js +8 -1
  40. package/es/components/fabric-chart/style/index.css +1 -43
  41. package/es/components/field-set/index.d.ts +8 -6824
  42. package/es/components/field-set/src/FieldSet.vue.d.ts +8 -6824
  43. package/es/components/field-set/style/index.css +1 -139
  44. package/es/components/form-config/index.d.ts +17 -8976
  45. package/es/components/form-config/src/FormConfig.vue.d.ts +17 -8976
  46. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +9 -4487
  47. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +7 -3091
  48. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +2 -1472
  49. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -1472
  50. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +4 -3195
  51. package/es/components/form-config/src/utils/index2.js +1 -1
  52. package/es/components/form-config/style/index.css +1 -158
  53. package/es/components/form-render/index.d.ts +6 -1154
  54. package/es/components/form-render/src/FormRender.vue.d.ts +7 -1155
  55. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  56. package/es/components/form-render/src/components/renderer/linebar.d.ts +1 -1
  57. package/es/components/form-render/src/components/renderer/select.js +1 -1
  58. package/es/components/form-render/src/hooks/useCommonLog2.js +1 -1
  59. package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +1 -1
  60. package/es/components/form-render/src/utils/business.d.ts +1 -1
  61. package/es/components/form-render/src/utils/index.d.ts +1 -1
  62. package/es/components/form-render/src/utils/index.js +2 -2
  63. package/es/components/form-render/style/index.css +1 -146
  64. package/es/components/form-table/index.d.ts +43 -32166
  65. package/es/components/form-table/src/FormTable.vue.d.ts +43 -32180
  66. package/es/components/form-table/src/components/index.d.ts +43 -32166
  67. package/es/components/form-table/src/components/table-age.vue.d.ts +5 -4007
  68. package/es/components/form-table/src/components/table-date-picker.vue.d.ts +3 -5084
  69. package/es/components/form-table/src/components/table-digital.vue.d.ts +4 -2672
  70. package/es/components/form-table/src/components/table-input-password.vue.d.ts +4 -1344
  71. package/es/components/form-table/src/components/table-input.vue.d.ts +4 -1344
  72. package/es/components/form-table/src/components/table-month-picker.vue.d.ts +2 -5083
  73. package/es/components/form-table/src/components/table-search-more.vue.d.ts +2 -1401
  74. package/es/components/form-table/src/components/table-search.vue.d.ts +3 -2736
  75. package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +2 -1336
  76. package/es/components/form-table/src/components/table-select.vue.d.ts +2 -1336
  77. package/es/components/form-table/src/components/table-textarea.vue.d.ts +5 -1345
  78. package/es/components/form-table/src/components/table-time-picker.vue.d.ts +2 -2438
  79. package/es/components/form-table/src/components/table-tree-select.vue.d.ts +2 -1559
  80. package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +2 -480
  81. package/es/components/form-table/style/index.css +1 -214
  82. package/es/components/grid/src/hooks2.js +1 -0
  83. package/es/components/grid/style/index.css +1 -10
  84. package/es/components/index.css +1 -3346
  85. package/es/components/info-header/index.d.ts +16 -2561
  86. package/es/components/info-header/src/HiddenContent.vue.d.ts +4 -804
  87. package/es/components/info-header/src/InfoEllipsis.vue.d.ts +3 -803
  88. package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -2560
  89. package/es/components/info-header/style/index.css +1 -121
  90. package/es/components/map/index.d.ts +2 -2263
  91. package/es/components/map/src/Map.vue.d.ts +2 -2263
  92. package/es/components/map/style/index.css +1 -61
  93. package/es/components/scale-view/index.d.ts +12 -3073
  94. package/es/components/scale-view/src/ScaleView.vue.d.ts +8 -3070
  95. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
  96. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +1 -1400
  97. package/es/components/scale-view/src/components/formitem/r-address.d.ts +1 -1
  98. package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +1 -1
  99. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +1 -1
  100. package/es/components/scale-view/src/components/formitem/r-collection.d.ts +1 -1
  101. package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +1 -1
  102. package/es/components/scale-view/src/components/formitem/r-input.d.ts +1 -1
  103. package/es/components/scale-view/src/components/formitem/r-map.d.ts +1 -1
  104. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +1 -1
  105. package/es/components/scale-view/src/components/formitem/r-select.d.ts +1 -1
  106. package/es/components/scale-view/src/components/formitem/r-upload.d.ts +1 -1
  107. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +2 -480
  108. package/es/components/scale-view/src/hooks/use-component.d.ts +39 -8514
  109. package/es/components/scale-view/style/index.css +1 -738
  110. package/es/components/select-label/index.d.ts +24 -11264
  111. package/es/components/select-label/src/LabelFormContent.vue.d.ts +10 -4250
  112. package/es/components/select-label/src/SelectLabel.vue.d.ts +14 -7027
  113. package/es/components/select-label/src/components/label-classify.vue.d.ts +5 -3482
  114. package/es/components/select-label/style/index.css +1 -164
  115. package/es/components/select-person/index.d.ts +9 -5369
  116. package/es/components/select-person/src/SearchTree.vue.d.ts +3 -1339
  117. package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -5369
  118. package/es/components/select-person/style/index.css +1 -193
  119. package/es/components/shortcut-provider/style/index.css +1 -3
  120. package/es/components/shortcut-setter/index.d.ts +6 -1154
  121. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -1154
  122. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1 -863
  123. package/es/components/shortcut-setter/style/index.css +1 -8
  124. package/es/components/steps-wheel/index.d.ts +1 -479
  125. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -479
  126. package/es/components/steps-wheel/style/index.css +1 -161
  127. package/es/components/time-line/index.d.ts +7 -1672
  128. package/es/components/time-line/src/TimeLine.vue.d.ts +6 -1671
  129. package/es/components/time-line/style/index.css +1 -37
  130. package/es/env.d.ts +0 -18
  131. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1400
  132. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +2 -480
  133. package/package.json +2 -2
@@ -1,175 +1 @@
1
- .drag-layout-container {
2
- width: 100%;
3
- height: 100%;
4
- flex: 1;
5
- overflow: hidden;
6
- overflow-y: auto;
7
- position: relative;
8
- display: flex;
9
- justify-content: flex-start;
10
- border: 1px solid #d2d9e8;
11
- text-align: left;
12
- }
13
- .drag-layout-container .min-height {
14
- height: calc(100% - 60px);
15
- overflow: hidden;
16
- overflow-y: auto;
17
- }
18
- .drag-layout-container .min-height li {
19
- list-style: none;
20
- }
21
- .drag-layout-container .border-box {
22
- position: absolute;
23
- top: 0;
24
- left: 30%;
25
- border-left: 1px solid #d2d9e8;
26
- height: 100%;
27
- }
28
- .drag-layout-container .text-area {
29
- width: 30%;
30
- height: 100%;
31
- overflow-y: auto;
32
- padding: 0 !important;
33
- }
34
- .drag-layout-container .text-area .info-header {
35
- display: flex;
36
- height: 50px;
37
- line-height: 50px;
38
- padding: 0 10px;
39
- margin-bottom: 10px;
40
- color: #2e2e2e;
41
- font-size: 18px;
42
- font-weight: bold;
43
- background: #e6eaef;
44
- }
45
- .drag-layout-container .text-area .text-draggable {
46
- display: flex;
47
- flex-wrap: wrap;
48
- justify-content: space-between;
49
- align-items: flex-start;
50
- padding: 0 12px 12px;
51
- box-sizing: border-box;
52
- align-content: flex-start;
53
- }
54
- .drag-layout-container .text-area .text-draggable li {
55
- width: 49%;
56
- text-align: center;
57
- }
58
- .drag-layout-container .form-area {
59
- position: relative;
60
- width: 70%;
61
- height: 100%;
62
- overflow-y: auto;
63
- padding: 4px;
64
- box-sizing: border-box;
65
- }
66
- .drag-layout-container .form-area::-webkit-scrollbar {
67
- width: 5px;
68
- }
69
- .drag-layout-container .form-area .info-header {
70
- height: 50px;
71
- margin-bottom: 10px;
72
- background: unset;
73
- display: flex;
74
- justify-content: flex-end;
75
- align-items: center;
76
- }
77
- .drag-layout-container .form-area .combination-col {
78
- border: 1px solid #cdc5d3;
79
- margin-bottom: 10px;
80
- }
81
- .dragForm-select-drop {
82
- z-index: 2001;
83
- }
84
- .DragFormRightItem {
85
- position: relative;
86
- }
87
- .DragFormRightItem .is-edit-class {
88
- background-color: #f5f5f5 !important;
89
- border-color: #d9d9d9 !important;
90
- }
91
- .DragFormRightItem .combination-item {
92
- padding: 0px 8px 8px;
93
- }
94
- .DragFormRightItem .combination-item > div {
95
- line-height: 35px;
96
- }
97
- .DragFormRightItem .combination-item > div:hover > .form-btn {
98
- display: flex;
99
- }
100
- .DragFormRightItem .form-btn {
101
- display: none;
102
- align-items: center;
103
- position: absolute;
104
- top: -1px;
105
- right: 0px;
106
- height: 100%;
107
- white-space: nowrap;
108
- }
109
- .DragFormRightItem .form-btn .quick-reply {
110
- display: inline-block;
111
- border: 1px dashed #cdc5d3;
112
- font-size: 12px;
113
- height: 22px;
114
- line-height: 1.499;
115
- }
116
- .DragFormRightItem .form-btn:deep(.n-input),
117
- .DragFormRightItem .form-btn:deep(.n-select) {
118
- margin-left: 5px;
119
- }
120
- .DragFormRightItem .form-btn:deep(.n-select) {
121
- top: -3px;
122
- }
123
- .DragFormRightItem .right-content {
124
- border: 1px dashed #cdc5d3;
125
- background: #fdfdfd;
126
- height: 35px;
127
- line-height: 35px;
128
- padding: 0 10px;
129
- position: relative;
130
- margin-bottom: 10px;
131
- cursor: pointer;
132
- }
133
- .DragFormRightItem .right-content:hover .form-btn {
134
- display: flex;
135
- }
136
- .DragFormRightItem .blue-border {
137
- border: 1px solid #5585f5 !important;
138
- }
139
- .DragFormRightItem .item-opacity {
140
- opacity: 0.5;
141
- }
142
- .DragFormRightItem .red {
143
- color: red;
144
- }
145
- .DragFormLeftItem .left-content {
146
- width: 100%;
147
- margin-bottom: 16px;
148
- overflow: hidden;
149
- cursor: pointer;
150
- color: #2e2e2e;
151
- }
152
- .DragFormLeftItem .left-content .style-box {
153
- display: flex;
154
- justify-content: center;
155
- align-items: center;
156
- width: 100%;
157
- height: 60px;
158
- padding: 0 8px;
159
- box-sizing: border-box;
160
- margin-bottom: 8px;
161
- background: #f3f5f8;
162
- }
163
- .DragFormLeftItem .left-content .style-box-input {
164
- width: 85%;
165
- overflow: hidden;
166
- text-overflow: ellipsis;
167
- white-space: nowrap;
168
- cursor: pointer !important;
169
- }
170
- .DragFormLeftItem .left-content .style-box input[type='radio'][disabled],
171
- .DragFormLeftItem .left-content .style-box input[type='checkbox'][disabled],
172
- .DragFormLeftItem .left-content .style-box input[type='radio'].disabled,
173
- .DragFormLeftItem .left-content .style-box input[type='checkbox'].disabled {
174
- cursor: pointer !important;
175
- }
1
+ .drag-layout-container{border:1px solid #d2d9e8;display:flex;flex:1;height:100%;justify-content:flex-start;overflow:hidden;overflow-y:auto;position:relative;text-align:left;width:100%}.drag-layout-container .min-height{height:calc(100% - 60px);overflow:hidden;overflow-y:auto}.drag-layout-container .min-height li{list-style:none}.drag-layout-container .border-box{border-left:1px solid #d2d9e8;height:100%;left:30%;position:absolute;top:0}.drag-layout-container .text-area{height:100%;overflow-y:auto;padding:0!important;width:30%}.drag-layout-container .text-area .info-header{background:#e6eaef;color:#2e2e2e;display:flex;font-size:18px;font-weight:700;height:50px;line-height:50px;margin-bottom:10px;padding:0 10px}.drag-layout-container .text-area .text-draggable{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-between;padding:0 12px 12px}.drag-layout-container .text-area .text-draggable li{text-align:center;width:49%}.drag-layout-container .form-area{box-sizing:border-box;height:100%;overflow-y:auto;padding:4px;position:relative;width:70%}.drag-layout-container .form-area::-webkit-scrollbar{width:5px}.drag-layout-container .form-area .info-header{align-items:center;background:unset;display:flex;height:50px;justify-content:flex-end;margin-bottom:10px}.drag-layout-container .form-area .combination-col{border:1px solid #cdc5d3;margin-bottom:10px}.dragForm-select-drop{z-index:2001}.DragFormRightItem{position:relative}.DragFormRightItem .is-edit-class{background-color:#f5f5f5!important;border-color:#d9d9d9!important}.DragFormRightItem .combination-item{padding:0 8px 8px}.DragFormRightItem .combination-item>div{line-height:35px}.DragFormRightItem .combination-item>div:hover>.form-btn{display:flex}.DragFormRightItem .form-btn{align-items:center;display:none;height:100%;position:absolute;right:0;top:-1px;white-space:nowrap}.DragFormRightItem .form-btn .quick-reply{border:1px dashed #cdc5d3;display:inline-block;font-size:12px;height:22px;line-height:1.499}.DragFormRightItem .form-btn:deep(.n-input),.DragFormRightItem .form-btn:deep(.n-select){margin-left:5px}.DragFormRightItem .form-btn:deep(.n-select){top:-3px}.DragFormRightItem .right-content{background:#fdfdfd;border:1px dashed #cdc5d3;cursor:pointer;height:35px;line-height:35px;margin-bottom:10px;padding:0 10px;position:relative}.DragFormRightItem .right-content:hover .form-btn{display:flex}.DragFormRightItem .blue-border{border:1px solid #5585f5!important}.DragFormRightItem .item-opacity{opacity:.5}.DragFormRightItem .red{color:red}.DragFormLeftItem .left-content{color:#2e2e2e;cursor:pointer;margin-bottom:16px;overflow:hidden;width:100%}.DragFormLeftItem .left-content .style-box{align-items:center;background:#f3f5f8;box-sizing:border-box;display:flex;height:60px;justify-content:center;margin-bottom:8px;padding:0 8px;width:100%}.DragFormLeftItem .left-content .style-box-input{cursor:pointer!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}.DragFormLeftItem .left-content .style-box input[type=checkbox].disabled,.DragFormLeftItem .left-content .style-box input[type=checkbox][disabled],.DragFormLeftItem .left-content .style-box input[type=radio].disabled,.DragFormLeftItem .left-content .style-box input[type=radio][disabled]{cursor:pointer!important}
@@ -14,7 +14,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
14
14
  data: import("./src/interface").IData;
15
15
  addRenderItem?: Function | undefined;
16
16
  };
17
- emits: (event: "select" | "change" | "add", ...args: any[]) => void;
17
+ emits: (event: "change" | "add" | "select", ...args: any[]) => void;
18
18
  select: import("vue").Ref<any>;
19
19
  canvasRef: any;
20
20
  canvas: import("vue").Ref<any>;
@@ -187,7 +187,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
187
187
  show: boolean;
188
188
  list: unknown[];
189
189
  }>;
190
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "add")[], "select" | "change" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
190
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "select")[], "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
191
191
  data: {
192
192
  type: null;
193
193
  required: true;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  data: IData;
16
16
  addRenderItem?: Function | undefined;
17
17
  };
18
- emits: (event: "select" | "change" | "add", ...args: any[]) => void;
18
+ emits: (event: "change" | "add" | "select", ...args: any[]) => void;
19
19
  select: import("vue").Ref<any>;
20
20
  canvasRef: any;
21
21
  canvas: import("vue").Ref<any>;
@@ -188,7 +188,7 @@ declare const _default: import("vue").DefineComponent<{
188
188
  show: boolean;
189
189
  list: unknown[];
190
190
  }>;
191
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "add")[], "select" | "change" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
191
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "select")[], "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
192
192
  data: {
193
193
  type: null;
194
194
  required: true;
@@ -1,4 +1,4 @@
1
- export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawLine, drawPoint, drawTextGroup } from './useDraw2.js';
1
+ export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup } from './useDraw2.js';
2
2
  export { useCumputedPoint } from './useCumputedPoint2.js';
3
3
  export { useTop } from './useTop2.js';
4
4
  export { useLeft } from './useLeft2.js';
@@ -1,6 +1,6 @@
1
1
  import { reactive, onMounted, nextTick } from 'vue';
2
2
  import { fabric } from '../utils/index.js';
3
- import { drawLine, defaultStyle, drawPoint, defaultTextStyle } from './useDraw2.js';
3
+ import { drawLine, defaultStyle, drawPoint, drawText, drawArrow } from './useDraw2.js';
4
4
  import useGrid from './useGrid2.js';
5
5
  import { useShadow } from './useShadow2.js';
6
6
  import { TEMPERATURE_MENU, PAIN_MENU } from './constant2.js';
@@ -228,8 +228,22 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
228
228
  });
229
229
  }
230
230
  function drawPolyLine(item, dataIndex, scaleValue) {
231
- const { pointAttr = {}, lineAttr = {}, type = "circle" } = item;
232
- const { noRiseStyle = {}, verifiedStyle = {}, reduceStyle = {}, pacemaker = {} } = scaleValue;
231
+ const {
232
+ pointAttr = {},
233
+ lineAttr = {},
234
+ type: pointType = "circle",
235
+ upArrowShow = false,
236
+ limitValueShow = false
237
+ } = item;
238
+ const {
239
+ type,
240
+ noRiseStyle = {},
241
+ verifiedStyle = {},
242
+ reduceStyle = {},
243
+ pacemaker = {},
244
+ upArrowStyle = {},
245
+ limitValueStyle = {}
246
+ } = scaleValue;
233
247
  const pointList = [];
234
248
  const lineList = [];
235
249
  const otherList = [];
@@ -239,7 +253,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
239
253
  const nextV = item.list[index + 1];
240
254
  const nextPoint = getPointer(nextV, scaleValue);
241
255
  let reduceLine, reducePoint, noRiseText, arrowGroup, verifiedText;
242
- if ((points == null ? void 0 : points.length) && (scaleValue.type === "temperature" || scaleValue.type === "pain")) {
256
+ if ((points == null ? void 0 : points.length) && (type === "temperature" || type === "pain")) {
243
257
  if (v.noRise) {
244
258
  if (typeof v.noRise === "string") {
245
259
  noRiseText = drawText([points[0], points[1] + 5], {
@@ -250,22 +264,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
250
264
  otherList.push(noRiseText);
251
265
  } else {
252
266
  const top = points[1] + yCellHeight * 2;
253
- const arrowLine = drawLine([...points, points[0], top], {
254
- ...lineAttr,
255
- stroke: noRiseStyle.fill
256
- });
257
- const arrow = drawText([points[0] + 0.5, top + 3], {
258
- value: "v",
259
- originX: "center",
260
- originY: "bottom",
261
- fontSize: 16,
262
- ...noRiseStyle
263
- });
264
- arrowGroup = new fabric.Group([arrowLine, arrow], {
265
- ...defaultStyle,
266
- originX: "center",
267
- originY: "top"
268
- });
267
+ arrowGroup = drawArrow([points[0], points[1], top], noRiseStyle);
269
268
  otherList.push(arrowGroup);
270
269
  }
271
270
  }
@@ -279,7 +278,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
279
278
  otherList.push(verifiedText);
280
279
  }
281
280
  if (v.physicsReduce || v.drugReduce) {
282
- const reduceY = cumputedY(scaleValue.type, scaleValue.list, v.physicsReduce || v.drugReduce);
281
+ const reduceY = cumputedY(type, scaleValue.list, v.physicsReduce || v.drugReduce);
283
282
  reduceLine = drawLine([...points, points[0], reduceY], {
284
283
  ...lineAttr,
285
284
  ...reduceStyle.line,
@@ -295,13 +294,43 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
295
294
  reducePoint && otherList.push(reducePoint);
296
295
  }
297
296
  }
297
+ if ((points == null ? void 0 : points.length) && type === "pulse") {
298
+ let upArrow;
299
+ if (upArrowShow && v.value > 180) {
300
+ let top = points[1] - yCellHeight * 2.5;
301
+ let yArr = [points[1] - yCellHeight / 2, top];
302
+ if (top < vitalSignsOriginY.originY) {
303
+ top = points[1] + yCellHeight * 2.5;
304
+ yArr = [top, points[1] + yCellHeight / 2];
305
+ }
306
+ upArrow = drawArrow([points[0], yArr[0], yArr[1]], upArrowStyle, "up");
307
+ otherList.push(upArrow);
308
+ }
309
+ if (limitValueShow) {
310
+ const commonOptions = {
311
+ value: v.value,
312
+ originX: "center",
313
+ originY: "center",
314
+ ...limitValueStyle
315
+ };
316
+ if (v.value > Math.max(...scaleValue.list)) {
317
+ const top = upArrow ? points[1] + yCellHeight / 2 + upArrow.height : points[1] + yCellHeight;
318
+ const limitValue = drawText([points[0], top], commonOptions);
319
+ otherList.push(limitValue);
320
+ }
321
+ if (v.value < Math.min(...scaleValue.list)) {
322
+ const limitValue = drawText([points[0], points[1] - yCellHeight], commonOptions);
323
+ otherList.push(limitValue);
324
+ }
325
+ }
326
+ }
298
327
  let point;
299
328
  let line;
300
329
  if (points && nextPoint && !v.breakpoint) {
301
330
  line = drawLine([...points, ...nextPoint], {
302
331
  ...lineAttr
303
332
  });
304
- } else if (points && !nextPoint && !v.breakpoint && scaleValue.type === "temperature" && dataIndex < scaleValue.dataList.length - 1 && index === item.list.length - 1) {
333
+ } else if (points && !nextPoint && !v.breakpoint && type === "temperature" && dataIndex < scaleValue.dataList.length - 1 && index === item.list.length - 1) {
305
334
  const nextV2 = (_b = scaleValue.dataList[dataIndex + 1].list) == null ? void 0 : _b[0];
306
335
  const nextLinePoint = getPointer(nextV2, scaleValue);
307
336
  line = nextLinePoint ? drawLine([...points, ...nextLinePoint], {
@@ -319,7 +348,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
319
348
  title: item.title,
320
349
  key: item.key || "",
321
350
  unit: scaleValue.unit,
322
- type: scaleValue.type,
351
+ type,
323
352
  dataIndex,
324
353
  index
325
354
  },
@@ -331,12 +360,12 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
331
360
  reduceLine,
332
361
  reducePoint,
333
362
  lockMovementX: true,
334
- ...pacemaker.show && scaleValue.type == "pulse" ? pacemaker.style : pointAttr,
363
+ ...v.pacemakerShow && type == "pulse" ? pacemaker.style : pointAttr,
335
364
  ...propItems.event
336
365
  };
337
- const pointType = pacemaker.show && scaleValue.type == "pulse" ? pacemaker.value : type;
366
+ const currentPointType = v.pacemakerShow && type == "pulse" ? pacemaker.value : pointType;
338
367
  if (previousLine) {
339
- point = drawPoint(pointType, {
368
+ point = drawPoint(currentPointType, {
340
369
  left: previousLine.get("x2"),
341
370
  top: previousLine.get("y2"),
342
371
  ...pointAttrNew
@@ -344,13 +373,13 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
344
373
  } else {
345
374
  if (points) {
346
375
  pointAttrNew.leftLine = null;
347
- if (scaleValue.type == "temperature" && index === 0) {
376
+ if (type == "temperature" && index === 0) {
348
377
  const objLine = [...prevLines].find((v2) => v2.dataIndex === dataIndex - 1);
349
378
  if (objLine) {
350
379
  pointAttrNew.leftLine = objLine.line;
351
380
  }
352
381
  }
353
- point = drawPoint(pointType, {
382
+ point = drawPoint(currentPointType, {
354
383
  left: points[0],
355
384
  top: points[1],
356
385
  ...pointAttrNew
@@ -368,7 +397,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
368
397
  pointList.push(point);
369
398
  }
370
399
  });
371
- scaleValue.type === "pulse" && shadowPointCache.push(pointList);
400
+ type === "pulse" && shadowPointCache.push(pointList);
372
401
  Promise.all(pointList).then((res) => {
373
402
  const lineListFilter = lineList.filter((v) => v);
374
403
  let prevPoint = null;
@@ -476,15 +505,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
476
505
  }
477
506
  drawShaDow(point);
478
507
  }
479
- function drawText([x, y], style) {
480
- const text = new fabric.Text(style.value, {
481
- ...defaultTextStyle,
482
- left: x,
483
- top: y,
484
- ...style
485
- });
486
- return text;
487
- }
488
508
  function isLimit(time) {
489
509
  const [minScale] = xScaleList;
490
510
  const maxScale = xScaleList.at(-1);
@@ -38,5 +38,7 @@ export declare const defaultTextStyle: {
38
38
  lineHeight: number;
39
39
  };
40
40
  export declare function drawLine(points: number[], style: Partial<ILineOptions>): fabric.Line;
41
+ export declare function drawText([x, y]: [x: number, y: number], style: ITextOptions): fabric.Text;
42
+ export declare function drawArrow([x, y1, y2]: [x: number, y1: number, y2: number], style: ITextOptions | any, type?: string): fabric.Group;
41
43
  export declare function drawTextGroup(rectStyle: Partial<fabric.IRectOptions>, fontStyle: Partial<ITextOptions>, groupStyle: Partial<fabric.IGroupOptions>): fabric.Group;
42
44
  export declare function drawPoint(type: string | undefined, style: any): fabric.Object;
@@ -1 +1 @@
1
- export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawLine, drawPoint, drawTextGroup } from './useDraw2.js';
1
+ export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup } from './useDraw2.js';
@@ -39,6 +39,35 @@ function drawLine(points, style) {
39
39
  ...style
40
40
  });
41
41
  }
42
+ function drawText([x, y], style) {
43
+ const text = new fabric.Text(String(style.value), {
44
+ ...defaultTextStyle,
45
+ left: x,
46
+ top: y,
47
+ ...style
48
+ });
49
+ return text;
50
+ }
51
+ function drawArrow([x, y1, y2], style, type = "down") {
52
+ const arrowLine = drawLine([x, y1, x, y2], {
53
+ strokeWidth: 1,
54
+ stroke: style.fill
55
+ });
56
+ const arrow = drawText([x + 0.5, type === "up" ? y2 - 3 : y2 + 3], {
57
+ value: "v",
58
+ originX: "center",
59
+ originY: "bottom",
60
+ fontSize: 16,
61
+ angle: type === "up" ? 180 : 0,
62
+ ...style
63
+ });
64
+ const arrowGroup = new fabric.Group([arrowLine, arrow], {
65
+ ...defaultStyle,
66
+ originX: "center",
67
+ originY: "top"
68
+ });
69
+ return arrowGroup;
70
+ }
42
71
  function drawTextGroup(rectStyle, fontStyle, groupStyle) {
43
72
  const rect = new fabric.Rect({
44
73
  ...defaultRectStyle,
@@ -150,4 +179,4 @@ function drawPoint(type = "circle", style) {
150
179
  }
151
180
  }
152
181
 
153
- export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawLine, drawPoint, drawTextGroup };
182
+ export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup };
@@ -136,7 +136,14 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
136
136
  const isMaxMinNumber = i === 0 || i === listLen - 1;
137
137
  if (item.showNumber && (isMaxMinNumber ? item.showMaxMinNumber : true)) {
138
138
  const y = i == 0 ? top - 5 : top;
139
- y > vitalSignsOriginY.originY && list.push(drawScaleNumber(v, item, textLeft, y));
139
+ const scaleNumber = drawScaleNumber(v, item, textLeft, y);
140
+ const limitY = vitalSignsOriginY.originY + scaleNumber.height / 2;
141
+ if (y < limitY) {
142
+ scaleNumber.set({
143
+ top: limitY
144
+ });
145
+ }
146
+ list.push(scaleNumber);
140
147
  }
141
148
  if (item.showScale && i !== listLen - 1) {
142
149
  for (let j = 0; j < 5; j++) {
@@ -1,43 +1 @@
1
- .c-fabric-chart-popup-tip,
2
- .c-fabric-chart-popup-menu {
3
- position: absolute;
4
- z-index: 1001;
5
- display: flex;
6
- flex-flow: column nowrap;
7
- margin: 0;
8
- padding: 8px 12px;
9
- font-size: 12px;
10
- }
11
- .c-fabric-chart-popup-tip > li,
12
- .c-fabric-chart-popup-menu > li {
13
- list-style: none;
14
- }
15
- .c-fabric-chart-popup-tip {
16
- border-radius: 4px;
17
- background: rgba(0, 0, 0, 0.7);
18
- }
19
- .c-fabric-chart-popup-tip > li {
20
- color: #fff;
21
- }
22
- .c-fabric-chart-popup-menu {
23
- padding: 8px 5px !important;
24
- z-index: 1001;
25
- background: #fff;
26
- box-shadow: 0 2px 12px 0 rgba(56, 56, 56, 0.2);
27
- border: 1px solid #e2e6ed;
28
- border-radius: 2px;
29
- }
30
- .c-fabric-chart-popup-menu > li {
31
- padding: 5px;
32
- background: #fff;
33
- cursor: pointer;
34
- }
35
- .c-fabric-chart-popup-menu > li:hover {
36
- background: #f0f7ff;
37
- }
38
- .c-fabric-chart-popup-menu > li.no-click {
39
- cursor: default;
40
- }
41
- .c-fabric-chart-popup-menu > li.no-click:hover {
42
- background: #fff;
43
- }
1
+ .c-fabric-chart-popup-menu,.c-fabric-chart-popup-tip{display:flex;flex-flow:column nowrap;font-size:12px;margin:0;padding:8px 12px;position:absolute;z-index:1001}.c-fabric-chart-popup-menu>li,.c-fabric-chart-popup-tip>li{list-style:none}.c-fabric-chart-popup-tip{background:rgba(0,0,0,.7);border-radius:4px}.c-fabric-chart-popup-tip>li{color:#fff}.c-fabric-chart-popup-menu{background:#fff;border:1px solid #e2e6ed;border-radius:2px;box-shadow:0 2px 12px 0 rgba(56,56,56,.2);padding:8px 5px!important;z-index:1001}.c-fabric-chart-popup-menu>li{background:#fff;cursor:pointer;padding:5px}.c-fabric-chart-popup-menu>li:hover{background:#f0f7ff}.c-fabric-chart-popup-menu>li.no-click{cursor:default}.c-fabric-chart-popup-menu>li.no-click:hover{background:#fff}