hy-dispatch-ui-v3 0.2.76 → 0.2.78

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 (195) hide show
  1. package/dist/tailwind.css +91 -8
  2. package/es/api/common.mjs +28 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
  4. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
  5. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +109 -121
  6. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
  7. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -117
  8. package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
  9. package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
  10. package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
  11. package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
  12. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
  13. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
  14. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
  15. package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
  16. package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
  17. package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
  18. package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
  19. package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  20. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
  21. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
  22. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
  23. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
  24. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
  25. package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -0
  26. package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
  27. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
  28. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
  29. package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
  30. package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
  31. package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
  32. package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
  33. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
  34. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
  35. package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
  36. package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
  37. package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
  38. package/es/bussiness/hyFilePlayback/index.mjs +8 -0
  39. package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
  40. package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
  41. package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
  42. package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  43. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
  44. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
  45. package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
  46. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
  47. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
  48. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
  49. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
  50. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
  51. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
  52. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
  53. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
  54. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
  55. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
  56. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
  57. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
  58. package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
  59. package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
  60. package/es/bussiness/index.mjs +3 -2
  61. package/es/components/hyCutter/cutter.vue.mjs +2 -2
  62. package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
  63. package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
  64. package/es/components/hyForm/js/index.mjs +2 -8
  65. package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
  66. package/es/components/hySearch/js/index.mjs +1 -35
  67. package/es/components/hySearch/js/useAppSearch.mjs +3 -3
  68. package/es/components/hySearch/style/search.scss +1 -0
  69. package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
  70. package/es/components/hyTable/js/index.mjs +44 -4
  71. package/es/components/hyTable/js/search.mjs +0 -6
  72. package/es/components/hyTable/table.vue.mjs +47 -30
  73. package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
  74. package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
  75. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
  76. package/es/components-map.mjs +19 -10
  77. package/es/hooks/index.mjs +1 -0
  78. package/es/hooks/useBaseMainStore.mjs +16 -5
  79. package/es/hooks/useCurrentBus.mjs +5 -4
  80. package/es/hooks/useDialog.mjs +2 -2
  81. package/es/hooks/useGlobalConfig.mjs +26 -16
  82. package/es/hooks/useVersionControl.mjs +34 -0
  83. package/es/index.mjs +7 -4
  84. package/es/locale/en_US.mjs +1 -0
  85. package/es/locale/zh_CN.mjs +1 -0
  86. package/es/style/index.scss +2 -2
  87. package/es/utils/file.mjs +1 -2
  88. package/es/utils/form.mjs +70 -7
  89. package/es/utils/index.mjs +3 -2
  90. package/es/utils/map/hook/leafletjs.mjs +4 -0
  91. package/es/utils/map/index.mjs +4 -0
  92. package/es/utils/timeUtils.mjs +95 -0
  93. package/es/utils/useUiComponent.mjs +34 -0
  94. package/es/version.mjs +1 -1
  95. package/lib/api/common.js +33 -0
  96. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
  97. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
  98. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +107 -119
  99. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
  100. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -116
  101. package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
  102. package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
  103. package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
  104. package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
  105. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
  106. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
  107. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
  108. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
  109. package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
  110. package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
  111. package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
  112. package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
  113. package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  114. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
  115. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
  116. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
  117. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
  118. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
  119. package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -0
  120. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
  121. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
  122. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
  123. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
  124. package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
  125. package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
  126. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
  127. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
  128. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
  129. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
  130. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
  131. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
  132. package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
  133. package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
  134. package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
  135. package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
  136. package/lib/bussiness/hyFilePlayback/index.js +13 -0
  137. package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
  138. package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
  139. package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
  140. package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  141. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
  142. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
  143. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
  144. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
  145. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
  146. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
  147. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
  148. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
  149. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
  150. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
  151. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
  152. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
  153. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
  154. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
  155. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
  156. package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
  157. package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
  158. package/lib/bussiness/index.js +19 -16
  159. package/lib/components/hyCutter/cutter.vue.js +2 -2
  160. package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
  161. package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
  162. package/lib/components/hyForm/js/index.js +0 -7
  163. package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
  164. package/lib/components/hySearch/js/index.js +0 -36
  165. package/lib/components/hySearch/js/useAppSearch.js +3 -3
  166. package/lib/components/hySearch/style/search.scss +1 -0
  167. package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
  168. package/lib/components/hyTable/js/index.js +45 -3
  169. package/lib/components/hyTable/js/search.js +0 -6
  170. package/lib/components/hyTable/table.vue.js +46 -29
  171. package/lib/components/hyTooltip/tooltip.vue.js +13 -5
  172. package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
  173. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
  174. package/lib/components-map.js +19 -10
  175. package/lib/hooks/index.js +4 -0
  176. package/lib/hooks/useBaseMainStore.js +15 -4
  177. package/lib/hooks/useCurrentBus.js +4 -3
  178. package/lib/hooks/useDialog.js +2 -2
  179. package/lib/hooks/useGlobalConfig.js +25 -15
  180. package/lib/hooks/useVersionControl.js +38 -0
  181. package/lib/index.js +75 -57
  182. package/lib/locale/en_US.js +1 -0
  183. package/lib/locale/zh_CN.js +1 -0
  184. package/lib/style/index.scss +2 -2
  185. package/lib/utils/file.js +1 -2
  186. package/lib/utils/form.js +72 -6
  187. package/lib/utils/index.js +12 -1
  188. package/lib/utils/map/hook/leafletjs.js +4 -0
  189. package/lib/utils/map/index.js +4 -0
  190. package/lib/utils/timeUtils.js +105 -0
  191. package/lib/utils/useUiComponent.js +37 -0
  192. package/lib/version.js +1 -1
  193. package/package.json +113 -58
  194. package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
  195. package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
@@ -3,10 +3,10 @@ import { ElFormItem, ElSelect, ElIcon, ElSelectV2, ElRadioGroup, ElCheckboxGroup
3
3
  import { Loading } from '@element-plus/icons-vue';
4
4
  import '../../../utils/index.mjs';
5
5
  import '../../index.mjs';
6
- import { formContextKey, optionsHandler, isRequired, columnVisibleHandler, columnItemStyle, columnShowHandler, columnHelpHandler, isReadonly, renderText, isDisabled } from '../js/index.mjs';
6
+ import { formContextKey, optionsHandler, isRequired, columnVisibleHandler, columnItemStyle, columnShowHandler, isReadonly, renderText, isDisabled } from '../js/index.mjs';
7
7
  import '../../../hooks/index.mjs';
8
8
  import { isBoolean, isArray } from '../../../utils/is.mjs';
9
- import { setValueByProp, getValueByProp, columnPlaceholderHandler, columnLabelHandler, columnRuleHandler } from '../../../utils/form.mjs';
9
+ import { setValueByProp, getValueByProp, columnPlaceholderHandler, columnnoDataTextHandler, columnLabelHandler, columnRuleHandler, columnHelpHandler } from '../../../utils/form.mjs';
10
10
  import { HyTooltip } from '../../hyTooltip/index.mjs';
11
11
  import { HyIcon } from '../../hyIcon/index.mjs';
12
12
  import { $t } from '../../../hooks/useLocale.mjs';
@@ -122,6 +122,7 @@ const _sfc_main = {
122
122
  ...config,
123
123
  ...attrs,
124
124
  label: columnLabelHandler(props.column, props.model),
125
+ noDataText: columnnoDataTextHandler(props.column, props.model),
125
126
  placeholder: columnPlaceholderHandler(props.column, props.model)
126
127
  };
127
128
  });
@@ -2,7 +2,7 @@ import { unref } from 'vue';
2
2
  import '../../../utils/index.mjs';
3
3
  import '../../../hooks/index.mjs';
4
4
  import { funRunHandler } from '../../../utils/handler.mjs';
5
- import { isNumber, isBoolean, isFunction, isString, isArray, isObject } from '../../../utils/is.mjs';
5
+ import { isNumber, isBoolean, isFunction, isArray, isObject } from '../../../utils/is.mjs';
6
6
  import { columnRuleHandler, getValueByProp } from '../../../utils/form.mjs';
7
7
  import { $t } from '../../../hooks/useLocale.mjs';
8
8
 
@@ -37,12 +37,6 @@ function columnVisibleHandler(props, column) {
37
37
  if (isFunction(visible)) return visible(column, props.model);
38
38
  return true;
39
39
  }
40
- function columnHelpHandler(props, column) {
41
- const help = unref(column.help);
42
- if (isString(help)) return help;
43
- if (isFunction(help)) return help(column, props.model);
44
- return;
45
- }
46
40
  function isReadonly(props, column) {
47
41
  if (props.readonly) return props.readonly;
48
42
  const readonly = unref(column.readonly);
@@ -116,4 +110,4 @@ function optionsHandler(props, column) {
116
110
  return [];
117
111
  }
118
112
 
119
- export { columnHelpHandler, columnItemStyle, columnShowHandler, columnVisibleHandler, formContextKey, isDisabled, isReadonly, isRequired, optionsHandler, renderAddLabel, renderArrayItemLabel, renderText };
113
+ export { columnItemStyle, columnShowHandler, columnVisibleHandler, formContextKey, isDisabled, isReadonly, isRequired, optionsHandler, renderAddLabel, renderArrayItemLabel, renderText };
@@ -1,11 +1,13 @@
1
- import { inject, useTemplateRef, computed, reactive, toRefs, onMounted, watch, onBeforeUnmount, unref, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, createCommentVNode, renderSlot, createElementBlock, toDisplayString, Fragment, createVNode, mergeProps, withKeys, createSlots, renderList } from 'vue';
1
+ import { inject, useTemplateRef, computed, ref, reactive, toRefs, onMounted, watch, onBeforeUnmount, unref, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, createCommentVNode, renderSlot, createElementBlock, toDisplayString, createVNode, Fragment, mergeProps, withKeys, createSlots } from 'vue';
2
2
  import { ElFormItem, ElSelect, ElIcon, ElSelectV2, ElCascader } from 'element-plus';
3
3
  import { Loading } from '@element-plus/icons-vue';
4
4
  import '../../../utils/index.mjs';
5
5
  import '../../index.mjs';
6
- import { formContextKey, optionsHandler, timeRangeHandler, columnShowHandler, columnItemStyle, columnItemInputStyle, isDisabled, isSelectedTimeRange } from '../js/index.mjs';
6
+ import { formContextKey, optionsHandler, columnShowHandler, columnItemStyle, columnItemInputStyle, isDisabled } from '../js/index.mjs';
7
7
  import { isArray } from '../../../utils/is.mjs';
8
- import { setValueByProp, getValueByProp, columnPlaceholderHandler, columnLabelHandler } from '../../../utils/form.mjs';
8
+ import { setValueByProp, getValueByProp, genColumnShortcuts, columnPlaceholderHandler, columnnoDataTextHandler, columnLabelHandler, columnHelpHandler } from '../../../utils/form.mjs';
9
+ import { HyTooltip } from '../../hyTooltip/index.mjs';
10
+ import { HyIcon } from '../../hyIcon/index.mjs';
9
11
  import { HyInput } from '../../hyInput/index.mjs';
10
12
  import { HyDatePicker } from '../../hyDatePicker/index.mjs';
11
13
  import { HyTimePicker } from '../../hyTimePicker/index.mjs';
@@ -75,9 +77,15 @@ const _sfc_main = {
75
77
  return {
76
78
  ...props.column.attrs,
77
79
  label: columnLabelHandler(props.column, props.model),
78
- placeholder: props.column.optionsError === "error" ? "\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D" : columnPlaceholderHandler(props.column, props.model)
80
+ noDataText: columnnoDataTextHandler(props.column, props.model),
81
+ placeholder: props.column.optionsError === "error" ? "\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D" : columnPlaceholderHandler(props.column, props.model),
82
+ shortcuts: genColumnShortcuts(props.column)
79
83
  };
80
84
  });
85
+ const helpVisible = ref(false);
86
+ function helpVisibleHandler(visible) {
87
+ helpVisible.value = visible;
88
+ }
81
89
  function obtainOptions(isMountedLoad = false) {
82
90
  return new Promise(async (resolve, reject) => {
83
91
  if (props.column.optionsFn) {
@@ -155,21 +163,6 @@ const _sfc_main = {
155
163
  function onKeydownEnterHander(e) {
156
164
  emits("search");
157
165
  }
158
- function onTimeRangeClickHandler(column, options) {
159
- const { field } = column;
160
- const dateValue = timeRangeHandler(column, options);
161
- const flag = dateValue.length && dateValue.every((value, index) => {
162
- return isArray(field) ? value === props.model[field[index]] : props.model[field][index];
163
- });
164
- if (flag) return;
165
- if (isArray(field)) {
166
- props.model[field[0]] = dateValue[0];
167
- props.model[field[1]] = dateValue[1];
168
- } else {
169
- props.model[field] = dateValue;
170
- }
171
- emits("search");
172
- }
173
166
  const context = reactive({
174
167
  ...toRefs(props),
175
168
  columnProp,
@@ -228,25 +221,50 @@ const _sfc_main = {
228
221
  },
229
222
  [
230
223
  createCommentVNode(" \u8868\u5355label "),
231
- createElementVNode(
232
- "div",
233
- {
234
- class: normalizeClass(["flex items-center text-auxiliary text-sm whitespace-nowrap box-border", {
235
- "border-r border-border px-3": __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] || unref(columnLabelHandler)(__props.column, props.model)
236
- }])
237
- },
238
- [
239
- __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? renderSlot(_ctx.$slots, __props.column.labelSlot, { column: columnConfig.value }, void 0, void 0, 0) : (openBlock(), createElementBlock(
240
- "span",
241
- { key: 1 },
242
- toDisplayString(unref(columnLabelHandler)(__props.column, props.model)),
243
- 1
244
- /* TEXT */
245
- ))
246
- ],
247
- 2
248
- /* CLASS */
249
- ),
224
+ createElementVNode("div", {
225
+ class: normalizeClass(["flex items-center text-auxiliary text-sm whitespace-nowrap box-border cursor-default", {
226
+ "border-r border-border px-3": __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] || unref(columnLabelHandler)(__props.column, props.model)
227
+ }]),
228
+ onMouseenter: ($event) => helpVisibleHandler(true),
229
+ onMouseleave: ($event) => helpVisibleHandler(false)
230
+ }, [
231
+ __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? renderSlot(_ctx.$slots, __props.column.labelSlot, { column: columnConfig.value }, void 0, void 0, 0) : (openBlock(), createElementBlock(
232
+ "span",
233
+ { key: 1 },
234
+ toDisplayString(unref(columnLabelHandler)(__props.column, props.model)),
235
+ 1
236
+ /* TEXT */
237
+ )),
238
+ unref(columnHelpHandler)(props, __props.column) || __props.column.tooltipContentSlot ? (openBlock(), createBlock(unref(HyTooltip), {
239
+ key: 2,
240
+ "is-always": "",
241
+ visible: helpVisible.value
242
+ }, {
243
+ content: withCtx(() => [
244
+ !__props.column.tooltipContentSlot ? (openBlock(), createElementBlock(
245
+ "span",
246
+ { key: 0 },
247
+ toDisplayString(unref(columnHelpHandler)(props, __props.column)),
248
+ 1
249
+ /* TEXT */
250
+ )) : createCommentVNode("v-if", true),
251
+ renderSlot(_ctx.$slots, __props.column.tooltipContentSlot, {
252
+ column: columnConfig.value,
253
+ model: __props.model
254
+ })
255
+ ]),
256
+ default: withCtx(() => [
257
+ createElementVNode("span", { class: "text-xs text-theme ml-1" }, [
258
+ createVNode(unref(HyIcon), {
259
+ "svg-name": "dispatch-share-v3-base-help",
260
+ class: "!w-3 !h-3"
261
+ })
262
+ ])
263
+ ]),
264
+ _: 3
265
+ /* FORWARDED */
266
+ }, 8, ["visible"])) : createCommentVNode("v-if", true)
267
+ ], 42, ["onMouseenter", "onMouseleave"]),
250
268
  createCommentVNode(" \u8868\u5355\u7EC4\u4EF6 "),
251
269
  createElementVNode(
252
270
  "div",
@@ -503,35 +521,7 @@ const _sfc_main = {
503
521
  ],
504
522
  4
505
523
  /* STYLE */
506
- ),
507
- __props.column.type === "date-picker" && ["daterange", "datetimerange"].includes(columnAttrs.value?.type) && __props.column.timeRangeOptions?.length ? (openBlock(), createElementBlock("div", {
508
- key: 0,
509
- class: "flex text-main select-none"
510
- }, [
511
- (openBlock(true), createElementBlock(
512
- Fragment,
513
- null,
514
- renderList(__props.column.timeRangeOptions, (item, index) => {
515
- return openBlock(), createElementBlock("div", {
516
- key: index,
517
- class: normalizeClass(["border-l border-border px-[10px] cursor-pointer box-border", {
518
- "bg-[rgba(var(--hy-theme),0.2)] text-theme font-bold": unref(isSelectedTimeRange)(__props.column, item, __props.model)
519
- }]),
520
- onClick: ($event) => onTimeRangeClickHandler(__props.column, item)
521
- }, [
522
- createElementVNode(
523
- "span",
524
- null,
525
- toDisplayString(item.label),
526
- 1
527
- /* TEXT */
528
- )
529
- ], 10, ["onClick"]);
530
- }),
531
- 128
532
- /* KEYED_FRAGMENT */
533
- ))
534
- ])) : createCommentVNode("v-if", true)
524
+ )
535
525
  ],
536
526
  2
537
527
  /* CLASS */
@@ -1,4 +1,3 @@
1
- import dayjs from 'dayjs';
2
1
  import { unref, ref } from 'vue';
3
2
  import '../../../utils/index.mjs';
4
3
  import '../../../hooks/index.mjs';
@@ -96,39 +95,6 @@ function useShrink(props, formItemWrapper) {
96
95
  }
97
96
  };
98
97
  }
99
- function timeRangeHandler(column, options) {
100
- const { value, unit } = options;
101
- const { attrs } = column;
102
- let { timeRangeFill } = attrs;
103
- const format = "YYYY-MM-DD";
104
- const date = dayjs(Date.now());
105
- timeRangeFill = timeRangeFill || attrs.type === "datetimerange";
106
- switch (unit) {
107
- case "year":
108
- case "month":
109
- return [
110
- date.subtract(value, unit).format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
111
- date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
112
- ];
113
- case "day":
114
- default:
115
- return value === 1 ? [
116
- date.format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
117
- date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
118
- ] : [
119
- date.subtract(value, unit).format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
120
- date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
121
- ];
122
- }
123
- }
124
- function isSelectedTimeRange(column, options, model = {}) {
125
- const [start, end] = timeRangeHandler(column, options);
126
- const { field } = column;
127
- if (Array.isArray(field)) {
128
- return start === model[field[0]] && end === model[field[1]];
129
- }
130
- return start === model[field][0] && end === model[field][1];
131
- }
132
98
  function optionsHandler(props, column) {
133
99
  const options = unref(column.attrs.options);
134
100
  if (isArray(options)) return options;
@@ -136,4 +102,4 @@ function optionsHandler(props, column) {
136
102
  return [];
137
103
  }
138
104
 
139
- export { columnItemInputStyle, columnItemStyle, columnShowHandler, formContextKey, isDisabled, isEmptyValue, isSelectedTimeRange, optionsHandler, timeRangeHandler, useShrink };
105
+ export { columnItemInputStyle, columnItemStyle, columnShowHandler, formContextKey, isDisabled, isEmptyValue, optionsHandler, useShrink };
@@ -41,15 +41,15 @@ const timeRangeOptionsHandler = (config) => {
41
41
  if (!label) {
42
42
  switch (unit) {
43
43
  case "year":
44
- label = `${value} ` + $t(isPlural ? "hy.years" : "hy.year");
44
+ label = $t("hy.lastDate", [value + $t(isPlural ? "hy.years" : "hy.year")]);
45
45
  break;
46
46
  case "month":
47
- label = `${value} ` + $t(isPlural ? "hy.months" : "hy.month");
47
+ label = $t("hy.lastDate", [value + $t(isPlural ? "hy.months" : "hy.month")]);
48
48
  break;
49
49
  case "day":
50
50
  default:
51
51
  unit = "day";
52
- label = value === 1 ? $t("hy.today") : `${value} ` + $t(isPlural ? "hy.days" : "hy.day");
52
+ label = value === 1 ? $t("hy.today") : $t("hy.lastDate", [value + $t(isPlural ? "hy.days" : "hy.day")]);
53
53
  }
54
54
  }
55
55
  list.push({ ...item, label, unit });
@@ -11,6 +11,7 @@
11
11
  padding-top: 0;
12
12
  padding-bottom: 0;
13
13
  opacity: 0;
14
+ border: none;
14
15
  }
15
16
  .hy-search-header {
16
17
  height: 16px;
@@ -4,7 +4,7 @@ import { MoreFilled } from '@element-plus/icons-vue';
4
4
  import '../../index.mjs';
5
5
  import '../../../hooks/index.mjs';
6
6
  import '../../../utils/index.mjs';
7
- import { operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from '../js/index.mjs';
7
+ import { operatorFilterHandler, operatorDescHandler, operatorClickHandler, operatorDisabledHandler, operatorLabelHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from '../js/index.mjs';
8
8
  import _sfc_main$1 from './headerItem.vue.mjs';
9
9
  import { isNumber, isString, isFunction, isArray, isBoolean, isEmpty } from '../../../utils/is.mjs';
10
10
  import { HyIcon } from '../../hyIcon/index.mjs';
@@ -435,7 +435,7 @@ const _sfc_main = {
435
435
  key: cindex,
436
436
  "is-always": "",
437
437
  overLine: 1,
438
- content: citem.desc
438
+ content: unref(operatorDescHandler)(citem, { column, row, $index, cellIndex })
439
439
  }, {
440
440
  default: withCtx(() => [
441
441
  createElementVNode("div", {
@@ -454,13 +454,13 @@ const _sfc_main = {
454
454
  "svg-name": citem.svgName,
455
455
  "class-name": "!w-4 !h-4"
456
456
  }, null, 8, ["svg-name"]),
457
- citem.label ? (openBlock(), createElementBlock(
457
+ unref(operatorLabelHandler)(citem, { column, row, $index, cellIndex }) ? (openBlock(), createElementBlock(
458
458
  "div",
459
459
  {
460
460
  key: 0,
461
461
  class: "mt-1 whitespace-nowrap"
462
462
  },
463
- toDisplayString(citem.label),
463
+ toDisplayString(unref(operatorLabelHandler)(citem, { column, row, $index, cellIndex })),
464
464
  1
465
465
  /* TEXT */
466
466
  )) : (openBlock(), createElementBlock("div", {
@@ -523,7 +523,7 @@ const _sfc_main = {
523
523
  createElementVNode(
524
524
  "span",
525
525
  { class: "pr-1" },
526
- toDisplayString(citem.label),
526
+ toDisplayString(unref(operatorLabelHandler)(citem, { column, row, $index, cellIndex })),
527
527
  1
528
528
  /* TEXT */
529
529
  ),
@@ -1,3 +1,4 @@
1
+ import { debounce } from 'lodash-es';
1
2
  import { unref, ref, computed, watch, nextTick, watchEffect } from 'vue';
2
3
  import '../../../hooks/index.mjs';
3
4
  import '../../../utils/index.mjs';
@@ -83,6 +84,16 @@ function operatorShowHandler(operator, scope) {
83
84
  if (isFunction(show)) return show(scope);
84
85
  return true;
85
86
  }
87
+ function operatorLabelHandler(operator, scope) {
88
+ const label = unref(operator.label);
89
+ if (isFunction(label)) return label(scope);
90
+ return label || "";
91
+ }
92
+ function operatorDescHandler(operator, scope) {
93
+ const desc = unref(operator.desc);
94
+ if (isFunction(desc)) return desc(scope);
95
+ return desc || "";
96
+ }
86
97
  function operatorDisabledHandler(operator, scope) {
87
98
  const { disabled } = operator;
88
99
  if (isBoolean(disabled)) return disabled;
@@ -148,7 +159,23 @@ const useAppTableWrapper = (hy) => {
148
159
  const tableColumns = ref([]);
149
160
  const tableColumnsEditablele = ref({});
150
161
  const tableColumnsList = computed(() => {
151
- return tableColumns.value.filter((column) => tableColumnShowHandler(column));
162
+ let columnContentLength = 0;
163
+ const columns = tableColumns.value.filter((column) => {
164
+ const flag = tableColumnShowHandler(column);
165
+ if (flag && column.type === "default" && tableColumnsEditablele.value[column.prop]?.checked) {
166
+ columnContentLength++;
167
+ }
168
+ return flag;
169
+ });
170
+ if (columnContentLength <= 1) {
171
+ return columns.map(({ width, ...column }) => {
172
+ return {
173
+ ...column,
174
+ width: column.type === "default" && tableColumnsEditablele.value[column.prop]?.checked ? void 0 : width
175
+ };
176
+ });
177
+ }
178
+ return columns;
152
179
  });
153
180
  const searchPlaceholder = computed(() => {
154
181
  const searchLabelSet = tableColumnsList.value.reduce((searchLabelSet2, column) => {
@@ -410,9 +437,22 @@ const useAppTableWrapper = (hy) => {
410
437
  tableRef.value.setScrollLeft(left);
411
438
  }
412
439
  }
413
- function onScrollHandler(params) {
440
+ const onScrollHandler = debounce((params) => {
441
+ const { scrollTop } = params || {};
442
+ let clientHeight, scrollHeight;
443
+ if (props.type === "virtual") {
444
+ const wrapperEl = tableRef.value?.$el.querySelector(".hy-el-vl__wrapper");
445
+ clientHeight = wrapperEl?.clientHeight;
446
+ scrollHeight = wrapperEl?.firstChild.firstChild.scrollHeight;
447
+ } else {
448
+ clientHeight = tableRef.value?.$refs.bodyWrapper.clientHeight;
449
+ scrollHeight = tableRef.value?.$refs.tableBody.scrollHeight;
450
+ }
414
451
  emits("scroll", params);
415
- }
452
+ if (clientHeight && scrollHeight && scrollTop && clientHeight + Math.round(scrollTop) + 1 >= scrollHeight) {
453
+ emits("scrollBottom", params);
454
+ }
455
+ }, 250);
416
456
  window.scrollToTop = scrollToTop;
417
457
  watchEffect(() => {
418
458
  const { columnsList, columnsEditablele, searchText } = tableColumnHandler(props.tableColumns, CACHE_COLUMNS_KEY);
@@ -454,4 +494,4 @@ const useAppTableWrapper = (hy) => {
454
494
  };
455
495
  };
456
496
 
457
- export { operatorClickHandler, operatorDisableTextdHandler, operatorDisabledHandler, operatorFilterHandler, operatorIsDotHandler, renderContentHandler, renderHeaderHandler, tableColumnHandler, tableColumnShowHandler, useAppTableWrapper };
497
+ export { operatorClickHandler, operatorDescHandler, operatorDisableTextdHandler, operatorDisabledHandler, operatorFilterHandler, operatorIsDotHandler, operatorLabelHandler, renderContentHandler, renderHeaderHandler, tableColumnHandler, tableColumnShowHandler, useAppTableWrapper };
@@ -8,10 +8,6 @@ function useAppTableSearch(hy) {
8
8
  const { props, emits, appSearchRef, tableDataSource, clearSelection } = hy;
9
9
  const { api } = useApi();
10
10
  const totalElements = ref(0);
11
- const showFilter = ref(true);
12
- function switchShowFilter() {
13
- showFilter.value = !showFilter.value;
14
- }
15
11
  async function getData(page = null) {
16
12
  await nextTick();
17
13
  hy.loading.value = true;
@@ -123,12 +119,10 @@ function useAppTableSearch(hy) {
123
119
  }
124
120
  return {
125
121
  totalElements,
126
- showFilter,
127
122
  getData,
128
123
  setData,
129
124
  resetFields,
130
125
  resetFn,
131
- switchShowFilter,
132
126
  getTotalElements,
133
127
  getTableDataSource,
134
128
  onSizeChangeHandler,
@@ -4,7 +4,7 @@ import { MoreFilled } from '@element-plus/icons-vue';
4
4
  import '../index.mjs';
5
5
  import '../../hooks/index.mjs';
6
6
  import '../../utils/index.mjs';
7
- import { useAppTableWrapper, operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
7
+ import { useAppTableWrapper, operatorFilterHandler, operatorDescHandler, operatorClickHandler, operatorDisabledHandler, operatorLabelHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
8
8
  import { useAppTableSearch } from './js/search.mjs';
9
9
  import _sfc_main$2 from './cpns/headerItem.vue.mjs';
10
10
  import _sfc_main$1 from './cpns/columnSelect.vue.mjs';
@@ -191,7 +191,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
191
191
  }
192
192
  }, {
193
193
  "loading": { type: Boolean, default: false },
194
- "loadingModifiers": {}
194
+ "loadingModifiers": {},
195
+ "showFilter": { type: Boolean, default: true },
196
+ "showFilterModifiers": {}
195
197
  }),
196
198
  emits: /* @__PURE__ */ mergeModels([
197
199
  "row-click",
@@ -200,17 +202,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
200
202
  "on-select-checkbox",
201
203
  "reqSuccess",
202
204
  "search-data",
203
- "scroll"
204
- ], ["update:loading"]),
205
+ "scroll",
206
+ "scrollBottom"
207
+ ], ["update:loading", "update:showFilter"]),
205
208
  setup(__props, { expose: __expose, emit: __emit }) {
206
209
  const props = __props;
207
210
  const emits = __emit;
208
211
  const loading = useModel(__props, "loading");
212
+ const showFilterModel = useModel(__props, "showFilter");
209
213
  const containerRef = useTemplateRef("containerRef");
210
214
  const tableRef = useTemplateRef("tableRef");
211
215
  const appSearchRef = useTemplateRef("appSearchRef");
212
216
  const tableDropdownRef = useTemplateRef("tableDropdownRef");
213
217
  const operatorDropdownRef = useTemplateRef("operatorDropdownRef");
218
+ function switchShowFilter() {
219
+ showFilterModel.value = !showFilterModel.value;
220
+ }
214
221
  const {
215
222
  // useAppTableWrapper
216
223
  // 表格配置项
@@ -242,13 +249,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
242
249
  // useAppTableSearch
243
250
  // 表单查询
244
251
  totalElements,
245
- showFilter,
246
252
  selectedList,
247
253
  getData,
248
254
  setData,
249
255
  resetFields,
250
256
  resetFn,
251
- switchShowFilter,
252
257
  getTotalElements,
253
258
  getTableDataSource,
254
259
  onSizeChangeHandler,
@@ -324,7 +329,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
324
329
  __props.filterColumns.length > 0 ? (openBlock(), createElementBlock("div", {
325
330
  key: 1,
326
331
  class: "h-[32px] flex items-center gap-[10px] clickBox px-3 select-none rounded hover:bg-background-2 box-border",
327
- onClick: unref(switchShowFilter)
332
+ onClick: switchShowFilter
328
333
  }, [
329
334
  createVNode(unref(HyIcon), {
330
335
  "svg-name": "ops-button-screen",
@@ -333,11 +338,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
333
338
  createElementVNode(
334
339
  "span",
335
340
  null,
336
- toDisplayString(unref(showFilter) ? unref($t)("table.hideFilter") : unref($t)("table.displayFilter")),
341
+ toDisplayString(showFilterModel.value ? unref($t)("table.hideFilter") : unref($t)("table.displayFilter")),
337
342
  1
338
343
  /* TEXT */
339
344
  )
340
- ], 8, ["onClick"])) : createCommentVNode("v-if", true),
345
+ ])) : createCommentVNode("v-if", true),
341
346
  unref(searchPlaceholder) ? (openBlock(), createBlock(unref(HyTooltip), {
342
347
  key: 2,
343
348
  "is-always": "",
@@ -389,8 +394,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
389
394
  ref: appSearchRef,
390
395
  model: __props.filterModel,
391
396
  columns: __props.filterColumns,
392
- hidden: !unref(showFilter),
393
- class: normalizeClass({ "mb-4": unref(showFilter) }),
397
+ hidden: !showFilterModel.value,
398
+ class: normalizeClass({ "mb-4": showFilterModel.value }),
394
399
  onSearch: ($event) => unref(getData)(1),
395
400
  onOptionsStatus: _ctx.$attrs.onOptionsStatus
396
401
  }, createSlots({
@@ -434,13 +439,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
434
439
  }), {
435
440
  empty: withCtx(() => [
436
441
  renderSlot(_ctx.$slots, "empty", {}, () => [
437
- createElementVNode(
438
- "span",
439
- null,
440
- toDisplayString(__props.emptyText || unref($t)("hy.noData")),
441
- 1
442
- /* TEXT */
443
- )
442
+ createElementVNode("div", { class: "flex flex-col items-center gap-2" }, [
443
+ createVNode(unref(HyIcon), {
444
+ "svg-name": "ops-Empty-alarm-not-data",
445
+ class: "!w-[80px] !h-[80px]"
446
+ }),
447
+ createElementVNode(
448
+ "span",
449
+ { class: "text-sm text-auxiliary" },
450
+ toDisplayString(__props.emptyText || unref($t)("hy.noData")),
451
+ 1
452
+ /* TEXT */
453
+ )
454
+ ])
444
455
  ])
445
456
  ]),
446
457
  default: withCtx(() => [
@@ -495,7 +506,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
495
506
  key: cindex,
496
507
  "is-always": "",
497
508
  overLine: 1,
498
- content: citem.desc
509
+ content: unref(operatorDescHandler)(citem, scope)
499
510
  }, {
500
511
  default: withCtx(() => [
501
512
  createElementVNode("div", {
@@ -511,13 +522,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
511
522
  "svg-name": citem.svgName,
512
523
  "class-name": "!w-4 !h-4"
513
524
  }, null, 8, ["svg-name"]),
514
- citem.label ? (openBlock(), createElementBlock(
525
+ unref(operatorLabelHandler)(citem, scope) ? (openBlock(), createElementBlock(
515
526
  "div",
516
527
  {
517
528
  key: 0,
518
529
  class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
519
530
  },
520
- toDisplayString(citem.label),
531
+ toDisplayString(unref(operatorLabelHandler)(citem, scope)),
521
532
  1
522
533
  /* TEXT */
523
534
  )) : (openBlock(), createElementBlock("div", {
@@ -567,7 +578,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
567
578
  createElementVNode(
568
579
  "span",
569
580
  { class: "pr-1" },
570
- toDisplayString(citem.label),
581
+ toDisplayString(unref(operatorLabelHandler)(citem, scope)),
571
582
  1
572
583
  /* TEXT */
573
584
  ),
@@ -728,13 +739,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
728
739
  empty: withCtx(() => [
729
740
  createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
730
741
  renderSlot(_ctx.$slots, "empty", {}, () => [
731
- createElementVNode(
732
- "span",
733
- null,
734
- toDisplayString(__props.emptyText || unref($t)("hy.noData")),
735
- 1
736
- /* TEXT */
737
- )
742
+ createElementVNode("div", { class: "flex flex-col items-center gap-2" }, [
743
+ createVNode(unref(HyIcon), {
744
+ "svg-name": "ops-Empty-alarm-not-data",
745
+ class: "!w-[80px] !h-[80px]"
746
+ }),
747
+ createElementVNode(
748
+ "span",
749
+ { class: "text-sm text-auxiliary" },
750
+ toDisplayString(__props.emptyText || unref($t)("hy.noData")),
751
+ 1
752
+ /* TEXT */
753
+ )
754
+ ])
738
755
  ])
739
756
  ])
740
757
  ]),
@@ -846,7 +863,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
846
863
  createElementVNode(
847
864
  "span",
848
865
  { class: "pr-1" },
849
- toDisplayString(citem.label),
866
+ toDisplayString(unref(operatorLabelHandler)(citem, unref(tableTriggerRef).scope)),
850
867
  1
851
868
  /* TEXT */
852
869
  ),