@wfrog/vc-ui 1.9.5 → 1.9.7
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/es/components/dialog/dialog.d.ts +2 -1
- package/dist/es/components/dialog/dialog.mjs +16 -13
- package/dist/es/components/dialog/dialog.vue.d.ts +2 -1
- package/dist/es/components/dialog/index.css +24 -27
- package/dist/es/components/explorer-container/explorer-container.mjs +12 -7
- package/dist/es/components/explorer-container/index.css +7 -4
- package/dist/es/components/explorer-form/explorer-form.mjs +14 -9
- package/dist/es/components/explorer-form/index.css +12 -8
- package/dist/es/components/explorer-list/explorer-list.mjs +19 -13
- package/dist/es/components/explorer-list/index.css +15 -12
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +7 -17
- package/dist/es/components/explorer-modal-form/explorer-modal-form.vue.d.ts +0 -2
- package/dist/es/components/explorer-modal-form/index.css +4 -3
- package/dist/es/components/explorer-query/explorer-query.mjs +2201 -8
- package/dist/es/components/explorer-query/index.css +1 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +18 -12
- package/dist/es/components/explorer-tree/index.css +18 -15
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +4 -21
- package/dist/es/components/icon-picker/icon-picker.mjs +11 -11
- package/dist/es/components/icon-picker/index.css +16 -16
- package/dist/es/components/scrollbar/index.css +5 -5
- package/dist/es/components/scrollbar/scrollbar.d.ts +2 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +5 -23
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +1 -1
- package/dist/es/components/splitter-panel/splitter-panel.d.ts +0 -1
- package/dist/es/components/splitter-panel/splitter-panel.mjs +20 -32
- package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +1 -4
- package/dist/es/components/transfer-panel/index.css +1 -1
- package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -2
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +103 -93
- package/package.json +1 -1
- package/dist/es/chunk/78BvQgmt.mjs +0 -2199
|
@@ -417,7 +417,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
417
417
|
fullscreenHeight: {},
|
|
418
418
|
fullscreen: { type: Boolean, default: false },
|
|
419
419
|
boxPadding: { type: Boolean, default: true },
|
|
420
|
-
padding: { default:
|
|
420
|
+
padding: { default: "0px" },
|
|
421
|
+
viewMargin: { default: "12px" },
|
|
421
422
|
width: { default: "960px" }
|
|
422
423
|
},
|
|
423
424
|
emits: ["update:modelValue", "closed"],
|
|
@@ -466,7 +467,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
466
467
|
"show-close": false,
|
|
467
468
|
fullscreen: unref(isFullscreen),
|
|
468
469
|
"close-on-click-modal": false,
|
|
469
|
-
class:
|
|
470
|
+
class: unref($style).main,
|
|
471
|
+
style: {
|
|
472
|
+
"--vc-dialog-boxPadding": __props.boxPadding ? "block" : "none",
|
|
473
|
+
"--vc-dialog-padding": __props.padding
|
|
474
|
+
},
|
|
470
475
|
onClosed: handleClosed
|
|
471
476
|
}), createSlots({
|
|
472
477
|
header: withCtx(({ close, titleId, titleClass }) => [
|
|
@@ -507,15 +512,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
507
512
|
"max-height": unref(myMaxHeight),
|
|
508
513
|
height: __props.height,
|
|
509
514
|
always: "",
|
|
510
|
-
"view-
|
|
511
|
-
padding: __props.padding,
|
|
515
|
+
"view-margin": __props.viewMargin,
|
|
512
516
|
"fill-height": false
|
|
513
517
|
}, {
|
|
514
518
|
default: withCtx(() => [
|
|
515
519
|
renderSlot(_ctx.$slots, "default")
|
|
516
520
|
]),
|
|
517
521
|
_: 3
|
|
518
|
-
}, 8, ["max-height", "height", "view-
|
|
522
|
+
}, 8, ["max-height", "height", "view-margin"])
|
|
519
523
|
]),
|
|
520
524
|
_: 2
|
|
521
525
|
}, [
|
|
@@ -536,23 +540,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
536
540
|
]),
|
|
537
541
|
key: "0"
|
|
538
542
|
} : void 0
|
|
539
|
-
]), 1040, ["modelValue", "width", "fullscreen", "class"])) : createCommentVNode("", true);
|
|
543
|
+
]), 1040, ["modelValue", "width", "fullscreen", "class", "style"])) : createCommentVNode("", true);
|
|
540
544
|
};
|
|
541
545
|
}
|
|
542
546
|
});
|
|
543
547
|
|
|
544
|
-
/* unplugin-vue-components disabled */const main = "
|
|
545
|
-
const header = "
|
|
546
|
-
const title = "
|
|
547
|
-
const buttons = "
|
|
548
|
+
/* unplugin-vue-components disabled */const main = "_main_k37nc_1";
|
|
549
|
+
const header = "_header_k37nc_48";
|
|
550
|
+
const title = "_title_k37nc_77";
|
|
551
|
+
const buttons = "_buttons_k37nc_82";
|
|
548
552
|
const style0 = {
|
|
549
553
|
main: main,
|
|
550
554
|
header: header,
|
|
551
|
-
"box-padding": "_box-
|
|
555
|
+
"box-padding": "_box-padding_k37nc_57",
|
|
552
556
|
title: title,
|
|
553
|
-
"scrollbar-view": "_scrollbar-view_15a30_82",
|
|
554
557
|
buttons: buttons,
|
|
555
|
-
"icon-button": "_icon-
|
|
558
|
+
"icon-button": "_icon-button_k37nc_86"
|
|
556
559
|
};
|
|
557
560
|
|
|
558
561
|
const cssModules = {
|
|
@@ -22,13 +22,14 @@ declare const __VLS_component: import('vue').DefineComponent<IDialogProps, {}, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
title: string;
|
|
24
24
|
width: string | number;
|
|
25
|
+
viewMargin: string;
|
|
25
26
|
maxHeight: string | number;
|
|
26
|
-
padding: number;
|
|
27
27
|
showFullscreen: boolean;
|
|
28
28
|
showDefaultFooter: boolean;
|
|
29
29
|
lazy: boolean;
|
|
30
30
|
fullscreen: boolean;
|
|
31
31
|
boxPadding: boolean;
|
|
32
|
+
padding: string;
|
|
32
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
35
|
export default _default;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* source: src/components/dialog/dialog.vue */
|
|
2
|
-
:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:0.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-modal-dialog.is-penetrable{pointer-events:none}.el-modal-dialog.is-penetrable .el-dialog{pointer-events:auto}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.el-overlay-dialog.is-closing .el-dialog{pointer-events:none}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}div.
|
|
2
|
+
:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:0.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-modal-dialog.is-penetrable{pointer-events:none}.el-modal-dialog.is-penetrable .el-dialog{pointer-events:auto}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.el-overlay-dialog.is-closing .el-dialog{pointer-events:none}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}div._main_k37nc_1 {
|
|
3
3
|
--el-dialog-padding-primary: 0;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
|
-
div.
|
|
7
|
+
div._main_k37nc_1 .el-dialog__header {
|
|
8
8
|
padding: 8px 16px;
|
|
9
9
|
margin-right: 0;
|
|
10
10
|
border-bottom: 1px solid var(--el-border-color-light);
|
|
11
11
|
}
|
|
12
|
-
div.
|
|
12
|
+
div._main_k37nc_1 .el-dialog__body {
|
|
13
13
|
flex-grow: 1;
|
|
14
|
-
padding:
|
|
14
|
+
padding: var(--vc-dialog-padding);
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
}
|
|
18
|
-
div.
|
|
18
|
+
div._main_k37nc_1 .el-dialog__footer {
|
|
19
19
|
padding: 8px 16px;
|
|
20
20
|
border-top: 1px solid var(--el-border-color-light);
|
|
21
21
|
}
|
|
22
|
-
div.
|
|
22
|
+
div._main_k37nc_1 > .el-dialog__body > .el-scrollbar {
|
|
23
23
|
position: relative;
|
|
24
24
|
}
|
|
25
|
-
div.
|
|
25
|
+
div._main_k37nc_1 > .el-dialog__body > .el-scrollbar::before {
|
|
26
26
|
content: "";
|
|
27
27
|
position: absolute;
|
|
28
28
|
top: 0;
|
|
@@ -30,11 +30,11 @@ div._main_15a30_1 > .el-dialog__body > .el-scrollbar::before {
|
|
|
30
30
|
width: calc(100% - 8px);
|
|
31
31
|
height: 100%;
|
|
32
32
|
background: var(--el-bg-color);
|
|
33
|
-
height:
|
|
33
|
+
height: 12px;
|
|
34
34
|
z-index: 3;
|
|
35
|
-
display:
|
|
35
|
+
display: var(--vc-dialog-boxPadding);
|
|
36
36
|
}
|
|
37
|
-
div.
|
|
37
|
+
div._main_k37nc_1 > .el-dialog__body > .el-scrollbar::after {
|
|
38
38
|
content: "";
|
|
39
39
|
position: absolute;
|
|
40
40
|
bottom: 0;
|
|
@@ -42,48 +42,45 @@ div._main_15a30_1 > .el-dialog__body > .el-scrollbar::after {
|
|
|
42
42
|
width: calc(100% - 8px);
|
|
43
43
|
height: 100%;
|
|
44
44
|
background: var(--el-bg-color);
|
|
45
|
-
height:
|
|
45
|
+
height: 12px;
|
|
46
46
|
z-index: 3;
|
|
47
|
-
display:
|
|
47
|
+
display: var(--vc-dialog-boxPadding);
|
|
48
48
|
}
|
|
49
|
-
div.
|
|
49
|
+
div._main_k37nc_1 ._header_k37nc_48 h4 {
|
|
50
50
|
font-size: 1.2em;
|
|
51
51
|
font-weight: 600;
|
|
52
52
|
line-height: 1;
|
|
53
53
|
}
|
|
54
|
-
div.
|
|
54
|
+
div._main_k37nc_1 ._header_k37nc_48 {
|
|
55
55
|
line-height: 1;
|
|
56
56
|
}
|
|
57
|
-
._box-
|
|
57
|
+
._box-padding_k37nc_57 > .el-dialog__body > .el-scrollbar {
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
60
|
-
._box-
|
|
61
|
-
display:
|
|
60
|
+
._box-padding_k37nc_57 > .el-dialog__body > .el-scrollbar::before {
|
|
61
|
+
display: block;
|
|
62
62
|
}
|
|
63
|
-
._box-
|
|
64
|
-
display:
|
|
63
|
+
._box-padding_k37nc_57 > .el-dialog__body > .el-scrollbar::after {
|
|
64
|
+
display: block;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
._header_k37nc_48 {
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-direction: row;
|
|
69
69
|
justify-content: space-between;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
._header_k37nc_48 h4 {
|
|
72
72
|
padding: 0;
|
|
73
73
|
margin: 0 !important;
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
._title_k37nc_77 {
|
|
76
76
|
display: flex;
|
|
77
77
|
align-items: center;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
80
|
-
padding: 16px;
|
|
81
|
-
}
|
|
82
|
-
._buttons_15a30_86 {
|
|
79
|
+
._buttons_k37nc_82 {
|
|
83
80
|
display: flex;
|
|
84
81
|
column-gap: 8px;
|
|
85
82
|
}
|
|
86
|
-
.
|
|
83
|
+
._buttons_k37nc_82 button._icon-button_k37nc_86 {
|
|
87
84
|
padding: 8px;
|
|
88
85
|
font-size: 1.2em;
|
|
89
86
|
border: 0;
|
|
@@ -41,12 +41,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
renderSlot(_ctx.$slots, "action")
|
|
42
42
|
], 2)) : createCommentVNode("", true)
|
|
43
43
|
], 2),
|
|
44
|
-
createVNode(Component$2, {
|
|
44
|
+
createVNode(Component$2, {
|
|
45
|
+
always: "",
|
|
46
|
+
class: normalizeClass(_ctx.$style.scrollbar)
|
|
47
|
+
}, {
|
|
45
48
|
default: withCtx(() => [
|
|
46
49
|
renderSlot(_ctx.$slots, "default")
|
|
47
50
|
]),
|
|
48
51
|
_: 3
|
|
49
|
-
})
|
|
52
|
+
}, 8, ["class"])
|
|
50
53
|
], 2)), [
|
|
51
54
|
[_directive_loading, __props.loading]
|
|
52
55
|
]);
|
|
@@ -54,13 +57,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
59
|
|
|
57
|
-
/* unplugin-vue-components disabled */const header = "
|
|
58
|
-
const icon = "
|
|
60
|
+
/* unplugin-vue-components disabled */const header = "_header_1xzxe_8";
|
|
61
|
+
const icon = "_icon_1xzxe_26";
|
|
62
|
+
const scrollbar = "_scrollbar_1xzxe_32";
|
|
59
63
|
const style0 = {
|
|
60
|
-
"explorer-container": "_explorer-
|
|
64
|
+
"explorer-container": "_explorer-container_1xzxe_1",
|
|
61
65
|
header: header,
|
|
62
|
-
"header-container": "_header-
|
|
63
|
-
icon: icon
|
|
66
|
+
"header-container": "_header-container_1xzxe_22",
|
|
67
|
+
icon: icon,
|
|
68
|
+
scrollbar: scrollbar
|
|
64
69
|
};
|
|
65
70
|
|
|
66
71
|
const cssModules = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* source: src/components/explorer-container/explorer-container.vue */
|
|
2
|
-
._explorer-
|
|
2
|
+
._explorer-container_1xzxe_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
flex-grow: 1;
|
|
6
6
|
height: 100px;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
._header_1xzxe_8 {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: space-between;
|
|
@@ -18,11 +18,14 @@
|
|
|
18
18
|
flex-wrap: wrap;
|
|
19
19
|
row-gap: 8px;
|
|
20
20
|
}
|
|
21
|
-
._header-
|
|
21
|
+
._header-container_1xzxe_22 {
|
|
22
22
|
font-size: var(--el-font-size-medium);
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
._icon_1xzxe_26 {
|
|
25
25
|
margin-right: 4px;
|
|
26
26
|
font-size: 1.1em;
|
|
27
27
|
transform: translateY(1px);
|
|
28
|
+
}
|
|
29
|
+
._scrollbar_1xzxe_32 {
|
|
30
|
+
margin: 0 -8px;
|
|
28
31
|
}
|
|
@@ -109,7 +109,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
})) : createCommentVNode("", true)
|
|
110
110
|
], 2)
|
|
111
111
|
], 2),
|
|
112
|
-
createVNode(Component$3, {
|
|
112
|
+
createVNode(Component$3, {
|
|
113
|
+
always: "",
|
|
114
|
+
class: normalizeClass(_ctx.$style.scrollbar)
|
|
115
|
+
}, {
|
|
113
116
|
default: withCtx(() => [
|
|
114
117
|
createVNode(unref(ElForm), mergeProps({
|
|
115
118
|
ref_key: "formRef",
|
|
@@ -129,7 +132,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
132
|
}, 16, ["model", "rules", "disabled", "label-position", "class"])
|
|
130
133
|
]),
|
|
131
134
|
_: 3
|
|
132
|
-
})
|
|
135
|
+
}, 8, ["class"])
|
|
133
136
|
], 2)), [
|
|
134
137
|
[_directive_loading, __props.loading]
|
|
135
138
|
]);
|
|
@@ -137,17 +140,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
140
|
}
|
|
138
141
|
});
|
|
139
142
|
|
|
140
|
-
/* unplugin-vue-components disabled */const header = "
|
|
141
|
-
const icon = "
|
|
142
|
-
const actions = "
|
|
143
|
-
const form = "
|
|
143
|
+
/* unplugin-vue-components disabled */const header = "_header_sydsj_8";
|
|
144
|
+
const icon = "_icon_sydsj_25";
|
|
145
|
+
const actions = "_actions_sydsj_31";
|
|
146
|
+
const form = "_form_sydsj_40";
|
|
147
|
+
const scrollbar = "_scrollbar_sydsj_50";
|
|
144
148
|
const style0 = {
|
|
145
|
-
"explorer-form": "_explorer-
|
|
149
|
+
"explorer-form": "_explorer-form_sydsj_1",
|
|
146
150
|
header: header,
|
|
147
|
-
"header-container": "_header-
|
|
151
|
+
"header-container": "_header-container_sydsj_21",
|
|
148
152
|
icon: icon,
|
|
149
153
|
actions: actions,
|
|
150
|
-
form: form
|
|
154
|
+
form: form,
|
|
155
|
+
scrollbar: scrollbar
|
|
151
156
|
};
|
|
152
157
|
|
|
153
158
|
const cssModules = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* source: src/components/explorer-form/explorer-form.vue */
|
|
2
|
-
._explorer-
|
|
2
|
+
._explorer-form_sydsj_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
flex-grow: 1;
|
|
6
6
|
height: 100px;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
._header_sydsj_8 {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: space-between;
|
|
@@ -17,27 +17,31 @@
|
|
|
17
17
|
flex-wrap: wrap;
|
|
18
18
|
row-gap: 8px;
|
|
19
19
|
}
|
|
20
|
-
._header-
|
|
20
|
+
._header-container_sydsj_21 {
|
|
21
21
|
font-size: var(--el-font-size-medium);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
._icon_sydsj_25 {
|
|
24
24
|
margin-right: 4px;
|
|
25
25
|
font-size: var(--el-font-size-extra-large);
|
|
26
26
|
transform: translateY(1px);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
._actions_sydsj_31 {
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
31
|
gap: 8px;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
._actions_sydsj_31 .el-button {
|
|
34
34
|
margin-left: 0 !important;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
._form_sydsj_40 {
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-grow: 1;
|
|
39
39
|
align-items: flex-start;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._form_sydsj_40 > .el-row {
|
|
42
42
|
flex-grow: 1;
|
|
43
|
+
margin: 0 !important;
|
|
44
|
+
}
|
|
45
|
+
._scrollbar_sydsj_50 {
|
|
46
|
+
margin: 0 -8px;
|
|
43
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { defineComponent, ref, computed, createBlock, openBlock, withCtx, withDirectives, createElementBlock, createCommentVNode, createElementVNode, Fragment, renderList, unref,
|
|
3
|
+
import { defineComponent, ref, computed, createBlock, openBlock, normalizeClass, withCtx, withDirectives, createElementBlock, createCommentVNode, createElementVNode, Fragment, renderList, unref, renderSlot, createTextVNode, toDisplayString, mergeProps, vShow, createVNode } from 'vue';
|
|
4
4
|
import { Loading } from '@element-plus/icons-vue';
|
|
5
5
|
import { C as Component$3 } from '../button/button.mjs';
|
|
6
6
|
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
@@ -59,7 +59,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
});
|
|
60
60
|
return (_ctx, _cache) => {
|
|
61
61
|
const _component_ElIcon = ElIcon;
|
|
62
|
-
return openBlock(), createBlock(Component$1, {
|
|
62
|
+
return openBlock(), createBlock(Component$1, {
|
|
63
|
+
always: "",
|
|
64
|
+
class: normalizeClass(_ctx.$style.scrollbar)
|
|
65
|
+
}, {
|
|
63
66
|
default: withCtx(() => [
|
|
64
67
|
withDirectives(createElementVNode("div", null, [
|
|
65
68
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(myData), (item, index) => {
|
|
@@ -98,11 +101,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
101
|
ref_for: true
|
|
99
102
|
}, actionsMapping[action], {
|
|
100
103
|
confirm: action === "remove" ? __props.confirmParams(item) : void 0,
|
|
104
|
+
class: action === "remove" ? _ctx.$style.remove : void 0,
|
|
101
105
|
link: "",
|
|
102
106
|
icon: { type: "el", name: actionsMapping[action].icon },
|
|
103
107
|
stop: "",
|
|
104
108
|
onClick: ($event) => emits(action, item.value, item)
|
|
105
|
-
}), null, 16, ["confirm", "icon", "onClick"]))
|
|
109
|
+
}), null, 16, ["confirm", "class", "icon", "onClick"]))
|
|
106
110
|
], 64);
|
|
107
111
|
}), 128))
|
|
108
112
|
], 2)) : createCommentVNode("", true)
|
|
@@ -129,19 +133,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
133
|
], 2)) : createCommentVNode("", true)
|
|
130
134
|
]),
|
|
131
135
|
_: 3
|
|
132
|
-
});
|
|
136
|
+
}, 8, ["class"]);
|
|
133
137
|
};
|
|
134
138
|
}
|
|
135
139
|
});
|
|
136
140
|
|
|
137
|
-
/* unplugin-vue-components disabled */const item = "
|
|
138
|
-
const actions = "
|
|
139
|
-
const active = "
|
|
140
|
-
const label = "
|
|
141
|
-
const icon = "
|
|
142
|
-
const remove = "
|
|
143
|
-
const empty = "
|
|
144
|
-
const loading = "
|
|
141
|
+
/* unplugin-vue-components disabled */const item = "_item_1xtjk_1";
|
|
142
|
+
const actions = "_actions_1xtjk_16";
|
|
143
|
+
const active = "_active_1xtjk_20";
|
|
144
|
+
const label = "_label_1xtjk_25";
|
|
145
|
+
const icon = "_icon_1xtjk_31";
|
|
146
|
+
const remove = "_remove_1xtjk_48";
|
|
147
|
+
const empty = "_empty_1xtjk_52";
|
|
148
|
+
const loading = "_loading_1xtjk_53";
|
|
149
|
+
const scrollbar = "_scrollbar_1xtjk_61";
|
|
145
150
|
const style0 = {
|
|
146
151
|
item: item,
|
|
147
152
|
actions: actions,
|
|
@@ -150,7 +155,8 @@ const style0 = {
|
|
|
150
155
|
icon: icon,
|
|
151
156
|
remove: remove,
|
|
152
157
|
empty: empty,
|
|
153
|
-
loading: loading
|
|
158
|
+
loading: loading,
|
|
159
|
+
scrollbar: scrollbar
|
|
154
160
|
};
|
|
155
161
|
|
|
156
162
|
const cssModules = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* source: src/components/explorer-list/explorer-list.vue */
|
|
2
|
-
.
|
|
2
|
+
._item_1xtjk_1 {
|
|
3
3
|
padding: 4px 8px;
|
|
4
4
|
cursor: pointer;
|
|
5
5
|
display: flex;
|
|
@@ -11,45 +11,48 @@
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
line-height: 1;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
._item_1xtjk_1:hover {
|
|
15
15
|
background-color: var(--el-color-primary-light-9);
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
._item_1xtjk_1:hover ._actions_1xtjk_16 {
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
align-items: flex-start;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
._item_1xtjk_1._active_1xtjk_20 {
|
|
22
22
|
color: var(--el-color-primary);
|
|
23
23
|
background-color: var(--el-color-primary-light-9);
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
._label_1xtjk_25 {
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
text-overflow: ellipsis;
|
|
28
28
|
white-space: nowrap;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
._icon_1xtjk_31 {
|
|
31
31
|
margin-right: 4px;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
._actions_1xtjk_16 {
|
|
34
34
|
display: none;
|
|
35
35
|
column-gap: 4px;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
._actions_1xtjk_16 > button {
|
|
38
38
|
margin-left: 0 !important;
|
|
39
39
|
font-size: 1.2em;
|
|
40
40
|
border: 1px solid var(--el-border-color-light) !important;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
._actions_1xtjk_16 > button:hover {
|
|
43
43
|
border-color: var(--el-border-color-dark) !important;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
._remove_1xtjk_48 {
|
|
46
46
|
transform: translateY(-1px);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
49
|
-
.
|
|
48
|
+
._empty_1xtjk_52,
|
|
49
|
+
._loading_1xtjk_53 {
|
|
50
50
|
padding: 4px 8px;
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
53
53
|
column-gap: 4px;
|
|
54
54
|
color: var(--el-text-color-secondary);
|
|
55
|
+
}
|
|
56
|
+
._scrollbar_1xtjk_61 {
|
|
57
|
+
margin: 0 -8px;
|
|
55
58
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
3
|
import { v as vLoading } from '../../chunk/D-1mFPUH.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { defineComponent, useTemplateRef, shallowRef, ref, computed, watch, onUnmounted, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, isRef, withCtx, withDirectives, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, toDisplayString } from 'vue';
|
|
5
|
+
import { ElForm } from 'element-plus';
|
|
6
6
|
import { C as Component$3 } from '../button/button.mjs';
|
|
7
7
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
8
8
|
import { C as Component$2 } from '../drawer/drawer.mjs';
|
|
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
const emits = __emit;
|
|
32
32
|
const modalVisible = useVModel(props, "modelValue", emits);
|
|
33
33
|
const formRef = useTemplateRef("formRef");
|
|
34
|
+
const formComponent = shallowRef(ElForm);
|
|
34
35
|
const isEditing = ref(false);
|
|
35
36
|
const component = computed(() => props.type === "dialog" ? Component$1 : Component$2);
|
|
36
37
|
const modalTitle = computed(() => props.title || (props.form.fields.id ? "编辑" : "新增"));
|
|
@@ -49,28 +50,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
50
|
isEditing.value = true;
|
|
50
51
|
emits("edit");
|
|
51
52
|
}
|
|
52
|
-
function fixLabelPosition() {
|
|
53
|
-
const formItems = formRef.value?.$el.querySelectorAll(".el-form-item");
|
|
54
|
-
if (props.labelPosition === "top") {
|
|
55
|
-
formItems.forEach((formItem) => formItem.classList.add("el-form-item--label-top"));
|
|
56
|
-
}
|
|
57
|
-
if (props.labelPosition === "right") {
|
|
58
|
-
formItems.forEach((formItem) => formItem.classList.add("el-form-item--label-right"));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
53
|
const visibleWatch = watch(modalVisible, (val) => {
|
|
62
54
|
if (!val) {
|
|
63
55
|
return;
|
|
64
56
|
}
|
|
65
57
|
isEditing.value = props.editing ?? true;
|
|
66
|
-
nextTick(() => fixLabelPosition());
|
|
67
58
|
}, { immediate: true });
|
|
68
|
-
__expose({ formRef
|
|
59
|
+
__expose({ formRef });
|
|
69
60
|
onUnmounted(() => {
|
|
70
61
|
visibleWatch.stop();
|
|
71
62
|
});
|
|
72
63
|
return (_ctx, _cache) => {
|
|
73
|
-
const _component_ElForm = ElForm;
|
|
74
64
|
const _directive_loading = vLoading;
|
|
75
65
|
return openBlock(), createBlock(resolveDynamicComponent(unref(component)), mergeProps({
|
|
76
66
|
modelValue: unref(modalVisible),
|
|
@@ -129,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
119
|
}, 8, ["loading"])) : createCommentVNode("", true)
|
|
130
120
|
]),
|
|
131
121
|
default: withCtx(() => [
|
|
132
|
-
withDirectives((openBlock(), createBlock(
|
|
122
|
+
withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(formComponent)), mergeProps({
|
|
133
123
|
ref_key: "formRef",
|
|
134
124
|
ref: formRef,
|
|
135
125
|
"require-asterisk-position": "right",
|
|
@@ -154,8 +144,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
154
144
|
}
|
|
155
145
|
});
|
|
156
146
|
|
|
157
|
-
/* unplugin-vue-components disabled */const icon = "
|
|
158
|
-
const form = "
|
|
147
|
+
/* unplugin-vue-components disabled */const icon = "_icon_1nnr8_1";
|
|
148
|
+
const form = "_form_1nnr8_6";
|
|
159
149
|
const style0 = {
|
|
160
150
|
icon: icon,
|
|
161
151
|
form: form
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IExplorerModalFormProps } from './explorer-modal-form';
|
|
2
|
-
declare function fixLabelPosition(): void;
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
3
|
attrs: Partial<{}>;
|
|
5
4
|
slots: {
|
|
@@ -377,7 +376,6 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
377
376
|
default?: (props: {}) => any;
|
|
378
377
|
};
|
|
379
378
|
}) | null>>;
|
|
380
|
-
fixLabelPosition: typeof fixLabelPosition;
|
|
381
379
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
382
380
|
cancel: () => any;
|
|
383
381
|
"update:modelValue": (value: boolean) => any;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/* source: src/components/explorer-modal-form/explorer-modal-form.vue */
|
|
2
|
-
.
|
|
2
|
+
._icon_1nnr8_1 {
|
|
3
3
|
margin-right: 4px;
|
|
4
4
|
font-size: var(--el-font-size-extra-large);
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
._form_1nnr8_6 {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-grow: 1;
|
|
9
9
|
align-items: flex-start;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
._form_1nnr8_6 > .el-row {
|
|
12
12
|
flex-grow: 1;
|
|
13
|
+
margin: 0 !important;
|
|
13
14
|
}
|