@koi-design/uxd-ui 14.0.2 → 14.0.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 (200) hide show
  1. package/es/components/Alert/Alert.mjs +10 -24
  2. package/es/components/Alert/Alert.mjs.map +1 -1
  3. package/es/components/Alert/Alert.type.d.ts +5 -7
  4. package/es/components/Alert/Alert.type.mjs +4 -7
  5. package/es/components/Alert/Alert.type.mjs.map +1 -1
  6. package/es/components/Alert/Alert.vue.d.ts +5 -15
  7. package/es/components/Alert/index.d.ts +9 -27
  8. package/es/components/Alert/index.mjs +1 -1
  9. package/es/components/Calendar/Calendar.vue.d.ts +2 -2
  10. package/es/components/Calendar/index.d.ts +6 -6
  11. package/es/components/DatePicker/DatePicker.vue.d.ts +14 -14
  12. package/es/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
  13. package/es/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
  14. package/es/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
  15. package/es/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
  16. package/es/components/DatePicker/index.d.ts +28 -28
  17. package/es/components/Menu/MenuItem.vue.d.ts +33 -33
  18. package/es/components/Menu/index.d.ts +33 -33
  19. package/es/components/Message/Message.mjs +4 -3
  20. package/es/components/Message/Message.mjs.map +1 -1
  21. package/es/components/Notice/Notice.mjs +15 -13
  22. package/es/components/Notice/Notice.mjs.map +1 -1
  23. package/es/components/Notice/Notice.type.d.ts +3 -2
  24. package/es/components/Notification/Notice.mjs +1 -5
  25. package/es/components/Notification/Notice.mjs.map +1 -1
  26. package/es/components/Notification/Notification.mjs.map +1 -1
  27. package/es/components/Rate/Rate.vue.d.ts +33 -33
  28. package/es/components/Rate/index.d.ts +66 -66
  29. package/es/components/Statistic/Statistic.vue.d.ts +33 -33
  30. package/es/components/Statistic/index.d.ts +66 -66
  31. package/es/components/Table/BaseTable.vue.d.ts +132 -132
  32. package/es/components/Table/BodyTable.vue.d.ts +132 -132
  33. package/es/components/Table/HeadTable.vue.d.ts +132 -132
  34. package/es/components/Table/Table.vue.d.ts +264 -264
  35. package/es/components/Table/TableBox.vue.d.ts +264 -264
  36. package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
  37. package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
  38. package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
  39. package/es/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
  40. package/es/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
  41. package/es/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
  42. package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
  43. package/es/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
  44. package/es/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
  45. package/es/components/ThemePanel/index.d.ts +66 -66
  46. package/es/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
  47. package/es/components/TimePicker/TimePicker.vue.d.ts +12 -12
  48. package/es/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
  49. package/es/components/TimePicker/index.d.ts +28 -28
  50. package/es/components/Tooltip/Tooltip.mjs +84 -8
  51. package/es/components/Tooltip/Tooltip.mjs.map +1 -1
  52. package/es/components/Tooltip/Tooltip.type.d.ts +2 -2
  53. package/es/components/Tooltip/Tooltip.type.mjs +1 -3
  54. package/es/components/Tooltip/Tooltip.type.mjs.map +1 -1
  55. package/es/components/Tooltip/Tooltip.vue.d.ts +13 -13
  56. package/es/components/Tooltip/index.d.ts +33 -33
  57. package/es/components/index.mjs +1 -1
  58. package/es/index.mjs +1 -1
  59. package/lib/components/Alert/Alert.js +9 -23
  60. package/lib/components/Alert/Alert.js.map +1 -1
  61. package/lib/components/Alert/Alert.type.d.ts +5 -7
  62. package/lib/components/Alert/Alert.type.js +4 -6
  63. package/lib/components/Alert/Alert.type.js.map +1 -1
  64. package/lib/components/Alert/Alert.vue.d.ts +5 -15
  65. package/lib/components/Alert/index.d.ts +9 -27
  66. package/lib/components/Alert/index.js +1 -0
  67. package/lib/components/Alert/index.js.map +1 -1
  68. package/lib/components/Calendar/Calendar.vue.d.ts +2 -2
  69. package/lib/components/Calendar/index.d.ts +6 -6
  70. package/lib/components/DatePicker/DatePicker.vue.d.ts +14 -14
  71. package/lib/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
  72. package/lib/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
  73. package/lib/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
  74. package/lib/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
  75. package/lib/components/DatePicker/index.d.ts +28 -28
  76. package/lib/components/Menu/MenuItem.vue.d.ts +33 -33
  77. package/lib/components/Menu/index.d.ts +33 -33
  78. package/lib/components/Message/Message.js +4 -3
  79. package/lib/components/Message/Message.js.map +1 -1
  80. package/lib/components/Notice/Notice.js +15 -13
  81. package/lib/components/Notice/Notice.js.map +1 -1
  82. package/lib/components/Notice/Notice.type.d.ts +3 -2
  83. package/lib/components/Notification/Notice.js +1 -5
  84. package/lib/components/Notification/Notice.js.map +1 -1
  85. package/lib/components/Notification/Notification.js.map +1 -1
  86. package/lib/components/Rate/Rate.vue.d.ts +33 -33
  87. package/lib/components/Rate/index.d.ts +66 -66
  88. package/lib/components/Statistic/Statistic.vue.d.ts +33 -33
  89. package/lib/components/Statistic/index.d.ts +66 -66
  90. package/lib/components/Table/BaseTable.vue.d.ts +132 -132
  91. package/lib/components/Table/BodyTable.vue.d.ts +132 -132
  92. package/lib/components/Table/HeadTable.vue.d.ts +132 -132
  93. package/lib/components/Table/Table.vue.d.ts +264 -264
  94. package/lib/components/Table/TableBox.vue.d.ts +264 -264
  95. package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
  96. package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
  97. package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
  98. package/lib/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
  99. package/lib/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
  100. package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
  101. package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
  102. package/lib/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
  103. package/lib/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
  104. package/lib/components/ThemePanel/index.d.ts +66 -66
  105. package/lib/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
  106. package/lib/components/TimePicker/TimePicker.vue.d.ts +12 -12
  107. package/lib/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
  108. package/lib/components/TimePicker/index.d.ts +28 -28
  109. package/lib/components/Tooltip/Tooltip.js +84 -8
  110. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  111. package/lib/components/Tooltip/Tooltip.type.d.ts +2 -2
  112. package/lib/components/Tooltip/Tooltip.type.js +1 -3
  113. package/lib/components/Tooltip/Tooltip.type.js.map +1 -1
  114. package/lib/components/Tooltip/Tooltip.vue.d.ts +13 -13
  115. package/lib/components/Tooltip/index.d.ts +33 -33
  116. package/lib/components/index.js +1 -0
  117. package/lib/components/index.js.map +1 -1
  118. package/lib/index.js +1 -0
  119. package/lib/index.js.map +1 -1
  120. package/package.json +1 -1
  121. package/styles/components/alert/index.css +1 -1
  122. package/styles/components/alert/index.less +51 -48
  123. package/styles/components/alert/var.less +8 -42
  124. package/styles/components/autoComplete/index.css +1 -1
  125. package/styles/components/avatar/index.css +1 -1
  126. package/styles/components/badge/index.css +1 -1
  127. package/styles/components/badge/var.less +2 -2
  128. package/styles/components/button/index.css +1 -1
  129. package/styles/components/carousel/index.css +1 -1
  130. package/styles/components/cascader/index.css +1 -1
  131. package/styles/components/datePicker/index.css +1 -1
  132. package/styles/components/form/index.css +1 -1
  133. package/styles/components/icon/index.css +1 -1
  134. package/styles/components/input/index.css +1 -1
  135. package/styles/components/inputNumber/index.css +1 -1
  136. package/styles/components/link/index.css +1 -1
  137. package/styles/components/mentions/index.css +1 -1
  138. package/styles/components/message/index.css +1 -1
  139. package/styles/components/message/index.less +63 -30
  140. package/styles/components/message/var.less +6 -27
  141. package/styles/components/modal/index.css +1 -1
  142. package/styles/components/notice/index.css +1 -1
  143. package/styles/components/notice/index.less +93 -49
  144. package/styles/components/notice/var.less +10 -33
  145. package/styles/components/select/index.css +1 -1
  146. package/styles/components/spin/index.css +1 -1
  147. package/styles/components/tag/index.css +1 -1
  148. package/styles/components/tag/var.less +17 -17
  149. package/styles/components/timePicker/index.css +1 -1
  150. package/styles/components/tooltip/index.css +1 -1
  151. package/styles/components/tooltip/index.less +3 -55
  152. package/styles/components/tooltip/var.less +15 -14
  153. package/styles/cssVariable.css +1 -1
  154. package/styles/cssVariable.less +8 -9
  155. package/styles/index.css +1 -1
  156. package/types/components/Alert/Alert.type.d.ts +5 -7
  157. package/types/components/Alert/Alert.vue.d.ts +5 -15
  158. package/types/components/Alert/index.d.ts +9 -27
  159. package/types/components/Calendar/Calendar.vue.d.ts +2 -2
  160. package/types/components/Calendar/index.d.ts +6 -6
  161. package/types/components/DatePicker/DatePicker.vue.d.ts +14 -14
  162. package/types/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
  163. package/types/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
  164. package/types/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
  165. package/types/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
  166. package/types/components/DatePicker/index.d.ts +28 -28
  167. package/types/components/Menu/MenuItem.vue.d.ts +33 -33
  168. package/types/components/Menu/index.d.ts +33 -33
  169. package/types/components/Notice/Notice.type.d.ts +3 -2
  170. package/types/components/Rate/Rate.vue.d.ts +33 -33
  171. package/types/components/Rate/index.d.ts +66 -66
  172. package/types/components/Statistic/Statistic.vue.d.ts +33 -33
  173. package/types/components/Statistic/index.d.ts +66 -66
  174. package/types/components/Table/BaseTable.vue.d.ts +132 -132
  175. package/types/components/Table/BodyTable.vue.d.ts +132 -132
  176. package/types/components/Table/HeadTable.vue.d.ts +132 -132
  177. package/types/components/Table/Table.vue.d.ts +264 -264
  178. package/types/components/Table/TableBox.vue.d.ts +264 -264
  179. package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
  180. package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
  181. package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
  182. package/types/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
  183. package/types/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
  184. package/types/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
  185. package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
  186. package/types/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
  187. package/types/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
  188. package/types/components/ThemePanel/index.d.ts +66 -66
  189. package/types/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
  190. package/types/components/TimePicker/TimePicker.vue.d.ts +12 -12
  191. package/types/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
  192. package/types/components/TimePicker/index.d.ts +28 -28
  193. package/types/components/Tooltip/Tooltip.type.d.ts +2 -2
  194. package/types/components/Tooltip/Tooltip.vue.d.ts +13 -13
  195. package/types/components/Tooltip/index.d.ts +33 -33
  196. package/uxd-ui.css +1 -1
  197. package/uxd-ui.esm.min.mjs +6 -6
  198. package/uxd-ui.esm.mjs +122 -64
  199. package/uxd-ui.umd.js +121 -62
  200. package/uxd-ui.umd.min.js +6 -6
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
140
  (value: number): Dayjs;
141
141
  };
142
142
  day: {
143
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
143
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
144
144
  (value: number): Dayjs;
145
145
  };
146
146
  hour: {
@@ -229,7 +229,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
229
229
  (value: number): Dayjs;
230
230
  };
231
231
  day: {
232
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
232
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
233
233
  (value: number): Dayjs;
234
234
  };
235
235
  hour: {
@@ -318,7 +318,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
318
318
  (value: number): Dayjs;
319
319
  };
320
320
  day: {
321
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
321
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
322
322
  (value: number): Dayjs;
323
323
  };
324
324
  hour: {
@@ -407,7 +407,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
407
407
  (value: number): Dayjs;
408
408
  };
409
409
  day: {
410
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
410
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
411
411
  (value: number): Dayjs;
412
412
  };
413
413
  hour: {
@@ -1157,7 +1157,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1157
1157
  (value: number): Dayjs;
1158
1158
  };
1159
1159
  day: {
1160
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1160
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1161
1161
  (value: number): Dayjs;
1162
1162
  };
1163
1163
  hour: {
@@ -1246,7 +1246,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1246
1246
  (value: number): Dayjs;
1247
1247
  };
1248
1248
  day: {
1249
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1249
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1250
1250
  (value: number): Dayjs;
1251
1251
  };
1252
1252
  hour: {
@@ -1336,7 +1336,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1336
1336
  (value: number): Dayjs;
1337
1337
  };
1338
1338
  day: {
1339
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1339
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1340
1340
  (value: number): Dayjs;
1341
1341
  };
1342
1342
  hour: {
@@ -1425,7 +1425,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1425
1425
  (value: number): Dayjs;
1426
1426
  };
1427
1427
  day: {
1428
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1428
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1429
1429
  (value: number): Dayjs;
1430
1430
  };
1431
1431
  hour: {
@@ -2183,7 +2183,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2183
2183
  (value: number): Dayjs;
2184
2184
  };
2185
2185
  day: {
2186
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2186
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2187
2187
  (value: number): Dayjs;
2188
2188
  };
2189
2189
  hour: {
@@ -2272,7 +2272,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2272
2272
  (value: number): Dayjs;
2273
2273
  };
2274
2274
  day: {
2275
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2275
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2276
2276
  (value: number): Dayjs;
2277
2277
  };
2278
2278
  hour: {
@@ -2362,7 +2362,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2362
2362
  (value: number): Dayjs;
2363
2363
  };
2364
2364
  day: {
2365
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2365
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2366
2366
  (value: number): Dayjs;
2367
2367
  };
2368
2368
  hour: {
@@ -2451,7 +2451,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2451
2451
  (value: number): Dayjs;
2452
2452
  };
2453
2453
  day: {
2454
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2454
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2455
2455
  (value: number): Dayjs;
2456
2456
  };
2457
2457
  hour: {
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
71
71
  (value: number): Dayjs;
72
72
  };
73
73
  day: {
74
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
74
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
75
75
  (value: number): Dayjs;
76
76
  };
77
77
  hour: {
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
160
160
  (value: number): Dayjs;
161
161
  };
162
162
  day: {
163
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
163
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
164
164
  (value: number): Dayjs;
165
165
  };
166
166
  hour: {
@@ -250,7 +250,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
250
250
  (value: number): Dayjs;
251
251
  };
252
252
  day: {
253
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
253
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
254
254
  (value: number): Dayjs;
255
255
  };
256
256
  hour: {
@@ -339,7 +339,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
339
339
  (value: number): Dayjs;
340
340
  };
341
341
  day: {
342
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
342
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
343
343
  (value: number): Dayjs;
344
344
  };
345
345
  hour: {
@@ -145,7 +145,7 @@ export declare const UTimePicker: {
145
145
  (value: number): import("dayjs").Dayjs;
146
146
  };
147
147
  day: {
148
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
148
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
149
149
  (value: number): import("dayjs").Dayjs;
150
150
  };
151
151
  hour: {
@@ -234,7 +234,7 @@ export declare const UTimePicker: {
234
234
  (value: number): import("dayjs").Dayjs;
235
235
  };
236
236
  day: {
237
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
237
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
238
238
  (value: number): import("dayjs").Dayjs;
239
239
  };
240
240
  hour: {
@@ -323,7 +323,7 @@ export declare const UTimePicker: {
323
323
  (value: number): import("dayjs").Dayjs;
324
324
  };
325
325
  day: {
326
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
326
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
327
327
  (value: number): import("dayjs").Dayjs;
328
328
  };
329
329
  hour: {
@@ -412,7 +412,7 @@ export declare const UTimePicker: {
412
412
  (value: number): import("dayjs").Dayjs;
413
413
  };
414
414
  day: {
415
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
415
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
416
416
  (value: number): import("dayjs").Dayjs;
417
417
  };
418
418
  hour: {
@@ -1035,7 +1035,7 @@ export declare const UTimePicker: {
1035
1035
  (value: number): import("dayjs").Dayjs;
1036
1036
  };
1037
1037
  day: {
1038
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1038
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1039
1039
  (value: number): import("dayjs").Dayjs;
1040
1040
  };
1041
1041
  hour: {
@@ -1124,7 +1124,7 @@ export declare const UTimePicker: {
1124
1124
  (value: number): import("dayjs").Dayjs;
1125
1125
  };
1126
1126
  day: {
1127
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1127
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1128
1128
  (value: number): import("dayjs").Dayjs;
1129
1129
  };
1130
1130
  hour: {
@@ -1214,7 +1214,7 @@ export declare const UTimePicker: {
1214
1214
  (value: number): import("dayjs").Dayjs;
1215
1215
  };
1216
1216
  day: {
1217
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1217
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1218
1218
  (value: number): import("dayjs").Dayjs;
1219
1219
  };
1220
1220
  hour: {
@@ -1303,7 +1303,7 @@ export declare const UTimePicker: {
1303
1303
  (value: number): import("dayjs").Dayjs;
1304
1304
  };
1305
1305
  day: {
1306
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
1306
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
1307
1307
  (value: number): import("dayjs").Dayjs;
1308
1308
  };
1309
1309
  hour: {
@@ -2061,7 +2061,7 @@ export declare const UTimePicker: {
2061
2061
  (value: number): import("dayjs").Dayjs;
2062
2062
  };
2063
2063
  day: {
2064
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2064
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2065
2065
  (value: number): import("dayjs").Dayjs;
2066
2066
  };
2067
2067
  hour: {
@@ -2150,7 +2150,7 @@ export declare const UTimePicker: {
2150
2150
  (value: number): import("dayjs").Dayjs;
2151
2151
  };
2152
2152
  day: {
2153
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2153
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2154
2154
  (value: number): import("dayjs").Dayjs;
2155
2155
  };
2156
2156
  hour: {
@@ -2240,7 +2240,7 @@ export declare const UTimePicker: {
2240
2240
  (value: number): import("dayjs").Dayjs;
2241
2241
  };
2242
2242
  day: {
2243
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2243
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2244
2244
  (value: number): import("dayjs").Dayjs;
2245
2245
  };
2246
2246
  hour: {
@@ -2329,7 +2329,7 @@ export declare const UTimePicker: {
2329
2329
  (value: number): import("dayjs").Dayjs;
2330
2330
  };
2331
2331
  day: {
2332
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2332
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2333
2333
  (value: number): import("dayjs").Dayjs;
2334
2334
  };
2335
2335
  hour: {
@@ -2972,7 +2972,7 @@ export declare const UTimePicker: {
2972
2972
  (value: number): import("dayjs").Dayjs;
2973
2973
  };
2974
2974
  day: {
2975
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
2975
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
2976
2976
  (value: number): import("dayjs").Dayjs;
2977
2977
  };
2978
2978
  hour: {
@@ -3061,7 +3061,7 @@ export declare const UTimePicker: {
3061
3061
  (value: number): import("dayjs").Dayjs;
3062
3062
  };
3063
3063
  day: {
3064
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3064
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3065
3065
  (value: number): import("dayjs").Dayjs;
3066
3066
  };
3067
3067
  hour: {
@@ -3150,7 +3150,7 @@ export declare const UTimePicker: {
3150
3150
  (value: number): import("dayjs").Dayjs;
3151
3151
  };
3152
3152
  day: {
3153
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3153
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3154
3154
  (value: number): import("dayjs").Dayjs;
3155
3155
  };
3156
3156
  hour: {
@@ -3239,7 +3239,7 @@ export declare const UTimePicker: {
3239
3239
  (value: number): import("dayjs").Dayjs;
3240
3240
  };
3241
3241
  day: {
3242
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3242
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3243
3243
  (value: number): import("dayjs").Dayjs;
3244
3244
  };
3245
3245
  hour: {
@@ -3496,7 +3496,7 @@ export declare const UTimePicker: {
3496
3496
  (value: number): import("dayjs").Dayjs;
3497
3497
  };
3498
3498
  day: {
3499
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3499
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3500
3500
  (value: number): import("dayjs").Dayjs;
3501
3501
  };
3502
3502
  hour: {
@@ -3585,7 +3585,7 @@ export declare const UTimePicker: {
3585
3585
  (value: number): import("dayjs").Dayjs;
3586
3586
  };
3587
3587
  day: {
3588
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3588
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3589
3589
  (value: number): import("dayjs").Dayjs;
3590
3590
  };
3591
3591
  hour: {
@@ -3674,7 +3674,7 @@ export declare const UTimePicker: {
3674
3674
  (value: number): import("dayjs").Dayjs;
3675
3675
  };
3676
3676
  day: {
3677
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3677
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3678
3678
  (value: number): import("dayjs").Dayjs;
3679
3679
  };
3680
3680
  hour: {
@@ -3763,7 +3763,7 @@ export declare const UTimePicker: {
3763
3763
  (value: number): import("dayjs").Dayjs;
3764
3764
  };
3765
3765
  day: {
3766
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
3766
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
3767
3767
  (value: number): import("dayjs").Dayjs;
3768
3768
  };
3769
3769
  hour: {
@@ -4386,7 +4386,7 @@ export declare const UTimePicker: {
4386
4386
  (value: number): import("dayjs").Dayjs;
4387
4387
  };
4388
4388
  day: {
4389
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
4389
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
4390
4390
  (value: number): import("dayjs").Dayjs;
4391
4391
  };
4392
4392
  hour: {
@@ -4475,7 +4475,7 @@ export declare const UTimePicker: {
4475
4475
  (value: number): import("dayjs").Dayjs;
4476
4476
  };
4477
4477
  day: {
4478
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
4478
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
4479
4479
  (value: number): import("dayjs").Dayjs;
4480
4480
  };
4481
4481
  hour: {
@@ -4565,7 +4565,7 @@ export declare const UTimePicker: {
4565
4565
  (value: number): import("dayjs").Dayjs;
4566
4566
  };
4567
4567
  day: {
4568
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
4568
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
4569
4569
  (value: number): import("dayjs").Dayjs;
4570
4570
  };
4571
4571
  hour: {
@@ -4654,7 +4654,7 @@ export declare const UTimePicker: {
4654
4654
  (value: number): import("dayjs").Dayjs;
4655
4655
  };
4656
4656
  day: {
4657
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
4657
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
4658
4658
  (value: number): import("dayjs").Dayjs;
4659
4659
  };
4660
4660
  hour: {
@@ -5412,7 +5412,7 @@ export declare const UTimePicker: {
5412
5412
  (value: number): import("dayjs").Dayjs;
5413
5413
  };
5414
5414
  day: {
5415
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
5415
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
5416
5416
  (value: number): import("dayjs").Dayjs;
5417
5417
  };
5418
5418
  hour: {
@@ -5501,7 +5501,7 @@ export declare const UTimePicker: {
5501
5501
  (value: number): import("dayjs").Dayjs;
5502
5502
  };
5503
5503
  day: {
5504
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
5504
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
5505
5505
  (value: number): import("dayjs").Dayjs;
5506
5506
  };
5507
5507
  hour: {
@@ -5591,7 +5591,7 @@ export declare const UTimePicker: {
5591
5591
  (value: number): import("dayjs").Dayjs;
5592
5592
  };
5593
5593
  day: {
5594
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
5594
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
5595
5595
  (value: number): import("dayjs").Dayjs;
5596
5596
  };
5597
5597
  hour: {
@@ -5680,7 +5680,7 @@ export declare const UTimePicker: {
5680
5680
  (value: number): import("dayjs").Dayjs;
5681
5681
  };
5682
5682
  day: {
5683
- (): 0 | 2 | 1 | 4 | 3 | 5 | 6;
5683
+ (): 0 | 2 | 1 | 6 | 4 | 3 | 5;
5684
5684
  (value: number): import("dayjs").Dayjs;
5685
5685
  };
5686
5686
  hour: {
@@ -28,44 +28,120 @@ const _sfc_main = vue.defineComponent({
28
28
  if (((_a = popupRef.value) == null ? void 0 : _a.reference) && innerRef.value) {
29
29
  const { width, height } = slots.findDOMNode(popupRef.value.reference).getBoundingClientRect();
30
30
  const { width: contentWidth, height: contentHeight } = innerRef.value.getBoundingClientRect();
31
- if (props.placement === "left-start" || props.placement === "right-start") {
31
+ if (props.placement === "left") {
32
+ return {
33
+ top: "50%",
34
+ right: "0",
35
+ transform: "translateY(-50%) translateX(-50%)"
36
+ };
37
+ }
38
+ if (props.placement === "left-start") {
39
+ let top = height / 2;
40
+ if (top > contentHeight) {
41
+ top = 8;
42
+ }
43
+ return {
44
+ top: `${top}px`,
45
+ right: "0",
46
+ transform: "translateY(-50%) translateX(-50%)"
47
+ };
48
+ }
49
+ if (props.placement === "left-end") {
50
+ let bottom = height / 2;
51
+ if (bottom > contentHeight) {
52
+ bottom = 8;
53
+ }
54
+ return {
55
+ bottom: `${bottom}px`,
56
+ right: "0",
57
+ transform: "translateY(50%) translateX(-50%)"
58
+ };
59
+ }
60
+ if (props.placement === "right") {
61
+ return {
62
+ top: "50%",
63
+ left: "0",
64
+ transform: "translateY(-50%) translateX(50%)"
65
+ };
66
+ }
67
+ if (props.placement === "right-start") {
32
68
  let top = height / 2;
33
69
  if (top > contentHeight) {
34
70
  top = 8;
35
71
  }
36
72
  return {
37
73
  top: `${top}px`,
38
- transform: "translateY(-50%)"
74
+ left: "0",
75
+ transform: "translateY(-50%) translateX(50%)"
39
76
  };
40
77
  }
41
- if (props.placement === "left-end" || props.placement === "right-end") {
78
+ if (props.placement === "right-end") {
42
79
  let bottom = height / 2;
43
80
  if (bottom > contentHeight) {
44
81
  bottom = 8;
45
82
  }
46
83
  return {
47
84
  bottom: `${bottom}px`,
48
- transform: "translateY(50%)"
85
+ left: "0",
86
+ transform: "translateY(50%) translateX(50%)"
87
+ };
88
+ }
89
+ if (props.placement === "top") {
90
+ return {
91
+ left: "50%",
92
+ bottom: "0",
93
+ transform: "translateX(-50%) translateY(-50%)"
94
+ };
95
+ }
96
+ if (props.placement === "top-start") {
97
+ let left = width / 2;
98
+ if (left > contentWidth) {
99
+ left = 16;
100
+ }
101
+ return {
102
+ left: `${left}px`,
103
+ bottom: "0",
104
+ transform: "translateX(-50%) translateY(-50%)"
105
+ };
106
+ }
107
+ if (props.placement === "top-end") {
108
+ let right = width / 2;
109
+ if (right > contentWidth) {
110
+ right = 16;
111
+ }
112
+ return {
113
+ right: `${right}px`,
114
+ bottom: "0",
115
+ transform: "translateX(50%) translateY(-50%)"
116
+ };
117
+ }
118
+ if (props.placement === "bottom") {
119
+ return {
120
+ left: "50%",
121
+ top: "0",
122
+ transform: "translateX(-50%) translateY(50%)"
49
123
  };
50
124
  }
51
- if (props.placement === "top-start" || props.placement === "bottom-start") {
125
+ if (props.placement === "bottom-start") {
52
126
  let left = width / 2;
53
127
  if (left > contentWidth) {
54
128
  left = 16;
55
129
  }
56
130
  return {
57
131
  left: `${left}px`,
58
- transform: "translateX(-50%)"
132
+ top: "0",
133
+ transform: "translateX(-50%) translateY(50%)"
59
134
  };
60
135
  }
61
- if (props.placement === "top-end" || props.placement === "bottom-end") {
136
+ if (props.placement === "bottom-end") {
62
137
  let right = width / 2;
63
138
  if (right > contentWidth) {
64
139
  right = 16;
65
140
  }
66
141
  return {
67
142
  right: `${right}px`,
68
- transform: "translateX(50%)"
143
+ top: "0",
144
+ transform: "translateX(50%) translateY(50%)"
69
145
  };
70
146
  }
71
147
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/Tooltip/Tooltip.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <template v-else>\n <Popup\n ref=\"popupRef\"\n :prefix-cls=\"prefixCls\"\n :popup-class=\"dropdownClass\"\n :popup-style=\"{ ...dropdownStyle }\"\n :visible=\"visible\"\n :placement=\"placement\"\n :trigger=\"[trigger]\"\n transition-name=\"zoom-big-fast\"\n :offset=\"offset\"\n :mouse-enter-delay=\"mouseEnterDelay\"\n :mouse-leave-delay=\"mouseLeaveDelay\"\n :destroy-popup-on-hide=\"destroyPopupOnHide\"\n v-bind=\"$attrs\"\n @popup-visible-change=\"onVisibleChange\"\n >\n <slot />\n <template #popup>\n <div :class=\"`${prefixCls}-arrow`\" :data-color=\"color\" :style=\"arrowStyle\" />\n <div ref=\"innerRef\" :class=\"`${prefixCls}-inner`\" :data-color=\"color\" role=\"tooltip\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n </template>\n </Popup>\n </template>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue';\nimport Popup from '@uxd-ui/components/Popup';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { tooltipEmits, tooltipsProps } from './Tooltip.type';\nimport { findDOMNode } from '../../utils';\n\nexport default defineComponent({\n name: 'UTooltip',\n components: {\n Popup\n },\n inheritAttrs: false,\n props: tooltipsProps,\n emits: tooltipEmits,\n setup(props, { emit }) {\n const { prefixCls } = useGlobalConfig('tooltip');\n const popupRef = ref(null);\n const innerRef = ref(null);\n\n const arrowStyle = computed(() => {\n if (popupRef.value?.reference && innerRef.value) {\n const { width, height } = findDOMNode(popupRef.value.reference).getBoundingClientRect();\n const { width: contentWidth, height: contentHeight } = innerRef.value.getBoundingClientRect();\n if (props.placement === 'left-start' || props.placement === 'right-start') {\n let top = height / 2;\n if (top > contentHeight) {\n top = 8;\n }\n return {\n top: `${top}px`,\n transform: 'translateY(-50%)'\n };\n }\n if (props.placement === 'left-end' || props.placement === 'right-end') {\n let bottom = height / 2;\n if (bottom > contentHeight) {\n bottom = 8;\n }\n return {\n bottom: `${bottom}px`,\n transform: 'translateY(50%)'\n };\n }\n if (props.placement === 'top-start' || props.placement === 'bottom-start') {\n let left = width / 2;\n if (left > contentWidth) {\n left = 16;\n }\n return {\n left: `${left}px`,\n transform: 'translateX(-50%)'\n };\n }\n if (props.placement === 'top-end' || props.placement === 'bottom-end') {\n let right = width / 2;\n if (right > contentWidth) {\n right = 16;\n }\n return {\n right: `${right}px`,\n transform: 'translateX(50%)'\n };\n }\n }\n return {};\n });\n\n const onVisibleChange = (val: boolean) => {\n emit('visible-change', val);\n emit('update:visible', val);\n };\n\n return {\n popupRef,\n innerRef,\n prefixCls,\n arrowStyle,\n onVisibleChange\n };\n }\n});\n</script>\n"],"names":["defineComponent","Popup","tooltipsProps","tooltipEmits","useGlobalConfig","ref","computed","findDOMNode","_renderSlot","_createBlock","_mergeProps","_withCtx","_createElementVNode","_normalizeClass","_normalizeStyle"],"mappings":";;;;;;;;;;;;;AAyCA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,WACVC;AAAA;AACF,EACA,cAAc;AAAA,EACd,OAAOC;AAAA,EACP,OAAOC;AAAA,EACP,MAAM,OAAO,EAAE,QAAQ;UACf,EAAE,cAAcC,2BAAgB,SAAS;UACzC,WAAWC,QAAI,IAAI;UACnB,WAAWA,QAAI,IAAI;UAEnB,aAAaC,aAAS,MAAM;AAnBtC;YAoBU,cAAS,UAAT,mBAAgB,cAAa,SAAS,OAAO;cACzC,EAAE,OAAO,WAAWC,kBAAY,SAAS,MAAM,SAAS,EAAE;cAC1D,EAAE,OAAO,cAAc,QAAQ,kBAAkB,SAAS,MAAM;YAClE,MAAM,cAAc,gBAAgB,MAAM,cAAc,eAAe;cACrE,MAAM,SAAS;cACf,MAAM,eAAe;kBACjB;AAAA;iBAED;AAAA,YACL,KAAK,GAAG;AAAA,YACR,WAAW;AAAA;AACb;YAEE,MAAM,cAAc,cAAc,MAAM,cAAc,aAAa;cACjE,SAAS,SAAS;cAClB,SAAS,eAAe;qBACjB;AAAA;iBAEJ;AAAA,YACL,QAAQ,GAAG;AAAA,YACX,WAAW;AAAA;AACb;YAEE,MAAM,cAAc,eAAe,MAAM,cAAc,gBAAgB;cACrE,OAAO,QAAQ;cACf,OAAO,cAAc;mBAChB;AAAA;iBAEF;AAAA,YACL,MAAM,GAAG;AAAA,YACT,WAAW;AAAA;AACb;YAEE,MAAM,cAAc,aAAa,MAAM,cAAc,cAAc;cACjE,QAAQ,QAAQ;cAChB,QAAQ,cAAc;oBAChB;AAAA;iBAEH;AAAA,YACL,OAAO,GAAG;AAAA,YACV,WAAW;AAAA;AACb;AACF;aAEK;AAAC,KACT;UAEK,kBAAkB,CAAC,QAAiB;WACnC,kBAAkB,GAAG;WACrB,kBAAkB,GAAG;AAAA;WAGrB;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;;;SAlHiB,gBACdC,eAAQ,wDAGRC,gBAyBQ,kBAzBRC,eAyBQ;AAAA;IAxBN,KAAI;AAAA,IACH,cAAY;IACZ,eAAa;IACb,eAAW,KAAO;AAAa,IAC/B,SAAS;IACT,WAAW;IACX,SAAO,CAAG,YAAO;AAAA,IAClB,mBAAgB;AAAA,IACf,QAAQ;IACR,qBAAmB;IACnB,qBAAmB;IACnB,yBAAuB;KAChB,aAAM,EACb,sBAAsB;IAGZ,OAAKC,YACd,MAA6E;AAAA,MAA7EC,uBAA6E;QAAvE,OAAKC,sBAAK,sBAAS;AAAA,QAAW,cAAY;QAAQ,OAAKC,mBAAE,eAAU;AAAA;MACzEF,uBAIM;QAJD,KAAI;AAAA,QAAY,OAAKC,sBAAK,sBAAS;AAAA,QAAW,cAAY;QAAO,MAAK;AAAA;QACzEL,eAEO,0BAFP,MAEO;AAAA,kDADF,UAAK;;;;yBALd,MAAQ;AAAA,MAARA,eAAQ;;;;;;;;;"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/Tooltip/Tooltip.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <template v-else>\n <Popup\n ref=\"popupRef\"\n :prefix-cls=\"prefixCls\"\n :popup-class=\"dropdownClass\"\n :popup-style=\"{ ...dropdownStyle }\"\n :visible=\"visible\"\n :placement=\"placement\"\n :trigger=\"[trigger]\"\n transition-name=\"zoom-big-fast\"\n :offset=\"offset\"\n :mouse-enter-delay=\"mouseEnterDelay\"\n :mouse-leave-delay=\"mouseLeaveDelay\"\n :destroy-popup-on-hide=\"destroyPopupOnHide\"\n v-bind=\"$attrs\"\n @popup-visible-change=\"onVisibleChange\"\n >\n <slot />\n <template #popup>\n <div :class=\"`${prefixCls}-arrow`\" :data-color=\"color\" :style=\"arrowStyle\" />\n <div ref=\"innerRef\" :class=\"`${prefixCls}-inner`\" :data-color=\"color\" role=\"tooltip\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n </template>\n </Popup>\n </template>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue';\nimport Popup from '@uxd-ui/components/Popup';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { tooltipEmits, tooltipsProps } from './Tooltip.type';\nimport { findDOMNode } from '../../utils';\n\nexport default defineComponent({\n name: 'UTooltip',\n components: {\n Popup\n },\n inheritAttrs: false,\n props: tooltipsProps,\n emits: tooltipEmits,\n setup(props, { emit }) {\n const { prefixCls } = useGlobalConfig('tooltip');\n const popupRef = ref(null);\n const innerRef = ref(null);\n\n const arrowStyle = computed(() => {\n if (popupRef.value?.reference && innerRef.value) {\n const { width, height } = findDOMNode(popupRef.value.reference).getBoundingClientRect();\n const { width: contentWidth, height: contentHeight } = innerRef.value.getBoundingClientRect();\n\n if (props.placement === 'left') {\n return {\n top: '50%',\n right: '0',\n transform: 'translateY(-50%) translateX(-50%)'\n };\n }\n if (props.placement === 'left-start') {\n let top = height / 2;\n if (top > contentHeight) {\n top = 8;\n }\n return {\n top: `${top}px`,\n right: '0',\n transform: 'translateY(-50%) translateX(-50%)'\n };\n }\n if (props.placement === 'left-end') {\n let bottom = height / 2;\n if (bottom > contentHeight) {\n bottom = 8;\n }\n return {\n bottom: `${bottom}px`,\n right: '0',\n transform: 'translateY(50%) translateX(-50%)'\n };\n }\n if (props.placement === 'right') {\n return {\n top: '50%',\n left: '0',\n transform: 'translateY(-50%) translateX(50%)'\n };\n }\n\n if (props.placement === 'right-start') {\n let top = height / 2;\n if (top > contentHeight) {\n top = 8;\n }\n return {\n top: `${top}px`,\n left: '0',\n transform: 'translateY(-50%) translateX(50%)'\n };\n }\n\n if (props.placement === 'right-end') {\n let bottom = height / 2;\n if (bottom > contentHeight) {\n bottom = 8;\n }\n return {\n bottom: `${bottom}px`,\n left: '0',\n transform: 'translateY(50%) translateX(50%)'\n };\n }\n\n if (props.placement === 'top') {\n return {\n left: '50%',\n bottom: '0',\n transform: 'translateX(-50%) translateY(-50%)'\n };\n }\n\n if (props.placement === 'top-start') {\n let left = width / 2;\n if (left > contentWidth) {\n left = 16;\n }\n return {\n left: `${left}px`,\n bottom: '0',\n transform: 'translateX(-50%) translateY(-50%)'\n };\n }\n if (props.placement === 'top-end') {\n let right = width / 2;\n if (right > contentWidth) {\n right = 16;\n }\n return {\n right: `${right}px`,\n bottom: '0',\n transform: 'translateX(50%) translateY(-50%)'\n };\n }\n\n if (props.placement === 'bottom') {\n return {\n left: '50%',\n top: '0',\n transform: 'translateX(-50%) translateY(50%)'\n };\n }\n\n if (props.placement === 'bottom-start') {\n let left = width / 2;\n if (left > contentWidth) {\n left = 16;\n }\n return {\n left: `${left}px`,\n top: '0',\n transform: 'translateX(-50%) translateY(50%)'\n };\n }\n\n if (props.placement === 'bottom-end') {\n let right = width / 2;\n if (right > contentWidth) {\n right = 16;\n }\n return {\n right: `${right}px`,\n top: '0',\n transform: 'translateX(50%) translateY(50%)'\n };\n }\n }\n return {};\n });\n\n const onVisibleChange = (val: boolean) => {\n emit('visible-change', val);\n emit('update:visible', val);\n };\n\n return {\n popupRef,\n innerRef,\n prefixCls,\n arrowStyle,\n onVisibleChange\n };\n }\n});\n</script>\n"],"names":["defineComponent","Popup","tooltipsProps","tooltipEmits","useGlobalConfig","ref","computed","findDOMNode","_renderSlot","_createBlock","_mergeProps","_withCtx","_createElementVNode","_normalizeClass","_normalizeStyle"],"mappings":"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"}
@@ -50,8 +50,8 @@ export declare const tooltipsProps: {
50
50
  default: boolean;
51
51
  };
52
52
  color: {
53
- type: PropType<"primary" | "blue" | "light" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
54
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
53
+ type: PropType<"light" | "red">;
54
+ default: "light" | "red";
55
55
  validator: (val: string) => boolean;
56
56
  };
57
57
  };
@@ -4,8 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var placements = require('../../utils/placements.js');
6
6
  var propsValidators = require('../../utils/propsValidators.js');
7
- require('../../utils/index.js');
8
- var globalType = require('../../utils/globalType.js');
9
7
 
10
8
  const tooltipTrigger = ["hover", "click"];
11
9
  const tooltipsProps = {
@@ -58,7 +56,7 @@ const tooltipsProps = {
58
56
  color: {
59
57
  type: String,
60
58
  default: void 0,
61
- validator: propsValidators.oneOf([...globalType.colorType, "light"])
59
+ validator: propsValidators.oneOf(["red", "light"])
62
60
  }
63
61
  };
64
62
  const tooltipEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.type.js","sources":["../../../../src/components/Tooltip/Tooltip.type.ts"],"sourcesContent":["import type { CSSProperties, ExtractPropTypes, PropType } from 'vue';\nimport type { Placements } from '../../utils/placements';\nimport placements from '../../utils/placements';\nimport { isArrayOf, oneOf } from '../../utils/propsValidators';\n\nimport type Tooltip from './Tooltip.vue';\nimport type { ColorType } from '../../utils';\nimport { colorType } from '../../utils';\n\nexport const tooltipTrigger = ['hover', 'click'] as const;\nexport type TooltipTrigger = (typeof tooltipTrigger)[number];\n\nexport const tooltipsProps = {\n placement: {\n default: 'top',\n type: String as PropType<Placements>,\n validator: oneOf(placements)\n },\n title: {\n type: String\n },\n disabled: {\n type: Boolean,\n default: false\n },\n visible: {\n type: Boolean,\n default: undefined as undefined\n },\n mouseEnterDelay: {\n type: Number,\n default: 0.2\n },\n mouseLeaveDelay: {\n type: Number,\n default: 0.1\n },\n dropdownStyle: {\n type: Object as PropType<CSSProperties>,\n default: () => ({})\n },\n dropdownClass: {\n type: String,\n default: ''\n },\n trigger: {\n type: String as PropType<TooltipTrigger>,\n default: 'hover',\n validator: oneOf(tooltipTrigger)\n },\n offset: {\n type: Array as PropType<number[]>,\n validator: isArrayOf(Number),\n default: () => [0, 0]\n },\n destroyPopupOnHide: {\n type: Boolean,\n default: true\n },\n color: {\n type: String as PropType<ColorType | 'light' | undefined>,\n default: undefined as undefined | ColorType,\n validator: oneOf([...colorType, 'light'])\n }\n};\nexport type TooltipProps = ExtractPropTypes<typeof tooltipsProps>;\n\nexport const tooltipEmits = {\n 'visible-change': (v: boolean) => typeof v === 'boolean',\n 'update:visible': (v: boolean) => typeof v === 'boolean'\n};\n\nexport type TooltipEmits = typeof tooltipEmits;\n\nexport type TooltipInstanceType = InstanceType<typeof Tooltip>;\n"],"names":["oneOf","placements","isArrayOf","colorType"],"mappings":";;;;;;;;;MASa,iBAAiB,CAAC,SAAS,OAAO;MAGlC,gBAAgB;AAAA,EAC3B,WAAW;AAAA,IACT,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAWA,sBAAMC,qBAAU;AAAA;AAC7B,EACA,OAAO;AAAA,IACL,MAAM;AAAA;AACR,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS,OAAO;AAAC;AACnB,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,cAAc;AAAA;AACjC,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,WAAWE,0BAAU,MAAM;AAAA,IAC3B,SAAS,MAAM,CAAC,GAAG,CAAC;AAAA;AACtB,EACA,oBAAoB;AAAA,IAClB,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWF,sBAAM,CAAC,GAAGG,sBAAW,OAAO,CAAC;AAAA;AAE5C;MAGa,eAAe;AAAA,EAC1B,kBAAkB,CAAC,MAAe,OAAO,MAAM;AAAA,EAC/C,kBAAkB,CAAC,MAAe,OAAO,MAAM;AACjD;;;;;;"}
1
+ {"version":3,"file":"Tooltip.type.js","sources":["../../../../src/components/Tooltip/Tooltip.type.ts"],"sourcesContent":["import type { CSSProperties, ExtractPropTypes, PropType } from 'vue';\nimport type { Placements } from '../../utils/placements';\nimport placements from '../../utils/placements';\nimport { isArrayOf, oneOf } from '../../utils/propsValidators';\n\nimport type Tooltip from './Tooltip.vue';\n\nexport const tooltipTrigger = ['hover', 'click'] as const;\nexport type TooltipTrigger = (typeof tooltipTrigger)[number];\n\nexport const tooltipsProps = {\n placement: {\n default: 'top',\n type: String as PropType<Placements>,\n validator: oneOf(placements)\n },\n title: {\n type: String\n },\n disabled: {\n type: Boolean,\n default: false\n },\n visible: {\n type: Boolean,\n default: undefined as undefined\n },\n mouseEnterDelay: {\n type: Number,\n default: 0.2\n },\n mouseLeaveDelay: {\n type: Number,\n default: 0.1\n },\n dropdownStyle: {\n type: Object as PropType<CSSProperties>,\n default: () => ({})\n },\n dropdownClass: {\n type: String,\n default: ''\n },\n trigger: {\n type: String as PropType<TooltipTrigger>,\n default: 'hover',\n validator: oneOf(tooltipTrigger)\n },\n offset: {\n type: Array as PropType<number[]>,\n validator: isArrayOf(Number),\n default: () => [0, 0]\n },\n destroyPopupOnHide: {\n type: Boolean,\n default: true\n },\n color: {\n type: String as PropType<'red' | 'light' | undefined>,\n default: undefined as undefined | 'red' | 'light',\n validator: oneOf(['red', 'light'])\n }\n};\nexport type TooltipProps = ExtractPropTypes<typeof tooltipsProps>;\n\nexport const tooltipEmits = {\n 'visible-change': (v: boolean) => typeof v === 'boolean',\n 'update:visible': (v: boolean) => typeof v === 'boolean'\n};\n\nexport type TooltipEmits = typeof tooltipEmits;\n\nexport type TooltipInstanceType = InstanceType<typeof Tooltip>;\n"],"names":["oneOf","placements","isArrayOf"],"mappings":";;;;;;;MAOa,iBAAiB,CAAC,SAAS,OAAO;MAGlC,gBAAgB;AAAA,EAC3B,WAAW;AAAA,IACT,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAWA,sBAAMC,qBAAU;AAAA;AAC7B,EACA,OAAO;AAAA,IACL,MAAM;AAAA;AACR,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS,OAAO;AAAC;AACnB,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,cAAc;AAAA;AACjC,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,WAAWE,0BAAU,MAAM;AAAA,IAC3B,SAAS,MAAM,CAAC,GAAG,CAAC;AAAA;AACtB,EACA,oBAAoB;AAAA,IAClB,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWF,sBAAM,CAAC,OAAO,OAAO,CAAC;AAAA;AAErC;MAGa,eAAe;AAAA,EAC1B,kBAAkB,CAAC,MAAe,OAAO,MAAM;AAAA,EAC/C,kBAAkB,CAAC,MAAe,OAAO,MAAM;AACjD;;;;;;"}