hy-dispatch-ui-v3 0.1.6 → 0.2.1

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 (160) hide show
  1. package/README.md +47 -0
  2. package/dist/tailwind.css +349 -4
  3. package/es/components/appAudioPlayer/appAudioPlayer.vue.mjs +462 -0
  4. package/es/components/appAudioPlayer/index.mjs +6 -0
  5. package/es/components/appAudioPlayer/js/index.mjs +327 -0
  6. package/es/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  7. package/es/components/appButton/style/appButton.scss +0 -1
  8. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +22 -1
  9. package/es/components/appCutter/appCutter.vue.mjs +202 -129
  10. package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
  11. package/es/components/appForm/appForm.vue.mjs +132 -209
  12. package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
  13. package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
  14. package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
  15. package/es/components/appForm/js/index.mjs +46 -24
  16. package/es/components/appForm/js/useAppForm.mjs +30 -6
  17. package/es/components/appForm/style/appForm.scss +53 -0
  18. package/es/components/appIcon/appIcon.vue.mjs +0 -1
  19. package/es/components/appIconBox/style/appIconBox.scss +0 -1
  20. package/es/components/appInput/appInput.vue.mjs +99 -0
  21. package/es/components/appInput/index.mjs +6 -0
  22. package/es/components/appMenu/appMenu.vue.mjs +129 -0
  23. package/es/components/appMenu/index.mjs +6 -0
  24. package/es/components/appMenu/style/appMenu.scss +145 -0
  25. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
  26. package/es/components/appSearch/appSearch.vue.mjs +55 -211
  27. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
  28. package/es/components/appSearch/js/index.mjs +20 -8
  29. package/es/components/appSearch/js/useAppSearch.mjs +10 -5
  30. package/es/components/appSearch/style/appSearch.scss +10 -0
  31. package/es/components/appTable/appTable.vue.mjs +312 -158
  32. package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
  33. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
  34. package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
  35. package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
  36. package/es/components/appTable/js/index.mjs +46 -20
  37. package/es/components/appTable/js/search.mjs +1 -2
  38. package/es/components/appTable/js/useAppTable.mjs +58 -14
  39. package/es/components/appTable/style/appTable.scss +16 -0
  40. package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
  41. package/es/components/appTree/appTree.vue.mjs +304 -0
  42. package/es/components/appTree/index.mjs +6 -0
  43. package/es/components/appTree/js/index.mjs +531 -0
  44. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
  45. package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  46. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +645 -0
  47. package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
  48. package/es/components/appVideoPlayer/index.mjs +6 -0
  49. package/es/components/appVideoPlayer/js/index.mjs +426 -0
  50. package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  51. package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  52. package/es/components/index.mjs +5 -0
  53. package/es/hooks/index.mjs +3 -0
  54. package/es/hooks/useApi.mjs +4 -4
  55. package/es/hooks/useAudioPlayerConfig.mjs +12 -0
  56. package/es/hooks/useGlobalConfig.mjs +18 -7
  57. package/es/hooks/useLocale.mjs +3 -11
  58. package/es/hooks/useMixins.mjs +1 -1
  59. package/es/hooks/usePermissionMap.mjs +12 -0
  60. package/es/hooks/useUserAvatarMap.mjs +2 -3
  61. package/es/hooks/useVideoPlayerConfig.mjs +12 -0
  62. package/es/index.mjs +13 -4
  63. package/es/locale/en.mjs +52 -3
  64. package/es/locale/zh_CN.mjs +48 -3
  65. package/es/make-installer.mjs +2 -0
  66. package/es/static/hy-svg-icons.js +462 -0
  67. package/es/static/index.js +2 -0
  68. package/es/static/protocolcheck.js +247 -0
  69. package/es/style/element/element.scss +9 -0
  70. package/es/style/element/index.scss +6 -3
  71. package/es/style/index.scss +11 -0
  72. package/es/style/theme.scss +73 -0
  73. package/es/utils/date.mjs +25 -1
  74. package/es/utils/file.mjs +5 -4
  75. package/es/utils/form.mjs +52 -0
  76. package/es/utils/handler.mjs +22 -2
  77. package/es/utils/index.mjs +5 -4
  78. package/es/utils/is.mjs +23 -2
  79. package/es/version.mjs +1 -1
  80. package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
  81. package/lib/components/appAudioPlayer/index.js +11 -0
  82. package/lib/components/appAudioPlayer/js/index.js +329 -0
  83. package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  84. package/lib/components/appButton/style/appButton.scss +0 -1
  85. package/lib/components/appConfigProvider/appConfigProvider.vue.js +22 -1
  86. package/lib/components/appCutter/appCutter.vue.js +201 -128
  87. package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
  88. package/lib/components/appForm/appForm.vue.js +129 -206
  89. package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
  90. package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
  91. package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
  92. package/lib/components/appForm/js/index.js +48 -23
  93. package/lib/components/appForm/js/useAppForm.js +30 -6
  94. package/lib/components/appForm/style/appForm.scss +53 -0
  95. package/lib/components/appIcon/appIcon.vue.js +0 -1
  96. package/lib/components/appIconBox/style/appIconBox.scss +0 -1
  97. package/lib/components/appInput/appInput.vue.js +103 -0
  98. package/lib/components/appInput/index.js +11 -0
  99. package/lib/components/appMenu/appMenu.vue.js +133 -0
  100. package/lib/components/appMenu/index.js +11 -0
  101. package/lib/components/appMenu/style/appMenu.scss +145 -0
  102. package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
  103. package/lib/components/appSearch/appSearch.vue.js +51 -207
  104. package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
  105. package/lib/components/appSearch/js/index.js +20 -7
  106. package/lib/components/appSearch/js/useAppSearch.js +10 -5
  107. package/lib/components/appSearch/style/appSearch.scss +10 -0
  108. package/lib/components/appTable/appTable.vue.js +319 -165
  109. package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
  110. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
  111. package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
  112. package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
  113. package/lib/components/appTable/js/index.js +47 -19
  114. package/lib/components/appTable/js/search.js +1 -2
  115. package/lib/components/appTable/js/useAppTable.js +57 -13
  116. package/lib/components/appTable/style/appTable.scss +16 -0
  117. package/lib/components/appTooltip/appTooltip.vue.js +23 -12
  118. package/lib/components/appTree/appTree.vue.js +308 -0
  119. package/lib/components/appTree/index.js +11 -0
  120. package/lib/components/appTree/js/index.js +533 -0
  121. package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
  122. package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  123. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +649 -0
  124. package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
  125. package/lib/components/appVideoPlayer/index.js +11 -0
  126. package/lib/components/appVideoPlayer/js/index.js +429 -0
  127. package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  128. package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  129. package/lib/components/index.js +42 -32
  130. package/lib/hooks/index.js +9 -0
  131. package/lib/hooks/useApi.js +4 -4
  132. package/lib/hooks/useAudioPlayerConfig.js +15 -0
  133. package/lib/hooks/useGlobalConfig.js +18 -7
  134. package/lib/hooks/useLocale.js +3 -11
  135. package/lib/hooks/useMixins.js +1 -1
  136. package/lib/hooks/usePermissionMap.js +15 -0
  137. package/lib/hooks/useUserAvatarMap.js +1 -2
  138. package/lib/hooks/useVideoPlayerConfig.js +15 -0
  139. package/lib/index.js +59 -33
  140. package/lib/locale/en.js +52 -3
  141. package/lib/locale/zh_CN.js +48 -3
  142. package/lib/make-installer.js +2 -0
  143. package/lib/static/hy-svg-icons.js +459 -8
  144. package/lib/static/index.js +5 -0
  145. package/lib/static/protocolcheck.js +249 -0
  146. package/lib/style/element/element.scss +9 -0
  147. package/lib/style/element/index.scss +6 -3
  148. package/lib/style/index.scss +11 -0
  149. package/lib/style/theme.scss +73 -0
  150. package/lib/utils/date.js +25 -0
  151. package/lib/utils/file.js +4 -4
  152. package/lib/utils/form.js +57 -0
  153. package/lib/utils/handler.js +22 -1
  154. package/lib/utils/index.js +8 -1
  155. package/lib/utils/is.js +23 -1
  156. package/lib/version.js +1 -1
  157. package/package.json +25 -9
  158. package/es/config/index.mjs +0 -1
  159. package/es/static/hy-svg-icons.mjs +0 -11
  160. package/lib/config/index.js +0 -2
@@ -47,10 +47,9 @@ const _sfc_main = {
47
47
  showClear.value = true;
48
48
  }
49
49
  function closePopover() {
50
- var _a, _b, _c;
51
- (_a = sortableInstance == null ? void 0 : sortableInstance.destroy) == null ? void 0 : _a.call(sortableInstance);
50
+ sortableInstance?.destroy?.();
52
51
  sortableInstance = null;
53
- (_c = (_b = popoverRef.value) == null ? void 0 : _b.hide) == null ? void 0 : _c.call(_b);
52
+ popoverRef.value?.hide?.();
54
53
  }
55
54
  function initColumnsInfo(columns, columnsEditable) {
56
55
  const checkedArr = [];
@@ -95,12 +94,11 @@ const _sfc_main = {
95
94
  showClear.value = true;
96
95
  }
97
96
  function onConfirmHandler() {
98
- var _a;
99
- if (!checkedList.value.length && showColumnsLength.value === ((_a = tableEditableColumns.value) == null ? void 0 : _a.length)) {
97
+ if (!checkedList.value.length && showColumnsLength.value === tableEditableColumns.value?.length) {
100
98
  ElMessage.warning(t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
101
99
  return;
102
100
  }
103
- if (checkedList.value.length >= 15) {
101
+ if (checkedList.value.length > 15) {
104
102
  ElMessage.warning(t("table.maxColumnLimitTip"));
105
103
  return;
106
104
  }
@@ -207,164 +205,161 @@ const _sfc_main = {
207
205
  )
208
206
  ])
209
207
  ]),
210
- default: withCtx(() => {
211
- var _a, _b;
212
- return [
213
- createElementVNode("div", { class: "column-select-draggable text-sm text-main" }, [
214
- createElementVNode("div", { class: "h-[38px] flex items-center justify-between pl-[15px] pr-2 border-b border-border" }, [
215
- createElementVNode(
216
- "span",
217
- { class: "text-main font-bold" },
218
- toDisplayString(unref(t)("table.editColumn")),
219
- 1
220
- /* TEXT */
221
- ),
222
- createVNode(unref(ElIcon), {
223
- class: "clickBox",
224
- color: "rgb(var(--hy-danger-2))",
225
- size: "18",
226
- onClick: closePopover
227
- }, {
228
- default: withCtx(() => [
229
- createVNode(unref(CircleClose))
230
- ]),
231
- _: 1
232
- /* STABLE */
233
- })
234
- ]),
235
- createElementVNode("div", { class: "h-[364px] px-4 pt-[11px] pb-1 overflow-y-auto" }, [
236
- createVNode(unref(ElCheckboxGroup), {
237
- modelValue: checkedList.value,
238
- "onUpdate:modelValue": ($event) => checkedList.value = $event
208
+ default: withCtx(() => [
209
+ createElementVNode("div", { class: "column-select-draggable text-sm text-main" }, [
210
+ createElementVNode("div", { class: "h-[38px] flex items-center justify-between pl-[15px] pr-2 border-b border-border" }, [
211
+ createElementVNode(
212
+ "span",
213
+ { class: "text-main font-bold" },
214
+ toDisplayString(unref(t)("table.editColumn")),
215
+ 1
216
+ /* TEXT */
217
+ ),
218
+ createVNode(unref(ElIcon), {
219
+ class: "clickBox",
220
+ color: "rgb(var(--hy-danger-2))",
221
+ size: "18",
222
+ onClick: closePopover
223
+ }, {
224
+ default: withCtx(() => [
225
+ createVNode(unref(CircleClose))
226
+ ]),
227
+ _: 1
228
+ /* STABLE */
229
+ })
230
+ ]),
231
+ createElementVNode("div", { class: "h-[364px] px-4 pt-[11px] pb-1 overflow-y-auto" }, [
232
+ createVNode(unref(ElCheckboxGroup), {
233
+ modelValue: checkedList.value,
234
+ "onUpdate:modelValue": ($event) => checkedList.value = $event
235
+ }, {
236
+ default: withCtx(() => [
237
+ createElementVNode(
238
+ "div",
239
+ {
240
+ class: normalizeClass(["flex flex-col gap-1.5 leading-3 text-info", { "mb-1.5": tableEditableColumns.value.length > 0 }])
241
+ },
242
+ [
243
+ createCommentVNode(" \u4E0D\u53EF\u62D6\u62FD "),
244
+ (openBlock(true), createElementBlock(
245
+ Fragment,
246
+ null,
247
+ renderList(__props.columns, (item, index) => {
248
+ return openBlock(), createElementBlock(
249
+ Fragment,
250
+ { key: index },
251
+ [
252
+ !isFilterColumn(item) && item.editable.lock ? (openBlock(), createBlock(_sfc_main$1, {
253
+ key: 0,
254
+ column: item,
255
+ checkMap: checkMap.value
256
+ }, null, 8, ["column", "checkMap"])) : createCommentVNode("v-if", true)
257
+ ],
258
+ 64
259
+ /* STABLE_FRAGMENT */
260
+ );
261
+ }),
262
+ 128
263
+ /* KEYED_FRAGMENT */
264
+ ))
265
+ ],
266
+ 2
267
+ /* CLASS */
268
+ ),
269
+ createCommentVNode(" \u53EF\u62D6\u62FD "),
270
+ createElementVNode(
271
+ "div",
272
+ {
273
+ ref_key: "listRef",
274
+ ref: listRef,
275
+ class: "flex flex-col gap-1.5 leading-3"
276
+ },
277
+ [
278
+ (openBlock(true), createElementBlock(
279
+ Fragment,
280
+ null,
281
+ renderList(tableEditableColumns.value, (item) => {
282
+ return openBlock(), createBlock(_sfc_main$1, {
283
+ key: item.prop,
284
+ column: item,
285
+ checkMap: checkMap.value,
286
+ columnsLength: tableEditableColumns.value.length,
287
+ onChecked: onCheckedHandler
288
+ }, null, 8, ["column", "checkMap", "columnsLength"]);
289
+ }),
290
+ 128
291
+ /* KEYED_FRAGMENT */
292
+ ))
293
+ ],
294
+ 512
295
+ /* NEED_PATCH */
296
+ )
297
+ ]),
298
+ _: 1
299
+ /* STABLE */
300
+ }, 8, ["modelValue", "onUpdate:modelValue"])
301
+ ]),
302
+ createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3" }, [
303
+ createElementVNode(
304
+ "span",
305
+ null,
306
+ toDisplayString(unref(t)("table.haveBeenSelected", [checkedList.value?.length || 0])),
307
+ 1
308
+ /* TEXT */
309
+ ),
310
+ showClear.value ? (openBlock(), createElementBlock(
311
+ "span",
312
+ {
313
+ key: 0,
314
+ class: "clickBox text-danger-2 ml-3",
315
+ onClick: onClearHandler
316
+ },
317
+ toDisplayString(unref(t)("table.clear")),
318
+ 1
319
+ /* TEXT */
320
+ )) : createCommentVNode("v-if", true),
321
+ createElementVNode("div", { class: "flex items-center ml-auto" }, [
322
+ checkedList.value?.length >= 8 ? (openBlock(), createElementBlock("span", {
323
+ key: 0,
324
+ class: "flex items-center mr-2 text-auxiliary"
325
+ }, [
326
+ createVNode(unref(ElIcon), {
327
+ class: "mr-1.5",
328
+ color: "rgb(var(--hy-auxiliary))"
329
+ }, {
330
+ default: withCtx(() => [
331
+ createVNode(unref(Warning))
332
+ ]),
333
+ _: 1
334
+ /* STABLE */
335
+ }),
336
+ createElementVNode(
337
+ "span",
338
+ null,
339
+ toDisplayString(unref(t)("table.tooManyFieldsWillAffectReadability")),
340
+ 1
341
+ /* TEXT */
342
+ )
343
+ ])) : createCommentVNode("v-if", true),
344
+ createVNode(unref(AppButton), {
345
+ type: "primary",
346
+ size: "small",
347
+ onClick: onConfirmHandler
239
348
  }, {
240
349
  default: withCtx(() => [
241
- createElementVNode(
242
- "div",
243
- {
244
- class: normalizeClass(["flex flex-col gap-1.5 leading-3 text-info", { "mb-1.5": tableEditableColumns.value.length > 0 }])
245
- },
246
- [
247
- createCommentVNode(" \u4E0D\u53EF\u62D6\u62FD "),
248
- (openBlock(true), createElementBlock(
249
- Fragment,
250
- null,
251
- renderList(__props.columns, (item, index) => {
252
- return openBlock(), createElementBlock(
253
- Fragment,
254
- { key: index },
255
- [
256
- !isFilterColumn(item) && item.editable.lock ? (openBlock(), createBlock(_sfc_main$1, {
257
- key: 0,
258
- column: item,
259
- checkMap: checkMap.value
260
- }, null, 8, ["column", "checkMap"])) : createCommentVNode("v-if", true)
261
- ],
262
- 64
263
- /* STABLE_FRAGMENT */
264
- );
265
- }),
266
- 128
267
- /* KEYED_FRAGMENT */
268
- ))
269
- ],
270
- 2
271
- /* CLASS */
272
- ),
273
- createCommentVNode(" \u53EF\u62D6\u62FD "),
274
- createElementVNode(
275
- "div",
276
- {
277
- ref_key: "listRef",
278
- ref: listRef,
279
- class: "flex flex-col gap-1.5 leading-3"
280
- },
281
- [
282
- (openBlock(true), createElementBlock(
283
- Fragment,
284
- null,
285
- renderList(tableEditableColumns.value, (item) => {
286
- return openBlock(), createBlock(_sfc_main$1, {
287
- key: item.prop,
288
- column: item,
289
- checkMap: checkMap.value,
290
- columnsLength: tableEditableColumns.value.length,
291
- onChecked: onCheckedHandler
292
- }, null, 8, ["column", "checkMap", "columnsLength"]);
293
- }),
294
- 128
295
- /* KEYED_FRAGMENT */
296
- ))
297
- ],
298
- 512
299
- /* NEED_PATCH */
350
+ createTextVNode(
351
+ toDisplayString(unref(t)("hy.confirm")),
352
+ 1
353
+ /* TEXT */
300
354
  )
301
355
  ]),
302
356
  _: 1
303
357
  /* STABLE */
304
- }, 8, ["modelValue", "onUpdate:modelValue"])
305
- ]),
306
- createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3" }, [
307
- createElementVNode(
308
- "span",
309
- null,
310
- toDisplayString(unref(t)("table.haveBeenSelected", [((_a = checkedList.value) == null ? void 0 : _a.length) || 0])),
311
- 1
312
- /* TEXT */
313
- ),
314
- showClear.value ? (openBlock(), createElementBlock(
315
- "span",
316
- {
317
- key: 0,
318
- class: "clickBox text-danger-2 ml-3",
319
- onClick: onClearHandler
320
- },
321
- toDisplayString(unref(t)("table.clear")),
322
- 1
323
- /* TEXT */
324
- )) : createCommentVNode("v-if", true),
325
- createElementVNode("div", { class: "flex items-center ml-auto" }, [
326
- ((_b = checkedList.value) == null ? void 0 : _b.length) >= 8 ? (openBlock(), createElementBlock("span", {
327
- key: 0,
328
- class: "flex items-center mr-2 text-auxiliary"
329
- }, [
330
- createVNode(unref(ElIcon), {
331
- class: "mr-1.5",
332
- color: "rgb(var(--hy-auxiliary))"
333
- }, {
334
- default: withCtx(() => [
335
- createVNode(unref(Warning))
336
- ]),
337
- _: 1
338
- /* STABLE */
339
- }),
340
- createElementVNode(
341
- "span",
342
- null,
343
- toDisplayString(unref(t)("table.tooManyFieldsWillAffectReadability")),
344
- 1
345
- /* TEXT */
346
- )
347
- ])) : createCommentVNode("v-if", true),
348
- createVNode(unref(AppButton), {
349
- type: "primary",
350
- size: "small",
351
- onClick: onConfirmHandler
352
- }, {
353
- default: withCtx(() => [
354
- createTextVNode(
355
- toDisplayString(unref(t)("hy.confirm")),
356
- 1
357
- /* TEXT */
358
- )
359
- ]),
360
- _: 1
361
- /* STABLE */
362
- })
363
- ])
358
+ })
364
359
  ])
365
360
  ])
366
- ];
367
- }),
361
+ ])
362
+ ]),
368
363
  _: 1
369
364
  /* STABLE */
370
365
  },
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, toDisplayString, createElementBlock, createCommentVNode, Fragment, renderList, normalizeClass, createVNode, withModifiers } from 'vue';
2
2
  import { ElPopover, ElIcon, ElCheckbox } from 'element-plus';
3
3
  import { Lock, DCaret } from '@element-plus/icons-vue';
4
+ import { renderHeaderHandler } from '../js/index.mjs';
4
5
  import { AppTooltip } from '../../appTooltip/index.mjs';
5
6
  import { useLocale } from '../../../hooks/useLocale.mjs';
6
7
 
@@ -29,7 +30,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
29
30
  emits("checked", column);
30
31
  }
31
32
  return (_ctx, _cache) => {
32
- var _a;
33
33
  return openBlock(), createBlock(unref(ElPopover), {
34
34
  trigger: "hover",
35
35
  placement: "right-end",
@@ -37,126 +37,120 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  effect: "dark",
38
38
  width: "268",
39
39
  "show-arrow": false,
40
- disabled: !__props.column.editable.desc && !((_a = __props.column.editable.examples) == null ? void 0 : _a.length)
40
+ disabled: !__props.column.editable.desc && !__props.column.editable.examples?.length
41
41
  }, {
42
- reference: withCtx(() => {
43
- var _a2;
44
- return [
45
- createElementVNode("div", {
46
- class: normalizeClass(["h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-background-2 hover:bg-background-3", [((_a2 = __props.column.editable) == null ? void 0 : _a2.lock) ? "cursor-default" : "cursor-pointer"]]),
47
- onClick: ($event) => onClickHandler(__props.column)
42
+ reference: withCtx(() => [
43
+ createElementVNode("div", {
44
+ class: normalizeClass(["h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-background-2 hover:bg-background-3", [__props.column.editable?.lock ? "cursor-default" : "cursor-pointer"]]),
45
+ onClick: ($event) => onClickHandler(__props.column)
46
+ }, [
47
+ __props.column.editable.lock ? (openBlock(), createBlock(unref(ElIcon), {
48
+ key: 0,
49
+ size: "14",
50
+ color: "rgb(var(--hy-info))",
51
+ class: "mr-2"
52
+ }, {
53
+ default: withCtx(() => [
54
+ createVNode(unref(Lock))
55
+ ]),
56
+ _: 1
57
+ /* STABLE */
58
+ })) : (openBlock(), createBlock(unref(ElCheckbox), {
59
+ key: 1,
60
+ value: __props.column.prop,
61
+ onClick: withModifiers(() => {
62
+ }, ["stop"])
63
+ }, null, 8, ["value", "onClick"])),
64
+ createElementVNode("div", { class: "w-0 flex-1" }, [
65
+ createVNode(unref(AppTooltip), {
66
+ "over-line": 1,
67
+ content: unref(renderHeaderHandler)(__props.column)
68
+ }, null, 8, ["content"])
69
+ ]),
70
+ !__props.column.editable.lock ? (openBlock(), createElementBlock("div", {
71
+ key: 2,
72
+ class: "h-full flex items-center text-auxiliary select-none ml-1"
48
73
  }, [
49
- __props.column.editable.lock ? (openBlock(), createBlock(unref(ElIcon), {
50
- key: 0,
51
- size: "14",
52
- color: "rgb(var(--hy-info))",
53
- class: "mr-2"
54
- }, {
55
- default: withCtx(() => [
56
- createVNode(unref(Lock))
57
- ]),
58
- _: 1
59
- /* STABLE */
60
- })) : (openBlock(), createBlock(unref(ElCheckbox), {
61
- key: 1,
62
- value: __props.column.prop,
74
+ __props.checkMap.has(__props.column.prop) ? (openBlock(), createElementBlock(
75
+ "span",
76
+ { key: 0 },
77
+ toDisplayString(unref(t)("table.show")),
78
+ 1
79
+ /* TEXT */
80
+ )) : (openBlock(), createElementBlock(
81
+ "span",
82
+ {
83
+ key: 1,
84
+ class: "text-info"
85
+ },
86
+ toDisplayString(unref(t)("table.notShown")),
87
+ 1
88
+ /* TEXT */
89
+ )),
90
+ __props.columnsLength > 1 ? (openBlock(), createElementBlock("div", {
91
+ key: 2,
92
+ class: "w-5 h-full flex items-center justify-center handle cursor-grab ml-3",
63
93
  onClick: withModifiers(() => {
64
94
  }, ["stop"])
65
- }, null, 8, ["value", "onClick"])),
66
- createElementVNode("div", { class: "w-0 flex-1" }, [
67
- createVNode(unref(AppTooltip), {
68
- "over-line": 1,
69
- content: __props.column.label
70
- }, null, 8, ["content"])
71
- ]),
72
- !__props.column.editable.lock ? (openBlock(), createElementBlock("div", {
73
- key: 2,
74
- class: "h-full flex items-center text-auxiliary select-none ml-1"
75
95
  }, [
76
- __props.checkMap.has(__props.column.prop) ? (openBlock(), createElementBlock(
77
- "span",
78
- { key: 0 },
79
- toDisplayString(unref(t)("table.show")),
80
- 1
81
- /* TEXT */
82
- )) : (openBlock(), createElementBlock(
83
- "span",
84
- {
85
- key: 1,
86
- class: "text-info"
87
- },
88
- toDisplayString(unref(t)("table.notShown")),
89
- 1
90
- /* TEXT */
91
- )),
92
- __props.columnsLength > 1 ? (openBlock(), createElementBlock("div", {
93
- key: 2,
94
- class: "w-5 h-full flex items-center justify-center handle cursor-grab ml-3",
95
- onClick: withModifiers(() => {
96
- }, ["stop"])
97
- }, [
98
- createVNode(unref(ElIcon), null, {
99
- default: withCtx(() => [
100
- createVNode(unref(DCaret))
101
- ]),
102
- _: 1
103
- /* STABLE */
104
- })
105
- ], 8, ["onClick"])) : createCommentVNode("v-if", true)
106
- ])) : createCommentVNode("v-if", true)
107
- ], 10, ["onClick"])
108
- ];
109
- }),
110
- default: withCtx(() => {
111
- var _a2;
112
- return [
113
- createElementVNode(
96
+ createVNode(unref(ElIcon), null, {
97
+ default: withCtx(() => [
98
+ createVNode(unref(DCaret))
99
+ ]),
100
+ _: 1
101
+ /* STABLE */
102
+ })
103
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true)
104
+ ])) : createCommentVNode("v-if", true)
105
+ ], 10, ["onClick"])
106
+ ]),
107
+ default: withCtx(() => [
108
+ createElementVNode(
109
+ "div",
110
+ { class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border" },
111
+ toDisplayString(unref(renderHeaderHandler)(__props.column)),
112
+ 1
113
+ /* TEXT */
114
+ ),
115
+ createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs" }, [
116
+ __props.column.editable.desc ? (openBlock(), createElementBlock(
114
117
  "div",
115
- { class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border" },
116
- toDisplayString(__props.column.label),
118
+ { key: 0 },
119
+ toDisplayString(__props.column.editable.desc),
117
120
  1
118
121
  /* TEXT */
119
- ),
120
- createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs" }, [
121
- __props.column.editable.desc ? (openBlock(), createElementBlock(
122
+ )) : createCommentVNode("v-if", true),
123
+ __props.column.editable.examples?.length ? (openBlock(), createElementBlock("div", { key: 1 }, [
124
+ createElementVNode(
122
125
  "div",
123
- { key: 0 },
124
- toDisplayString(__props.column.editable.desc),
126
+ { class: "text-auxiliary mb-1.5" },
127
+ toDisplayString(unref(t)("table.example")),
125
128
  1
126
129
  /* TEXT */
127
- )) : createCommentVNode("v-if", true),
128
- ((_a2 = __props.column.editable.examples) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", { key: 1 }, [
129
- createElementVNode(
130
- "div",
131
- { class: "text-auxiliary mb-1.5" },
132
- toDisplayString(unref(t)("table.example")),
133
- 1
134
- /* TEXT */
135
- ),
136
- createElementVNode("div", { class: "flex flex-wrap gap-2" }, [
137
- (openBlock(true), createElementBlock(
138
- Fragment,
139
- null,
140
- renderList(__props.column.editable.examples, (item, index) => {
141
- return openBlock(), createElementBlock(
142
- "div",
143
- {
144
- key: index,
145
- class: "leading-5 bg-background-2 px-1.5 rounded-[2px]"
146
- },
147
- toDisplayString(item),
148
- 1
149
- /* TEXT */
150
- );
151
- }),
152
- 128
153
- /* KEYED_FRAGMENT */
154
- ))
155
- ])
156
- ])) : createCommentVNode("v-if", true)
157
- ])
158
- ];
159
- }),
130
+ ),
131
+ createElementVNode("div", { class: "flex flex-wrap gap-2" }, [
132
+ (openBlock(true), createElementBlock(
133
+ Fragment,
134
+ null,
135
+ renderList(__props.column.editable.examples, (item, index) => {
136
+ return openBlock(), createElementBlock(
137
+ "div",
138
+ {
139
+ key: index,
140
+ class: "leading-5 bg-background-2 px-1.5 rounded-[2px]"
141
+ },
142
+ toDisplayString(item),
143
+ 1
144
+ /* TEXT */
145
+ );
146
+ }),
147
+ 128
148
+ /* KEYED_FRAGMENT */
149
+ ))
150
+ ])
151
+ ])) : createCommentVNode("v-if", true)
152
+ ])
153
+ ]),
160
154
  _: 1
161
155
  /* STABLE */
162
156
  }, 8, ["disabled"]);