hy-dispatch-ui-v3 0.2.32 → 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 +186 -454
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -5
- package/es/components/hyAudioPlayer/js/index.mjs +1 -1
- package/es/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
- package/es/components/hyButton/button.vue.mjs +50 -35
- package/es/components/hyButton/style/button.scss +16 -3
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +2 -2
- 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/form.vue.mjs +2 -1
- package/es/components/hyForm/js/useAppForm.mjs +1 -1
- package/es/components/hyForm/style/form.scss +56 -54
- package/es/components/hyIcon/style/icon.scss +1 -1
- package/es/components/hyIconBox/style/iconBox.scss +19 -18
- package/es/components/hyInput/input.vue.mjs +4 -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 +51 -50
- 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 +18 -11
- package/es/components/hyTable/js/index.mjs +12 -0
- 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 +43 -23
- package/es/components/hyTableForm/batchTableForm.vue.mjs +478 -0
- package/es/components/hyTableForm/index.mjs +4 -1
- package/es/components/hyTableForm/js/index.mjs +123 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +47 -0
- package/es/components/hyTableForm/style/batchTableForm.scss +127 -0
- package/es/components/hyTableForm/style/tableForm.scss +42 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +452 -7
- package/es/components/hyTooltip/tooltip.vue.mjs +6 -6
- 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/cpns/mediaLoading.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/js/index.mjs +1 -1
- package/es/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
- package/es/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +6 -6
- package/es/components/index.mjs +2 -1
- package/es/index.mjs +2 -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/style/tailwind.scss +133 -1
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +4 -4
- package/lib/components/hyAudioPlayer/js/index.js +1 -1
- package/lib/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
- package/lib/components/hyButton/button.vue.js +50 -35
- package/lib/components/hyButton/style/button.scss +16 -3
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +2 -2
- 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/form.vue.js +2 -1
- package/lib/components/hyForm/js/useAppForm.js +1 -1
- package/lib/components/hyForm/style/form.scss +56 -54
- package/lib/components/hyIcon/style/icon.scss +1 -1
- package/lib/components/hyIconBox/style/iconBox.scss +19 -18
- package/lib/components/hyInput/input.vue.js +4 -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 +51 -50
- 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 +18 -11
- package/lib/components/hyTable/js/index.js +12 -0
- 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 +42 -22
- package/lib/components/hyTableForm/batchTableForm.vue.js +482 -0
- package/lib/components/hyTableForm/index.js +5 -0
- package/lib/components/hyTableForm/js/index.js +127 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +49 -0
- package/lib/components/hyTableForm/style/batchTableForm.scss +127 -0
- package/lib/components/hyTableForm/style/tableForm.scss +42 -0
- package/lib/components/hyTableForm/tableForm.vue.js +451 -6
- package/lib/components/hyTooltip/tooltip.vue.js +6 -6
- 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/cpns/mediaLoading.vue.js +1 -1
- package/lib/components/hyVideoPlayer/js/index.js +1 -1
- package/lib/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
- package/lib/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +6 -6
- package/lib/components/index.js +33 -30
- package/lib/index.js +33 -30
- 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/style/tailwind.scss +133 -1
- package/lib/version.js +1 -1
- package/package.json +5 -3
|
@@ -4,23 +4,24 @@
|
|
|
4
4
|
& + & {
|
|
5
5
|
margin-left: 12px;
|
|
6
6
|
}
|
|
7
|
-
}
|
|
8
7
|
|
|
9
|
-
.hy-icon-box-content {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
.hy-icon-box-content {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
padding: 5px;
|
|
13
|
+
user-select: none;
|
|
14
|
+
color: rgb(var(--hy-main));
|
|
15
|
+
border-radius: 100%;
|
|
16
|
+
background:
|
|
17
|
+
radial-gradient(
|
|
18
|
+
142% 47% at 50% 119%,
|
|
19
|
+
rgb(var(--hy-theme), 0.5) 0%,
|
|
20
|
+
rgb(var(--hy-theme), 0) 100%
|
|
21
|
+
),
|
|
22
|
+
rgb(var(--hy-background-3));
|
|
23
|
+
border: 1px solid rgb(var(--hy-auxiliary), 0.5);
|
|
24
|
+
box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
|
+
|
|
@@ -20,7 +20,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
20
20
|
// between-清除两端空格 all-清除所有空格 before-清除前面的空格 after-清除后面的空格 none-不清除空格
|
|
21
21
|
}
|
|
22
22
|
}, {
|
|
23
|
-
"modelValue": {
|
|
23
|
+
"modelValue": {
|
|
24
|
+
type: [String, Number],
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
24
27
|
"modelModifiers": {}
|
|
25
28
|
}),
|
|
26
29
|
emits: /* @__PURE__ */ vue.mergeModels([], ["update:modelValue"]),
|
|
@@ -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 useLocale = require('../../hooks/useLocale.js');
|
|
8
7
|
var useApi = require('../../hooks/useApi.js');
|
|
8
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
9
9
|
|
|
10
10
|
import "./style/orgCascader.scss";
|
|
11
11
|
|
|
@@ -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) {
|
|
@@ -11,59 +11,60 @@
|
|
|
11
11
|
padding-bottom: 0;
|
|
12
12
|
opacity: 0;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
margin-bottom: 0px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
.hy-search-form {
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
transition: all 0.3s;
|
|
31
|
-
}
|
|
32
|
-
.hy-search-container {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-wrap: wrap;
|
|
35
|
-
gap: 16px;
|
|
36
|
-
position: relative;
|
|
37
|
-
.hy-el-form-item {
|
|
38
|
-
margin-bottom: 0;
|
|
39
|
-
&.hidden {
|
|
40
|
-
display: none;
|
|
14
|
+
.hy-search-header {
|
|
15
|
+
height: 16px;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
color: rgb(var(--hy-main));
|
|
20
|
+
margin-bottom: 16px;
|
|
21
|
+
transition: all 0.3s linear;
|
|
22
|
+
&.hy-search-header-hidden {
|
|
23
|
+
height: 0;
|
|
24
|
+
margin-bottom: 0px;
|
|
41
25
|
}
|
|
42
26
|
}
|
|
43
|
-
.hy-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
--el-input-border: none;
|
|
47
|
-
--el-border-color: transparent;
|
|
48
|
-
--el-input-border-color: transparent;
|
|
49
|
-
--el-input-text-color: rgb(var(--hy-main));
|
|
50
|
-
--el-input-border-radius: 0px 4px 4px 0px;
|
|
51
|
-
--el-input-hover-border-color: rgb(var(--hy-theme));
|
|
52
|
-
.hy-el-input__wrapper,
|
|
53
|
-
&.hy-el-input__wrapper {
|
|
54
|
-
box-shadow: none !important;
|
|
55
|
-
}
|
|
27
|
+
.hy-search-form {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
transition: all 0.3s;
|
|
56
30
|
}
|
|
57
|
-
.hy-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
31
|
+
.hy-search-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
position: relative;
|
|
36
|
+
padding: 1px;
|
|
37
|
+
.hy-el-form-item {
|
|
38
|
+
margin-bottom: 0;
|
|
39
|
+
&.hidden {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.hy-el-input,
|
|
44
|
+
.hy-el-date-editor {
|
|
45
|
+
--el-input-bg-color: transparent;
|
|
46
|
+
--el-input-border: none;
|
|
47
|
+
--el-border-color: transparent;
|
|
48
|
+
--el-input-border-color: transparent;
|
|
49
|
+
--el-input-text-color: rgb(var(--hy-main));
|
|
50
|
+
--el-input-border-radius: 0px 4px 4px 0px;
|
|
51
|
+
--el-input-hover-border-color: rgb(var(--hy-theme));
|
|
52
|
+
.hy-el-input__wrapper,
|
|
53
|
+
&.hy-el-input__wrapper {
|
|
54
|
+
box-shadow: none !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.hy-el-select {
|
|
58
|
+
--el-border-color: transparent;
|
|
59
|
+
--el-fill-color-blank: transparent;
|
|
60
|
+
--el-border-radius-base: 0px 4px 4px 0px;
|
|
61
|
+
--el-border-color-hover: rgb(var(--hy-theme));
|
|
62
|
+
.hy-el-select__wrapper {
|
|
63
|
+
box-shadow: none !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.hy-search-custom-wrapper {
|
|
67
|
+
min-height: var(--hy-el-component-size);
|
|
64
68
|
}
|
|
65
|
-
}
|
|
66
|
-
.hy-search-custom-wrapper {
|
|
67
|
-
min-height: var(--hy-el-component-size);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -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
|
};
|
|
@@ -57,6 +57,12 @@ const _sfc_main = {
|
|
|
57
57
|
},
|
|
58
58
|
onRowContextmenu: {
|
|
59
59
|
type: Function
|
|
60
|
+
},
|
|
61
|
+
expandMode: {
|
|
62
|
+
// 展开模式,不支持树形展开
|
|
63
|
+
type: String,
|
|
64
|
+
default: "default"
|
|
65
|
+
// deafult-默认 accordion-手风琴
|
|
60
66
|
}
|
|
61
67
|
},
|
|
62
68
|
emits: ["search", "select", "select-all", "expand-change"],
|
|
@@ -262,7 +268,11 @@ const _sfc_main = {
|
|
|
262
268
|
const isExpanded = is.isBoolean(expanded) ? expanded : !is.isNumber(index);
|
|
263
269
|
if (isExpanded) {
|
|
264
270
|
if (!is.isNumber(index)) {
|
|
265
|
-
|
|
271
|
+
if (props.expandMode === "accordion" && isExpandTable.value) {
|
|
272
|
+
expandedKeys.value = [getRowKey(row)];
|
|
273
|
+
} else {
|
|
274
|
+
expandedKeys.value.push(getRowKey(row));
|
|
275
|
+
}
|
|
266
276
|
}
|
|
267
277
|
} else {
|
|
268
278
|
if (is.isNumber(index)) {
|
|
@@ -349,9 +359,8 @@ const _sfc_main = {
|
|
|
349
359
|
row: vue.withCtx(({ columns, depth, rowData: row, rowIndex: $index }) => [
|
|
350
360
|
vue.createCommentVNode(" \u5C55\u5F00\u5185\u5BB9 "),
|
|
351
361
|
depth > 0 && isExpandTable.value ? vue.renderSlot(_ctx.$slots, expandColumn.value.slot, {
|
|
352
|
-
key: 0,
|
|
353
362
|
row: dataSourceMap.value.get(row.dataKey)
|
|
354
|
-
}) : (vue.openBlock(), vue.createElementBlock(
|
|
363
|
+
}, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
|
|
355
364
|
vue.Fragment,
|
|
356
365
|
{ key: 1 },
|
|
357
366
|
[
|
|
@@ -386,6 +395,7 @@ const _sfc_main = {
|
|
|
386
395
|
}), ["stop"])
|
|
387
396
|
}, [
|
|
388
397
|
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
398
|
+
class: "text-main",
|
|
389
399
|
style: vue.normalizeStyle({ "margin-inline-start": `${depth * 12}px` })
|
|
390
400
|
}, {
|
|
391
401
|
default: vue.withCtx(() => [
|
|
@@ -415,10 +425,7 @@ const _sfc_main = {
|
|
|
415
425
|
indeterminate: indeterminateKeys.value.has(getRowKey(row)),
|
|
416
426
|
disabled: !isSelectable(row),
|
|
417
427
|
onClick: vue.withModifiers(($event) => switchCheckHandler(row), ["stop"])
|
|
418
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot && (column.type !== "expand" || !isExpandTable.value) ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({
|
|
419
|
-
key: 2,
|
|
420
|
-
ref_for: true
|
|
421
|
-
}, { 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(
|
|
422
429
|
vue.Fragment,
|
|
423
430
|
{ key: 3 },
|
|
424
431
|
[
|
|
@@ -432,7 +439,7 @@ const _sfc_main = {
|
|
|
432
439
|
/* STABLE_FRAGMENT */
|
|
433
440
|
)) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
434
441
|
key: 4,
|
|
435
|
-
class: "w-full flex items-center justify-
|
|
442
|
+
class: "w-full flex items-center justify-end gap-2 text-main",
|
|
436
443
|
onClick: vue.withModifiers(() => {
|
|
437
444
|
}, ["stop"]),
|
|
438
445
|
onContextmenu: vue.withModifiers(() => {
|
|
@@ -450,7 +457,7 @@ const _sfc_main = {
|
|
|
450
457
|
key: cindex,
|
|
451
458
|
"is-always": "",
|
|
452
459
|
overLine: 1,
|
|
453
|
-
content: citem.
|
|
460
|
+
content: citem.desc
|
|
454
461
|
}, {
|
|
455
462
|
default: vue.withCtx(() => [
|
|
456
463
|
vue.createElementVNode("div", {
|
|
@@ -466,13 +473,13 @@ const _sfc_main = {
|
|
|
466
473
|
"svg-name": citem.svgName,
|
|
467
474
|
"class-name": "!w-4 !h-4"
|
|
468
475
|
}, null, 8, ["svg-name"]),
|
|
469
|
-
citem.
|
|
476
|
+
citem.label ? (vue.openBlock(), vue.createElementBlock(
|
|
470
477
|
"div",
|
|
471
478
|
{
|
|
472
479
|
key: 0,
|
|
473
480
|
class: "mt-1 whitespace-nowrap"
|
|
474
481
|
},
|
|
475
|
-
vue.toDisplayString(citem.
|
|
482
|
+
vue.toDisplayString(citem.label),
|
|
476
483
|
1
|
|
477
484
|
/* TEXT */
|
|
478
485
|
)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -316,6 +316,17 @@ const useAppTableWrapper = (hy) => {
|
|
|
316
316
|
tableRef.value.toggleRowExpansion(row);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
+
function onTableRowExpandChangeHandler(row, expandedRows) {
|
|
320
|
+
if (is.isBoolean(expandedRows) || props.expandMode !== "accordion" || expandedRows.length <= 1) {
|
|
321
|
+
props.onExpandChange && props.onExpandChange(row, expandedRows);
|
|
322
|
+
return;
|
|
323
|
+
} else {
|
|
324
|
+
expandedRows.forEach((item) => {
|
|
325
|
+
if (getRowKey(row) === getRowKey(item)) return;
|
|
326
|
+
toggleRowExpansion(item);
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
319
330
|
const isSearchFocus = vue.ref(false);
|
|
320
331
|
function onSearchInputHandler() {
|
|
321
332
|
isSearchFocus.value = true;
|
|
@@ -355,6 +366,7 @@ const useAppTableWrapper = (hy) => {
|
|
|
355
366
|
toggleRowExpansion,
|
|
356
367
|
onTableSelectHandler,
|
|
357
368
|
onTableRowContextmenuHandler,
|
|
369
|
+
onTableRowExpandChangeHandler,
|
|
358
370
|
onTableRowClickHandler,
|
|
359
371
|
onTableColumnsSelectHandler,
|
|
360
372
|
// 搜索选中
|
|
@@ -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
|
+
}
|