@wfrog/vc-ui 1.12.4 → 1.13.0
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/chunk/{Bw0Rhd-r.mjs → oAsZydDS.mjs} +6 -3
- package/dist/es/components/backbottom/backbottom.mjs +6 -6
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -5
- package/dist/es/components/explorer-column-table/index.css +12 -12
- package/dist/es/components/explorer-list/explorer-list.d.ts +2 -1
- package/dist/es/components/explorer-list/explorer-list.mjs +18 -12
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +3 -2
- package/dist/es/components/explorer-list/index.css +18 -18
- package/dist/es/components/explorer-table/explorer-table.mjs +7 -7
- package/dist/es/components/explorer-table/index.css +14 -14
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +2 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +27 -7
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2 -2
- package/dist/es/components/explorer-tree/index.css +19 -19
- package/dist/es/components/icon-picker/icon-picker.mjs +17 -17
- package/dist/es/components/icon-picker/index.css +27 -27
- package/dist/es/components/pca-picker/index.css +2 -2
- package/dist/es/components/pca-picker/pca-picker.mjs +1 -1
- package/dist/es/components/select/index.css +5 -2
- package/dist/es/components/select/select.mjs +9 -5
- package/dist/es/components/transfer-panel/index.css +22 -22
- package/dist/es/components/transfer-panel/transfer-panel.mjs +10 -10
- package/dist/es/components/tree-picker/index.css +2 -2
- package/dist/es/components/tree-picker/popover-cascader.css +9 -6
- package/dist/es/components/tree-picker/tree-picker.d.ts +2 -0
- package/dist/es/components/tree-picker/tree-picker.mjs +10 -9
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +1 -0
- package/dist/es/components/tree-select/docs/data.d.ts +2 -0
- package/dist/es/components/tree-select/index.css +48 -0
- package/dist/es/components/tree-select/index.d.ts +4 -0
- package/dist/es/components/tree-select/index.mjs +6 -0
- package/dist/es/components/tree-select/tree-select.d.ts +21 -0
- package/dist/es/components/tree-select/tree-select.mjs +222 -0
- package/dist/es/components/tree-select/tree-select.vue.d.ts +1029 -0
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.mjs +5 -3
- package/dist/global.d.ts +1 -0
- package/dist/index.css +187 -133
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
}));
|
|
32
32
|
const treeProps = computed(() => ({
|
|
33
33
|
label: props.props.label || "label",
|
|
34
|
+
value: props.props.value || "value",
|
|
34
35
|
children: props.props.children || "children"
|
|
35
36
|
}));
|
|
36
37
|
function filterNode(value, data) {
|
|
@@ -89,17 +90,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
90
|
props: unref(cascaderProps),
|
|
90
91
|
options: __props.options
|
|
91
92
|
}, _ctx.$attrs, {
|
|
93
|
+
class: _ctx.$style["cascader-panel"],
|
|
92
94
|
onExpandChange: _cache[1] || (_cache[1] = ($event) => emits("expandChange")),
|
|
93
95
|
onChange: handleCascaderChange
|
|
94
|
-
}), null, 16, ["modelValue", "props", "options"])
|
|
96
|
+
}), null, 16, ["modelValue", "props", "options", "class"])
|
|
95
97
|
], 64);
|
|
96
98
|
};
|
|
97
99
|
}
|
|
98
100
|
});
|
|
99
101
|
|
|
100
|
-
/* unplugin-vue-components disabled */const selected = "
|
|
102
|
+
/* unplugin-vue-components disabled */const selected = "_selected_62www_1";
|
|
101
103
|
const style0 = {
|
|
102
|
-
selected: selected
|
|
104
|
+
selected: selected,
|
|
105
|
+
"cascader-panel": "_cascader-panel_62www_24"
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
const cssModules = {
|
|
@@ -17,8 +17,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
emits: ["inited"],
|
|
18
18
|
setup(__props, { emit: __emit }) {
|
|
19
19
|
useCssVars((_ctx) => ({
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"b0dc67b4": `${-_ctx.right}px`,
|
|
21
|
+
"a033bb7c": `${_ctx.bottom}px`
|
|
22
22
|
}));
|
|
23
23
|
const props = __props;
|
|
24
24
|
const emits = __emit;
|
|
@@ -128,10 +128,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
/* unplugin-vue-components disabled */const wrapper = "
|
|
132
|
-
const container = "
|
|
133
|
-
const body = "
|
|
134
|
-
const icon = "
|
|
131
|
+
/* unplugin-vue-components disabled */const wrapper = "_wrapper_5hf9g_1";
|
|
132
|
+
const container = "_container_5hf9g_11";
|
|
133
|
+
const body = "_body_5hf9g_15";
|
|
134
|
+
const icon = "_icon_5hf9g_34";
|
|
135
135
|
const style0 = {
|
|
136
136
|
wrapper: wrapper,
|
|
137
137
|
container: container,
|
|
@@ -358,15 +358,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
|
|
361
|
-
/* unplugin-vue-components disabled */const table = "
|
|
362
|
-
const label = "
|
|
363
|
-
const handle = "
|
|
364
|
-
const truncate = "
|
|
361
|
+
/* unplugin-vue-components disabled */const table = "_table_1vtct_1";
|
|
362
|
+
const label = "_label_1vtct_8";
|
|
363
|
+
const handle = "_handle_1vtct_29";
|
|
364
|
+
const truncate = "_truncate_1vtct_45";
|
|
365
365
|
const style0 = {
|
|
366
366
|
table: table,
|
|
367
367
|
label: label,
|
|
368
368
|
handle: handle,
|
|
369
|
-
"item-container": "_item-
|
|
369
|
+
"item-container": "_item-container_1vtct_33",
|
|
370
370
|
truncate: truncate
|
|
371
371
|
};
|
|
372
372
|
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/* source: src/components/explorer-column-table/explorer-column-table.vue */
|
|
2
|
-
div.
|
|
2
|
+
div._table_1vtct_1 {
|
|
3
3
|
flex-grow: 1;
|
|
4
4
|
height: 100px;
|
|
5
5
|
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
6
|
-
--el-table-row-hover-bg-color: var(--el-color-
|
|
6
|
+
--el-table-row-hover-bg-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
._label_1vtct_8 {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
width: 100%;
|
|
11
11
|
align-items: center;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
._label_1vtct_8 .el-checkbox {
|
|
14
14
|
width: 100%;
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
._label_1vtct_8 .el-checkbox__label {
|
|
19
19
|
min-width: 0;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
text-overflow: ellipsis;
|
|
22
22
|
white-space: nowrap;
|
|
23
23
|
flex-grow: 1;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
._label_1vtct_8 .iconify {
|
|
26
26
|
margin-left: 4px;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
._handle_1vtct_29 {
|
|
29
29
|
cursor: move;
|
|
30
30
|
}
|
|
31
|
-
._item-
|
|
31
|
+
._item-container_1vtct_33 {
|
|
32
32
|
display: inline-flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
column-gap: 4px;
|
|
@@ -36,15 +36,15 @@ div._table_oyix4_1 {
|
|
|
36
36
|
line-height: 0;
|
|
37
37
|
vertical-align: middle;
|
|
38
38
|
}
|
|
39
|
-
._item-
|
|
39
|
+
._item-container_1vtct_33 > div {
|
|
40
40
|
vertical-align: middle;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
._truncate_1vtct_45 {
|
|
43
43
|
padding: 0 9px !important;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
._truncate_1vtct_45.el-checkbox--small {
|
|
46
46
|
padding: 0 7px !important;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
._truncate_1vtct_45.el-checkbox--large {
|
|
49
49
|
padding: 0 11px !important;
|
|
50
50
|
}
|
|
@@ -16,6 +16,7 @@ export interface IExplorerListProps {
|
|
|
16
16
|
loading?: boolean;
|
|
17
17
|
loadingText?: string;
|
|
18
18
|
highlightCurrent?: boolean;
|
|
19
|
+
cancelHighlight?: boolean;
|
|
19
20
|
showCheckbox?: boolean;
|
|
20
21
|
confirmParams?: (item: IExplorerListItem) => IButtonProps['confirm'];
|
|
21
22
|
disabled?: boolean | ((action: string, item: IExplorerListItem) => boolean);
|
|
@@ -23,7 +24,7 @@ export interface IExplorerListProps {
|
|
|
23
24
|
export interface IExplorerListEmits {
|
|
24
25
|
(e: 'update:modelValue', value: (string | number)[] | undefined): void;
|
|
25
26
|
(e: 'valueChange', value: CheckboxValueType[]): void;
|
|
26
|
-
(e: 'itemClick', value: string | number, item: IExplorerListItem
|
|
27
|
+
(e: 'itemClick', value: string | number | undefined, item: IExplorerListItem): void;
|
|
27
28
|
(e: 'create', value: string | number, item: IExplorerListItem): void;
|
|
28
29
|
(e: 'modify', value: string | number, item: IExplorerListItem): void;
|
|
29
30
|
(e: 'remove', value: string | number, item: IExplorerListItem): void;
|
|
@@ -28,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
loading: { type: Boolean },
|
|
29
29
|
loadingText: { default: "数据加载中..." },
|
|
30
30
|
highlightCurrent: { type: Boolean, default: true },
|
|
31
|
+
cancelHighlight: { type: Boolean, default: false },
|
|
31
32
|
showCheckbox: { type: Boolean },
|
|
32
33
|
confirmParams: { type: Function, default: (item) => {
|
|
33
34
|
return { msg: `确定要删除 ${item.label} 吗?` };
|
|
@@ -37,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
emits: ["update:modelValue", "valueChange", "itemClick", "create", "modify", "remove", "up", "down"],
|
|
38
39
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
40
|
useCssVars((_ctx) => ({
|
|
40
|
-
"
|
|
41
|
+
"v7fa588cc": unref(cursorStyle)
|
|
41
42
|
}));
|
|
42
43
|
const props = __props;
|
|
43
44
|
const emits = __emit;
|
|
@@ -56,12 +57,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
});
|
|
57
58
|
const isEmpty = computed(() => myData.value.length === 0);
|
|
58
59
|
const cursorStyle = computed(() => props.highlightCurrent ? "pointer" : "unset");
|
|
59
|
-
function handleClick(item
|
|
60
|
+
function handleClick(item) {
|
|
60
61
|
if (!props.highlightCurrent) {
|
|
61
62
|
return;
|
|
62
63
|
}
|
|
64
|
+
if (props.cancelHighlight && actived.value === item.value) {
|
|
65
|
+
actived.value = void 0;
|
|
66
|
+
emits("itemClick", void 0, item);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
63
69
|
actived.value = item.value;
|
|
64
|
-
emits("itemClick", item.value, item
|
|
70
|
+
emits("itemClick", item.value, item);
|
|
65
71
|
}
|
|
66
72
|
const checkboxGroupDisabled = computed(() => {
|
|
67
73
|
if (props.disabled === void 0) {
|
|
@@ -104,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
110
|
return openBlock(), createElementBlock("div", {
|
|
105
111
|
key: item.value,
|
|
106
112
|
class: normalizeClass([_ctx.$style.item, { [_ctx.$style.active]: unref(actived) === item.value }]),
|
|
107
|
-
onClick: (
|
|
113
|
+
onClick: () => handleClick(item)
|
|
108
114
|
}, [
|
|
109
115
|
renderSlot(_ctx.$slots, "item", {
|
|
110
116
|
data: item,
|
|
@@ -205,14 +211,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
211
|
}
|
|
206
212
|
});
|
|
207
213
|
|
|
208
|
-
/* unplugin-vue-components disabled */const item = "
|
|
209
|
-
const actions = "
|
|
210
|
-
const active = "
|
|
211
|
-
const label = "
|
|
212
|
-
const remove = "
|
|
213
|
-
const empty = "
|
|
214
|
-
const loading = "
|
|
215
|
-
const scrollbar = "
|
|
214
|
+
/* unplugin-vue-components disabled */const item = "_item_14vaz_1";
|
|
215
|
+
const actions = "_actions_14vaz_16";
|
|
216
|
+
const active = "_active_14vaz_20";
|
|
217
|
+
const label = "_label_14vaz_25";
|
|
218
|
+
const remove = "_remove_14vaz_58";
|
|
219
|
+
const empty = "_empty_14vaz_62";
|
|
220
|
+
const loading = "_loading_14vaz_63";
|
|
221
|
+
const scrollbar = "_scrollbar_14vaz_71";
|
|
216
222
|
const style0 = {
|
|
217
223
|
item: item,
|
|
218
224
|
actions: actions,
|
|
@@ -37,7 +37,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerListProps,
|
|
|
37
37
|
up: (value: string | number, node: Node) => any;
|
|
38
38
|
down: (value: string | number, node: Node) => any;
|
|
39
39
|
valueChange: (value: import('element-plus').CheckboxValueType[]) => any;
|
|
40
|
-
itemClick: (value: string | number, item: IExplorerListItem<any
|
|
40
|
+
itemClick: (value: string | number | undefined, item: IExplorerListItem<any>) => any;
|
|
41
41
|
}, string, import('vue').PublicProps, Readonly<IExplorerListProps> & Readonly<{
|
|
42
42
|
"onUpdate:modelValue"?: ((value: (string | number)[] | undefined) => any) | undefined;
|
|
43
43
|
onCreate?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerListProps,
|
|
|
46
46
|
onUp?: ((value: string | number, node: Node) => any) | undefined;
|
|
47
47
|
onDown?: ((value: string | number, node: Node) => any) | undefined;
|
|
48
48
|
onValueChange?: ((value: import('element-plus').CheckboxValueType[]) => any) | undefined;
|
|
49
|
-
onItemClick?: ((value: string | number, item: IExplorerListItem<any
|
|
49
|
+
onItemClick?: ((value: string | number | undefined, item: IExplorerListItem<any>) => any) | undefined;
|
|
50
50
|
}>, {
|
|
51
51
|
data: IExplorerListItem[];
|
|
52
52
|
disabled: boolean | ((action: string, item: IExplorerListItem) => boolean);
|
|
@@ -55,6 +55,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerListProps,
|
|
|
55
55
|
emptyText: string;
|
|
56
56
|
highlightCurrent: boolean;
|
|
57
57
|
actions: ("create" | "modify" | "remove" | "up" | "down" | "action")[];
|
|
58
|
+
cancelHighlight: boolean;
|
|
58
59
|
confirmParams: (item: IExplorerListItem) => import('../button/button').IButtonProps["confirm"];
|
|
59
60
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
60
61
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* source: src/components/explorer-list/explorer-list.vue */
|
|
2
|
-
.
|
|
2
|
+
._item_14vaz_1 {
|
|
3
3
|
padding: 4px 8px;
|
|
4
|
-
cursor: var(--
|
|
4
|
+
cursor: var(--v7fa588cc);
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
align-items: center;
|
|
@@ -11,59 +11,59 @@
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
line-height: 1;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
15
|
-
background-color: var(--el-color-
|
|
14
|
+
._item_14vaz_1:hover {
|
|
15
|
+
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
._item_14vaz_1:hover ._actions_14vaz_16 {
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
align-items: flex-start;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
._item_14vaz_1._active_14vaz_20 {
|
|
22
22
|
color: var(--el-color-primary);
|
|
23
|
-
background-color: var(--el-color-
|
|
23
|
+
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
._label_14vaz_25 {
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
text-overflow: ellipsis;
|
|
28
28
|
white-space: nowrap;
|
|
29
29
|
--el-checkbox-height: 24px;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
._label_14vaz_25 .iconify {
|
|
32
32
|
margin-right: 4px;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
._label_14vaz_25 .el-checkbox {
|
|
35
35
|
width: 100%;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
._label_14vaz_25 .el-checkbox__label {
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
text-overflow: ellipsis;
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
color: var(--el-text-color-regular) !important;
|
|
42
42
|
cursor: pointer !important;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._actions_14vaz_16 {
|
|
45
45
|
display: none;
|
|
46
46
|
column-gap: 4px;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
._actions_14vaz_16 > button {
|
|
49
49
|
margin-left: 0 !important;
|
|
50
50
|
font-size: 1.2em;
|
|
51
51
|
border: 1px solid var(--el-border-color-light) !important;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
._actions_14vaz_16 > button:hover {
|
|
54
54
|
border-color: var(--el-border-color-dark) !important;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
._remove_14vaz_58 {
|
|
57
57
|
transform: translateY(-1px);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
60
|
-
.
|
|
59
|
+
._empty_14vaz_62,
|
|
60
|
+
._loading_14vaz_63 {
|
|
61
61
|
padding: 4px 8px;
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
column-gap: 4px;
|
|
65
65
|
color: var(--el-text-color-secondary);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
._scrollbar_14vaz_71 {
|
|
68
68
|
margin: 0 -8px;
|
|
69
69
|
}
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
emits: ["columnEvent", "singleSelectionChange", "multipleSelectionChange", "selectionChange", "selectAll"],
|
|
37
37
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
38
38
|
useCssVars((_ctx) => ({
|
|
39
|
-
"
|
|
39
|
+
"dc3c53f8": `${_ctx.empty ? "flex" : "none"}`
|
|
40
40
|
}));
|
|
41
41
|
const props = __props;
|
|
42
42
|
const emits = __emit;
|
|
@@ -275,17 +275,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
/* unplugin-vue-components disabled */const table = "
|
|
279
|
-
const selection = "
|
|
280
|
-
const radio = "
|
|
281
|
-
const checkbox = "
|
|
278
|
+
/* unplugin-vue-components disabled */const table = "_table_1dvo4_7";
|
|
279
|
+
const selection = "_selection_1dvo4_27";
|
|
280
|
+
const radio = "_radio_1dvo4_32";
|
|
281
|
+
const checkbox = "_checkbox_1dvo4_39";
|
|
282
282
|
const style0 = {
|
|
283
|
-
"explorer-table": "_explorer-
|
|
283
|
+
"explorer-table": "_explorer-table_1dvo4_1",
|
|
284
284
|
table: table,
|
|
285
285
|
selection: selection,
|
|
286
286
|
radio: radio,
|
|
287
287
|
checkbox: checkbox,
|
|
288
|
-
"selected-row": "_selected-
|
|
288
|
+
"selected-row": "_selected-row_1dvo4_43"
|
|
289
289
|
};
|
|
290
290
|
|
|
291
291
|
const cssModules = {
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/* source: src/components/explorer-table/explorer-table.vue */
|
|
2
|
-
._explorer-
|
|
2
|
+
._explorer-table_1dvo4_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
flex-grow: 1;
|
|
6
6
|
}
|
|
7
|
-
div.
|
|
7
|
+
div._table_1dvo4_7 {
|
|
8
8
|
flex-grow: 1;
|
|
9
9
|
height: 100px;
|
|
10
10
|
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
11
|
-
--el-table-row-hover-bg-color: var(--el-color-
|
|
11
|
+
--el-table-row-hover-bg-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
12
12
|
}
|
|
13
|
-
div.
|
|
13
|
+
div._table_1dvo4_7 .el-scrollbar__view {
|
|
14
14
|
min-height: 100%;
|
|
15
15
|
height: 100px;
|
|
16
16
|
}
|
|
17
|
-
div.
|
|
17
|
+
div._table_1dvo4_7 .el-table__header-wrapper .el-table__cell:hover {
|
|
18
18
|
border-right-color: var(--el-color-primary-light-5) !important;
|
|
19
19
|
}
|
|
20
|
-
div.
|
|
20
|
+
div._table_1dvo4_7 .el-table__column-resize-proxy {
|
|
21
21
|
border-color: var(--el-color-primary);
|
|
22
22
|
}
|
|
23
|
-
div.
|
|
24
|
-
display: var(--
|
|
23
|
+
div._table_1dvo4_7 .el-table__empty-block {
|
|
24
|
+
display: var(--dc3c53f8);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
._selection_1dvo4_27 .cell {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: center;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
._radio_1dvo4_32 {
|
|
31
31
|
height: unset;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
._radio_1dvo4_32 .el-radio__label {
|
|
34
34
|
display: none;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
._checkbox_1dvo4_39 {
|
|
37
37
|
height: unset;
|
|
38
38
|
}
|
|
39
|
-
._selected-
|
|
40
|
-
background-color: var(--el-color-
|
|
39
|
+
._selected-row_1dvo4_43 td.el-table__cell {
|
|
40
|
+
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light)) !important;
|
|
41
41
|
}
|
|
@@ -14,10 +14,11 @@ export interface IExplorerTreeProps {
|
|
|
14
14
|
confirmParams?: (node: Node) => IButtonProps['confirm'];
|
|
15
15
|
filterMethod?: TreeComponentProps['filterNodeMethod'];
|
|
16
16
|
highlightCurrent?: boolean;
|
|
17
|
+
cancelHighlight?: boolean;
|
|
17
18
|
disabled?: boolean | ((action: string, node: Node) => boolean);
|
|
18
19
|
}
|
|
19
20
|
export interface IExplorerTreeEmits {
|
|
20
|
-
(e: 'nodeClick', value: string | number, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent): void;
|
|
21
|
+
(e: 'nodeClick', value: string | number | undefined, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent): void;
|
|
21
22
|
(e: 'create', value: string | number, node: Node): void;
|
|
22
23
|
(e: 'modify', value: string | number, node: Node): void;
|
|
23
24
|
(e: 'remove', value: string | number, node: Node): void;
|
|
@@ -128,6 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
} },
|
|
129
129
|
filterMethod: {},
|
|
130
130
|
highlightCurrent: { type: Boolean, default: true },
|
|
131
|
+
cancelHighlight: { type: Boolean },
|
|
131
132
|
disabled: { type: [Boolean, Function], default: void 0 }
|
|
132
133
|
},
|
|
133
134
|
emits: ["nodeClick", "create", "modify", "remove", "up", "down"],
|
|
@@ -174,7 +175,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
175
|
}
|
|
175
176
|
return data.label?.toLowerCase().includes(value.toLowerCase()) ?? false;
|
|
176
177
|
}
|
|
178
|
+
function cancalFocus(event) {
|
|
179
|
+
let target = event.target;
|
|
180
|
+
do {
|
|
181
|
+
if (target.classList.contains("el-tree-node")) {
|
|
182
|
+
target.blur();
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
target = target.parentElement;
|
|
186
|
+
} while (target);
|
|
187
|
+
}
|
|
188
|
+
const actived = ref();
|
|
177
189
|
function handleNodeClick(data, node, instance, event) {
|
|
190
|
+
if (props.cancelHighlight && actived.value === data.value) {
|
|
191
|
+
actived.value = void 0;
|
|
192
|
+
emits("nodeClick", void 0, node, instance, event);
|
|
193
|
+
treeRef.value?.setCurrentKey(void 0);
|
|
194
|
+
cancalFocus(event);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
actived.value = data.value;
|
|
178
198
|
emits("nodeClick", data.value, node, instance, event);
|
|
179
199
|
}
|
|
180
200
|
const filterWatch = watch(filterKeyword, (value) => treeRef.value?.filter(value));
|
|
@@ -287,13 +307,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
287
307
|
}
|
|
288
308
|
});
|
|
289
309
|
|
|
290
|
-
/* unplugin-vue-components disabled */const tree = "
|
|
291
|
-
const node = "
|
|
292
|
-
const label = "
|
|
293
|
-
const actions = "
|
|
294
|
-
const remove = "
|
|
295
|
-
const loading = "
|
|
296
|
-
const scrollbar = "
|
|
310
|
+
/* unplugin-vue-components disabled */const tree = "_tree_oy44a_1";
|
|
311
|
+
const node = "_node_oy44a_27";
|
|
312
|
+
const label = "_label_oy44a_37";
|
|
313
|
+
const actions = "_actions_oy44a_47";
|
|
314
|
+
const remove = "_remove_oy44a_60";
|
|
315
|
+
const loading = "_loading_oy44a_64";
|
|
316
|
+
const scrollbar = "_scrollbar_oy44a_72";
|
|
297
317
|
const style0 = {
|
|
298
318
|
tree: tree,
|
|
299
319
|
node: node,
|
|
@@ -2047,14 +2047,14 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerTreeProps,
|
|
|
2047
2047
|
remove: (value: string | number, node: Node) => any;
|
|
2048
2048
|
up: (value: string | number, node: Node) => any;
|
|
2049
2049
|
down: (value: string | number, node: Node) => any;
|
|
2050
|
-
nodeClick: (value: string | number, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent) => any;
|
|
2050
|
+
nodeClick: (value: string | number | undefined, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent) => any;
|
|
2051
2051
|
}, string, import('vue').PublicProps, Readonly<IExplorerTreeProps> & Readonly<{
|
|
2052
2052
|
onCreate?: ((value: string | number, node: Node) => any) | undefined;
|
|
2053
2053
|
onModify?: ((value: string | number, node: Node) => any) | undefined;
|
|
2054
2054
|
onRemove?: ((value: string | number, node: Node) => any) | undefined;
|
|
2055
2055
|
onUp?: ((value: string | number, node: Node) => any) | undefined;
|
|
2056
2056
|
onDown?: ((value: string | number, node: Node) => any) | undefined;
|
|
2057
|
-
onNodeClick?: ((value: string | number, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent) => any) | undefined;
|
|
2057
|
+
onNodeClick?: ((value: string | number | undefined, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent) => any) | undefined;
|
|
2058
2058
|
}>, {
|
|
2059
2059
|
disabled: boolean | ((action: string, node: Node) => boolean);
|
|
2060
2060
|
loadingText: string;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/* source: src/components/explorer-tree/explorer-tree.vue */
|
|
2
|
-
.
|
|
2
|
+
._tree_oy44a_1 .el-tree-node__content {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
}
|
|
6
|
-
.
|
|
7
|
-
background-color: var(--el-color-
|
|
6
|
+
._tree_oy44a_1 .el-tree-node__content:hover {
|
|
7
|
+
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
._tree_oy44a_1 .el-tree-node__content:hover .vc-actions {
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
13
|
-
background-color: var(--el-color-
|
|
12
|
+
._tree_oy44a_1 .el-tree-node:focus > .el-tree-node__content {
|
|
13
|
+
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
._tree_oy44a_1 .is-current > .el-tree-node__content {
|
|
16
16
|
color: var(--el-color-primary);
|
|
17
|
-
background-color: var(--el-color-
|
|
17
|
+
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light)) !important;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
._tree_oy44a_1 .el-tree__empty-block {
|
|
20
20
|
text-align: left;
|
|
21
21
|
min-height: unset;
|
|
22
22
|
padding: 4px 8px;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
._tree_oy44a_1 .el-tree__empty-text {
|
|
25
25
|
position: static;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
._node_oy44a_27 {
|
|
28
28
|
display: flex;
|
|
29
29
|
justify-content: space-between;
|
|
30
30
|
align-items: center;
|
|
@@ -33,37 +33,37 @@
|
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
width: 100px;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
._label_oy44a_37 {
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
text-overflow: ellipsis;
|
|
39
39
|
white-space: nowrap;
|
|
40
40
|
transform: translateY(-1px);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
._label_oy44a_37 .iconify {
|
|
43
43
|
margin-right: 4px;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
._actions_oy44a_47 {
|
|
46
46
|
display: none;
|
|
47
47
|
column-gap: 4px;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
._actions_oy44a_47 > button {
|
|
50
50
|
margin-left: 0 !important;
|
|
51
51
|
font-size: 1.2em;
|
|
52
52
|
border: 1px solid var(--el-border-color-light) !important;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
._actions_oy44a_47 > button:hover {
|
|
55
55
|
border-color: var(--el-border-color-dark) !important;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
._remove_oy44a_60 {
|
|
58
58
|
transform: translateY(-1px);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
._loading_oy44a_64 {
|
|
61
61
|
padding: 4px 8px;
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
column-gap: 4px;
|
|
65
65
|
color: var(--el-text-color-secondary);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
._scrollbar_oy44a_72 {
|
|
68
68
|
margin: 0 -8px;
|
|
69
69
|
}
|
|
@@ -208,14 +208,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
/* unplugin-vue-components disabled */const wrapper$1 = "
|
|
212
|
-
const container$1 = "
|
|
213
|
-
const collection = "
|
|
214
|
-
const active = "
|
|
215
|
-
const icons = "
|
|
211
|
+
/* unplugin-vue-components disabled */const wrapper$1 = "_wrapper_1do9r_1";
|
|
212
|
+
const container$1 = "_container_1do9r_14";
|
|
213
|
+
const collection = "_collection_1do9r_20";
|
|
214
|
+
const active = "_active_1do9r_27";
|
|
215
|
+
const icons = "_icons_1do9r_46";
|
|
216
216
|
const style0$2 = {
|
|
217
217
|
wrapper: wrapper$1,
|
|
218
|
-
"search-wrapper": "_search-
|
|
218
|
+
"search-wrapper": "_search-wrapper_1do9r_7",
|
|
219
219
|
container: container$1,
|
|
220
220
|
collection: collection,
|
|
221
221
|
active: active,
|
|
@@ -385,20 +385,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
/* unplugin-vue-components disabled */const panel = "
|
|
389
|
-
const wrapper = "
|
|
390
|
-
const shadow = "
|
|
391
|
-
const visible = "
|
|
392
|
-
const hidden = "
|
|
393
|
-
const container = "
|
|
394
|
-
const divider = "
|
|
395
|
-
const pagination = "
|
|
388
|
+
/* unplugin-vue-components disabled */const panel = "_panel_hn29n_1";
|
|
389
|
+
const wrapper = "_wrapper_hn29n_5";
|
|
390
|
+
const shadow = "_shadow_hn29n_44";
|
|
391
|
+
const visible = "_visible_hn29n_47";
|
|
392
|
+
const hidden = "_hidden_hn29n_50";
|
|
393
|
+
const container = "_container_hn29n_54";
|
|
394
|
+
const divider = "_divider_hn29n_75";
|
|
395
|
+
const pagination = "_pagination_hn29n_79";
|
|
396
396
|
const style0$1 = {
|
|
397
397
|
panel: panel,
|
|
398
398
|
wrapper: wrapper,
|
|
399
|
-
"search-input": "_search-
|
|
400
|
-
"collections-button": "_collections-
|
|
401
|
-
"collections-wrapper": "_collections-
|
|
399
|
+
"search-input": "_search-input_hn29n_11",
|
|
400
|
+
"collections-button": "_collections-button_hn29n_15",
|
|
401
|
+
"collections-wrapper": "_collections-wrapper_hn29n_30",
|
|
402
402
|
shadow: shadow,
|
|
403
403
|
visible: visible,
|
|
404
404
|
hidden: hidden,
|