hy-dispatch-ui-v3 0.2.31 → 0.2.33

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 (80) hide show
  1. package/dist/tailwind.css +174 -454
  2. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +4 -4
  3. package/es/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
  4. package/es/components/hyButton/button.vue.mjs +112 -65
  5. package/es/components/hyButton/style/button.scss +291 -233
  6. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
  7. package/es/components/hyForm/form.vue.mjs +2 -1
  8. package/es/components/hyForm/index.mjs +1 -1
  9. package/es/components/hyForm/js/useAppForm.mjs +1 -2
  10. package/es/components/hyForm/style/form.scss +56 -54
  11. package/es/components/hyIcon/style/icon.scss +1 -1
  12. package/es/components/hyIconBox/style/iconBox.scss +19 -18
  13. package/es/components/hyInput/input.vue.mjs +4 -1
  14. package/es/components/hyMenu/menu.vue.mjs +1 -1
  15. package/es/components/hyMenu/style/menu.scss +1 -1
  16. package/es/components/hySearch/index.mjs +1 -1
  17. package/es/components/hySearch/style/search.scss +50 -50
  18. package/es/components/hyTable/cpns/virtualTable.vue.mjs +342 -319
  19. package/es/components/hyTable/js/index.mjs +19 -3
  20. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  21. package/es/components/hyTable/table.vue.mjs +31 -11
  22. package/es/components/hyTableForm/batchTableForm.vue.mjs +478 -0
  23. package/es/components/hyTableForm/index.mjs +4 -1
  24. package/es/components/hyTableForm/js/index.mjs +123 -0
  25. package/es/components/hyTableForm/js/useAppTableForm.mjs +47 -0
  26. package/es/components/hyTableForm/style/batchTableForm.scss +127 -0
  27. package/es/components/hyTableForm/style/tableForm.scss +42 -0
  28. package/es/components/hyTableForm/tableForm.vue.mjs +452 -7
  29. package/es/components/hyTooltip/tooltip.vue.mjs +2 -2
  30. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -1
  31. package/es/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
  32. package/es/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
  33. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +6 -6
  34. package/es/components/index.mjs +4 -3
  35. package/es/index.mjs +4 -3
  36. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  37. package/es/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  38. package/es/style/tailwind.scss +133 -1
  39. package/es/utils/handler.mjs +4 -4
  40. package/es/version.mjs +1 -1
  41. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +4 -4
  42. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
  43. package/lib/components/hyButton/button.vue.js +111 -64
  44. package/lib/components/hyButton/style/button.scss +291 -233
  45. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  46. package/lib/components/hyForm/form.vue.js +2 -1
  47. package/lib/components/hyForm/index.js +1 -0
  48. package/lib/components/hyForm/js/useAppForm.js +1 -2
  49. package/lib/components/hyForm/style/form.scss +56 -54
  50. package/lib/components/hyIcon/style/icon.scss +1 -1
  51. package/lib/components/hyIconBox/style/iconBox.scss +19 -18
  52. package/lib/components/hyInput/input.vue.js +4 -1
  53. package/lib/components/hyMenu/menu.vue.js +1 -1
  54. package/lib/components/hyMenu/style/menu.scss +1 -1
  55. package/lib/components/hySearch/index.js +1 -0
  56. package/lib/components/hySearch/style/search.scss +50 -50
  57. package/lib/components/hyTable/cpns/virtualTable.vue.js +340 -317
  58. package/lib/components/hyTable/js/index.js +19 -3
  59. package/lib/components/hyTable/js/useAppTable.js +1 -1
  60. package/lib/components/hyTable/table.vue.js +31 -11
  61. package/lib/components/hyTableForm/batchTableForm.vue.js +482 -0
  62. package/lib/components/hyTableForm/index.js +5 -0
  63. package/lib/components/hyTableForm/js/index.js +127 -0
  64. package/lib/components/hyTableForm/js/useAppTableForm.js +49 -0
  65. package/lib/components/hyTableForm/style/batchTableForm.scss +127 -0
  66. package/lib/components/hyTableForm/style/tableForm.scss +42 -0
  67. package/lib/components/hyTableForm/tableForm.vue.js +451 -6
  68. package/lib/components/hyTooltip/tooltip.vue.js +2 -2
  69. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -1
  70. package/lib/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
  71. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
  72. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +6 -6
  73. package/lib/components/index.js +35 -30
  74. package/lib/index.js +35 -30
  75. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  76. package/lib/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  77. package/lib/style/tailwind.scss +133 -1
  78. package/lib/utils/handler.js +4 -4
  79. package/lib/version.js +1 -1
  80. package/package.json +5 -3
@@ -16,7 +16,8 @@ const _sfc_main = {
16
16
  __name: "virtualTable",
17
17
  props: {
18
18
  rowKey: {
19
- type: [String, Number]
19
+ type: [String, Number],
20
+ default: "id"
20
21
  },
21
22
  width: {
22
23
  type: Number
@@ -48,32 +49,27 @@ const _sfc_main = {
48
49
  type: Object,
49
50
  default: () => ({})
50
51
  },
52
+ rowClassName: {
53
+ type: [String, Function]
54
+ },
51
55
  onRowClick: {
52
56
  type: Function
53
57
  },
54
58
  onRowContextmenu: {
55
59
  type: Function
60
+ },
61
+ expandMode: {
62
+ // 展开模式,不支持树形展开
63
+ type: String,
64
+ default: "default"
65
+ // deafult-默认 accordion-手风琴
56
66
  }
57
67
  },
58
- emits: ["search", "select", "select-all"],
68
+ emits: ["search", "select", "select-all", "expand-change"],
59
69
  setup(__props, { expose: __expose, emit: __emit }) {
60
70
  const props = __props;
61
71
  const emits = __emit;
62
72
  const { t } = useLocale.useLocale();
63
- const expandedKeys = vue.ref([]);
64
- const expandedMap = vue.computed(() => {
65
- return expandedKeys.value.reduce((keyMap, key, index) => {
66
- keyMap.set(key, index);
67
- return keyMap;
68
- }, /* @__PURE__ */ new Map());
69
- });
70
- function onRowExpandSwitch({ rowKey }) {
71
- if (expandedMap.value.has(rowKey)) {
72
- expandedKeys.value.splice(expandedMap.value.get(rowKey), 1);
73
- } else {
74
- expandedKeys.value.push(rowKey);
75
- }
76
- }
77
73
  const avgWidth = vue.computed(() => {
78
74
  const { total, totalWidth } = props.columns.reduce(
79
75
  ({ total: total2, totalWidth: totalWidth2 }, column) => {
@@ -113,7 +109,7 @@ const _sfc_main = {
113
109
  return props.data.map((item) => {
114
110
  item.children = [
115
111
  {
116
- id: /* @__PURE__ */ Symbol("expandKey"),
112
+ [props.rowKey]: /* @__PURE__ */ Symbol("expandKey"),
117
113
  rowType: "expand",
118
114
  dataKey: getRowKey(item)
119
115
  }
@@ -129,6 +125,15 @@ const _sfc_main = {
129
125
  function getRowKey(row) {
130
126
  return row[props.rowKey];
131
127
  }
128
+ function rowClass({ rowData: row, rowIndex }) {
129
+ let className = [];
130
+ if (is.isString(props.rowClassName)) {
131
+ className.push(props.rowClassName);
132
+ } else if (is.isFunction(props.rowClassName)) {
133
+ className.push(props.rowClassName({ row, rowIndex }));
134
+ }
135
+ return className.filter(Boolean).join(" ");
136
+ }
132
137
  function generateDataSourceMap(list, dataMap = /* @__PURE__ */ new Map()) {
133
138
  return (list || []).reduce((dataMap2, data) => {
134
139
  if (data.children) {
@@ -251,22 +256,46 @@ const _sfc_main = {
251
256
  const { allChecked } = handler(list, checkedNodeMap, indeterminateKeys2);
252
257
  return { checkedNodeMap, indeterminateKeys: indeterminateKeys2, allChecked };
253
258
  }
254
- __expose({
255
- toggleRowSelection,
256
- toggleAllSelection,
257
- toggleRowExpansion(row, expanded) {
258
- const index = expandedMap.value.get(getRowKey(row));
259
- const isExpanded = is.isBoolean(expanded) ? expanded : !is.isNumber(index);
260
- if (isExpanded) {
261
- if (!is.isNumber(index)) {
259
+ const expandedKeys = vue.ref([]);
260
+ const expandedMap = vue.computed(() => {
261
+ return expandedKeys.value.reduce((keyMap, key, index) => {
262
+ keyMap.set(key, index);
263
+ return keyMap;
264
+ }, /* @__PURE__ */ new Map());
265
+ });
266
+ function toggleRowExpansion(row, expanded) {
267
+ const index = expandedMap.value.get(getRowKey(row));
268
+ const isExpanded = is.isBoolean(expanded) ? expanded : !is.isNumber(index);
269
+ if (isExpanded) {
270
+ if (!is.isNumber(index)) {
271
+ if (props.expandMode === "accordion" && isExpandTable.value) {
272
+ expandedKeys.value = [getRowKey(row)];
273
+ } else {
262
274
  expandedKeys.value.push(getRowKey(row));
263
275
  }
264
- } else {
265
- if (is.isNumber(index)) {
266
- expandedKeys.value.splice(index, 1);
267
- }
268
276
  }
269
- },
277
+ } else {
278
+ if (is.isNumber(index)) {
279
+ expandedKeys.value.splice(index, 1);
280
+ }
281
+ }
282
+ if (isExpandTable.value) {
283
+ const expandedList = expandedKeys.value.reduce((list, key) => {
284
+ list.push(dataSourceMap.value.get(key));
285
+ return list;
286
+ }, []);
287
+ emits("expand-change", row, expandedList);
288
+ } else {
289
+ emits("expand-change", row, isExpanded);
290
+ }
291
+ }
292
+ function onRowExpandSwitch({ row, rowKey }) {
293
+ toggleRowExpansion(row, !expandedMap.value.has(rowKey));
294
+ }
295
+ __expose({
296
+ toggleRowSelection,
297
+ toggleAllSelection,
298
+ toggleRowExpansion,
270
299
  clearSelection: () => {
271
300
  isAllChecked.value = false;
272
301
  selectedMap.value.clear();
@@ -287,6 +316,7 @@ const _sfc_main = {
287
316
  "estimated-row-height": 50,
288
317
  "expand-column-key": expandColumn.value?.key,
289
318
  fixed: "",
319
+ "row-class": rowClass,
290
320
  "row-event-handlers": {
291
321
  onClick: onRowClickHandler,
292
322
  onContextmenu: onContextmenuHandler
@@ -336,308 +366,301 @@ const _sfc_main = {
336
366
  { key: 1 },
337
367
  [
338
368
  vue.createCommentVNode(" \u5355\u5143\u683C\u5185\u5BB9 "),
339
- vue.createElementVNode("div", {
340
- class: vue.normalizeClass(["hy-el-table-v2__row is-customized", [
341
- `hy-el-table-v2__row-depth-${depth}`,
342
- { "is-expanded": expandedMap.value.has(getRowKey(row)) }
343
- ]]),
344
- role: "row",
345
- rowkey: getRowKey(row)
346
- }, [
347
- (vue.openBlock(true), vue.createElementBlock(
348
- vue.Fragment,
349
- null,
350
- vue.renderList(columns, (column, cellIndex) => {
351
- return vue.openBlock(), vue.createElementBlock(
352
- "div",
353
- {
354
- key: cellIndex,
355
- class: "hy-el-table-v2__row-cell",
356
- role: "cell",
357
- style: vue.normalizeStyle([{ "flex": "0 0 auto" }, { width: `${column.width}px` }])
358
- },
359
- [
360
- column.type === "expand" ? (vue.openBlock(), vue.createElementBlock(
369
+ (vue.openBlock(true), vue.createElementBlock(
370
+ vue.Fragment,
371
+ null,
372
+ vue.renderList(columns, (column, cellIndex) => {
373
+ return vue.openBlock(), vue.createElementBlock(
374
+ "div",
375
+ {
376
+ key: cellIndex,
377
+ class: "hy-el-table-v2__row-cell",
378
+ role: "cell",
379
+ style: vue.normalizeStyle([{ "flex": "0 0 auto" }, { width: `${column.width}px` }])
380
+ },
381
+ [
382
+ column.type === "expand" ? (vue.openBlock(), vue.createElementBlock(
383
+ vue.Fragment,
384
+ { key: 0 },
385
+ [
386
+ row.children && row.children.length ? (vue.openBlock(), vue.createElementBlock("button", {
387
+ key: 0,
388
+ type: "button",
389
+ "aria-label": "\u5C55\u5F00\u5F53\u524D\u884C",
390
+ "aria-expanded": "false",
391
+ class: vue.normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded": expandedMap.value.has(getRowKey(row)) }]),
392
+ onClick: vue.withModifiers(($event) => onRowExpandSwitch({
393
+ rowData: _ctx.rowData,
394
+ row,
395
+ rowKey: getRowKey(row)
396
+ }), ["stop"])
397
+ }, [
398
+ vue.createVNode(vue.unref(elementPlus.ElIcon), {
399
+ class: "text-main",
400
+ style: vue.normalizeStyle({ "margin-inline-start": `${depth * 12}px` })
401
+ }, {
402
+ default: vue.withCtx(() => [
403
+ vue.createVNode(vue.unref(iconsVue.ArrowRight))
404
+ ]),
405
+ _: 1
406
+ /* STABLE */
407
+ }, 8, ["style"])
408
+ ], 10, ["onClick"])) : (vue.openBlock(), vue.createElementBlock(
409
+ "div",
410
+ {
411
+ key: 1,
412
+ class: "w-3 h-3",
413
+ style: vue.normalizeStyle({ "margin-inline-start": `${(depth + 1) * 12}px` })
414
+ },
415
+ null,
416
+ 4
417
+ /* STYLE */
418
+ ))
419
+ ],
420
+ 64
421
+ /* STABLE_FRAGMENT */
422
+ )) : vue.createCommentVNode("v-if", true),
423
+ column.type === "selection" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), {
424
+ key: 1,
425
+ "model-value": selectedMap.value.has(getRowKey(row)),
426
+ indeterminate: indeterminateKeys.value.has(getRowKey(row)),
427
+ disabled: !isSelectable(row),
428
+ onClick: vue.withModifiers(($event) => switchCheckHandler(row), ["stop"])
429
+ }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot && (column.type !== "expand" || !isExpandTable.value) ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({
430
+ key: 2,
431
+ ref_for: true
432
+ }, { column, row, $index, cellIndex })) : column.type === "index" ? (vue.openBlock(), vue.createElementBlock(
433
+ vue.Fragment,
434
+ { key: 3 },
435
+ [
436
+ vue.createTextVNode(
437
+ vue.toDisplayString(columnIndexHandler({ column, row, $index, cellIndex })),
438
+ 1
439
+ /* TEXT */
440
+ )
441
+ ],
442
+ 64
443
+ /* STABLE_FRAGMENT */
444
+ )) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
445
+ key: 4,
446
+ class: "w-full flex items-center justify-between text-main",
447
+ onClick: vue.withModifiers(() => {
448
+ }, ["stop"]),
449
+ onContextmenu: vue.withModifiers(() => {
450
+ }, ["stop"])
451
+ }, [
452
+ (vue.openBlock(true), vue.createElementBlock(
361
453
  vue.Fragment,
362
- { key: 0 },
363
- [
364
- row.children && row.children.length ? (vue.openBlock(), vue.createElementBlock("button", {
365
- key: 0,
366
- type: "button",
367
- "aria-label": "\u5C55\u5F00\u5F53\u524D\u884C",
368
- "aria-expanded": "false",
369
- class: vue.normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded": expandedMap.value.has(getRowKey(row)) }]),
370
- onClick: vue.withModifiers(($event) => onRowExpandSwitch({
371
- rowData: _ctx.rowData,
372
- rowKey: getRowKey(row)
373
- }), ["stop"])
374
- }, [
375
- vue.createVNode(vue.unref(elementPlus.ElIcon), {
376
- style: vue.normalizeStyle({ "margin-inline-start": `${depth * 12}px` })
377
- }, {
454
+ null,
455
+ vue.renderList(vue.unref(index.operatorFilterHandler)(
456
+ column,
457
+ { column, row, $index, cellIndex },
458
+ "default"
459
+ ), (citem, cindex) => {
460
+ return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
461
+ key: cindex,
462
+ "is-always": "",
463
+ overLine: 1,
464
+ content: citem.label
465
+ }, {
466
+ default: vue.withCtx(() => [
467
+ vue.createElementVNode("div", {
468
+ 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 cursor-pointer", citem.className]),
469
+ onClick: ($event) => vue.unref(index.operatorClickHandler)(
470
+ cindex,
471
+ column,
472
+ { column, row, $index, cellIndex },
473
+ "default"
474
+ )
475
+ }, [
476
+ vue.createVNode(vue.unref(index$2.HyIcon), {
477
+ "svg-name": citem.svgName,
478
+ "class-name": "!w-4 !h-4"
479
+ }, null, 8, ["svg-name"]),
480
+ citem.subLabel ? (vue.openBlock(), vue.createElementBlock(
481
+ "div",
482
+ {
483
+ key: 0,
484
+ class: "mt-1 whitespace-nowrap"
485
+ },
486
+ vue.toDisplayString(citem.subLabel),
487
+ 1
488
+ /* TEXT */
489
+ )) : (vue.openBlock(), vue.createElementBlock("div", {
490
+ key: 1,
491
+ class: "mt-1 whitespace-nowrap"
492
+ }, "\xA0"))
493
+ ], 10, ["onClick"])
494
+ ]),
495
+ _: 2
496
+ /* DYNAMIC */
497
+ }, 1032, ["content"]);
498
+ }),
499
+ 128
500
+ /* KEYED_FRAGMENT */
501
+ )),
502
+ vue.unref(index.operatorFilterHandler)(
503
+ column,
504
+ { column, row, $index, cellIndex },
505
+ "more"
506
+ )?.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
507
+ key: 0,
508
+ ref_for: true,
509
+ ref: "operatorDropdownRef",
510
+ trigger: "click",
511
+ "popper-style": "min-width: 150px",
512
+ placement: "bottom",
513
+ onCommand: ($event) => vue.unref(index.operatorClickHandler)(
514
+ $event,
515
+ column,
516
+ { column, row, $index, cellIndex },
517
+ "more"
518
+ )
519
+ }, {
520
+ dropdown: vue.withCtx(() => [
521
+ vue.createVNode(
522
+ vue.unref(elementPlus.ElDropdownMenu),
523
+ null,
524
+ {
378
525
  default: vue.withCtx(() => [
379
- vue.createVNode(vue.unref(iconsVue.ArrowRight))
526
+ (vue.openBlock(true), vue.createElementBlock(
527
+ vue.Fragment,
528
+ null,
529
+ vue.renderList(vue.unref(index.operatorFilterHandler)(
530
+ column,
531
+ { column, row, $index, cellIndex },
532
+ "more"
533
+ ), (citem, cindex) => {
534
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdownItem), {
535
+ key: cindex,
536
+ command: cindex,
537
+ disabled: vue.unref(index.operatorDisabledHandler)(citem, {
538
+ column,
539
+ row,
540
+ $index,
541
+ cellIndex
542
+ })
543
+ }, {
544
+ default: vue.withCtx(() => [
545
+ vue.createElementVNode("span", null, [
546
+ vue.createElementVNode(
547
+ "span",
548
+ null,
549
+ vue.toDisplayString(citem.label),
550
+ 1
551
+ /* TEXT */
552
+ ),
553
+ vue.unref(index.operatorDisabledHandler)(citem, {
554
+ column,
555
+ row,
556
+ $index,
557
+ cellIndex
558
+ }) ? (vue.openBlock(), vue.createElementBlock(
559
+ "span",
560
+ {
561
+ key: 0,
562
+ class: "text-xs leading-1"
563
+ },
564
+ "\uFF08" + vue.toDisplayString(vue.unref(index.operatorDisableTextdHandler)(citem, {
565
+ column,
566
+ row,
567
+ $index,
568
+ cellIndex
569
+ })) + "\uFF09",
570
+ 1
571
+ /* TEXT */
572
+ )) : vue.createCommentVNode("v-if", true)
573
+ ])
574
+ ]),
575
+ _: 2
576
+ /* DYNAMIC */
577
+ }, 1032, ["command", "disabled"]);
578
+ }),
579
+ 128
580
+ /* KEYED_FRAGMENT */
581
+ ))
380
582
  ]),
381
- _: 1
382
- /* STABLE */
383
- }, 8, ["style"])
384
- ], 10, ["onClick"])) : (vue.openBlock(), vue.createElementBlock(
385
- "div",
386
- {
387
- key: 1,
388
- class: "w-3 h-3",
389
- style: vue.normalizeStyle({ "margin-inline-start": `${(depth + 1) * 12}px` })
583
+ _: 2
584
+ /* DYNAMIC */
390
585
  },
391
- null,
392
- 4
393
- /* STYLE */
394
- ))
395
- ],
396
- 64
397
- /* STABLE_FRAGMENT */
398
- )) : vue.createCommentVNode("v-if", true),
399
- column.type === "selection" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), {
400
- key: 1,
401
- "model-value": selectedMap.value.has(getRowKey(row)),
402
- indeterminate: indeterminateKeys.value.has(getRowKey(row)),
403
- disabled: !isSelectable(row),
404
- onClick: vue.withModifiers(($event) => switchCheckHandler(row), ["stop"])
405
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot && (column.type !== "expand" || !isExpandTable.value) ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({
406
- key: 2,
407
- ref_for: true
408
- }, { column, row, $index, cellIndex })) : column.type === "index" ? (vue.openBlock(), vue.createElementBlock(
409
- vue.Fragment,
410
- { key: 3 },
411
- [
412
- vue.createTextVNode(
413
- vue.toDisplayString(columnIndexHandler({ column, row, $index, cellIndex })),
414
- 1
415
- /* TEXT */
586
+ 1024
587
+ /* DYNAMIC_SLOTS */
416
588
  )
417
- ],
418
- 64
419
- /* STABLE_FRAGMENT */
420
- )) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
421
- key: 4,
422
- class: "w-full flex items-center justify-between text-main",
423
- onClick: vue.withModifiers(() => {
424
- }, ["stop"]),
425
- onContextmenu: vue.withModifiers(() => {
426
- }, ["stop"])
427
- }, [
428
- (vue.openBlock(true), vue.createElementBlock(
429
- vue.Fragment,
430
- null,
431
- vue.renderList(vue.unref(index.operatorFilterHandler)(
432
- column,
433
- { column, row, $index, cellIndex },
434
- "default"
435
- ), (citem, cindex) => {
436
- return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
437
- key: cindex,
589
+ ]),
590
+ default: vue.withCtx(() => [
591
+ vue.createElementVNode("span", null, [
592
+ vue.createVNode(vue.unref(index$1.HyTooltip), {
438
593
  "is-always": "",
439
594
  overLine: 1,
440
- content: citem.label
595
+ content: vue.unref(t)("table.moreOperations")
441
596
  }, {
442
597
  default: vue.withCtx(() => [
443
- vue.createElementVNode("div", {
444
- 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 cursor-pointer", citem.className]),
445
- onClick: ($event) => vue.unref(index.operatorClickHandler)(
446
- cindex,
447
- column,
448
- { column, row, $index, cellIndex },
449
- "default"
450
- )
451
- }, [
452
- vue.createVNode(vue.unref(index$2.HyIcon), {
453
- "svg-name": citem.svgName,
454
- "class-name": "!w-4 !h-4"
455
- }, null, 8, ["svg-name"]),
456
- citem.subLabel ? (vue.openBlock(), vue.createElementBlock(
598
+ 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" }, [
599
+ vue.createElementVNode("div", { class: "w-4 h-4" }, [
600
+ vue.createVNode(vue.unref(elementPlus.ElIcon), {
601
+ size: "16",
602
+ color: "rgba(var(--hy-main))"
603
+ }, {
604
+ default: vue.withCtx(() => [
605
+ vue.createVNode(vue.unref(iconsVue.MoreFilled))
606
+ ]),
607
+ _: 1
608
+ /* STABLE */
609
+ })
610
+ ]),
611
+ vue.createElementVNode(
457
612
  "div",
458
- {
459
- key: 0,
460
- class: "mt-1 whitespace-nowrap"
461
- },
462
- vue.toDisplayString(citem.subLabel),
613
+ { class: "mt-1" },
614
+ vue.toDisplayString(vue.unref(t)("table.more")),
463
615
  1
464
616
  /* TEXT */
465
- )) : (vue.openBlock(), vue.createElementBlock("div", {
466
- key: 1,
467
- class: "mt-1 whitespace-nowrap"
468
- }, "\xA0"))
469
- ], 10, ["onClick"])
617
+ )
618
+ ])
470
619
  ]),
471
- _: 2
472
- /* DYNAMIC */
473
- }, 1032, ["content"]);
474
- }),
475
- 128
476
- /* KEYED_FRAGMENT */
477
- )),
478
- vue.unref(index.operatorFilterHandler)(
479
- column,
480
- { column, row, $index, cellIndex },
481
- "more"
482
- )?.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
483
- key: 0,
484
- ref_for: true,
485
- ref: "operatorDropdownRef",
486
- trigger: "click",
487
- "popper-style": "min-width: 150px",
488
- placement: "bottom",
489
- onCommand: ($event) => vue.unref(index.operatorClickHandler)(
490
- $event,
620
+ _: 1
621
+ /* STABLE */
622
+ }, 8, ["content"])
623
+ ])
624
+ ]),
625
+ _: 2
626
+ /* DYNAMIC */
627
+ }, 1032, ["onCommand"])) : vue.createCommentVNode("v-if", true)
628
+ ], 40, ["onClick", "onContextmenu"])) : column.type === "default" ? (vue.openBlock(), vue.createElementBlock(
629
+ vue.Fragment,
630
+ { key: 5 },
631
+ [
632
+ !vue.unref(is.isEmpty)(
633
+ vue.unref(index.renderContentHandler)(column, {
491
634
  column,
492
- { column, row, $index, cellIndex },
493
- "more"
494
- )
495
- }, {
496
- dropdown: vue.withCtx(() => [
497
- vue.createVNode(
498
- vue.unref(elementPlus.ElDropdownMenu),
499
- null,
500
- {
501
- default: vue.withCtx(() => [
502
- (vue.openBlock(true), vue.createElementBlock(
503
- vue.Fragment,
504
- null,
505
- vue.renderList(vue.unref(index.operatorFilterHandler)(
506
- column,
507
- { column, row, $index, cellIndex },
508
- "more"
509
- ), (citem, cindex) => {
510
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdownItem), {
511
- key: cindex,
512
- command: cindex,
513
- disabled: vue.unref(index.operatorDisabledHandler)(citem, {
514
- column,
515
- row,
516
- $index,
517
- cellIndex
518
- })
519
- }, {
520
- default: vue.withCtx(() => [
521
- vue.createElementVNode("span", null, [
522
- vue.createElementVNode(
523
- "span",
524
- null,
525
- vue.toDisplayString(citem.label),
526
- 1
527
- /* TEXT */
528
- ),
529
- vue.unref(index.operatorDisabledHandler)(citem, {
530
- column,
531
- row,
532
- $index,
533
- cellIndex
534
- }) ? (vue.openBlock(), vue.createElementBlock(
535
- "span",
536
- {
537
- key: 0,
538
- class: "text-xs leading-1"
539
- },
540
- "\uFF08" + vue.toDisplayString(vue.unref(index.operatorDisableTextdHandler)(citem, {
541
- column,
542
- row,
543
- $index,
544
- cellIndex
545
- })) + "\uFF09",
546
- 1
547
- /* TEXT */
548
- )) : vue.createCommentVNode("v-if", true)
549
- ])
550
- ]),
551
- _: 2
552
- /* DYNAMIC */
553
- }, 1032, ["command", "disabled"]);
554
- }),
555
- 128
556
- /* KEYED_FRAGMENT */
557
- ))
558
- ]),
559
- _: 2
560
- /* DYNAMIC */
561
- },
562
- 1024
563
- /* DYNAMIC_SLOTS */
564
- )
565
- ]),
566
- default: vue.withCtx(() => [
567
- vue.createElementVNode("span", null, [
568
- vue.createVNode(vue.unref(index$1.HyTooltip), {
569
- "is-always": "",
570
- overLine: 1,
571
- content: vue.unref(t)("table.moreOperations")
572
- }, {
573
- default: vue.withCtx(() => [
574
- 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" }, [
575
- vue.createElementVNode("div", { class: "w-4 h-4" }, [
576
- vue.createVNode(vue.unref(elementPlus.ElIcon), {
577
- size: "16",
578
- color: "rgba(var(--hy-main))"
579
- }, {
580
- default: vue.withCtx(() => [
581
- vue.createVNode(vue.unref(iconsVue.MoreFilled))
582
- ]),
583
- _: 1
584
- /* STABLE */
585
- })
586
- ]),
587
- vue.createElementVNode(
588
- "div",
589
- { class: "mt-1" },
590
- vue.toDisplayString(vue.unref(t)("table.more")),
591
- 1
592
- /* TEXT */
593
- )
594
- ])
595
- ]),
596
- _: 1
597
- /* STABLE */
598
- }, 8, ["content"])
599
- ])
600
- ]),
601
- _: 2
602
- /* DYNAMIC */
603
- }, 1032, ["onCommand"])) : vue.createCommentVNode("v-if", true)
604
- ], 40, ["onClick", "onContextmenu"])) : column.type === "default" ? (vue.openBlock(), vue.createElementBlock(
605
- vue.Fragment,
606
- { key: 5 },
607
- [
608
- !vue.unref(is.isEmpty)(
609
- vue.unref(index.renderContentHandler)(column, {
610
- column,
611
- row,
612
- $index,
613
- cellIndex
614
- })
615
- ) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
616
- key: 0,
617
- "is-always": false,
618
- "over-line": 2,
619
- content: vue.unref(index.renderContentHandler)(column, { column, row, $index, cellIndex })
620
- }, null, 8, ["content"])) : (vue.openBlock(), vue.createElementBlock("span", {
621
- key: 1,
622
- class: "text-auxiliary"
623
- }, "- -"))
624
- ],
625
- 64
626
- /* STABLE_FRAGMENT */
627
- )) : vue.createCommentVNode("v-if", true)
628
- ],
629
- 4
630
- /* STYLE */
631
- );
632
- }),
633
- 128
634
- /* KEYED_FRAGMENT */
635
- ))
636
- ], 10, ["rowkey"])
635
+ row,
636
+ $index,
637
+ cellIndex
638
+ })
639
+ ) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
640
+ key: 0,
641
+ "is-always": false,
642
+ "over-line": 2,
643
+ content: vue.unref(index.renderContentHandler)(column, { column, row, $index, cellIndex })
644
+ }, null, 8, ["content"])) : (vue.openBlock(), vue.createElementBlock("span", {
645
+ key: 1,
646
+ class: "text-auxiliary"
647
+ }, "- -"))
648
+ ],
649
+ 64
650
+ /* STABLE_FRAGMENT */
651
+ )) : vue.createCommentVNode("v-if", true)
652
+ ],
653
+ 4
654
+ /* STYLE */
655
+ );
656
+ }),
657
+ 128
658
+ /* KEYED_FRAGMENT */
659
+ ))
637
660
  ],
638
- 2112
639
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
640
- ))
661
+ 64
662
+ /* STABLE_FRAGMENT */
663
+ ))
641
664
  ]),
642
665
  empty: vue.withCtx(() => [
643
666
  vue.renderSlot(_ctx.$slots, "empty")