hy-dispatch-ui-v3 0.2.33 → 0.2.34
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 +20 -8
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
- package/es/components/hyAudioPlayer/js/index.mjs +1 -1
- package/es/components/hyButton/button.vue.mjs +49 -34
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
- package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
- package/es/components/hyConfirmDialog/index.mjs +1 -1
- package/es/components/hyCutter/cutter.vue.mjs +1 -1
- package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
- package/es/components/hyDialog/dialog.vue.mjs +178 -137
- package/es/components/hyDialog/style/dialog.scss +13 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
- package/es/components/hyForm/js/useAppForm.mjs +1 -1
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
- package/es/components/hySearch/js/index.mjs +4 -4
- package/es/components/hySearch/style/search.scss +1 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +39 -42
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
- package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +6 -10
- package/es/components/hyTable/js/index.mjs +1 -1
- package/es/components/hyTable/js/useAppTable.mjs +1 -1
- package/es/components/hyTable/style/table.scss +13 -0
- package/es/components/hyTable/table.vue.mjs +22 -18
- package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
- package/es/components/hyTableForm/tableForm.vue.mjs +3 -3
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -4
- package/es/components/hyTree/style/index.css +1 -0
- package/es/components/hyTree/tree.vue.mjs +2 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/js/index.mjs +1 -1
- package/es/locale/en.mjs +1 -1
- package/es/locale/zh_CN.mjs +1 -1
- package/es/style/element/hy-element.scss +3 -2
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/js/index.js +1 -1
- package/lib/components/hyButton/button.vue.js +49 -34
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
- package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
- package/lib/components/hyConfirmDialog/index.js +1 -1
- package/lib/components/hyCutter/cutter.vue.js +1 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
- package/lib/components/hyDialog/dialog.vue.js +177 -136
- package/lib/components/hyDialog/style/dialog.scss +13 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
- package/lib/components/hyForm/js/useAppForm.js +1 -1
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
- package/lib/components/hySearch/js/index.js +4 -4
- package/lib/components/hySearch/style/search.scss +1 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +43 -46
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
- package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -10
- package/lib/components/hyTable/js/index.js +1 -1
- package/lib/components/hyTable/js/useAppTable.js +1 -1
- package/lib/components/hyTable/style/table.scss +13 -0
- package/lib/components/hyTable/table.vue.js +21 -17
- package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
- package/lib/components/hyTableForm/tableForm.vue.js +3 -3
- package/lib/components/hyTooltip/tooltip.vue.js +4 -4
- package/lib/components/hyTree/style/index.css +1 -0
- package/lib/components/hyTree/tree.vue.js +2 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
- package/lib/components/hyVideoPlayer/js/index.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/style/element/hy-element.scss +3 -2
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -79,7 +79,7 @@ const _sfc_main = {
|
|
|
79
79
|
prop: columnProp.value
|
|
80
80
|
}, {
|
|
81
81
|
default: vue.withCtx(() => [
|
|
82
|
-
vue.createElementVNode("div", { class: "flex bg-background-2 rounded
|
|
82
|
+
vue.createElementVNode("div", { class: "flex bg-background-2 rounded outline outline-1 outline-transparent outline-offset-0 hover:outline-theme box-border" }, [
|
|
83
83
|
vue.createElementVNode(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
@@ -96,10 +96,7 @@ const _sfc_main = {
|
|
|
96
96
|
}])
|
|
97
97
|
},
|
|
98
98
|
[
|
|
99
|
-
__props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
|
|
100
|
-
key: 0,
|
|
101
|
-
column: __props.column
|
|
102
|
-
}) : (vue.openBlock(), vue.createElementBlock(
|
|
99
|
+
__props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? vue.renderSlot(_ctx.$slots, __props.column.labelSlot, { column: __props.column }, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
|
|
103
100
|
"span",
|
|
104
101
|
{ key: 1 },
|
|
105
102
|
vue.toDisplayString(__props.column.label),
|
|
@@ -119,10 +116,7 @@ const _sfc_main = {
|
|
|
119
116
|
},
|
|
120
117
|
[
|
|
121
118
|
vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
|
|
122
|
-
__props.column.slot ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
|
|
123
|
-
key: 0,
|
|
124
|
-
column: __props.column
|
|
125
|
-
}) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
|
|
119
|
+
__props.column.slot ? vue.renderSlot(_ctx.$slots, __props.column.slot, { column: __props.column }, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
|
|
126
120
|
vue.Fragment,
|
|
127
121
|
{ key: 1 },
|
|
128
122
|
[
|
|
@@ -57,13 +57,13 @@ function useShrink(props, formItemWrapper) {
|
|
|
57
57
|
function getContainerPickUpHeight() {
|
|
58
58
|
switch (props.size) {
|
|
59
59
|
case "large":
|
|
60
|
-
return
|
|
60
|
+
return 44;
|
|
61
61
|
case "small":
|
|
62
|
-
return
|
|
62
|
+
return 28;
|
|
63
63
|
case "":
|
|
64
64
|
case "default":
|
|
65
65
|
default:
|
|
66
|
-
return
|
|
66
|
+
return 36;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
function switchShrink() {
|
|
@@ -76,7 +76,7 @@ function useShrink(props, formItemWrapper) {
|
|
|
76
76
|
if (container.children.length) {
|
|
77
77
|
for (let i = 0; i < container.children.length; i++) {
|
|
78
78
|
const element = container.children[i];
|
|
79
|
-
if (i > 0 && element.offsetLeft
|
|
79
|
+
if (i > 0 && element.offsetLeft <= 1) {
|
|
80
80
|
showShrink.value = true;
|
|
81
81
|
break;
|
|
82
82
|
} else if (i === container.children.length - 1) {
|
|
@@ -6,10 +6,11 @@ var vue = require('vue');
|
|
|
6
6
|
var Sortable = require('sortablejs');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
8
|
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
-
var index$
|
|
9
|
+
var index$2 = require('../js/index.js');
|
|
10
10
|
var columnSelectItem = require('./columnSelectItem.vue.js');
|
|
11
11
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
12
|
-
var index = require('../../
|
|
12
|
+
var index = require('../../hyTooltip/index.js');
|
|
13
|
+
var index$1 = require('../../hyButton/index.js');
|
|
13
14
|
var is = require('../../../utils/is.js');
|
|
14
15
|
|
|
15
16
|
const _sfc_main = {
|
|
@@ -118,7 +119,7 @@ const _sfc_main = {
|
|
|
118
119
|
closePopover();
|
|
119
120
|
}
|
|
120
121
|
function onClearHandler() {
|
|
121
|
-
const { columnsList, columnsEditablele } = index$
|
|
122
|
+
const { columnsList, columnsEditablele } = index$2.tableColumnHandler(
|
|
122
123
|
props.originColumns
|
|
123
124
|
);
|
|
124
125
|
initColumnsInfo(columnsList, columnsEditablele);
|
|
@@ -232,7 +233,7 @@ const _sfc_main = {
|
|
|
232
233
|
/* STABLE */
|
|
233
234
|
})
|
|
234
235
|
]),
|
|
235
|
-
vue.createElementVNode("div", { class: "h-[364px] px-4 pt-[11px] pb-1 overflow-y-auto" }, [
|
|
236
|
+
vue.createElementVNode("div", { class: "h-[364px] px-4 pt-[11px] pb-1 scroll-body overflow-y-auto" }, [
|
|
236
237
|
vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup), {
|
|
237
238
|
modelValue: checkedList.value,
|
|
238
239
|
"onUpdate:modelValue": ($event) => checkedList.value = $event
|
|
@@ -303,49 +304,45 @@ const _sfc_main = {
|
|
|
303
304
|
/* STABLE */
|
|
304
305
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
305
306
|
]),
|
|
306
|
-
vue.createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3" }, [
|
|
307
|
-
vue.createElementVNode(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
307
|
+
vue.createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3 overflow-hidden" }, [
|
|
308
|
+
vue.createElementVNode("div", { class: "flex items-center" }, [
|
|
309
|
+
vue.createElementVNode(
|
|
310
|
+
"span",
|
|
311
|
+
null,
|
|
312
|
+
vue.toDisplayString(vue.unref(t)("table.selectedNumberItems", [checkedList.value?.length || 0])),
|
|
313
|
+
1
|
|
314
|
+
/* TEXT */
|
|
315
|
+
),
|
|
316
|
+
showClear.value ? (vue.openBlock(), vue.createElementBlock(
|
|
317
|
+
"span",
|
|
318
|
+
{
|
|
319
|
+
key: 0,
|
|
320
|
+
class: "clickBox text-danger-2 ml-3",
|
|
321
|
+
onClick: onClearHandler
|
|
322
|
+
},
|
|
323
|
+
vue.toDisplayString(vue.unref(t)("table.clear")),
|
|
324
|
+
1
|
|
325
|
+
/* TEXT */
|
|
326
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
327
|
+
]),
|
|
328
|
+
vue.createElementVNode("div", { class: "w-0 flex-1 flex items-center justify-end ml-3" }, [
|
|
329
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
330
|
+
class: "mr-1.5",
|
|
331
|
+
color: "rgb(var(--hy-auxiliary))"
|
|
332
|
+
}, {
|
|
333
|
+
default: vue.withCtx(() => [
|
|
334
|
+
vue.createVNode(vue.unref(iconsVue.Warning))
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
/* STABLE */
|
|
338
|
+
}),
|
|
339
|
+
checkedList.value?.length >= 8 ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyTooltip), {
|
|
327
340
|
key: 0,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}, {
|
|
334
|
-
default: vue.withCtx(() => [
|
|
335
|
-
vue.createVNode(vue.unref(iconsVue.Warning))
|
|
336
|
-
]),
|
|
337
|
-
_: 1
|
|
338
|
-
/* STABLE */
|
|
339
|
-
}),
|
|
340
|
-
vue.createElementVNode(
|
|
341
|
-
"span",
|
|
342
|
-
null,
|
|
343
|
-
vue.toDisplayString(vue.unref(t)("table.tooManyFieldsWillAffectReadability")),
|
|
344
|
-
1
|
|
345
|
-
/* TEXT */
|
|
346
|
-
)
|
|
347
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
348
|
-
vue.createVNode(vue.unref(index.HyButton), {
|
|
341
|
+
"is-always": false,
|
|
342
|
+
content: vue.unref(t)("table.tooManyFieldsWillAffectReadability"),
|
|
343
|
+
class: "mr-2 text-auxiliary"
|
|
344
|
+
}, null, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
345
|
+
vue.createVNode(vue.unref(index$1.HyButton), {
|
|
349
346
|
type: "primary",
|
|
350
347
|
size: "small",
|
|
351
348
|
onClick: onConfirmHandler
|
|
@@ -94,16 +94,13 @@ const _sfc_main = {
|
|
|
94
94
|
)),
|
|
95
95
|
__props.columnsLength > 1 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
96
96
|
key: 2,
|
|
97
|
-
class: "
|
|
97
|
+
class: "h-full flex items-center justify-center handle cursor-grab ml-3",
|
|
98
98
|
onClick: vue.withModifiers(() => {
|
|
99
99
|
}, ["stop"])
|
|
100
100
|
}, [
|
|
101
|
-
vue.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
/* STABLE */
|
|
101
|
+
vue.createElementVNode("div", {
|
|
102
|
+
class: "w-5 h-2.5",
|
|
103
|
+
style: { "background": "radial-gradient(\n circle,\n rgba(var(--hy-theme)) 1px,\n transparent 2px\n )\n 0px 0px / 5px 5px" }
|
|
107
104
|
})
|
|
108
105
|
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
109
106
|
])) : vue.createCommentVNode("v-if", true)
|
|
@@ -94,7 +94,7 @@ const _sfc_main = {
|
|
|
94
94
|
}, 8, ["color", "onClick"])
|
|
95
95
|
]),
|
|
96
96
|
vue.renderSlot(_ctx.$slots, "default")
|
|
97
|
-
], 8, ["onClick"])) : vue.renderSlot(_ctx.$slots, "default", {
|
|
97
|
+
], 8, ["onClick"])) : vue.renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1);
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
};
|
|
@@ -359,9 +359,8 @@ const _sfc_main = {
|
|
|
359
359
|
row: vue.withCtx(({ columns, depth, rowData: row, rowIndex: $index }) => [
|
|
360
360
|
vue.createCommentVNode(" \u5C55\u5F00\u5185\u5BB9 "),
|
|
361
361
|
depth > 0 && isExpandTable.value ? vue.renderSlot(_ctx.$slots, expandColumn.value.slot, {
|
|
362
|
-
key: 0,
|
|
363
362
|
row: dataSourceMap.value.get(row.dataKey)
|
|
364
|
-
}) : (vue.openBlock(), vue.createElementBlock(
|
|
363
|
+
}, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
|
|
365
364
|
vue.Fragment,
|
|
366
365
|
{ key: 1 },
|
|
367
366
|
[
|
|
@@ -426,10 +425,7 @@ const _sfc_main = {
|
|
|
426
425
|
indeterminate: indeterminateKeys.value.has(getRowKey(row)),
|
|
427
426
|
disabled: !isSelectable(row),
|
|
428
427
|
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(
|
|
428
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot && (column.type !== "expand" || !isExpandTable.value) ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({ ref_for: true }, { column, row, $index, cellIndex }), void 0, void 0, 2) : column.type === "index" ? (vue.openBlock(), vue.createElementBlock(
|
|
433
429
|
vue.Fragment,
|
|
434
430
|
{ key: 3 },
|
|
435
431
|
[
|
|
@@ -443,7 +439,7 @@ const _sfc_main = {
|
|
|
443
439
|
/* STABLE_FRAGMENT */
|
|
444
440
|
)) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
445
441
|
key: 4,
|
|
446
|
-
class: "w-full flex items-center justify-
|
|
442
|
+
class: "w-full flex items-center justify-end gap-2 text-main",
|
|
447
443
|
onClick: vue.withModifiers(() => {
|
|
448
444
|
}, ["stop"]),
|
|
449
445
|
onContextmenu: vue.withModifiers(() => {
|
|
@@ -461,7 +457,7 @@ const _sfc_main = {
|
|
|
461
457
|
key: cindex,
|
|
462
458
|
"is-always": "",
|
|
463
459
|
overLine: 1,
|
|
464
|
-
content: citem.
|
|
460
|
+
content: citem.desc
|
|
465
461
|
}, {
|
|
466
462
|
default: vue.withCtx(() => [
|
|
467
463
|
vue.createElementVNode("div", {
|
|
@@ -477,13 +473,13 @@ const _sfc_main = {
|
|
|
477
473
|
"svg-name": citem.svgName,
|
|
478
474
|
"class-name": "!w-4 !h-4"
|
|
479
475
|
}, null, 8, ["svg-name"]),
|
|
480
|
-
citem.
|
|
476
|
+
citem.label ? (vue.openBlock(), vue.createElementBlock(
|
|
481
477
|
"div",
|
|
482
478
|
{
|
|
483
479
|
key: 0,
|
|
484
480
|
class: "mt-1 whitespace-nowrap"
|
|
485
481
|
},
|
|
486
|
-
vue.toDisplayString(citem.
|
|
482
|
+
vue.toDisplayString(citem.label),
|
|
487
483
|
1
|
|
488
484
|
/* TEXT */
|
|
489
485
|
)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -318,7 +318,7 @@ const useAppTableWrapper = (hy) => {
|
|
|
318
318
|
}
|
|
319
319
|
function onTableRowExpandChangeHandler(row, expandedRows) {
|
|
320
320
|
if (is.isBoolean(expandedRows) || props.expandMode !== "accordion" || expandedRows.length <= 1) {
|
|
321
|
-
props.onExpandChange(row, expandedRows);
|
|
321
|
+
props.onExpandChange && props.onExpandChange(row, expandedRows);
|
|
322
322
|
return;
|
|
323
323
|
} else {
|
|
324
324
|
expandedRows.forEach((item) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var useAppSearch = require('../../hySearch/js/useAppSearch.js');
|
|
5
4
|
var is = require('../../../utils/is.js');
|
|
5
|
+
var useAppSearch = require('../../hySearch/js/useAppSearch.js');
|
|
6
6
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
7
7
|
|
|
8
8
|
function getColumnDefaultConfig(column) {
|
|
@@ -38,3 +38,16 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
.hy-table-dropdown-menu.hy-el-dropdown-menu {
|
|
43
|
+
--hy-el-text-color-regular: rgba(var(--hy-main));
|
|
44
|
+
border: 1px solid rgba(var(--hy-main));
|
|
45
|
+
padding: 0px;
|
|
46
|
+
.hy-el-dropdown-menu__item {
|
|
47
|
+
padding: 9px 16px 10px;
|
|
48
|
+
border-bottom: 1px solid rgba(var(--hy-border));
|
|
49
|
+
&:last-child {
|
|
50
|
+
border-bottom: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -10,13 +10,13 @@ var search = require('./js/search.js');
|
|
|
10
10
|
var headerItem = require('./cpns/headerItem.vue.js');
|
|
11
11
|
var columnSelect = require('./cpns/columnSelect.vue.js');
|
|
12
12
|
var virtualTable = require('./cpns/virtualTable.vue.js');
|
|
13
|
-
var useMixins = require('../../hooks/useMixins.js');
|
|
14
|
-
var index$3 = require('../hySearch/index.js');
|
|
15
|
-
var adaptive = require('../../utils/adaptive.js');
|
|
16
13
|
var useLocale = require('../../hooks/useLocale.js');
|
|
14
|
+
var useMixins = require('../../hooks/useMixins.js');
|
|
17
15
|
var index = require('../hyTooltip/index.js');
|
|
18
16
|
var index$1 = require('../hyButton/index.js');
|
|
19
17
|
var index$2 = require('../hyIcon/index.js');
|
|
18
|
+
var index$3 = require('../hySearch/index.js');
|
|
19
|
+
var adaptive = require('../../utils/adaptive.js');
|
|
20
20
|
var is = require('../../utils/is.js');
|
|
21
21
|
|
|
22
22
|
import "./style/table.scss";
|
|
@@ -484,12 +484,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
484
484
|
}, 1032, ["column", "filter-model", "onSearch"])
|
|
485
485
|
]),
|
|
486
486
|
default: vue.withCtx((scope) => [
|
|
487
|
-
column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({
|
|
488
|
-
key: 0,
|
|
489
|
-
ref_for: true
|
|
490
|
-
}, scope)) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
487
|
+
column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({ ref_for: true }, scope), void 0, void 0, 0) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
491
488
|
key: 1,
|
|
492
|
-
class: "flex items-center justify-end text-main"
|
|
489
|
+
class: "flex items-center justify-end gap-2 text-main"
|
|
493
490
|
}, [
|
|
494
491
|
(vue.openBlock(true), vue.createElementBlock(
|
|
495
492
|
vue.Fragment,
|
|
@@ -503,31 +500,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
503
500
|
key: cindex,
|
|
504
501
|
"is-always": "",
|
|
505
502
|
overLine: 1,
|
|
506
|
-
content: citem.
|
|
503
|
+
content: citem.desc
|
|
507
504
|
}, {
|
|
508
505
|
default: vue.withCtx(() => [
|
|
509
506
|
vue.createElementVNode("div", {
|
|
510
|
-
class: vue.normalizeClass(["
|
|
511
|
-
onClick: ($event) => vue.unref(index$4.operatorClickHandler)(cindex, column, scope, "default")
|
|
507
|
+
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]),
|
|
508
|
+
onClick: vue.withModifiers(($event) => vue.unref(index$4.operatorClickHandler)(cindex, column, scope, "default"), ["stop"]),
|
|
509
|
+
onContextmenu: vue.withModifiers(() => {
|
|
510
|
+
}, ["stop"])
|
|
512
511
|
}, [
|
|
513
512
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
514
513
|
"svg-name": citem.svgName,
|
|
515
514
|
"class-name": "!w-4 !h-4"
|
|
516
515
|
}, null, 8, ["svg-name"]),
|
|
517
|
-
citem.
|
|
516
|
+
citem.label ? (vue.openBlock(), vue.createElementBlock(
|
|
518
517
|
"div",
|
|
519
518
|
{
|
|
520
519
|
key: 0,
|
|
521
520
|
class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
|
|
522
521
|
},
|
|
523
|
-
vue.toDisplayString(citem.
|
|
522
|
+
vue.toDisplayString(citem.label),
|
|
524
523
|
1
|
|
525
524
|
/* TEXT */
|
|
526
525
|
)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
527
526
|
key: 1,
|
|
528
527
|
class: "mt-1 whitespace-nowrap"
|
|
529
528
|
}, "\xA0"))
|
|
530
|
-
],
|
|
529
|
+
], 42, ["onClick", "onContextmenu"])
|
|
531
530
|
]),
|
|
532
531
|
_: 2
|
|
533
532
|
/* DYNAMIC */
|
|
@@ -602,7 +601,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
602
601
|
)
|
|
603
602
|
]),
|
|
604
603
|
default: vue.withCtx(() => [
|
|
605
|
-
vue.createElementVNode("
|
|
604
|
+
vue.createElementVNode("div", {
|
|
605
|
+
onClick: vue.withModifiers(() => {
|
|
606
|
+
}, ["stop"]),
|
|
607
|
+
onContextmenu: vue.withModifiers(() => {
|
|
608
|
+
}, ["stop"])
|
|
609
|
+
}, [
|
|
606
610
|
vue.createVNode(vue.unref(index.HyTooltip), {
|
|
607
611
|
"is-always": "",
|
|
608
612
|
overLine: 1,
|
|
@@ -632,7 +636,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
632
636
|
_: 1
|
|
633
637
|
/* STABLE */
|
|
634
638
|
}, 8, ["content"])
|
|
635
|
-
])
|
|
639
|
+
], 40, ["onClick", "onContextmenu"])
|
|
636
640
|
]),
|
|
637
641
|
_: 2
|
|
638
642
|
/* DYNAMIC */
|
|
@@ -779,7 +783,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
779
783
|
)
|
|
780
784
|
}, {
|
|
781
785
|
dropdown: vue.withCtx(() => [
|
|
782
|
-
vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),
|
|
786
|
+
vue.createVNode(vue.unref(elementPlus.ElDropdownMenu), { class: "hy-table-dropdown-menu" }, {
|
|
783
787
|
default: vue.withCtx(() => [
|
|
784
788
|
(vue.openBlock(true), vue.createElementBlock(
|
|
785
789
|
vue.Fragment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useAppForm = require('../../hyForm/js/useAppForm.js');
|
|
4
3
|
var useAppTable = require('../../hyTable/js/useAppTable.js');
|
|
4
|
+
var useAppForm = require('../../hyForm/js/useAppForm.js');
|
|
5
5
|
var is = require('../../../utils/is.js');
|
|
6
6
|
|
|
7
7
|
const useAppTableForm = (config = {}) => {
|
|
@@ -7,12 +7,12 @@ var elementPlus = require('element-plus');
|
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
8
|
var index$3 = require('./js/index.js');
|
|
9
9
|
var useAppTable = require('../hyTable/js/useAppTable.js');
|
|
10
|
+
var is = require('../../utils/is.js');
|
|
10
11
|
var handler = require('../../utils/handler.js');
|
|
12
|
+
var index = require('../hyButton/index.js');
|
|
11
13
|
var index$1 = require('../hyTable/index.js');
|
|
12
14
|
var index$2 = require('../hyForm/index.js');
|
|
13
15
|
var useAppForm = require('../hyForm/js/useAppForm.js');
|
|
14
|
-
var is = require('../../utils/is.js');
|
|
15
|
-
var index = require('../hyButton/index.js');
|
|
16
16
|
|
|
17
17
|
import "./style/tableForm.scss";
|
|
18
18
|
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
83
83
|
operator: [
|
|
84
84
|
{
|
|
85
85
|
label: "\u5220\u9664",
|
|
86
|
-
|
|
86
|
+
desc: "\u5220\u9664",
|
|
87
87
|
svgName: "ops-linear-delete",
|
|
88
88
|
className: "text-danger-2",
|
|
89
89
|
handler: onDeleteRowHandler
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
-
var useTooltipConfig = require('../../hooks/useTooltipConfig.js');
|
|
8
7
|
var is = require('../../utils/is.js');
|
|
8
|
+
var useTooltipConfig = require('../../hooks/useTooltipConfig.js');
|
|
9
9
|
|
|
10
10
|
import "./style/tooltip.scss";
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
19
19
|
default: () => {
|
|
20
20
|
const { tooltipConfig } = useTooltipConfig.useTooltipConfig();
|
|
21
21
|
const { isAlways } = tooltipConfig.value;
|
|
22
|
-
return is.isBoolean(isAlways) ? isAlways :
|
|
22
|
+
return is.isBoolean(isAlways) ? isAlways : true;
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
disabled: {
|
|
@@ -73,13 +73,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
73
73
|
content: _ctx.$slots.content ? void 0 : vue.unref(is.isNumber)(__props.content) ? `${__props.content}` : __props.content
|
|
74
74
|
}), vue.createSlots({
|
|
75
75
|
default: vue.withCtx(() => [
|
|
76
|
-
__props.isAlways ? vue.renderSlot(_ctx.$slots, "default", {
|
|
76
|
+
__props.isAlways ? vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
77
77
|
vue.createTextVNode(
|
|
78
78
|
vue.toDisplayString(__props.content),
|
|
79
79
|
1
|
|
80
80
|
/* TEXT */
|
|
81
81
|
)
|
|
82
|
-
]) : (vue.openBlock(), vue.createElementBlock(
|
|
82
|
+
], void 0, 0) : (vue.openBlock(), vue.createElementBlock(
|
|
83
83
|
"span",
|
|
84
84
|
{
|
|
85
85
|
key: 1,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('hy-virtual-tree/style');
|
|
@@ -10,6 +10,8 @@ var treeConfig = require('./config/tree-config.js');
|
|
|
10
10
|
var useMixins = require('../../hooks/useMixins.js');
|
|
11
11
|
var index$1 = require('../hyIcon/index.js');
|
|
12
12
|
|
|
13
|
+
import "./style/index.css";
|
|
14
|
+
|
|
13
15
|
const __default__ = vue.defineComponent({
|
|
14
16
|
name: "HyTree"
|
|
15
17
|
});
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
|
|
7
|
-
var adaptive = require('../../utils/adaptive.js');
|
|
8
6
|
var useLocale = require('../../hooks/useLocale.js');
|
|
7
|
+
var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
|
|
9
8
|
var index = require('../hyIcon/index.js');
|
|
9
|
+
var adaptive = require('../../utils/adaptive.js');
|
|
10
10
|
|
|
11
11
|
import "./style/userAvatar.scss";
|
|
12
12
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
5
6
|
var useVideoPlayerConfig = require('../../../hooks/useVideoPlayerConfig.js');
|
|
6
7
|
var date = require('../../../utils/date.js');
|
|
7
8
|
var index = require('../../hyConfirmDialog/index.js');
|
|
8
9
|
var handler = require('../../../utils/handler.js');
|
|
9
10
|
var is = require('../../../utils/is.js');
|
|
10
|
-
var useLocale = require('../../../hooks/useLocale.js');
|
|
11
11
|
|
|
12
12
|
const useVideoPlayer = (hy) => {
|
|
13
13
|
const { props, emits, videoRef, videoWrapperRef } = hy;
|
package/lib/locale/en.js
CHANGED
|
@@ -37,7 +37,7 @@ var en = {
|
|
|
37
37
|
hideFilter: "Hide filter",
|
|
38
38
|
displayFilter: "Display filter",
|
|
39
39
|
tooManyFieldsWillAffectReadability: "Too Many Fields Will Affect Readability",
|
|
40
|
-
|
|
40
|
+
selectedNumberItems: "Selected {0} Items",
|
|
41
41
|
clear: "Clear",
|
|
42
42
|
show: "Show",
|
|
43
43
|
notShown: "Not Shown",
|
package/lib/locale/zh_CN.js
CHANGED
|
@@ -37,7 +37,7 @@ var zh_CN = {
|
|
|
37
37
|
hideFilter: "\u9690\u85CF\u7B5B\u9009\u5668",
|
|
38
38
|
displayFilter: "\u663E\u793A\u7B5B\u9009\u5668",
|
|
39
39
|
tooManyFieldsWillAffectReadability: "\u5B57\u6BB5\u8FC7\u591A\u5C06\u5F71\u54CD\u53EF\u8BFB\u6027",
|
|
40
|
-
|
|
40
|
+
selectedNumberItems: "\u5DF2\u9009\u62E9{0}\u4E2A",
|
|
41
41
|
clear: "\u6E05\u9664",
|
|
42
42
|
show: "\u663E\u793A",
|
|
43
43
|
notShown: "\u672A\u663E\u793A",
|
|
@@ -698,7 +698,8 @@
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
.hy-el-tabs__nav-wrap::after {
|
|
701
|
-
background-color:
|
|
701
|
+
background-color: transparent;
|
|
702
|
+
// background-color: rgba(var(--hy-background), 1);
|
|
702
703
|
}
|
|
703
704
|
|
|
704
705
|
.hy-el-tabs__active-bar {
|
|
@@ -707,7 +708,7 @@
|
|
|
707
708
|
|
|
708
709
|
.hy-el-tabs .hy-el-tabs__item {
|
|
709
710
|
border-radius: 6px 6px 0 0;
|
|
710
|
-
border: 1px solid rgba(var(--hy-background-2), 1);
|
|
711
|
+
// border: 1px solid rgba(var(--hy-background-2), 1);
|
|
711
712
|
padding: 0 20px !important;
|
|
712
713
|
|
|
713
714
|
&:hover {
|
package/lib/version.js
CHANGED