hy-dispatch-ui-v3 0.2.28 → 0.2.30

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 (52) hide show
  1. package/dist/tailwind.css +4 -0
  2. package/es/components/hyDatePicker/datePicker.vue.mjs +14 -2
  3. package/es/components/hyForm/cpns/arrayItem.vue.mjs +6 -1
  4. package/es/components/hyForm/cpns/extraItem.vue.mjs +6 -1
  5. package/es/components/hyForm/cpns/formItem.vue.mjs +4 -0
  6. package/es/components/hyForm/form.vue.mjs +6 -3
  7. package/es/components/hyInput/input.vue.mjs +14 -2
  8. package/es/components/hyTable/cpns/virtualTable.vue.mjs +329 -245
  9. package/es/components/hyTable/js/index.mjs +11 -2
  10. package/es/components/hyTable/js/search.mjs +1 -0
  11. package/es/components/hyTable/table.vue.mjs +17 -7
  12. package/es/components/hyTimePicker/timePicker.vue.mjs +14 -2
  13. package/es/hooks/useAudioPlayerConfig.mjs +2 -2
  14. package/es/hooks/usePermissionMap.mjs +2 -2
  15. package/es/hooks/useTooltipConfig.mjs +2 -2
  16. package/es/hooks/useUserAvatarMap.mjs +2 -2
  17. package/es/hooks/useVideoPlayerConfig.mjs +2 -2
  18. package/es/static/hy-svg-icons/hy-icon-Miscellaneous-graffiti-angular-position.js +17 -0
  19. package/es/static/hy-svg-icons/hy-icon-Miscellaneous-h264.js +8 -0
  20. package/es/static/hy-svg-icons/hy-icon-Miscellaneous-h265.js +8 -0
  21. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-ArrowDownBold.js +8 -0
  22. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-ArrowUpBold.js +8 -0
  23. package/es/static/hy-svg-icons/hy-icon-map-marker-v3-lawenforce-screen-mark.js +29 -0
  24. package/es/utils/is.mjs +1 -1
  25. package/es/version.mjs +1 -1
  26. package/lib/components/hyDatePicker/datePicker.vue.js +13 -1
  27. package/lib/components/hyForm/cpns/arrayItem.vue.js +6 -1
  28. package/lib/components/hyForm/cpns/extraItem.vue.js +6 -1
  29. package/lib/components/hyForm/cpns/formItem.vue.js +4 -0
  30. package/lib/components/hyForm/form.vue.js +6 -3
  31. package/lib/components/hyInput/input.vue.js +13 -1
  32. package/lib/components/hyTable/cpns/virtualTable.vue.js +326 -242
  33. package/lib/components/hyTable/js/index.js +11 -2
  34. package/lib/components/hyTable/js/search.js +1 -0
  35. package/lib/components/hyTable/table.vue.js +17 -7
  36. package/lib/components/hyTimePicker/timePicker.vue.js +13 -1
  37. package/lib/hooks/useAudioPlayerConfig.js +1 -1
  38. package/lib/hooks/usePermissionMap.js +1 -1
  39. package/lib/hooks/useTooltipConfig.js +1 -1
  40. package/lib/hooks/useUserAvatarMap.js +1 -1
  41. package/lib/hooks/useVideoPlayerConfig.js +1 -1
  42. package/lib/static/hy-svg-icons/hy-icon-Miscellaneous-graffiti-angular-position.js +17 -0
  43. package/lib/static/hy-svg-icons/hy-icon-Miscellaneous-h264.js +8 -0
  44. package/lib/static/hy-svg-icons/hy-icon-Miscellaneous-h265.js +8 -0
  45. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-ArrowDownBold.js +8 -0
  46. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-ArrowUpBold.js +8 -0
  47. package/lib/static/hy-svg-icons/hy-icon-map-marker-v3-lawenforce-screen-mark.js +29 -0
  48. package/lib/utils/is.js +1 -1
  49. package/lib/version.js +1 -1
  50. package/package.json +1 -1
  51. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-/345/220/221/344/270/213.js +0 -9
  52. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-/345/220/221/344/270/213.js +0 -9
@@ -67,6 +67,13 @@ const _sfc_main = {
67
67
  return keyMap;
68
68
  }, /* @__PURE__ */ new Map());
69
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
+ }
70
77
  const avgWidth = vue.computed(() => {
71
78
  const { total, totalWidth } = props.columns.reduce(
72
79
  ({ total: total2, totalWidth: totalWidth2 }, column) => {
@@ -102,11 +109,19 @@ const _sfc_main = {
102
109
  return expandColumn.value?.expandType === "expand";
103
110
  });
104
111
  const dataSource = vue.computed(() => {
105
- if (!isExpandTable.value) return props.data;
106
- return props.data.map((item) => ({
107
- ...item,
108
- children: item.children?.length ? item.children : [{ id: /* @__PURE__ */ Symbol("expandKey"), rowType: "expand" }]
109
- }));
112
+ if (isExpandTable.value) {
113
+ return props.data.map((item) => {
114
+ item.children = [
115
+ {
116
+ id: /* @__PURE__ */ Symbol("expandKey"),
117
+ rowType: "expand",
118
+ dataKey: getRowKey(item)
119
+ }
120
+ ];
121
+ return item;
122
+ });
123
+ }
124
+ return props.data;
110
125
  });
111
126
  const dataSourceMap = vue.computed(() => {
112
127
  return generateDataSourceMap(dataSource.value);
@@ -132,28 +147,17 @@ const _sfc_main = {
132
147
  return $index + 1;
133
148
  }
134
149
  function onRowClickHandler(options) {
135
- options = is.isArray(options)[0] ? options[0] : options;
150
+ options = is.isArray(options) ? options[0] : options;
136
151
  if (!options) return;
137
152
  const { rowData: row, event } = options;
138
- const target = event?.target;
139
- const classList = [
140
- ...target?.classList || [],
141
- ...target?.parentNode?.classList || [],
142
- ...target?.parentNode?.parentNode?.classList || []
143
- ];
144
- if (classList.some((item) => item === "hy-el-table-v2__expand-icon")) {
145
- return;
146
- }
147
- if (row.rowType === "expand") return;
148
- if (!props.onRowClick) return;
153
+ if (row.rowType === "expand" || !props.onRowClick) return;
149
154
  props.onRowClick(row, void 0, event);
150
155
  }
151
156
  function onContextmenuHandler(options) {
152
- options = is.isArray(options)[0] ? options[0] : options;
157
+ options = is.isArray(options) ? options[0] : options;
153
158
  if (!options) return;
154
159
  const { rowData: row, event } = options;
155
- if (row.rowType === "expand") return;
156
- if (!props.onRowContextmenu) return;
160
+ if (row.rowType === "expand" || !props.onRowContextmenu) return;
157
161
  props.onRowContextmenu(row, void 0, event);
158
162
  }
159
163
  const isAllChecked = vue.ref(false);
@@ -279,6 +283,8 @@ const _sfc_main = {
279
283
  width: __props.width,
280
284
  height: __props.height,
281
285
  "header-height": __props.showHeader ? 44 : 0,
286
+ "row-height": 50,
287
+ "estimated-row-height": 50,
282
288
  "expand-column-key": expandColumn.value?.key,
283
289
  fixed: "",
284
290
  "row-event-handlers": {
@@ -320,240 +326,318 @@ const _sfc_main = {
320
326
  /* DYNAMIC */
321
327
  }, 1032, ["column", "filter-model", "onSearch"])
322
328
  ]),
323
- cell: vue.withCtx(({ column, columnIndex: cellIndex, rowData: row, rowIndex: $index }) => [
324
- column.type === "expand" && isExpandTable.value ? (vue.openBlock(), vue.createElementBlock(
325
- vue.Fragment,
326
- { key: 0 },
327
- [],
328
- 64
329
- /* STABLE_FRAGMENT */
330
- )) : column.type === "selection" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), {
331
- key: 1,
332
- "model-value": selectedMap.value.has(getRowKey(row)),
333
- indeterminate: indeterminateKeys.value.has(getRowKey(row)),
334
- disabled: !isSelectable(row),
335
- onClick: vue.withModifiers(($event) => switchCheckHandler(row), ["stop"])
336
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.normalizeProps(vue.mergeProps({ key: 2 }, { column, row, $index, cellIndex }))) : column.type === "index" ? (vue.openBlock(), vue.createElementBlock(
329
+ row: vue.withCtx(({ columns, depth, rowData: row, rowIndex: $index }) => [
330
+ vue.createCommentVNode(" \u5C55\u5F00\u5185\u5BB9 "),
331
+ depth > 0 && isExpandTable.value ? vue.renderSlot(_ctx.$slots, expandColumn.value.slot, {
332
+ key: 0,
333
+ row: dataSourceMap.value.get(row.dataKey)
334
+ }) : (vue.openBlock(), vue.createElementBlock(
337
335
  vue.Fragment,
338
- { key: 3 },
336
+ { key: 1 },
339
337
  [
340
- vue.createTextVNode(
341
- vue.toDisplayString(columnIndexHandler({ column, row, $index, cellIndex })),
342
- 1
343
- /* TEXT */
344
- )
345
- ],
346
- 64
347
- /* STABLE_FRAGMENT */
348
- )) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
349
- key: 4,
350
- class: "w-full flex items-center justify-between text-main",
351
- onClick: vue.withModifiers(() => {
352
- }, ["stop"]),
353
- onContextmenu: vue.withModifiers(() => {
354
- }, ["stop"])
355
- }, [
356
- (vue.openBlock(true), vue.createElementBlock(
357
- vue.Fragment,
358
- null,
359
- vue.renderList(vue.unref(index.operatorFilterHandler)(
360
- column,
361
- { column, row, $index, cellIndex },
362
- "default"
363
- ), (citem, cindex) => {
364
- return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
365
- key: cindex,
366
- "is-always": "",
367
- overLine: 1,
368
- content: citem.label
369
- }, {
370
- default: vue.withCtx(() => [
371
- vue.createElementVNode("div", {
372
- 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]),
373
- onClick: ($event) => vue.unref(index.operatorClickHandler)(
374
- cindex,
375
- column,
376
- { column, row, $index, cellIndex },
377
- "default"
378
- )
379
- }, [
380
- vue.createVNode(vue.unref(index$2.HyIcon), {
381
- "svg-name": citem.svgName,
382
- "class-name": "!w-4 !h-4"
383
- }, null, 8, ["svg-name"]),
384
- citem.subLabel ? (vue.openBlock(), vue.createElementBlock(
385
- "div",
386
- {
387
- key: 0,
388
- class: "mt-1 whitespace-nowrap"
389
- },
390
- vue.toDisplayString(citem.subLabel),
391
- 1
392
- /* TEXT */
393
- )) : (vue.openBlock(), vue.createElementBlock("div", {
394
- key: 1,
395
- class: "mt-1 whitespace-nowrap"
396
- }, "\xA0"))
397
- ], 10, ["onClick"])
398
- ]),
399
- _: 2
400
- /* DYNAMIC */
401
- }, 1032, ["content"]);
402
- }),
403
- 128
404
- /* KEYED_FRAGMENT */
405
- )),
406
- vue.unref(index.operatorFilterHandler)(
407
- column,
408
- { column, row, $index, cellIndex },
409
- "more"
410
- )?.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
411
- key: 0,
412
- ref: "operatorDropdownRef",
413
- trigger: "click",
414
- "popper-style": "min-width: 150px",
415
- placement: "bottom",
416
- onCommand: ($event) => vue.unref(index.operatorClickHandler)(
417
- $event,
418
- column,
419
- { column, row, $index, cellIndex },
420
- "more"
421
- )
422
- }, {
423
- dropdown: vue.withCtx(() => [
424
- vue.createVNode(
425
- vue.unref(elementPlus.ElDropdownMenu),
338
+ 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,
426
349
  null,
427
- {
428
- default: vue.withCtx(() => [
429
- (vue.openBlock(true), vue.createElementBlock(
430
- vue.Fragment,
431
- null,
432
- vue.renderList(vue.unref(index.operatorFilterHandler)(
433
- column,
434
- { column, row, $index, cellIndex },
435
- "more"
436
- ), (citem, cindex) => {
437
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdownItem), {
438
- key: cindex,
439
- command: cindex,
440
- disabled: vue.unref(index.operatorDisabledHandler)(citem, {
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(
361
+ 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
+ }, {
378
+ default: vue.withCtx(() => [
379
+ vue.createVNode(vue.unref(iconsVue.ArrowRight))
380
+ ]),
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` })
390
+ },
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 */
416
+ )
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)(
441
432
  column,
442
- row,
443
- $index,
444
- cellIndex
445
- })
433
+ { column, row, $index, cellIndex },
434
+ "default"
435
+ ), (citem, cindex) => {
436
+ return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
437
+ key: cindex,
438
+ "is-always": "",
439
+ overLine: 1,
440
+ content: citem.label
441
+ }, {
442
+ 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(
457
+ "div",
458
+ {
459
+ key: 0,
460
+ class: "mt-1 whitespace-nowrap"
461
+ },
462
+ vue.toDisplayString(citem.subLabel),
463
+ 1
464
+ /* TEXT */
465
+ )) : (vue.openBlock(), vue.createElementBlock("div", {
466
+ key: 1,
467
+ class: "mt-1 whitespace-nowrap"
468
+ }, "\xA0"))
469
+ ], 10, ["onClick"])
470
+ ]),
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,
491
+ column,
492
+ { column, row, $index, cellIndex },
493
+ "more"
494
+ )
446
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
+ ]),
447
566
  default: vue.withCtx(() => [
448
567
  vue.createElementVNode("span", null, [
449
- vue.createElementVNode(
450
- "span",
451
- null,
452
- vue.toDisplayString(citem.label),
453
- 1
454
- /* TEXT */
455
- ),
456
- vue.unref(index.operatorDisabledHandler)(citem, {
457
- column,
458
- row,
459
- $index,
460
- cellIndex
461
- }) ? (vue.openBlock(), vue.createElementBlock(
462
- "span",
463
- {
464
- key: 0,
465
- class: "text-xs leading-1"
466
- },
467
- "\uFF08" + vue.toDisplayString(vue.unref(index.operatorDisableTextdHandler)(citem, {
468
- column,
469
- row,
470
- $index,
471
- cellIndex
472
- })) + "\uFF09",
473
- 1
474
- /* TEXT */
475
- )) : vue.createCommentVNode("v-if", true)
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"])
476
599
  ])
477
600
  ]),
478
601
  _: 2
479
602
  /* DYNAMIC */
480
- }, 1032, ["command", "disabled"]);
481
- }),
482
- 128
483
- /* KEYED_FRAGMENT */
484
- ))
485
- ]),
486
- _: 2
487
- /* DYNAMIC */
488
- },
489
- 1024
490
- /* DYNAMIC_SLOTS */
491
- )
492
- ]),
493
- default: vue.withCtx(() => [
494
- vue.createElementVNode("span", null, [
495
- vue.createVNode(vue.unref(index$1.HyTooltip), {
496
- "is-always": "",
497
- overLine: 1,
498
- content: vue.unref(t)("table.moreOperations")
499
- }, {
500
- default: vue.withCtx(() => [
501
- 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" }, [
502
- vue.createElementVNode("div", { class: "w-4 h-4" }, [
503
- vue.createVNode(vue.unref(elementPlus.ElIcon), {
504
- size: "16",
505
- color: "rgba(var(--hy-main))"
506
- }, {
507
- default: vue.withCtx(() => [
508
- vue.createVNode(vue.unref(iconsVue.MoreFilled))
509
- ]),
510
- _: 1
511
- /* STABLE */
512
- })
513
- ]),
514
- vue.createElementVNode(
515
- "div",
516
- { class: "mt-1" },
517
- vue.toDisplayString(vue.unref(t)("table.more")),
518
- 1
519
- /* TEXT */
520
- )
521
- ])
522
- ]),
523
- _: 1
524
- /* STABLE */
525
- }, 8, ["content"])
526
- ])
527
- ]),
528
- _: 2
529
- /* DYNAMIC */
530
- }, 1032, ["onCommand"])) : vue.createCommentVNode("v-if", true)
531
- ], 40, ["onClick", "onContextmenu"])) : ["default", "expand"].includes(column.type) ? (vue.openBlock(), vue.createElementBlock(
532
- vue.Fragment,
533
- { key: 5 },
534
- [
535
- !vue.unref(is.isEmpty)(
536
- vue.unref(index.renderContentHandler)(column, { column, row, $index, cellIndex })
537
- ) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
538
- key: 0,
539
- "is-always": false,
540
- "over-line": 2,
541
- content: vue.unref(index.renderContentHandler)(column, { column, row, $index, cellIndex })
542
- }, null, 8, ["content"])) : (vue.openBlock(), vue.createElementBlock("span", {
543
- key: 1,
544
- class: "text-auxiliary"
545
- }, "- -"))
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"])
546
637
  ],
547
- 64
548
- /* STABLE_FRAGMENT */
549
- )) : vue.createCommentVNode("v-if", true)
550
- ]),
551
- row: vue.withCtx(({ cells, depth, expanded, rowData: row }) => [
552
- depth > 0 && isExpandTable.value ? vue.renderSlot(_ctx.$slots, expandColumn.value.slot, {
553
- key: 0,
554
- row,
555
- expanded: expandedMap.value.has(getRowKey(row))
556
- }) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(() => cells), { key: 1 }))
638
+ 2112
639
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
640
+ ))
557
641
  ]),
558
642
  empty: vue.withCtx(() => [
559
643
  vue.renderSlot(_ctx.$slots, "empty")