hy-dispatch-ui-v3 0.2.66 → 0.2.68

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 (288) hide show
  1. package/dist/tailwind.css +257 -21
  2. package/es/api/device.mjs +2 -3
  3. package/es/api/exportExcel.mjs +57 -0
  4. package/es/api/index.mjs +27 -16
  5. package/es/api/mapRail.mjs +31 -0
  6. package/es/api/organization.mjs +17 -9
  7. package/es/api/rule.mjs +30 -0
  8. package/es/api/sypct.mjs +2 -3
  9. package/es/api/task.mjs +2 -3
  10. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +18 -19
  11. package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  12. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +511 -0
  13. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +169 -0
  14. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +318 -0
  15. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +123 -0
  16. package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +358 -0
  17. package/es/bussiness/hyElectronicFence/index.mjs +13 -0
  18. package/es/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  19. package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
  20. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
  21. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  22. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
  23. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
  24. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
  25. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
  26. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
  27. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
  28. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
  29. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
  30. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
  31. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
  32. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
  33. package/es/bussiness/hyRuleSetting/index.mjs +15 -0
  34. package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
  35. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
  36. package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  37. package/es/bussiness/index.mjs +2 -0
  38. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
  39. package/es/components/hyAudioPlayer/js/index.mjs +9 -14
  40. package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  41. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +174 -142
  42. package/es/components/hyButton/button.vue.mjs +18 -5
  43. package/es/components/hyButton/style/button.scss +50 -74
  44. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
  45. package/es/components/hyCheckboxGroup/index.mjs +7 -0
  46. package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  47. package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
  48. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
  49. package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
  50. package/es/components/hyCutter/cutter.vue.mjs +9 -23
  51. package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
  52. package/es/components/hyDialog/dialog.vue.mjs +5 -9
  53. package/es/components/hyDialog/style/dialog.scss +12 -13
  54. package/es/components/hyDrawer/drawer.vue.mjs +100 -0
  55. package/es/components/hyDrawer/index.mjs +7 -0
  56. package/es/components/hyDrawer/style/drawer.scss +0 -0
  57. package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
  58. package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
  59. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
  60. package/es/components/hyForm/cpns/formItem.vue.mjs +149 -69
  61. package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
  62. package/es/components/hyForm/form.vue.mjs +74 -28
  63. package/es/components/hyForm/js/index.mjs +4 -8
  64. package/es/components/hyForm/js/useAppForm.mjs +4 -9
  65. package/es/components/hyForm/style/form.scss +4 -13
  66. package/es/components/hyIcon/icon.vue.mjs +3 -3
  67. package/es/components/hyIconBox/style/iconBox.scss +2 -6
  68. package/es/components/hyInput/inputSearch.vue.mjs +8 -11
  69. package/es/components/hyInput/style/inputSearch.scss +3 -0
  70. package/es/components/hyLoading/index.mjs +3 -5
  71. package/es/components/hyMap/js/index.mjs +35 -10
  72. package/es/components/hyMap/map.vue.mjs +30 -6
  73. package/es/components/hyMenu/style/menu.scss +5 -15
  74. package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
  75. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
  76. package/es/components/hyOrgCascader/js/index.mjs +1 -5
  77. package/es/components/hyOrgCascader/orgCascader.vue.mjs +31 -12
  78. package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
  79. package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
  80. package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
  81. package/es/components/hySearch/cpns/searchItem.vue.mjs +409 -324
  82. package/es/components/hySearch/js/index.mjs +1 -4
  83. package/es/components/hySearch/js/useAppSearch.mjs +5 -10
  84. package/es/components/hySearch/search.vue.mjs +23 -20
  85. package/es/components/hySearch/style/search.scss +9 -0
  86. package/es/components/hyStatus/index.mjs +7 -0
  87. package/es/components/hyStatus/status.vue.mjs +110 -0
  88. package/es/components/hyStatus/style/status.scss +0 -0
  89. package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
  90. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
  91. package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
  92. package/es/components/hyTable/cpns/virtualTable.vue.mjs +43 -34
  93. package/es/components/hyTable/js/index.mjs +67 -64
  94. package/es/components/hyTable/js/search.mjs +25 -1
  95. package/es/components/hyTable/js/useAppTable.mjs +3 -4
  96. package/es/components/hyTable/style/table.scss +8 -0
  97. package/es/components/hyTable/table.vue.mjs +68 -53
  98. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +13 -6
  99. package/es/components/hyTableForm/batchTableForm.vue.mjs +26 -9
  100. package/es/components/hyTableForm/js/index.mjs +2 -8
  101. package/es/components/hyTableForm/js/useAppTableForm.mjs +3 -8
  102. package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
  103. package/es/components/hyTableForm/style/tableForm.scss +3 -2
  104. package/es/components/hyTableForm/tableForm.vue.mjs +160 -70
  105. package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
  106. package/es/components/hyTree/js/index.mjs +113 -72
  107. package/es/components/hyTree/style/index.css +1 -1
  108. package/es/components/hyTree/tree.vue.mjs +21 -18
  109. package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
  110. package/es/components/hyVideoPlayer/js/index.mjs +14 -23
  111. package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  112. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
  113. package/es/components/index.mjs +3 -0
  114. package/es/hooks/index.mjs +6 -2
  115. package/es/hooks/useAudioPlayerConfig.mjs +1 -3
  116. package/es/hooks/useBaseMainStore.mjs +29 -0
  117. package/es/hooks/useCurrentBus.mjs +20 -0
  118. package/es/hooks/useDialog.mjs +327 -0
  119. package/es/hooks/useExportFile.mjs +133 -0
  120. package/es/hooks/useGlobalConfig.mjs +10 -6
  121. package/es/hooks/useLocale.mjs +22 -12
  122. package/es/hooks/usePermissionMap.mjs +1 -3
  123. package/es/hooks/useResizeHandler.mjs +1 -4
  124. package/es/hooks/useResizeObserver.mjs +3 -1
  125. package/es/hooks/useSubscribe.mjs +2 -2
  126. package/es/hooks/useUserAvatarMap.mjs +1 -3
  127. package/es/hooks/useVideoPlayerConfig.mjs +1 -3
  128. package/es/index.mjs +11 -2
  129. package/es/locale/{en.mjs → en_US.mjs} +79 -4
  130. package/es/locale/index.mjs +2 -2
  131. package/es/locale/zh_CN.mjs +79 -2
  132. package/es/style/index.scss +0 -1
  133. package/es/style/tailwind.scss +7 -4
  134. package/es/utils/adaptive.mjs +1 -3
  135. package/es/utils/form.mjs +7 -10
  136. package/es/utils/handler.mjs +4 -8
  137. package/es/utils/input.mjs +8 -9
  138. package/es/utils/is.mjs +3 -1
  139. package/es/utils/map/hook/bigMap.mjs +16 -53
  140. package/es/utils/map/hook/gaode.mjs +53 -33
  141. package/es/utils/map/hook/leafletjs.mjs +38 -82
  142. package/es/utils/map/index.mjs +3 -9
  143. package/es/utils/map/js/webgis.mjs +12 -12
  144. package/es/version.mjs +1 -1
  145. package/lib/api/device.js +2 -3
  146. package/lib/api/exportExcel.js +62 -0
  147. package/lib/api/index.js +27 -16
  148. package/lib/api/mapRail.js +34 -0
  149. package/lib/api/organization.js +17 -8
  150. package/lib/api/rule.js +33 -0
  151. package/lib/api/sypct.js +2 -3
  152. package/lib/api/task.js +2 -3
  153. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
  154. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  155. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
  156. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +173 -0
  157. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
  158. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -0
  159. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
  160. package/lib/bussiness/hyElectronicFence/index.js +21 -0
  161. package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  162. package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
  163. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
  164. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  165. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
  166. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
  167. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
  168. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
  169. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
  170. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
  171. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
  172. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
  173. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
  174. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
  175. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
  176. package/lib/bussiness/hyRuleSetting/index.js +24 -0
  177. package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
  178. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
  179. package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  180. package/lib/bussiness/index.js +21 -10
  181. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
  182. package/lib/components/hyAudioPlayer/js/index.js +9 -14
  183. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  184. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +173 -141
  185. package/lib/components/hyButton/button.vue.js +17 -4
  186. package/lib/components/hyButton/style/button.scss +50 -74
  187. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
  188. package/lib/components/hyCheckboxGroup/index.js +12 -0
  189. package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  190. package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
  191. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
  192. package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
  193. package/lib/components/hyCutter/cutter.vue.js +8 -22
  194. package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
  195. package/lib/components/hyDialog/dialog.vue.js +5 -9
  196. package/lib/components/hyDialog/style/dialog.scss +12 -13
  197. package/lib/components/hyDrawer/drawer.vue.js +104 -0
  198. package/lib/components/hyDrawer/index.js +12 -0
  199. package/lib/components/hyDrawer/style/drawer.scss +0 -0
  200. package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
  201. package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
  202. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
  203. package/lib/components/hyForm/cpns/formItem.vue.js +148 -68
  204. package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
  205. package/lib/components/hyForm/form.vue.js +69 -23
  206. package/lib/components/hyForm/js/index.js +3 -7
  207. package/lib/components/hyForm/js/useAppForm.js +4 -9
  208. package/lib/components/hyForm/style/form.scss +4 -13
  209. package/lib/components/hyIcon/icon.vue.js +3 -3
  210. package/lib/components/hyIconBox/style/iconBox.scss +2 -6
  211. package/lib/components/hyInput/inputSearch.vue.js +7 -10
  212. package/lib/components/hyInput/style/inputSearch.scss +3 -0
  213. package/lib/components/hyLoading/index.js +2 -4
  214. package/lib/components/hyMap/js/index.js +34 -9
  215. package/lib/components/hyMap/map.vue.js +29 -5
  216. package/lib/components/hyMenu/style/menu.scss +5 -15
  217. package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
  218. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
  219. package/lib/components/hyOrgCascader/js/index.js +1 -5
  220. package/lib/components/hyOrgCascader/orgCascader.vue.js +29 -10
  221. package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
  222. package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
  223. package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
  224. package/lib/components/hySearch/cpns/searchItem.vue.js +407 -322
  225. package/lib/components/hySearch/js/index.js +1 -4
  226. package/lib/components/hySearch/js/useAppSearch.js +5 -10
  227. package/lib/components/hySearch/search.vue.js +23 -20
  228. package/lib/components/hySearch/style/search.scss +9 -0
  229. package/lib/components/hyStatus/index.js +12 -0
  230. package/lib/components/hyStatus/status.vue.js +114 -0
  231. package/lib/components/hyStatus/style/status.scss +0 -0
  232. package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
  233. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
  234. package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
  235. package/lib/components/hyTable/cpns/virtualTable.vue.js +41 -32
  236. package/lib/components/hyTable/js/index.js +65 -61
  237. package/lib/components/hyTable/js/search.js +25 -1
  238. package/lib/components/hyTable/js/useAppTable.js +2 -3
  239. package/lib/components/hyTable/style/table.scss +8 -0
  240. package/lib/components/hyTable/table.vue.js +67 -52
  241. package/lib/components/hyTableActionButton/tableActionButton.vue.js +13 -6
  242. package/lib/components/hyTableForm/batchTableForm.vue.js +26 -9
  243. package/lib/components/hyTableForm/js/index.js +2 -8
  244. package/lib/components/hyTableForm/js/useAppTableForm.js +3 -8
  245. package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
  246. package/lib/components/hyTableForm/style/tableForm.scss +3 -2
  247. package/lib/components/hyTableForm/tableForm.vue.js +159 -69
  248. package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
  249. package/lib/components/hyTree/js/index.js +113 -72
  250. package/lib/components/hyTree/style/index.css +1 -1
  251. package/lib/components/hyTree/tree.vue.js +21 -18
  252. package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
  253. package/lib/components/hyVideoPlayer/js/index.js +14 -23
  254. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  255. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
  256. package/lib/components/index.js +46 -40
  257. package/lib/hooks/index.js +17 -0
  258. package/lib/hooks/useAudioPlayerConfig.js +1 -3
  259. package/lib/hooks/useBaseMainStore.js +32 -0
  260. package/lib/hooks/useCurrentBus.js +23 -0
  261. package/lib/hooks/useDialog.js +331 -0
  262. package/lib/hooks/useExportFile.js +135 -0
  263. package/lib/hooks/useGlobalConfig.js +10 -6
  264. package/lib/hooks/useLocale.js +25 -11
  265. package/lib/hooks/usePermissionMap.js +1 -3
  266. package/lib/hooks/useResizeHandler.js +1 -4
  267. package/lib/hooks/useResizeObserver.js +3 -1
  268. package/lib/hooks/useSubscribe.js +2 -1
  269. package/lib/hooks/useUserAvatarMap.js +1 -3
  270. package/lib/hooks/useVideoPlayerConfig.js +1 -3
  271. package/lib/index.js +107 -73
  272. package/lib/locale/{en.js → en_US.js} +79 -4
  273. package/lib/locale/index.js +3 -3
  274. package/lib/locale/zh_CN.js +79 -2
  275. package/lib/style/index.scss +0 -1
  276. package/lib/style/tailwind.scss +7 -4
  277. package/lib/utils/adaptive.js +1 -3
  278. package/lib/utils/form.js +6 -9
  279. package/lib/utils/handler.js +3 -7
  280. package/lib/utils/input.js +7 -8
  281. package/lib/utils/is.js +5 -3
  282. package/lib/utils/map/hook/bigMap.js +16 -53
  283. package/lib/utils/map/hook/gaode.js +53 -33
  284. package/lib/utils/map/hook/leafletjs.js +38 -82
  285. package/lib/utils/map/index.js +3 -9
  286. package/lib/utils/map/js/webgis.js +12 -12
  287. package/lib/version.js +1 -1
  288. package/package.json +3 -2
@@ -48,10 +48,7 @@ function isEmptyValue(e) {
48
48
  return isEmpty(e) || isArray(e) && !e.length;
49
49
  }
50
50
  function useShrink(props, formItemWrapper) {
51
- const { removeResize } = useResizeObserver(
52
- formItemWrapper,
53
- shrinkResizeHandler
54
- );
51
+ const { removeResize } = useResizeObserver(formItemWrapper, shrinkResizeHandler);
55
52
  const isExpand = ref(false);
56
53
  const showShrink = ref(true);
57
54
  const containerHeight = ref(getContainerPickUpHeight());
@@ -1,8 +1,8 @@
1
1
  import { unref, toRef } from 'vue';
2
2
  import '../../../hooks/index.mjs';
3
3
  import '../../../utils/index.mjs';
4
- import { useLocale } from '../../../hooks/useLocale.mjs';
5
4
  import { isNumber } from '../../../utils/is.mjs';
5
+ import { $t } from '../../../hooks/useLocale.mjs';
6
6
  import { genColumnDefaultLabel, genValueByProp } from '../../../utils/form.mjs';
7
7
  import { mergeDeep, funRunHandler } from '../../../utils/handler.mjs';
8
8
 
@@ -32,7 +32,6 @@ const genColumnWidth = (config) => {
32
32
  return { width, inputWidth };
33
33
  };
34
34
  const timeRangeOptionsHandler = (config) => {
35
- const { t } = useLocale();
36
35
  const { timeRangeOptions } = config || {};
37
36
  if (!timeRangeOptions?.length) return timeRangeOptions;
38
37
  return timeRangeOptions.reduce((list, item) => {
@@ -42,15 +41,15 @@ const timeRangeOptionsHandler = (config) => {
42
41
  if (!label) {
43
42
  switch (unit) {
44
43
  case "year":
45
- label = `${value} ` + t(isPlural ? "hy.years" : "hy.year");
44
+ label = `${value} ` + $t(isPlural ? "hy.years" : "hy.year");
46
45
  break;
47
46
  case "month":
48
- label = `${value} ` + t(isPlural ? "hy.months" : "hy.month");
47
+ label = `${value} ` + $t(isPlural ? "hy.months" : "hy.month");
49
48
  break;
50
49
  case "day":
51
50
  default:
52
51
  unit = "day";
53
- label = value === 1 ? t("hy.today") : `${value} ` + t(isPlural ? "hy.days" : "hy.day");
52
+ label = value === 1 ? $t("hy.today") : `${value} ` + $t(isPlural ? "hy.days" : "hy.day");
54
53
  }
55
54
  }
56
55
  list.push({ ...item, label, unit });
@@ -107,11 +106,7 @@ const resetAppSearchValue = (columns = [], obj = {}) => {
107
106
  const value = funRunHandler(item.defaultValue);
108
107
  if (Array.isArray(item.prop)) {
109
108
  for (let i = 0; i < item.prop.length; i++) {
110
- genValueByProp(
111
- obj,
112
- item.prop[i],
113
- Array.isArray(value) ? value[i] : void 0
114
- );
109
+ genValueByProp(obj, item.prop[i], Array.isArray(value) ? value[i] : void 0);
115
110
  }
116
111
  } else {
117
112
  genValueByProp(obj, item.prop, value);
@@ -7,9 +7,9 @@ import '../index.mjs';
7
7
  import _sfc_main$1 from './cpns/searchItem.vue.mjs';
8
8
  import { useShrink, isEmptyValue, formContextKey } from './js/index.mjs';
9
9
  import { resetAppSearchValue } from './js/useAppSearch.mjs';
10
- import { useLocale } from '../../hooks/useLocale.mjs';
11
10
  import { isArray, isObject } from '../../utils/is.mjs';
12
11
  import { HyIcon } from '../hyIcon/index.mjs';
12
+ import { $t } from '../../hooks/useLocale.mjs';
13
13
 
14
14
  import "./style/search.scss";
15
15
 
@@ -47,11 +47,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
47
47
  type: [String, Array, Object]
48
48
  }
49
49
  },
50
- emits: ["search"],
50
+ emits: ["search", "optionsStatus"],
51
51
  setup(__props, { expose: __expose, emit: __emit }) {
52
52
  const props = __props;
53
53
  const emits = __emit;
54
- const { t } = useLocale();
55
54
  const formItemWrapper = useTemplateRef("formItemWrapper");
56
55
  const { showShrink, isExpand, containerHeight, switchShrink, shrinkDestroy } = useShrink(props, formItemWrapper);
57
56
  const formColumnMap = computed(() => {
@@ -91,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
91
90
  if (isObject(oldVal)) {
92
91
  count += getFilterCount(newVal, oldVal, targetProp);
93
92
  } else if (isArray(oldVal)) {
94
- if (oldVal.length > 0 && !oldVal.every((t2, i) => t2 === newVal[i])) {
93
+ if (oldVal.length > 0 && !oldVal.every((t, i) => t === newVal[i])) {
95
94
  keySet2.add(unref(formColumnMap).get(key).key);
96
95
  }
97
96
  } else if (isEmptyValue(oldVal) ? !isEmptyValue(newVal) : oldVal !== newVal) {
@@ -129,25 +128,28 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
129
128
  };
130
129
  function filterFields(fields2 = [], keys = []) {
131
130
  const filterKeys = keys.map((prop) => isArray(prop) ? prop.join(".") : prop);
132
- return filterKeys.length ? fields2.filter(
133
- (field) => field.propString && filterKeys.includes(field.propString)
134
- ) : fields2;
131
+ return filterKeys.length ? fields2.filter((field) => field.propString && filterKeys.includes(field.propString)) : fields2;
135
132
  }
136
- async function obtainOptionsFields(keys) {
133
+ async function obtainOptionsFields(keys, isMountedLoad = false) {
137
134
  const filteredFields = filterFields(fields, keys);
138
- await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
135
+ await Promise.allSettled(filteredFields.map((field) => field.obtainOptions(isMountedLoad)));
139
136
  }
140
- async function getOptions() {
141
- await obtainOptionsFields();
137
+ async function getOptions(isMountedLoad = false) {
138
+ await obtainOptionsFields([], isMountedLoad);
139
+ emitOptionsStatus();
142
140
  }
143
141
  async function getOptionsFields(keys) {
144
142
  await obtainOptionsFields(keys);
143
+ emitOptionsStatus();
145
144
  }
146
145
  async function getOptionsError() {
147
- const filteredFields = fields.filter(
148
- (field) => field.propString && field.optionsError
149
- );
146
+ const filteredFields = fields.filter((field) => field.propString && field.optionsError);
150
147
  await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
148
+ emitOptionsStatus();
149
+ }
150
+ function emitOptionsStatus() {
151
+ const hasError = fields.some((item) => item.optionsError === "error");
152
+ emits("optionsStatus", { result: !hasError });
151
153
  }
152
154
  provide(
153
155
  formContextKey,
@@ -155,11 +157,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
155
157
  ...toRefs(props),
156
158
  emits,
157
159
  addField,
158
- removeField
160
+ removeField,
161
+ emitOptionsStatus
159
162
  })
160
163
  );
161
164
  onMounted(() => {
162
- getOptions();
165
+ getOptions(true);
163
166
  });
164
167
  onUnmounted(() => {
165
168
  shrinkDestroy();
@@ -196,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
196
199
  createElementVNode(
197
200
  "span",
198
201
  null,
199
- toDisplayString(unref(t)("hy.filter")),
202
+ toDisplayString(unref($t)("hy.filter")),
200
203
  1
201
204
  /* TEXT */
202
205
  ),
@@ -206,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
206
209
  [
207
210
  createElementVNode(
208
211
  "span",
209
- { class: "bg-theme02 text-theme font-bold leading-4 px-[6px]" },
212
+ { class: "bg-theme02 text-theme font-bold leading-4 px-[6px] box-border" },
210
213
  toDisplayString(filterCount.value),
211
214
  1
212
215
  /* TEXT */
@@ -217,7 +220,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
217
220
  class: "text-auxiliary cursor-pointer",
218
221
  onClick: onResetHandler
219
222
  },
220
- toDisplayString(unref(t)("hy.reset")),
223
+ toDisplayString(unref($t)("hy.reset")),
221
224
  1
222
225
  /* TEXT */
223
226
  )
@@ -233,7 +236,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
233
236
  createElementVNode(
234
237
  "span",
235
238
  { class: "text-auxiliary" },
236
- toDisplayString(unref(isExpand) ? unref(t)("hy.packUp") : unref(t)("hy.expand")),
239
+ toDisplayString(unref(isExpand) ? unref($t)("hy.packUp") : unref($t)("hy.expand")),
237
240
  1
238
241
  /* TEXT */
239
242
  ),
@@ -6,6 +6,7 @@
6
6
  opacity: 1;
7
7
  transition: all 0.3s linear;
8
8
  overflow: hidden;
9
+ box-sizing: border-box;
9
10
  &.hy-search-hidden {
10
11
  padding-top: 0;
11
12
  padding-bottom: 0;
@@ -34,11 +35,19 @@
34
35
  gap: 16px;
35
36
  position: relative;
36
37
  padding: 1px;
38
+ box-sizing: border-box;
37
39
  .hy-el-form-item {
38
40
  margin-bottom: 0;
39
41
  &.hidden {
40
42
  display: none;
41
43
  }
44
+ .hy-el-search-item-error {
45
+ .hy-el-input .hy-el-input__inner::placeholder,
46
+ .hy-el-select__placeholder.is-transparent {
47
+ color: rgba(var(--hy-danger-2));
48
+ font-size: 14px;
49
+ }
50
+ }
42
51
  }
43
52
  .hy-el-input,
44
53
  .hy-el-date-editor {
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './status.vue.mjs';
2
+ import '../../utils/index.mjs';
3
+ import { withInstall } from '../../utils/handler.mjs';
4
+
5
+ const HyStatus = withInstall(_sfc_main);
6
+
7
+ export { HyStatus, HyStatus as default };
@@ -0,0 +1,110 @@
1
+ import { defineComponent, openBlock, createElementBlock, Fragment, createBlock, unref, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
+ import '../index.mjs';
3
+ import { HyIcon } from '../hyIcon/index.mjs';
4
+
5
+ import "./style/status.scss";
6
+
7
+ const __default__ = defineComponent({
8
+ name: "HyStatus"
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
+ props: {
12
+ type: {
13
+ type: String,
14
+ default: "default"
15
+ },
16
+ label: {
17
+ type: String
18
+ },
19
+ isOnline: {
20
+ type: Boolean,
21
+ default: false
22
+ }
23
+ },
24
+ emits: [],
25
+ setup(__props, { expose: __expose, emit: __emit }) {
26
+ const props = __props;
27
+ const emits = __emit;
28
+ const color = {
29
+ default: "text-auxiliary",
30
+ primary: "text-theme",
31
+ success: "text-success",
32
+ warning: "text-warning",
33
+ danger: "text-danger-2"
34
+ };
35
+ const bgColor = {
36
+ default: "bg-auxiliary",
37
+ primary: "bg-theme",
38
+ success: "bg-success",
39
+ warning: "bg-warning",
40
+ danger: "bg-danger-2"
41
+ };
42
+ const shadowColor = {
43
+ default: "bg-[rgba(var(--hy-auxiliary),0.28)]",
44
+ primary: "bg-[rgba(var(--hy-theme),0.28)]",
45
+ success: "bg-[rgba(var(--hy-success),0.28)]",
46
+ warning: "bg-[rgba(var(--hy-warning),0.28)]",
47
+ danger: "bg-[rgba(var(--hy-danger),0.28)]"
48
+ };
49
+ __expose({});
50
+ return (_ctx, _cache) => {
51
+ return openBlock(), createElementBlock("div", { class: "inline-flex items-center gap-2 text-sm" }, [
52
+ __props.isOnline ? (openBlock(), createElementBlock(
53
+ Fragment,
54
+ { key: 0 },
55
+ [
56
+ __props.type === "danger" ? (openBlock(), createBlock(unref(HyIcon), {
57
+ key: 0,
58
+ "svg-name": "ops-list-device-id-off-line",
59
+ class: "!w-3 !h-3"
60
+ })) : (openBlock(), createBlock(unref(HyIcon), {
61
+ key: 1,
62
+ "svg-name": "ops-list-device-id-on-line",
63
+ class: "!w-3 !h-3"
64
+ }))
65
+ ],
66
+ 64
67
+ /* STABLE_FRAGMENT */
68
+ )) : (openBlock(), createElementBlock(
69
+ "div",
70
+ {
71
+ key: 1,
72
+ class: normalizeClass(["w-2.5 h-2.5 flex items-center justify-center rounded-full flex-shrink-0 box-border", [shadowColor[__props.type]]])
73
+ },
74
+ [
75
+ createElementVNode(
76
+ "div",
77
+ {
78
+ class: normalizeClass(["w-1.5 h-1.5 rounded-full", [bgColor[__props.type]]])
79
+ },
80
+ null,
81
+ 2
82
+ /* CLASS */
83
+ )
84
+ ],
85
+ 2
86
+ /* CLASS */
87
+ )),
88
+ createElementVNode(
89
+ "span",
90
+ {
91
+ class: normalizeClass([color[__props.type]])
92
+ },
93
+ [
94
+ renderSlot(_ctx.$slots, "default", {}, () => [
95
+ createTextVNode(
96
+ toDisplayString(__props.label),
97
+ 1
98
+ /* TEXT */
99
+ )
100
+ ])
101
+ ],
102
+ 2
103
+ /* CLASS */
104
+ )
105
+ ]);
106
+ };
107
+ }
108
+ });
109
+
110
+ export { _sfc_main as default };
File without changes
@@ -1,4 +1,4 @@
1
- import { useTemplateRef, ref, computed, unref, nextTick, watch, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, normalizeClass, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode } from 'vue';
1
+ import { useTemplateRef, ref, computed, unref, nextTick, watch, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, createElementBlock, normalizeClass, createCommentVNode, Fragment, renderList, createTextVNode } from 'vue';
2
2
  import Sortable from 'sortablejs';
3
3
  import { ElMessage, ElPopover, ElCheckboxGroup } from 'element-plus';
4
4
  import '../../../hooks/index.mjs';
@@ -6,7 +6,7 @@ import '../../../utils/index.mjs';
6
6
  import '../../index.mjs';
7
7
  import { tableColumnShowHandler, tableColumnHandler } from '../js/index.mjs';
8
8
  import _sfc_main$1 from './columnSelectItem.vue.mjs';
9
- import { useLocale } from '../../../hooks/useLocale.mjs';
9
+ import { $t } from '../../../hooks/useLocale.mjs';
10
10
  import { isEmpty } from '../../../utils/is.mjs';
11
11
  import { HyIcon } from '../../hyIcon/index.mjs';
12
12
  import { HyTooltip } from '../../hyTooltip/index.mjs';
@@ -32,7 +32,6 @@ const _sfc_main = {
32
32
  setup(__props, { expose: __expose, emit: __emit }) {
33
33
  const props = __props;
34
34
  const emits = __emit;
35
- const { t } = useLocale();
36
35
  const popoverRef = useTemplateRef("popoverRef");
37
36
  const listRef = useTemplateRef("listRef");
38
37
  const tableColumns = ref([]);
@@ -42,6 +41,11 @@ const _sfc_main = {
42
41
  return total + (isShowColumn(column) ? 1 : 0);
43
42
  }, 0);
44
43
  });
44
+ const cannotDragged = computed(() => {
45
+ return props.columns.reduce((total, column) => {
46
+ return total + (isShowColumn(column) && column.editable.lock ? 1 : 0);
47
+ }, 0);
48
+ });
45
49
  function isShowColumn(column) {
46
50
  return tableColumnShowHandler(column) && column.editable.edit;
47
51
  }
@@ -81,9 +85,7 @@ const _sfc_main = {
81
85
  }, /* @__PURE__ */ new Map());
82
86
  });
83
87
  function onCheckedHandler(target) {
84
- const currentIndex = checkedList.value.findIndex(
85
- (item) => item === target.prop
86
- );
88
+ const currentIndex = checkedList.value.findIndex((item) => item === target.prop);
87
89
  if (currentIndex !== -1) {
88
90
  checkedList.value.splice(currentIndex, 1);
89
91
  } else {
@@ -93,11 +95,11 @@ const _sfc_main = {
93
95
  }
94
96
  function onConfirmHandler() {
95
97
  if (!checkedList.value.length && showColumnsLength.value === tableEditableColumns.value?.length) {
96
- ElMessage.warning(t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
98
+ ElMessage.warning($t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
97
99
  return;
98
100
  }
99
101
  if (checkedList.value.length > 15) {
100
- ElMessage.warning(t("table.maxColumnLimitTip"));
102
+ ElMessage.warning($t("table.maxColumnLimitTip"));
101
103
  return;
102
104
  }
103
105
  const editableObj = tableEditableColumns.value.reduce(
@@ -112,9 +114,7 @@ const _sfc_main = {
112
114
  closePopover();
113
115
  }
114
116
  function onClearHandler() {
115
- const { columnsList, columnsEditablele } = tableColumnHandler(
116
- props.originColumns
117
- );
117
+ const { columnsList, columnsEditablele } = tableColumnHandler(props.originColumns);
118
118
  initColumnsInfo(columnsList, columnsEditablele);
119
119
  showReset.value = false;
120
120
  }
@@ -128,19 +128,14 @@ const _sfc_main = {
128
128
  animation: 150,
129
129
  onEnd(event) {
130
130
  const { oldIndex, newIndex } = event;
131
- if (isEmpty(oldIndex) || isEmpty(newIndex) || oldIndex === newIndex)
132
- return;
131
+ if (isEmpty(oldIndex) || isEmpty(newIndex) || oldIndex === newIndex) return;
133
132
  const minIndex = Math.min(oldIndex, newIndex);
134
133
  const maxIndex = Math.max(oldIndex, newIndex);
135
134
  const sortList = [];
136
135
  for (let i = minIndex; i <= maxIndex; i++) {
137
136
  sortList[i] = tableEditableColumns.value[i].sortIndex;
138
137
  }
139
- tableEditableColumns.value.splice(
140
- newIndex,
141
- 0,
142
- tableEditableColumns.value.splice(oldIndex, 1)[0]
143
- );
138
+ tableEditableColumns.value.splice(newIndex, 0, tableEditableColumns.value.splice(oldIndex, 1)[0]);
144
139
  for (let i = minIndex; i <= maxIndex; i++) {
145
140
  tableEditableColumns.value[i].sortIndex = sortList[i];
146
141
  }
@@ -176,7 +171,7 @@ const _sfc_main = {
176
171
  },
177
172
  {
178
173
  reference: withCtx(() => [
179
- createElementVNode("div", { class: "h-[32px] flex items-center gap-[10px] clickBox px-3 rounded hover:bg-background-2" }, [
174
+ createElementVNode("div", { class: "h-[32px] flex items-center gap-[10px] clickBox px-3 rounded hover:bg-background-2 box-border" }, [
180
175
  createVNode(unref(HyIcon), {
181
176
  "svg-name": "ops-button-edit-column",
182
177
  "class-name": "!w-3 !h-3"
@@ -184,7 +179,7 @@ const _sfc_main = {
184
179
  createElementVNode(
185
180
  "span",
186
181
  null,
187
- toDisplayString(unref(t)("table.editColumn")) + " \xB7 " + toDisplayString(showColumnsLength.value),
182
+ toDisplayString(unref($t)("table.editColumn")) + " \xB7 " + toDisplayString(showColumnsLength.value),
188
183
  1
189
184
  /* TEXT */
190
185
  )
@@ -196,7 +191,7 @@ const _sfc_main = {
196
191
  createElementVNode(
197
192
  "span",
198
193
  { class: "text-main font-bold" },
199
- toDisplayString(unref(t)("table.editColumn")),
194
+ toDisplayString(unref($t)("table.editColumn")),
200
195
  1
201
196
  /* TEXT */
202
197
  ),
@@ -206,7 +201,7 @@ const _sfc_main = {
206
201
  onClick: closePopover
207
202
  })
208
203
  ]),
209
- createElementVNode("div", { class: "flex items-center gap-1.5 px-4 py-2.5 text-xs text-theme" }, [
204
+ createElementVNode("div", { class: "flex items-center gap-1.5 px-4 py-2.5 text-xs text-theme box-border" }, [
210
205
  createVNode(unref(HyIcon), {
211
206
  "svg-name": "dispatch-share1-prompt",
212
207
  "class-name": "!w-3 !h-3"
@@ -219,9 +214,10 @@ const _sfc_main = {
219
214
  "onUpdate:modelValue": ($event) => checkedList.value = $event
220
215
  }, {
221
216
  default: withCtx(() => [
222
- createElementVNode(
217
+ cannotDragged.value > 0 ? (openBlock(), createElementBlock(
223
218
  "div",
224
219
  {
220
+ key: 0,
225
221
  class: normalizeClass(["flex flex-col gap-1.5 leading-3 text-info", { "mb-1.5": tableEditableColumns.value.length > 0 }])
226
222
  },
227
223
  [
@@ -250,7 +246,7 @@ const _sfc_main = {
250
246
  ],
251
247
  2
252
248
  /* CLASS */
253
- ),
249
+ )) : createCommentVNode("v-if", true),
254
250
  createCommentVNode(" \u53EF\u62D6\u62FD "),
255
251
  createElementVNode(
256
252
  "div",
@@ -289,7 +285,7 @@ const _sfc_main = {
289
285
  createElementVNode(
290
286
  "span",
291
287
  null,
292
- toDisplayString(unref(t)("table.selectedNumberItems", [checkedList.value?.length || 0])),
288
+ toDisplayString(unref($t)("table.selectedNumberItems", [checkedList.value?.length || 0])),
293
289
  1
294
290
  /* TEXT */
295
291
  ),
@@ -300,7 +296,7 @@ const _sfc_main = {
300
296
  class: "clickBox text-danger-2 ml-3",
301
297
  onClick: onClearHandler
302
298
  },
303
- toDisplayString(unref(t)("hy.reset")),
299
+ toDisplayString(unref($t)("hy.reset")),
304
300
  1
305
301
  /* TEXT */
306
302
  )) : createCommentVNode("v-if", true)
@@ -316,7 +312,7 @@ const _sfc_main = {
316
312
  }),
317
313
  createVNode(unref(HyTooltip), {
318
314
  "is-always": false,
319
- content: unref(t)("table.tooManyFieldsWillAffectReadability"),
315
+ content: unref($t)("table.tooManyFieldsWillAffectReadability"),
320
316
  class: "mr-2 text-auxiliary"
321
317
  }, null, 8, ["content"])
322
318
  ],
@@ -330,7 +326,7 @@ const _sfc_main = {
330
326
  }, {
331
327
  default: withCtx(() => [
332
328
  createTextVNode(
333
- toDisplayString(unref(t)("hy.confirm")),
329
+ toDisplayString(unref($t)("hy.confirm")),
334
330
  1
335
331
  /* TEXT */
336
332
  )
@@ -4,7 +4,7 @@ import { Lock } from '@element-plus/icons-vue';
4
4
  import '../../../hooks/index.mjs';
5
5
  import { renderHeaderHandler } from '../js/index.mjs';
6
6
  import '../../index.mjs';
7
- import { useLocale } from '../../../hooks/useLocale.mjs';
7
+ import { $t } from '../../../hooks/useLocale.mjs';
8
8
  import { HyTooltip } from '../../hyTooltip/index.mjs';
9
9
 
10
10
  const _sfc_main = {
@@ -27,7 +27,6 @@ const _sfc_main = {
27
27
  setup(__props, { emit: __emit }) {
28
28
  const props = __props;
29
29
  const emits = __emit;
30
- const { t } = useLocale();
31
30
  function onClickHandler(column) {
32
31
  if (column.editable.lock) return;
33
32
  emits("checked", column);
@@ -78,7 +77,7 @@ const _sfc_main = {
78
77
  __props.checkMap.has(__props.column.prop) ? (openBlock(), createElementBlock(
79
78
  "span",
80
79
  { key: 0 },
81
- toDisplayString(unref(t)("table.show")),
80
+ toDisplayString(unref($t)("table.show")),
82
81
  1
83
82
  /* TEXT */
84
83
  )) : (openBlock(), createElementBlock(
@@ -87,7 +86,7 @@ const _sfc_main = {
87
86
  key: 1,
88
87
  class: "text-info"
89
88
  },
90
- toDisplayString(unref(t)("table.notShown")),
89
+ toDisplayString(unref($t)("table.notShown")),
91
90
  1
92
91
  /* TEXT */
93
92
  )),
@@ -99,7 +98,7 @@ const _sfc_main = {
99
98
  }, [
100
99
  createElementVNode("div", {
101
100
  class: "w-5 h-2.5",
102
- style: { "background": "radial-gradient(\n circle,\n rgba(var(--hy-theme)) 1px,\n transparent 2px\n )\n 0px 0px / 5px 5px" }
101
+ style: { "background": "radial-gradient(circle, rgba(var(--hy-theme)) 1px, transparent 2px) 0px 0px / 5px 5px" }
103
102
  })
104
103
  ], 8, ["onClick"])) : createCommentVNode("v-if", true)
105
104
  ])) : createCommentVNode("v-if", true)
@@ -108,12 +107,12 @@ const _sfc_main = {
108
107
  default: withCtx(() => [
109
108
  createElementVNode(
110
109
  "div",
111
- { class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border" },
110
+ { class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border box-border" },
112
111
  toDisplayString(unref(renderHeaderHandler)(__props.column)),
113
112
  1
114
113
  /* TEXT */
115
114
  ),
116
- createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs" }, [
115
+ createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs box-border" }, [
117
116
  __props.column.editable.desc ? (openBlock(), createElementBlock(
118
117
  "div",
119
118
  { key: 0 },
@@ -125,7 +124,7 @@ const _sfc_main = {
125
124
  createElementVNode(
126
125
  "div",
127
126
  { class: "text-auxiliary mb-1.5" },
128
- toDisplayString(unref(t)("table.example")),
127
+ toDisplayString(unref($t)("table.example")),
129
128
  1
130
129
  /* TEXT */
131
130
  ),
@@ -138,7 +137,7 @@ const _sfc_main = {
138
137
  "div",
139
138
  {
140
139
  key: index,
141
- class: "leading-5 bg-background-2 px-1.5 rounded-[2px]"
140
+ class: "leading-5 bg-background-2 px-1.5 rounded-[2px] box-border"
142
141
  },
143
142
  toDisplayString(item),
144
143
  1
@@ -64,10 +64,10 @@ const _sfc_main = {
64
64
  return (_ctx, _cache) => {
65
65
  return columnSort.value.show ? (openBlock(), createElementBlock("div", {
66
66
  key: 0,
67
- class: "w-full relative cursor-pointer",
67
+ class: "w-full flex items-center gap-1 relative cursor-pointer",
68
68
  onClick: ($event) => onSortHandler(columnSort.value.prop, null)
69
69
  }, [
70
- createElementVNode("div", { class: "flex flex-col absolute top-1/2 -left-1 transform -translate-y-1/2 -translate-x-full" }, [
70
+ createElementVNode("div", { class: "flex flex-col" }, [
71
71
  createVNode(unref(ElIcon), {
72
72
  size: "8",
73
73
  color: isSortActive(columnSort.value.prop, "asc") ? "rgba(var(--hy-theme))" : "rgba(var(--hy-auxiliary))",