hy-dispatch-ui-v3 0.2.29 → 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.
- package/dist/tailwind.css +4 -0
- package/es/components/hyDatePicker/datePicker.vue.mjs +14 -2
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +6 -1
- package/es/components/hyForm/cpns/extraItem.vue.mjs +6 -1
- package/es/components/hyForm/cpns/formItem.vue.mjs +4 -0
- package/es/components/hyForm/form.vue.mjs +6 -3
- package/es/components/hyInput/input.vue.mjs +14 -2
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +329 -245
- package/es/components/hyTable/js/index.mjs +11 -2
- package/es/components/hyTable/table.vue.mjs +15 -6
- package/es/components/hyTimePicker/timePicker.vue.mjs +14 -2
- package/es/hooks/useAudioPlayerConfig.mjs +2 -2
- package/es/hooks/usePermissionMap.mjs +2 -2
- package/es/hooks/useTooltipConfig.mjs +2 -2
- package/es/hooks/useUserAvatarMap.mjs +2 -2
- package/es/hooks/useVideoPlayerConfig.mjs +2 -2
- package/es/static/hy-svg-icons/hy-icon-Miscellaneous-graffiti-angular-position.js +17 -0
- package/es/static/hy-svg-icons/hy-icon-Miscellaneous-h264.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-Miscellaneous-h265.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-map-marker-v3-lawenforce-screen-mark.js +29 -0
- package/es/utils/is.mjs +1 -1
- package/es/version.mjs +1 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +13 -1
- package/lib/components/hyForm/cpns/arrayItem.vue.js +6 -1
- package/lib/components/hyForm/cpns/extraItem.vue.js +6 -1
- package/lib/components/hyForm/cpns/formItem.vue.js +4 -0
- package/lib/components/hyForm/form.vue.js +6 -3
- package/lib/components/hyInput/input.vue.js +13 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +326 -242
- package/lib/components/hyTable/js/index.js +11 -2
- package/lib/components/hyTable/table.vue.js +15 -6
- package/lib/components/hyTimePicker/timePicker.vue.js +13 -1
- package/lib/hooks/useAudioPlayerConfig.js +1 -1
- package/lib/hooks/usePermissionMap.js +1 -1
- package/lib/hooks/useTooltipConfig.js +1 -1
- package/lib/hooks/useUserAvatarMap.js +1 -1
- package/lib/hooks/useVideoPlayerConfig.js +1 -1
- package/lib/static/hy-svg-icons/hy-icon-Miscellaneous-graffiti-angular-position.js +17 -0
- package/lib/static/hy-svg-icons/hy-icon-Miscellaneous-h264.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-Miscellaneous-h265.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-map-marker-v3-lawenforce-screen-mark.js +29 -0
- package/lib/utils/is.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref, computed, openBlock, createBlock, unref, withCtx, renderSlot,
|
|
2
|
-
import { ElTableV2, ElCheckbox, ElDropdown,
|
|
3
|
-
import { MoreFilled } from '@element-plus/icons-vue';
|
|
1
|
+
import { ref, computed, openBlock, createBlock, unref, withCtx, renderSlot, createCommentVNode, createElementBlock, Fragment, createElementVNode, normalizeClass, renderList, normalizeStyle, withModifiers, createVNode, mergeProps, createTextVNode, toDisplayString, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
|
+
import { ElTableV2, ElIcon, ElCheckbox, ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus';
|
|
3
|
+
import { ArrowRight, MoreFilled } from '@element-plus/icons-vue';
|
|
4
4
|
import { operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from '../js/index.mjs';
|
|
5
5
|
import _sfc_main$1 from './headerItem.vue.mjs';
|
|
6
6
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
@@ -63,6 +63,13 @@ const _sfc_main = {
|
|
|
63
63
|
return keyMap;
|
|
64
64
|
}, /* @__PURE__ */ new Map());
|
|
65
65
|
});
|
|
66
|
+
function onRowExpandSwitch({ rowKey }) {
|
|
67
|
+
if (expandedMap.value.has(rowKey)) {
|
|
68
|
+
expandedKeys.value.splice(expandedMap.value.get(rowKey), 1);
|
|
69
|
+
} else {
|
|
70
|
+
expandedKeys.value.push(rowKey);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
66
73
|
const avgWidth = computed(() => {
|
|
67
74
|
const { total, totalWidth } = props.columns.reduce(
|
|
68
75
|
({ total: total2, totalWidth: totalWidth2 }, column) => {
|
|
@@ -98,11 +105,19 @@ const _sfc_main = {
|
|
|
98
105
|
return expandColumn.value?.expandType === "expand";
|
|
99
106
|
});
|
|
100
107
|
const dataSource = computed(() => {
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
if (isExpandTable.value) {
|
|
109
|
+
return props.data.map((item) => {
|
|
110
|
+
item.children = [
|
|
111
|
+
{
|
|
112
|
+
id: /* @__PURE__ */ Symbol("expandKey"),
|
|
113
|
+
rowType: "expand",
|
|
114
|
+
dataKey: getRowKey(item)
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
return item;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return props.data;
|
|
106
121
|
});
|
|
107
122
|
const dataSourceMap = computed(() => {
|
|
108
123
|
return generateDataSourceMap(dataSource.value);
|
|
@@ -128,28 +143,17 @@ const _sfc_main = {
|
|
|
128
143
|
return $index + 1;
|
|
129
144
|
}
|
|
130
145
|
function onRowClickHandler(options) {
|
|
131
|
-
options = isArray(options)
|
|
146
|
+
options = isArray(options) ? options[0] : options;
|
|
132
147
|
if (!options) return;
|
|
133
148
|
const { rowData: row, event } = options;
|
|
134
|
-
|
|
135
|
-
const classList = [
|
|
136
|
-
...target?.classList || [],
|
|
137
|
-
...target?.parentNode?.classList || [],
|
|
138
|
-
...target?.parentNode?.parentNode?.classList || []
|
|
139
|
-
];
|
|
140
|
-
if (classList.some((item) => item === "hy-el-table-v2__expand-icon")) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (row.rowType === "expand") return;
|
|
144
|
-
if (!props.onRowClick) return;
|
|
149
|
+
if (row.rowType === "expand" || !props.onRowClick) return;
|
|
145
150
|
props.onRowClick(row, void 0, event);
|
|
146
151
|
}
|
|
147
152
|
function onContextmenuHandler(options) {
|
|
148
|
-
options = isArray(options)
|
|
153
|
+
options = isArray(options) ? options[0] : options;
|
|
149
154
|
if (!options) return;
|
|
150
155
|
const { rowData: row, event } = options;
|
|
151
|
-
if (row.rowType === "expand") return;
|
|
152
|
-
if (!props.onRowContextmenu) return;
|
|
156
|
+
if (row.rowType === "expand" || !props.onRowContextmenu) return;
|
|
153
157
|
props.onRowContextmenu(row, void 0, event);
|
|
154
158
|
}
|
|
155
159
|
const isAllChecked = ref(false);
|
|
@@ -275,6 +279,8 @@ const _sfc_main = {
|
|
|
275
279
|
width: __props.width,
|
|
276
280
|
height: __props.height,
|
|
277
281
|
"header-height": __props.showHeader ? 44 : 0,
|
|
282
|
+
"row-height": 50,
|
|
283
|
+
"estimated-row-height": 50,
|
|
278
284
|
"expand-column-key": expandColumn.value?.key,
|
|
279
285
|
fixed: "",
|
|
280
286
|
"row-event-handlers": {
|
|
@@ -316,240 +322,318 @@ const _sfc_main = {
|
|
|
316
322
|
/* DYNAMIC */
|
|
317
323
|
}, 1032, ["column", "filter-model", "onSearch"])
|
|
318
324
|
]),
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
/* STABLE_FRAGMENT */
|
|
326
|
-
)) : column.type === "selection" ? (openBlock(), createBlock(unref(ElCheckbox), {
|
|
327
|
-
key: 1,
|
|
328
|
-
"model-value": selectedMap.value.has(getRowKey(row)),
|
|
329
|
-
indeterminate: indeterminateKeys.value.has(getRowKey(row)),
|
|
330
|
-
disabled: !isSelectable(row),
|
|
331
|
-
onClick: withModifiers(($event) => switchCheckHandler(row), ["stop"])
|
|
332
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot ? renderSlot(_ctx.$slots, column?.slot, normalizeProps(mergeProps({ key: 2 }, { column, row, $index, cellIndex }))) : column.type === "index" ? (openBlock(), createElementBlock(
|
|
325
|
+
row: withCtx(({ columns, depth, rowData: row, rowIndex: $index }) => [
|
|
326
|
+
createCommentVNode(" \u5C55\u5F00\u5185\u5BB9 "),
|
|
327
|
+
depth > 0 && isExpandTable.value ? renderSlot(_ctx.$slots, expandColumn.value.slot, {
|
|
328
|
+
key: 0,
|
|
329
|
+
row: dataSourceMap.value.get(row.dataKey)
|
|
330
|
+
}) : (openBlock(), createElementBlock(
|
|
333
331
|
Fragment,
|
|
334
|
-
{ key:
|
|
332
|
+
{ key: 1 },
|
|
335
333
|
[
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
onClick: withModifiers(() => {
|
|
348
|
-
}, ["stop"]),
|
|
349
|
-
onContextmenu: withModifiers(() => {
|
|
350
|
-
}, ["stop"])
|
|
351
|
-
}, [
|
|
352
|
-
(openBlock(true), createElementBlock(
|
|
353
|
-
Fragment,
|
|
354
|
-
null,
|
|
355
|
-
renderList(unref(operatorFilterHandler)(
|
|
356
|
-
column,
|
|
357
|
-
{ column, row, $index, cellIndex },
|
|
358
|
-
"default"
|
|
359
|
-
), (citem, cindex) => {
|
|
360
|
-
return openBlock(), createBlock(unref(HyTooltip), {
|
|
361
|
-
key: cindex,
|
|
362
|
-
"is-always": "",
|
|
363
|
-
overLine: 1,
|
|
364
|
-
content: citem.label
|
|
365
|
-
}, {
|
|
366
|
-
default: withCtx(() => [
|
|
367
|
-
createElementVNode("div", {
|
|
368
|
-
class: 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]),
|
|
369
|
-
onClick: ($event) => unref(operatorClickHandler)(
|
|
370
|
-
cindex,
|
|
371
|
-
column,
|
|
372
|
-
{ column, row, $index, cellIndex },
|
|
373
|
-
"default"
|
|
374
|
-
)
|
|
375
|
-
}, [
|
|
376
|
-
createVNode(unref(HyIcon), {
|
|
377
|
-
"svg-name": citem.svgName,
|
|
378
|
-
"class-name": "!w-4 !h-4"
|
|
379
|
-
}, null, 8, ["svg-name"]),
|
|
380
|
-
citem.subLabel ? (openBlock(), createElementBlock(
|
|
381
|
-
"div",
|
|
382
|
-
{
|
|
383
|
-
key: 0,
|
|
384
|
-
class: "mt-1 whitespace-nowrap"
|
|
385
|
-
},
|
|
386
|
-
toDisplayString(citem.subLabel),
|
|
387
|
-
1
|
|
388
|
-
/* TEXT */
|
|
389
|
-
)) : (openBlock(), createElementBlock("div", {
|
|
390
|
-
key: 1,
|
|
391
|
-
class: "mt-1 whitespace-nowrap"
|
|
392
|
-
}, "\xA0"))
|
|
393
|
-
], 10, ["onClick"])
|
|
394
|
-
]),
|
|
395
|
-
_: 2
|
|
396
|
-
/* DYNAMIC */
|
|
397
|
-
}, 1032, ["content"]);
|
|
398
|
-
}),
|
|
399
|
-
128
|
|
400
|
-
/* KEYED_FRAGMENT */
|
|
401
|
-
)),
|
|
402
|
-
unref(operatorFilterHandler)(
|
|
403
|
-
column,
|
|
404
|
-
{ column, row, $index, cellIndex },
|
|
405
|
-
"more"
|
|
406
|
-
)?.length ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
407
|
-
key: 0,
|
|
408
|
-
ref: "operatorDropdownRef",
|
|
409
|
-
trigger: "click",
|
|
410
|
-
"popper-style": "min-width: 150px",
|
|
411
|
-
placement: "bottom",
|
|
412
|
-
onCommand: ($event) => unref(operatorClickHandler)(
|
|
413
|
-
$event,
|
|
414
|
-
column,
|
|
415
|
-
{ column, row, $index, cellIndex },
|
|
416
|
-
"more"
|
|
417
|
-
)
|
|
418
|
-
}, {
|
|
419
|
-
dropdown: withCtx(() => [
|
|
420
|
-
createVNode(
|
|
421
|
-
unref(ElDropdownMenu),
|
|
334
|
+
createCommentVNode(" \u5355\u5143\u683C\u5185\u5BB9 "),
|
|
335
|
+
createElementVNode("div", {
|
|
336
|
+
class: normalizeClass(["hy-el-table-v2__row is-customized", [
|
|
337
|
+
`hy-el-table-v2__row-depth-${depth}`,
|
|
338
|
+
{ "is-expanded": expandedMap.value.has(getRowKey(row)) }
|
|
339
|
+
]]),
|
|
340
|
+
role: "row",
|
|
341
|
+
rowkey: getRowKey(row)
|
|
342
|
+
}, [
|
|
343
|
+
(openBlock(true), createElementBlock(
|
|
344
|
+
Fragment,
|
|
422
345
|
null,
|
|
423
|
-
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
346
|
+
renderList(columns, (column, cellIndex) => {
|
|
347
|
+
return openBlock(), createElementBlock(
|
|
348
|
+
"div",
|
|
349
|
+
{
|
|
350
|
+
key: cellIndex,
|
|
351
|
+
class: "hy-el-table-v2__row-cell",
|
|
352
|
+
role: "cell",
|
|
353
|
+
style: normalizeStyle([{ "flex": "0 0 auto" }, { width: `${column.width}px` }])
|
|
354
|
+
},
|
|
355
|
+
[
|
|
356
|
+
column.type === "expand" ? (openBlock(), createElementBlock(
|
|
357
|
+
Fragment,
|
|
358
|
+
{ key: 0 },
|
|
359
|
+
[
|
|
360
|
+
row.children && row.children.length ? (openBlock(), createElementBlock("button", {
|
|
361
|
+
key: 0,
|
|
362
|
+
type: "button",
|
|
363
|
+
"aria-label": "\u5C55\u5F00\u5F53\u524D\u884C",
|
|
364
|
+
"aria-expanded": "false",
|
|
365
|
+
class: normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded": expandedMap.value.has(getRowKey(row)) }]),
|
|
366
|
+
onClick: withModifiers(($event) => onRowExpandSwitch({
|
|
367
|
+
rowData: _ctx.rowData,
|
|
368
|
+
rowKey: getRowKey(row)
|
|
369
|
+
}), ["stop"])
|
|
370
|
+
}, [
|
|
371
|
+
createVNode(unref(ElIcon), {
|
|
372
|
+
style: normalizeStyle({ "margin-inline-start": `${depth * 12}px` })
|
|
373
|
+
}, {
|
|
374
|
+
default: withCtx(() => [
|
|
375
|
+
createVNode(unref(ArrowRight))
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
/* STABLE */
|
|
379
|
+
}, 8, ["style"])
|
|
380
|
+
], 10, ["onClick"])) : (openBlock(), createElementBlock(
|
|
381
|
+
"div",
|
|
382
|
+
{
|
|
383
|
+
key: 1,
|
|
384
|
+
class: "w-3 h-3",
|
|
385
|
+
style: normalizeStyle({ "margin-inline-start": `${(depth + 1) * 12}px` })
|
|
386
|
+
},
|
|
387
|
+
null,
|
|
388
|
+
4
|
|
389
|
+
/* STYLE */
|
|
390
|
+
))
|
|
391
|
+
],
|
|
392
|
+
64
|
|
393
|
+
/* STABLE_FRAGMENT */
|
|
394
|
+
)) : createCommentVNode("v-if", true),
|
|
395
|
+
column.type === "selection" ? (openBlock(), createBlock(unref(ElCheckbox), {
|
|
396
|
+
key: 1,
|
|
397
|
+
"model-value": selectedMap.value.has(getRowKey(row)),
|
|
398
|
+
indeterminate: indeterminateKeys.value.has(getRowKey(row)),
|
|
399
|
+
disabled: !isSelectable(row),
|
|
400
|
+
onClick: withModifiers(($event) => switchCheckHandler(row), ["stop"])
|
|
401
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot && (column.type !== "expand" || !isExpandTable.value) ? renderSlot(_ctx.$slots, column?.slot, mergeProps({
|
|
402
|
+
key: 2,
|
|
403
|
+
ref_for: true
|
|
404
|
+
}, { column, row, $index, cellIndex })) : column.type === "index" ? (openBlock(), createElementBlock(
|
|
405
|
+
Fragment,
|
|
406
|
+
{ key: 3 },
|
|
407
|
+
[
|
|
408
|
+
createTextVNode(
|
|
409
|
+
toDisplayString(columnIndexHandler({ column, row, $index, cellIndex })),
|
|
410
|
+
1
|
|
411
|
+
/* TEXT */
|
|
412
|
+
)
|
|
413
|
+
],
|
|
414
|
+
64
|
|
415
|
+
/* STABLE_FRAGMENT */
|
|
416
|
+
)) : column.type === "operator" ? (openBlock(), createElementBlock("div", {
|
|
417
|
+
key: 4,
|
|
418
|
+
class: "w-full flex items-center justify-between text-main",
|
|
419
|
+
onClick: withModifiers(() => {
|
|
420
|
+
}, ["stop"]),
|
|
421
|
+
onContextmenu: withModifiers(() => {
|
|
422
|
+
}, ["stop"])
|
|
423
|
+
}, [
|
|
424
|
+
(openBlock(true), createElementBlock(
|
|
425
|
+
Fragment,
|
|
426
|
+
null,
|
|
427
|
+
renderList(unref(operatorFilterHandler)(
|
|
437
428
|
column,
|
|
438
|
-
row,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
429
|
+
{ column, row, $index, cellIndex },
|
|
430
|
+
"default"
|
|
431
|
+
), (citem, cindex) => {
|
|
432
|
+
return openBlock(), createBlock(unref(HyTooltip), {
|
|
433
|
+
key: cindex,
|
|
434
|
+
"is-always": "",
|
|
435
|
+
overLine: 1,
|
|
436
|
+
content: citem.label
|
|
437
|
+
}, {
|
|
438
|
+
default: withCtx(() => [
|
|
439
|
+
createElementVNode("div", {
|
|
440
|
+
class: 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]),
|
|
441
|
+
onClick: ($event) => unref(operatorClickHandler)(
|
|
442
|
+
cindex,
|
|
443
|
+
column,
|
|
444
|
+
{ column, row, $index, cellIndex },
|
|
445
|
+
"default"
|
|
446
|
+
)
|
|
447
|
+
}, [
|
|
448
|
+
createVNode(unref(HyIcon), {
|
|
449
|
+
"svg-name": citem.svgName,
|
|
450
|
+
"class-name": "!w-4 !h-4"
|
|
451
|
+
}, null, 8, ["svg-name"]),
|
|
452
|
+
citem.subLabel ? (openBlock(), createElementBlock(
|
|
453
|
+
"div",
|
|
454
|
+
{
|
|
455
|
+
key: 0,
|
|
456
|
+
class: "mt-1 whitespace-nowrap"
|
|
457
|
+
},
|
|
458
|
+
toDisplayString(citem.subLabel),
|
|
459
|
+
1
|
|
460
|
+
/* TEXT */
|
|
461
|
+
)) : (openBlock(), createElementBlock("div", {
|
|
462
|
+
key: 1,
|
|
463
|
+
class: "mt-1 whitespace-nowrap"
|
|
464
|
+
}, "\xA0"))
|
|
465
|
+
], 10, ["onClick"])
|
|
466
|
+
]),
|
|
467
|
+
_: 2
|
|
468
|
+
/* DYNAMIC */
|
|
469
|
+
}, 1032, ["content"]);
|
|
470
|
+
}),
|
|
471
|
+
128
|
|
472
|
+
/* KEYED_FRAGMENT */
|
|
473
|
+
)),
|
|
474
|
+
unref(operatorFilterHandler)(
|
|
475
|
+
column,
|
|
476
|
+
{ column, row, $index, cellIndex },
|
|
477
|
+
"more"
|
|
478
|
+
)?.length ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
479
|
+
key: 0,
|
|
480
|
+
ref_for: true,
|
|
481
|
+
ref: "operatorDropdownRef",
|
|
482
|
+
trigger: "click",
|
|
483
|
+
"popper-style": "min-width: 150px",
|
|
484
|
+
placement: "bottom",
|
|
485
|
+
onCommand: ($event) => unref(operatorClickHandler)(
|
|
486
|
+
$event,
|
|
487
|
+
column,
|
|
488
|
+
{ column, row, $index, cellIndex },
|
|
489
|
+
"more"
|
|
490
|
+
)
|
|
442
491
|
}, {
|
|
492
|
+
dropdown: withCtx(() => [
|
|
493
|
+
createVNode(
|
|
494
|
+
unref(ElDropdownMenu),
|
|
495
|
+
null,
|
|
496
|
+
{
|
|
497
|
+
default: withCtx(() => [
|
|
498
|
+
(openBlock(true), createElementBlock(
|
|
499
|
+
Fragment,
|
|
500
|
+
null,
|
|
501
|
+
renderList(unref(operatorFilterHandler)(
|
|
502
|
+
column,
|
|
503
|
+
{ column, row, $index, cellIndex },
|
|
504
|
+
"more"
|
|
505
|
+
), (citem, cindex) => {
|
|
506
|
+
return openBlock(), createBlock(unref(ElDropdownItem), {
|
|
507
|
+
key: cindex,
|
|
508
|
+
command: cindex,
|
|
509
|
+
disabled: unref(operatorDisabledHandler)(citem, {
|
|
510
|
+
column,
|
|
511
|
+
row,
|
|
512
|
+
$index,
|
|
513
|
+
cellIndex
|
|
514
|
+
})
|
|
515
|
+
}, {
|
|
516
|
+
default: withCtx(() => [
|
|
517
|
+
createElementVNode("span", null, [
|
|
518
|
+
createElementVNode(
|
|
519
|
+
"span",
|
|
520
|
+
null,
|
|
521
|
+
toDisplayString(citem.label),
|
|
522
|
+
1
|
|
523
|
+
/* TEXT */
|
|
524
|
+
),
|
|
525
|
+
unref(operatorDisabledHandler)(citem, {
|
|
526
|
+
column,
|
|
527
|
+
row,
|
|
528
|
+
$index,
|
|
529
|
+
cellIndex
|
|
530
|
+
}) ? (openBlock(), createElementBlock(
|
|
531
|
+
"span",
|
|
532
|
+
{
|
|
533
|
+
key: 0,
|
|
534
|
+
class: "text-xs leading-1"
|
|
535
|
+
},
|
|
536
|
+
"\uFF08" + toDisplayString(unref(operatorDisableTextdHandler)(citem, {
|
|
537
|
+
column,
|
|
538
|
+
row,
|
|
539
|
+
$index,
|
|
540
|
+
cellIndex
|
|
541
|
+
})) + "\uFF09",
|
|
542
|
+
1
|
|
543
|
+
/* TEXT */
|
|
544
|
+
)) : createCommentVNode("v-if", true)
|
|
545
|
+
])
|
|
546
|
+
]),
|
|
547
|
+
_: 2
|
|
548
|
+
/* DYNAMIC */
|
|
549
|
+
}, 1032, ["command", "disabled"]);
|
|
550
|
+
}),
|
|
551
|
+
128
|
|
552
|
+
/* KEYED_FRAGMENT */
|
|
553
|
+
))
|
|
554
|
+
]),
|
|
555
|
+
_: 2
|
|
556
|
+
/* DYNAMIC */
|
|
557
|
+
},
|
|
558
|
+
1024
|
|
559
|
+
/* DYNAMIC_SLOTS */
|
|
560
|
+
)
|
|
561
|
+
]),
|
|
443
562
|
default: withCtx(() => [
|
|
444
563
|
createElementVNode("span", null, [
|
|
445
|
-
|
|
446
|
-
"
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
564
|
+
createVNode(unref(HyTooltip), {
|
|
565
|
+
"is-always": "",
|
|
566
|
+
overLine: 1,
|
|
567
|
+
content: unref(t)("table.moreOperations")
|
|
568
|
+
}, {
|
|
569
|
+
default: withCtx(() => [
|
|
570
|
+
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" }, [
|
|
571
|
+
createElementVNode("div", { class: "w-4 h-4" }, [
|
|
572
|
+
createVNode(unref(ElIcon), {
|
|
573
|
+
size: "16",
|
|
574
|
+
color: "rgba(var(--hy-main))"
|
|
575
|
+
}, {
|
|
576
|
+
default: withCtx(() => [
|
|
577
|
+
createVNode(unref(MoreFilled))
|
|
578
|
+
]),
|
|
579
|
+
_: 1
|
|
580
|
+
/* STABLE */
|
|
581
|
+
})
|
|
582
|
+
]),
|
|
583
|
+
createElementVNode(
|
|
584
|
+
"div",
|
|
585
|
+
{ class: "mt-1" },
|
|
586
|
+
toDisplayString(unref(t)("table.more")),
|
|
587
|
+
1
|
|
588
|
+
/* TEXT */
|
|
589
|
+
)
|
|
590
|
+
])
|
|
591
|
+
]),
|
|
592
|
+
_: 1
|
|
593
|
+
/* STABLE */
|
|
594
|
+
}, 8, ["content"])
|
|
472
595
|
])
|
|
473
596
|
]),
|
|
474
597
|
_: 2
|
|
475
598
|
/* DYNAMIC */
|
|
476
|
-
}, 1032, ["
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
createElementVNode(
|
|
511
|
-
"div",
|
|
512
|
-
{ class: "mt-1" },
|
|
513
|
-
toDisplayString(unref(t)("table.more")),
|
|
514
|
-
1
|
|
515
|
-
/* TEXT */
|
|
516
|
-
)
|
|
517
|
-
])
|
|
518
|
-
]),
|
|
519
|
-
_: 1
|
|
520
|
-
/* STABLE */
|
|
521
|
-
}, 8, ["content"])
|
|
522
|
-
])
|
|
523
|
-
]),
|
|
524
|
-
_: 2
|
|
525
|
-
/* DYNAMIC */
|
|
526
|
-
}, 1032, ["onCommand"])) : createCommentVNode("v-if", true)
|
|
527
|
-
], 40, ["onClick", "onContextmenu"])) : ["default", "expand"].includes(column.type) ? (openBlock(), createElementBlock(
|
|
528
|
-
Fragment,
|
|
529
|
-
{ key: 5 },
|
|
530
|
-
[
|
|
531
|
-
!unref(isEmpty)(
|
|
532
|
-
unref(renderContentHandler)(column, { column, row, $index, cellIndex })
|
|
533
|
-
) ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
534
|
-
key: 0,
|
|
535
|
-
"is-always": false,
|
|
536
|
-
"over-line": 2,
|
|
537
|
-
content: unref(renderContentHandler)(column, { column, row, $index, cellIndex })
|
|
538
|
-
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
|
|
539
|
-
key: 1,
|
|
540
|
-
class: "text-auxiliary"
|
|
541
|
-
}, "- -"))
|
|
599
|
+
}, 1032, ["onCommand"])) : createCommentVNode("v-if", true)
|
|
600
|
+
], 40, ["onClick", "onContextmenu"])) : column.type === "default" ? (openBlock(), createElementBlock(
|
|
601
|
+
Fragment,
|
|
602
|
+
{ key: 5 },
|
|
603
|
+
[
|
|
604
|
+
!unref(isEmpty)(
|
|
605
|
+
unref(renderContentHandler)(column, {
|
|
606
|
+
column,
|
|
607
|
+
row,
|
|
608
|
+
$index,
|
|
609
|
+
cellIndex
|
|
610
|
+
})
|
|
611
|
+
) ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
612
|
+
key: 0,
|
|
613
|
+
"is-always": false,
|
|
614
|
+
"over-line": 2,
|
|
615
|
+
content: unref(renderContentHandler)(column, { column, row, $index, cellIndex })
|
|
616
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
|
|
617
|
+
key: 1,
|
|
618
|
+
class: "text-auxiliary"
|
|
619
|
+
}, "- -"))
|
|
620
|
+
],
|
|
621
|
+
64
|
|
622
|
+
/* STABLE_FRAGMENT */
|
|
623
|
+
)) : createCommentVNode("v-if", true)
|
|
624
|
+
],
|
|
625
|
+
4
|
|
626
|
+
/* STYLE */
|
|
627
|
+
);
|
|
628
|
+
}),
|
|
629
|
+
128
|
|
630
|
+
/* KEYED_FRAGMENT */
|
|
631
|
+
))
|
|
632
|
+
], 10, ["rowkey"])
|
|
542
633
|
],
|
|
543
|
-
|
|
544
|
-
/* STABLE_FRAGMENT */
|
|
545
|
-
))
|
|
546
|
-
]),
|
|
547
|
-
row: withCtx(({ cells, depth, expanded, rowData: row }) => [
|
|
548
|
-
depth > 0 && isExpandTable.value ? renderSlot(_ctx.$slots, expandColumn.value.slot, {
|
|
549
|
-
key: 0,
|
|
550
|
-
row,
|
|
551
|
-
expanded: expandedMap.value.has(getRowKey(row))
|
|
552
|
-
}) : (openBlock(), createBlock(resolveDynamicComponent(() => cells), { key: 1 }))
|
|
634
|
+
2112
|
|
635
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
636
|
+
))
|
|
553
637
|
]),
|
|
554
638
|
empty: withCtx(() => [
|
|
555
639
|
renderSlot(_ctx.$slots, "empty")
|