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
@@ -13,9 +13,9 @@ var search = require('./js/search.js');
13
13
  var headerItem = require('./cpns/headerItem.vue.js');
14
14
  var columnSelect = require('./cpns/columnSelect.vue.js');
15
15
  var virtualTable = require('./cpns/virtualTable.vue.js');
16
- var useLocale = require('../../hooks/useLocale.js');
17
16
  var useMixins = require('../../hooks/useMixins.js');
18
17
  var index$1 = require('../hyIcon/index.js');
18
+ var useLocale = require('../../hooks/useLocale.js');
19
19
  var index$2 = require('../hyTooltip/index.js');
20
20
  var index$3 = require('../hyInput/index.js');
21
21
  var index$4 = require('../hyButton/index.js');
@@ -203,13 +203,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
203
203
  "expand-change",
204
204
  "on-select-checkbox",
205
205
  "reqSuccess",
206
- "search-data"
206
+ "search-data",
207
+ "scroll"
207
208
  ], ["update:loading"]),
208
209
  setup(__props, { expose: __expose, emit: __emit }) {
209
210
  const props = __props;
210
211
  const emits = __emit;
211
212
  const loading = vue.useModel(__props, "loading");
212
- const { t } = useLocale.useLocale();
213
213
  const containerRef = vue.useTemplateRef("containerRef");
214
214
  const tableRef = vue.useTemplateRef("tableRef");
215
215
  const appSearchRef = vue.useTemplateRef("appSearchRef");
@@ -233,12 +233,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
233
233
  clearSelectedList,
234
234
  expandRowKeys,
235
235
  expandRowKeyMap,
236
+ getRowExpansion,
236
237
  setRowExpansion,
237
238
  toggleRowExpansion,
238
239
  onTableRowClickHandler,
239
240
  onTableRowContextmenuHandler,
240
241
  onTableRowExpandChangeHandler,
241
242
  onTableSelectHandler,
243
+ scrollToTop,
244
+ scrollToLeft,
245
+ onScrollHandler,
242
246
  // useAppTableSearch
243
247
  // 表单查询
244
248
  totalElements,
@@ -255,7 +259,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
255
259
  onCurrentChangeHandler,
256
260
  onSearchQueryHandler,
257
261
  showAppTableLoading,
258
- closeAppTableLoading
262
+ closeAppTableLoading,
263
+ getOptions,
264
+ getOptionsFields,
265
+ getOptionsError,
266
+ getOptionsByField
259
267
  } = useMixins.useMixins(
260
268
  {
261
269
  props,
@@ -282,10 +290,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
282
290
  getTableDataSource,
283
291
  clearSelection,
284
292
  clearSelectedList,
293
+ getRowExpansion,
285
294
  setRowExpansion,
286
295
  toggleRowExpansion,
287
296
  showAppTableLoading,
288
- closeAppTableLoading
297
+ closeAppTableLoading,
298
+ getOptions,
299
+ getOptionsFields,
300
+ getOptionsError,
301
+ getOptionsByField,
302
+ scrollToTop,
303
+ scrollToLeft
289
304
  });
290
305
  return (_ctx, _cache) => {
291
306
  return vue.openBlock(), vue.createElementBlock(
@@ -311,7 +326,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
311
326
  }, null, 8, ["columns", "columns-editable", "origin-columns", "onConfirm"])) : vue.createCommentVNode("v-if", true),
312
327
  __props.filterColumns.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
313
328
  key: 1,
314
- class: "h-[32px] flex items-center gap-[10px] clickBox px-3 select-none rounded hover:bg-background-2",
329
+ class: "h-[32px] flex items-center gap-[10px] clickBox px-3 select-none rounded hover:bg-background-2 box-border",
315
330
  onClick: vue.unref(switchShowFilter)
316
331
  }, [
317
332
  vue.createVNode(vue.unref(index$1.HyIcon), {
@@ -321,7 +336,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
321
336
  vue.createElementVNode(
322
337
  "span",
323
338
  null,
324
- vue.toDisplayString(vue.unref(showFilter) ? vue.unref(t)("table.hideFilter") : vue.unref(t)("table.displayFilter")),
339
+ vue.toDisplayString(vue.unref(showFilter) ? vue.unref(useLocale.$t)("table.hideFilter") : vue.unref(useLocale.$t)("table.displayFilter")),
325
340
  1
326
341
  /* TEXT */
327
342
  )
@@ -334,14 +349,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
334
349
  }, {
335
350
  content: vue.withCtx(() => [
336
351
  vue.createElementVNode("span", {
337
- innerHTML: vue.unref(t)("table.searchByInput", [vue.unref(searchPlaceholder)])
352
+ innerHTML: vue.unref(useLocale.$t)("table.searchByInput", [vue.unref(searchPlaceholder)])
338
353
  }, null, 8, ["innerHTML"])
339
354
  ]),
340
355
  default: vue.withCtx(() => [
341
356
  vue.createVNode(vue.unref(index$3.HyInputSearch), {
342
357
  modelValue: __props.filterModel.query,
343
358
  "onUpdate:modelValue": ($event) => __props.filterModel.query = $event,
344
- placeholder: vue.unref(t)("table.searchFor", [__props.controllerText || ""]),
359
+ placeholder: vue.unref(useLocale.$t)("table.searchFor", [__props.controllerText || ""]),
345
360
  onSearch: vue.unref(onSearchQueryHandler)
346
361
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onSearch"])
347
362
  ]),
@@ -379,7 +394,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
379
394
  columns: __props.filterColumns,
380
395
  hidden: !vue.unref(showFilter),
381
396
  class: vue.normalizeClass({ "mb-4": vue.unref(showFilter) }),
382
- onSearch: ($event) => vue.unref(getData)(1)
397
+ onSearch: ($event) => vue.unref(getData)(1),
398
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
383
399
  }, vue.createSlots({
384
400
  _: 2
385
401
  /* DYNAMIC */
@@ -392,7 +408,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
392
408
  ])
393
409
  };
394
410
  })
395
- ]), 1032, ["model", "columns", "hidden", "class", "onSearch"])) : vue.createCommentVNode("v-if", true),
411
+ ]), 1032, ["model", "columns", "hidden", "class", "onSearch", "onOptionsStatus"])) : vue.createCommentVNode("v-if", true),
396
412
  vue.createCommentVNode(" \u4E3B\u5185\u5BB9 "),
397
413
  vue.createElementVNode("div", { class: "h-0 flex-1 flex flex-col border border-border rounded overflow-hidden" }, [
398
414
  vue.createCommentVNode(" \u8868\u683C "),
@@ -416,14 +432,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
416
432
  onSelectAll: (list) => vue.unref(onTableSelectHandler)(list, null, true),
417
433
  onRowClick: vue.unref(onTableRowClickHandler),
418
434
  onRowContextmenu: vue.unref(onTableRowContextmenuHandler),
419
- onExpandChange: vue.unref(onTableRowExpandChangeHandler)
435
+ onExpandChange: vue.unref(onTableRowExpandChangeHandler),
436
+ onScroll: vue.unref(onScrollHandler)
420
437
  }), {
421
438
  empty: vue.withCtx(() => [
422
439
  vue.renderSlot(_ctx.$slots, "empty", {}, () => [
423
440
  vue.createElementVNode(
424
441
  "span",
425
442
  null,
426
- vue.toDisplayString(__props.emptyText || vue.unref(t)("hy.noData")),
443
+ vue.toDisplayString(__props.emptyText || vue.unref(useLocale.$t)("hy.noData")),
427
444
  1
428
445
  /* TEXT */
429
446
  )
@@ -476,11 +493,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
476
493
  (vue.openBlock(true), vue.createElementBlock(
477
494
  vue.Fragment,
478
495
  null,
479
- vue.renderList(vue.unref(index.operatorFilterHandler)(
480
- column,
481
- scope,
482
- "default"
483
- ), (citem, cindex) => {
496
+ vue.renderList(vue.unref(index.operatorFilterHandler)(column, scope, "default"), (citem, cindex) => {
484
497
  return vue.openBlock(), vue.createBlock(vue.unref(index$2.HyTooltip), {
485
498
  key: cindex,
486
499
  "is-always": "",
@@ -489,7 +502,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
489
502
  }, {
490
503
  default: vue.withCtx(() => [
491
504
  vue.createElementVNode("div", {
492
- class: vue.normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border", [
505
+ class: vue.normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded relative box-border", [
493
506
  citem.className,
494
507
  vue.unref(index.operatorDisabledHandler)(citem, scope) ? "cursor-not-allowed text-[var(--hy-el-text-color-disabled)] hover:border-[rgba(var(--hy-auxiliary),1)] hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-auxiliary),0.5)]" : "cursor-pointer hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)]"
495
508
  ]]),
@@ -513,7 +526,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
513
526
  )) : (vue.openBlock(), vue.createElementBlock("div", {
514
527
  key: 1,
515
528
  class: "mt-1 whitespace-nowrap"
516
- }, "\xA0"))
529
+ }, "\xA0")),
530
+ vue.unref(index.operatorIsDotHandler)(citem, scope) ? (vue.openBlock(), vue.createElementBlock("div", {
531
+ key: 2,
532
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
533
+ })) : vue.createCommentVNode("v-if", true)
517
534
  ], 42, ["onClick", "onContextmenu"])
518
535
  ]),
519
536
  _: 2
@@ -542,21 +559,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
542
559
  (vue.openBlock(true), vue.createElementBlock(
543
560
  vue.Fragment,
544
561
  null,
545
- vue.renderList(vue.unref(index.operatorFilterHandler)(
546
- column,
547
- scope,
548
- "more"
549
- ), (citem, cindex) => {
562
+ vue.renderList(vue.unref(index.operatorFilterHandler)(column, scope, "more"), (citem, cindex) => {
550
563
  return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdownItem), {
551
564
  key: cindex,
552
565
  command: cindex,
553
566
  disabled: vue.unref(index.operatorDisabledHandler)(citem, scope)
554
567
  }, {
555
568
  default: vue.withCtx(() => [
556
- vue.createElementVNode("span", null, [
569
+ vue.createElementVNode("span", { class: "relative" }, [
557
570
  vue.createElementVNode(
558
571
  "span",
559
- null,
572
+ { class: "pr-1" },
560
573
  vue.toDisplayString(citem.label),
561
574
  1
562
575
  /* TEXT */
@@ -570,7 +583,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
570
583
  "\uFF08" + vue.toDisplayString(vue.unref(index.operatorDisableTextdHandler)(citem, scope)) + "\uFF09",
571
584
  1
572
585
  /* TEXT */
573
- )) : vue.createCommentVNode("v-if", true)
586
+ )) : vue.createCommentVNode("v-if", true),
587
+ vue.unref(index.operatorIsDotHandler)(citem, scope) ? (vue.openBlock(), vue.createElementBlock("div", {
588
+ key: 1,
589
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
590
+ })) : vue.createCommentVNode("v-if", true)
574
591
  ])
575
592
  ]),
576
593
  _: 2
@@ -598,7 +615,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
598
615
  vue.createVNode(vue.unref(index$2.HyTooltip), {
599
616
  "is-always": "",
600
617
  overLine: 1,
601
- content: vue.unref(t)("table.moreOperations")
618
+ content: vue.unref(useLocale.$t)("table.moreOperations")
602
619
  }, {
603
620
  default: vue.withCtx(() => [
604
621
  vue.createElementVNode("div", { class: "w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-main text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer" }, [
@@ -615,7 +632,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
615
632
  vue.createElementVNode(
616
633
  "div",
617
634
  { class: "mt-0.5" },
618
- vue.toDisplayString(vue.unref(t)("table.more")),
635
+ vue.toDisplayString(vue.unref(useLocale.$t)("table.more")),
619
636
  1
620
637
  /* TEXT */
621
638
  )
@@ -679,7 +696,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
679
696
  ]),
680
697
  _: 3
681
698
  /* FORWARDED */
682
- }, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "expand-row-keys", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])) : vue.createCommentVNode("v-if", true),
699
+ }, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "expand-row-keys", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange", "onScroll"])) : vue.createCommentVNode("v-if", true),
683
700
  __props.type === "virtual" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAutoResizer), { key: 1 }, {
684
701
  default: vue.withCtx(({ height, width }) => [
685
702
  vue.createVNode(virtualTable.default, vue.mergeProps({
@@ -708,7 +725,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
708
725
  onSelectAll: vue.unref(onTableSelectHandler),
709
726
  onRowClick: vue.unref(onTableRowClickHandler),
710
727
  onRowContextmenu: vue.unref(onTableRowContextmenuHandler),
711
- onExpandClick: vue.unref(onTableRowExpandChangeHandler)
728
+ onExpandClick: vue.unref(onTableRowExpandChangeHandler),
729
+ onScroll: vue.unref(onScrollHandler)
712
730
  }), vue.createSlots({
713
731
  empty: vue.withCtx(() => [
714
732
  vue.createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
@@ -716,7 +734,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
716
734
  vue.createElementVNode(
717
735
  "span",
718
736
  null,
719
- vue.toDisplayString(__props.emptyText || vue.unref(t)("hy.noData")),
737
+ vue.toDisplayString(__props.emptyText || vue.unref(useLocale.$t)("hy.noData")),
720
738
  1
721
739
  /* TEXT */
722
740
  )
@@ -734,7 +752,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
734
752
  ])
735
753
  };
736
754
  })
737
- ]), 1040, ["expandedRowKeys", "onUpdate:expandedRowKeys", "expandRowKeyMap", "width", "height", "data", "columns", "columns-editable", "show-header", "row-class-name", "show-all-select", "style", "row-key", "filter-model", "expandMode", "onSearch", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandClick"])
755
+ ]), 1040, ["expandedRowKeys", "onUpdate:expandedRowKeys", "expandRowKeyMap", "width", "height", "data", "columns", "columns-editable", "show-header", "row-class-name", "show-all-select", "style", "row-key", "filter-model", "expandMode", "onSearch", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandClick", "onScroll"])
738
756
  ]),
739
757
  _: 3
740
758
  /* FORWARDED */
@@ -748,11 +766,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
748
766
  vue.createElementVNode(
749
767
  "div",
750
768
  { class: "absolute left-4 top-1/2 transform -translate-y-1/2 text-sm" },
751
- vue.toDisplayString(vue.unref(t)("table.aTotalOfPiecesOfData", [vue.unref(totalElements)])),
769
+ vue.toDisplayString(vue.unref(useLocale.$t)("table.aTotalOfPiecesOfData", [vue.unref(totalElements)])),
752
770
  1
753
771
  /* TEXT */
754
772
  ),
755
- vue.createVNode(vue.unref(elementPlus.ElPagination), {
773
+ vue.unref(totalElements) >= 10 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), {
774
+ key: 0,
756
775
  "current-page": __props.filterModel.page,
757
776
  "onUpdate:currentPage": ($event) => __props.filterModel.page = $event,
758
777
  "page-size": __props.filterModel.size,
@@ -763,12 +782,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
763
782
  layout: __props.layout,
764
783
  size: "default",
765
784
  background: "",
766
- "hide-on-single-page": "",
767
785
  onSizeChange: vue.unref(onSizeChangeHandler),
768
786
  onCurrentChange: vue.unref(onCurrentChangeHandler)
769
- }, null, 8, ["current-page", "onUpdate:currentPage", "page-size", "onUpdate:pageSize", "total", "pager-count", "layout", "onSizeChange", "onCurrentChange"]),
787
+ }, null, 8, ["current-page", "onUpdate:currentPage", "page-size", "onUpdate:pageSize", "total", "pager-count", "layout", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("v-if", true),
770
788
  vue.unref(selectedList) && vue.unref(selectedList).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
771
- key: 0,
789
+ key: 1,
772
790
  class: "absolute right-4 top-1/2 transform -translate-y-1/2"
773
791
  }, [
774
792
  vue.renderSlot(_ctx.$slots, "multiple-operator-slot")
@@ -787,12 +805,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
787
805
  },
788
806
  "virtual-triggering": "",
789
807
  trigger: "contextmenu",
790
- placement: "bottom",
791
- onCommand: ($event) => vue.unref(index.operatorClickHandler)(
792
- $event,
793
- vue.unref(tableTriggerRef).column,
794
- vue.unref(tableTriggerRef).scope
795
- )
808
+ placement: "bottom-end",
809
+ onCommand: ($event) => vue.unref(index.operatorClickHandler)($event, vue.unref(tableTriggerRef).column, vue.unref(tableTriggerRef).scope)
796
810
  }, {
797
811
  dropdown: vue.withCtx(() => [
798
812
  vue.createVNode(vue.unref(elementPlus.ElDropdownMenu), { class: "hy-table-dropdown-menu" }, {
@@ -800,20 +814,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
800
814
  (vue.openBlock(true), vue.createElementBlock(
801
815
  vue.Fragment,
802
816
  null,
803
- vue.renderList(vue.unref(index.operatorFilterHandler)(
804
- vue.unref(tableTriggerRef).column,
805
- vue.unref(tableTriggerRef).scope
806
- ), (citem, cindex) => {
817
+ vue.renderList(vue.unref(index.operatorFilterHandler)(vue.unref(tableTriggerRef).column, vue.unref(tableTriggerRef).scope), (citem, cindex) => {
807
818
  return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdownItem), {
808
819
  key: cindex,
809
820
  command: cindex,
810
821
  disabled: vue.unref(index.operatorDisabledHandler)(citem, vue.unref(tableTriggerRef).scope)
811
822
  }, {
812
823
  default: vue.withCtx(() => [
813
- vue.createElementVNode("span", null, [
824
+ vue.createElementVNode("span", { class: "relative" }, [
814
825
  vue.createElementVNode(
815
826
  "span",
816
- null,
827
+ { class: "pr-1" },
817
828
  vue.toDisplayString(citem.label),
818
829
  1
819
830
  /* TEXT */
@@ -827,7 +838,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
827
838
  "\uFF08" + vue.toDisplayString(vue.unref(index.operatorDisableTextdHandler)(citem, vue.unref(tableTriggerRef).scope)) + "\uFF09",
828
839
  1
829
840
  /* TEXT */
830
- )) : vue.createCommentVNode("v-if", true)
841
+ )) : vue.createCommentVNode("v-if", true),
842
+ vue.unref(index.operatorIsDotHandler)(citem, vue.unref(tableTriggerRef).scope) ? (vue.openBlock(), vue.createElementBlock("div", {
843
+ key: 1,
844
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
845
+ })) : vue.createCommentVNode("v-if", true)
831
846
  ])
832
847
  ]),
833
848
  _: 2
@@ -5,10 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
- require('../../hooks/index.js');
9
8
  require('../../utils/index.js');
10
9
  require('../index.js');
11
- var useLocale = require('../../hooks/useLocale.js');
12
10
  var is = require('../../utils/is.js');
13
11
  var index = require('../hyTooltip/index.js');
14
12
  var index$1 = require('../hyButton/index.js');
@@ -63,13 +61,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
63
61
  default: () => {
64
62
  return [];
65
63
  }
64
+ },
65
+ isDot: {
66
+ // 是否显示小红点
67
+ type: Boolean,
68
+ default: false
66
69
  }
67
70
  },
68
71
  emits: ["change"],
69
72
  setup(__props, { expose: __expose, emit: __emit }) {
70
73
  const props = __props;
71
74
  const emits = __emit;
72
- const { t } = useLocale.useLocale();
73
75
  const visible = vue.ref(false);
74
76
  const dataList = vue.ref([]);
75
77
  const selectedData = vue.ref(null);
@@ -148,6 +150,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
148
150
  disabled: __props.disabled,
149
151
  class: vue.normalizeClass(selectedData.value.buttonClass || __props.buttonClass),
150
152
  svgName: selectedData.value.svgName || __props.svgName,
153
+ isDot: __props.isDot,
151
154
  onClick: ($event) => buttonChange(selectedData.value)
152
155
  }, {
153
156
  default: vue.withCtx(() => [
@@ -159,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
159
162
  ]),
160
163
  _: 1
161
164
  /* STABLE */
162
- }, 8, ["type", "size", "disabled", "class", "svgName", "onClick"])
165
+ }, 8, ["type", "size", "disabled", "class", "svgName", "isDot", "onClick"])
163
166
  ]),
164
167
  _: 1
165
168
  /* STABLE */
@@ -178,11 +181,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
178
181
  size: __props.size,
179
182
  disabled: __props.disabled,
180
183
  class: vue.normalizeClass(__props.buttonClass),
184
+ isDot: __props.isDot,
181
185
  onClick: ($event) => buttonChange(selectedData.value)
182
186
  }, {
183
187
  content: vue.withCtx(() => [
184
188
  vue.createElementVNode("div", { class: "h-full flex items-center justify-center pl-[14px]" }, [
185
- vue.createVNode(vue.unref(index$2.HyIcon), { "svg-name": __props.svgName }, null, 8, ["svg-name"]),
189
+ vue.createVNode(vue.unref(index$2.HyIcon), {
190
+ "svg-name": __props.svgName,
191
+ class: "w-[14px] h-[14px]"
192
+ }, null, 8, ["svg-name"]),
186
193
  vue.createElementVNode(
187
194
  "span",
188
195
  { class: "ml-[6px]" },
@@ -223,7 +230,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
223
230
  ]),
224
231
  _: 1
225
232
  /* STABLE */
226
- }, 8, ["type", "size", "disabled", "class", "onClick"])
233
+ }, 8, ["type", "size", "disabled", "class", "isDot", "onClick"])
227
234
  ]),
228
235
  default: vue.withCtx(() => [
229
236
  vue.createElementVNode("ul", { class: "max-h-[500px] overflow-x-auto box-border" }, [
@@ -11,7 +11,6 @@ require('../index.js');
11
11
  var tableForm = require('./tableForm.vue.js');
12
12
  var index = require('./js/index.js');
13
13
  var useApi = require('../../hooks/useApi.js');
14
- var useLocale = require('../../hooks/useLocale.js');
15
14
  var index$1 = require('../hyConfirmDialog/index.js');
16
15
  var is = require('../../utils/is.js');
17
16
  var index$2 = require('../hyIcon/index.js');
@@ -100,7 +99,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
100
99
  const props = __props;
101
100
  const emits = __emit;
102
101
  const { api } = useApi.useApi();
103
- const { t } = useLocale.useLocale();
104
102
  const containerRef = vue.useTemplateRef("containerRef");
105
103
  const uploadRef = vue.useTemplateRef("uploadRef");
106
104
  const tableRef = vue.useTemplateRef("tableRef");
@@ -301,9 +299,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
301
299
  emits("submit", submitResult);
302
300
  onResetUpload();
303
301
  } else {
304
- elementPlus.ElMessage.warning(
305
- `${submitResult.success} \u6761\u6570\u636E\u5BFC\u5165\u6210\u529F\uFF0C ${submitResult.failed} \u6761\u6570\u636E\u5F02\u5E38\uFF0C\u8BF7\u8C03\u6574`
306
- );
302
+ elementPlus.ElMessage.warning(`${submitResult.success} \u6761\u6570\u636E\u5BFC\u5165\u6210\u529F\uFF0C ${submitResult.failed} \u6761\u6570\u636E\u5F02\u5E38\uFF0C\u8BF7\u8C03\u6574`);
307
303
  emits("submit", submitResult);
308
304
  }
309
305
  }
@@ -334,6 +330,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
334
330
  active.value++;
335
331
  }
336
332
  return active.value;
333
+ },
334
+ async getOptions() {
335
+ if (tableRef.value) {
336
+ await tableRef.value.getOptions();
337
+ }
338
+ },
339
+ async getOptionsFields(keys) {
340
+ if (tableRef.value) {
341
+ await tableRef.value.getOptionsFields(keys);
342
+ }
343
+ },
344
+ async getOptionsError() {
345
+ if (tableRef.value) {
346
+ await tableRef.value.getOptionsError();
347
+ }
348
+ },
349
+ getOptionsByField(key) {
350
+ if (tableRef.value) {
351
+ return tableRef.value.getOptionsByField(key);
352
+ }
337
353
  }
338
354
  });
339
355
  return (_ctx, _cache) => {
@@ -387,8 +403,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
387
403
  vue.createElementVNode("div", { class: "w-full text-main absolute left-1/2 bottom-4 transform -translate-x-1/2" }, [
388
404
  vue.createElementVNode("div", { class: "flex items-center justify-center text-xs text-auxiliary gap-2" }, [
389
405
  vue.createElementVNode("span", null, "\u6587\u4EF6\u652F\u6301\uFF1A"),
390
- vue.createElementVNode("div", { class: "border border-border rounded py-1 px-2.5 bg-background-4" }, " .xls "),
391
- vue.createElementVNode("div", { class: "border border-border rounded py-1 px-2.5 bg-background-4" }, " .xlsx "),
406
+ vue.createElementVNode("div", { class: "border border-border rounded py-1 px-2.5 bg-background-4 box-border" }, ".xls"),
407
+ vue.createElementVNode("div", { class: "border border-border rounded py-1 px-2.5 bg-background-4 box-border" }, ".xlsx"),
392
408
  vue.createElementVNode("span", null, "\u5355\u6587\u4EF6\u4E0D\u8D85\u8FC7 10 MB")
393
409
  ])
394
410
  ])
@@ -523,8 +539,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
523
539
  columnNum: __props.columnNum,
524
540
  size: __props.size,
525
541
  showAddBtn: __props.showAddBtn,
542
+ class: "h-0 flex-1",
526
543
  onTableDataChange: tableDataChange,
527
- class: "h-0 flex-1"
544
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
528
545
  }), vue.createSlots({
529
546
  _: 2
530
547
  /* DYNAMIC */
@@ -537,7 +554,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
537
554
  ])
538
555
  };
539
556
  })
540
- ]), 1040, ["tableColumns", "formColumns", "onExpandRowChange", "rules", "rowClickExpand", "columnNum", "size", "showAddBtn"])
557
+ ]), 1040, ["tableColumns", "formColumns", "onExpandRowChange", "rules", "rowClickExpand", "columnNum", "size", "showAddBtn", "onOptionsStatus"])
541
558
  ])) : vue.createCommentVNode("v-if", true),
542
559
  submitting.value ? (vue.openBlock(), vue.createElementBlock("div", {
543
560
  key: 1,
@@ -24,10 +24,7 @@ const doValidate = async (target = {}, columns = [], ruleList = {}) => {
24
24
  }, {});
25
25
  Object.entries(ruleList || {}).forEach(([key, citem]) => {
26
26
  if (columnMap[key]) {
27
- rules[key] = [
28
- ...is.isArray(citem) ? citem : [citem],
29
- ...rules[key]
30
- ].filter(Boolean);
27
+ rules[key] = [...is.isArray(citem) ? citem : [citem], ...rules[key]].filter(Boolean);
31
28
  }
32
29
  });
33
30
  const validator = new AsyncValidator(rules);
@@ -55,10 +52,7 @@ const doReadExcel = (files, props) => {
55
52
  const ws1 = XLSX.utils.sheet_to_json(workbook.Sheets[wsname1]);
56
53
  let content = formColumns.reduce((content2, column) => {
57
54
  const title = column.import ? column.import.title : column.label;
58
- return content2.replace(
59
- new RegExp(`"${title}":`, "g"),
60
- `"${column.prop}":`
61
- );
55
+ return content2.replace(new RegExp(`"${title}":`, "g"), `"${column.prop}":`);
62
56
  }, JSON.stringify(ws1));
63
57
  let dataSource = JSON.parse(content);
64
58
  if (beforeDataHandle) {
@@ -11,13 +11,11 @@ const useAppTableForm = (config = {}) => {
11
11
  columns = [
12
12
  {
13
13
  type: "expand",
14
- slot: "expand",
14
+ slot: "tableFormExpand",
15
15
  expandType: "expand",
16
16
  width: 48
17
17
  },
18
- ...columns.filter(
19
- (column) => !["expand", "operator"].includes(column.type)
20
- ),
18
+ ...columns.filter((column) => !["expand", "operator"].includes(column.type)),
21
19
  {
22
20
  label: "\u5BFC\u5165\u72B6\u6001",
23
21
  prop: "validateStatus",
@@ -25,10 +23,7 @@ const useAppTableForm = (config = {}) => {
25
23
  }
26
24
  ];
27
25
  const { tableColumns } = useAppTable.useAppTable({ columns });
28
- const { formModel, formColumns } = useAppForm.useAppForm(
29
- config.formColumns,
30
- config.formModel
31
- );
26
+ const { formModel, formColumns } = useAppForm.useAppForm(config.formColumns, config.formModel);
32
27
  formColumns.value.forEach((item) => {
33
28
  if (is.isString(item.import)) {
34
29
  item.import = {