@minilo/ui 0.0.7 → 0.0.8
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/package.json +2 -2
- package/minilo/dist/index.css +0 -1
- package/minilo/dist/index.full.js +0 -8393
- package/minilo/dist/index.full.min.js +0 -2
- package/minilo/dist/index.full.min.js.map +0 -1
- package/minilo/dist/index.full.min.mjs +0 -2
- package/minilo/dist/index.full.min.mjs.map +0 -1
- package/minilo/dist/index.full.mjs +0 -8373
- package/minilo/es/components/button/index.d.ts +0 -47
- package/minilo/es/components/button/index.mjs +0 -6
- package/minilo/es/components/button/index.vue.d.ts +0 -29
- package/minilo/es/components/button/index.vue.mjs +0 -5
- package/minilo/es/components/button/index.vue2.mjs +0 -67
- package/minilo/es/components/button/type.d.ts +0 -10
- package/minilo/es/components/chart/index.d.ts +0 -49
- package/minilo/es/components/chart/index.mjs +0 -6
- package/minilo/es/components/chart/index.vue.d.ts +0 -33
- package/minilo/es/components/chart/index.vue.mjs +0 -5
- package/minilo/es/components/chart/index.vue2.mjs +0 -124
- package/minilo/es/components/chart/type.d.ts +0 -7
- package/minilo/es/components/detail/index.d.ts +0 -37
- package/minilo/es/components/detail/index.mjs +0 -6
- package/minilo/es/components/detail/index.vue.d.ts +0 -23
- package/minilo/es/components/detail/index.vue.mjs +0 -5
- package/minilo/es/components/detail/index.vue2.mjs +0 -194
- package/minilo/es/components/detail/renderLabel.vue.d.ts +0 -8
- package/minilo/es/components/detail/renderLabel.vue.mjs +0 -5
- package/minilo/es/components/detail/renderLabel.vue2.mjs +0 -23
- package/minilo/es/components/detail/renderTooltip.vue.d.ts +0 -8
- package/minilo/es/components/detail/renderTooltip.vue.mjs +0 -5
- package/minilo/es/components/detail/renderTooltip.vue2.mjs +0 -23
- package/minilo/es/components/detail/type.d.ts +0 -27
- package/minilo/es/components/image-upload-pro/index.d.ts +0 -544
- package/minilo/es/components/image-upload-pro/index.mjs +0 -7
- package/minilo/es/components/image-upload-pro/index.vue.d.ts +0 -546
- package/minilo/es/components/image-upload-pro/index.vue.mjs +0 -5
- package/minilo/es/components/image-upload-pro/index.vue2.mjs +0 -657
- package/minilo/es/components/image-upload-pro/type.d.ts +0 -147
- package/minilo/es/components/image-upload-pro/type.mjs +0 -81
- package/minilo/es/components/index.d.ts +0 -11
- package/minilo/es/components/index.mjs +0 -14
- package/minilo/es/components/number-range-input/index.d.ts +0 -41
- package/minilo/es/components/number-range-input/index.mjs +0 -6
- package/minilo/es/components/number-range-input/index.vue.d.ts +0 -33
- package/minilo/es/components/number-range-input/index.vue.mjs +0 -5
- package/minilo/es/components/number-range-input/index.vue2.mjs +0 -150
- package/minilo/es/components/number-range-input/props.d.ts +0 -10
- package/minilo/es/components/search/index.d.ts +0 -488
- package/minilo/es/components/search/index.mjs +0 -6
- package/minilo/es/components/search/index.vue.d.ts +0 -554
- package/minilo/es/components/search/index.vue.mjs +0 -5
- package/minilo/es/components/search/index.vue2.mjs +0 -297
- package/minilo/es/components/search/props.d.ts +0 -107
- package/minilo/es/components/search/props.mjs +0 -55
- package/minilo/es/components/search-table/index.mjs +0 -6
- package/minilo/es/components/search-table/index.vue.d.ts +0 -189
- package/minilo/es/components/search-table/index.vue.mjs +0 -5
- package/minilo/es/components/search-table/index.vue2.mjs +0 -198
- package/minilo/es/components/search-table/props.d.ts +0 -69
- package/minilo/es/components/search-table/props.mjs +0 -69
- package/minilo/es/components/search-table/render.d.ts +0 -11
- package/minilo/es/components/search-table/render.mjs +0 -19
- package/minilo/es/components/tree-select/index.d.ts +0 -34
- package/minilo/es/components/tree-select/index.mjs +0 -6
- package/minilo/es/components/tree-select/index.vue.d.ts +0 -23
- package/minilo/es/components/tree-select/index.vue.mjs +0 -5
- package/minilo/es/components/tree-select/index.vue2.mjs +0 -229
- package/minilo/es/components/tree-select/type.d.ts +0 -34
- package/minilo/es/components/tree-select-dialog/index.d.ts +0 -64
- package/minilo/es/components/tree-select-dialog/index.mjs +0 -7
- package/minilo/es/components/tree-select-dialog/index.vue.d.ts +0 -26
- package/minilo/es/components/tree-select-dialog/index.vue.mjs +0 -5
- package/minilo/es/components/tree-select-dialog/index.vue2.mjs +0 -145
- package/minilo/es/components/tree-select-dialog/type.d.ts +0 -9
- package/minilo/es/components/tree-select-dialog/type.mjs +0 -24
- package/minilo/es/components/tree-select-drawer/index.d.ts +0 -69
- package/minilo/es/components/tree-select-drawer/index.mjs +0 -7
- package/minilo/es/components/tree-select-drawer/index.vue.d.ts +0 -26
- package/minilo/es/components/tree-select-drawer/index.vue.mjs +0 -5
- package/minilo/es/components/tree-select-drawer/index.vue2.mjs +0 -151
- package/minilo/es/components/tree-select-drawer/type.d.ts +0 -10
- package/minilo/es/components/tree-select-drawer/type.mjs +0 -20
- package/minilo/es/components/virtual-list/index.d.ts +0 -59
- package/minilo/es/components/virtual-list/index.mjs +0 -6
- package/minilo/es/components/virtual-list/index.vue.d.ts +0 -39
- package/minilo/es/components/virtual-list/index.vue.mjs +0 -5
- package/minilo/es/components/virtual-list/index.vue2.mjs +0 -423
- package/minilo/es/components/virtual-list/type.d.ts +0 -20
- package/minilo/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.mjs +0 -41
- package/minilo/es/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs +0 -73
- package/minilo/es/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs +0 -76
- package/minilo/es/packages/utils/dist/func/common.mjs +0 -14
- package/minilo/es/packages/utils/dist/request/index.mjs +0 -105
- package/minilo/es/resolver/index.d.ts +0 -8
- package/minilo/es/resolver/index.mjs +0 -26
- package/minilo/es/utils/index.d.ts +0 -28
- package/minilo/es/utils/index.mjs +0 -30
- package/minilo/lib/components/button/index.d.ts +0 -47
- package/minilo/lib/components/button/index.js +0 -11
- package/minilo/lib/components/button/index.vue.d.ts +0 -29
- package/minilo/lib/components/button/index.vue.js +0 -9
- package/minilo/lib/components/button/index.vue2.js +0 -71
- package/minilo/lib/components/button/type.d.ts +0 -10
- package/minilo/lib/components/chart/index.d.ts +0 -49
- package/minilo/lib/components/chart/index.js +0 -11
- package/minilo/lib/components/chart/index.vue.d.ts +0 -33
- package/minilo/lib/components/chart/index.vue.js +0 -9
- package/minilo/lib/components/chart/index.vue2.js +0 -128
- package/minilo/lib/components/chart/type.d.ts +0 -7
- package/minilo/lib/components/detail/index.d.ts +0 -37
- package/minilo/lib/components/detail/index.js +0 -11
- package/minilo/lib/components/detail/index.vue.d.ts +0 -23
- package/minilo/lib/components/detail/index.vue.js +0 -9
- package/minilo/lib/components/detail/index.vue2.js +0 -198
- package/minilo/lib/components/detail/renderLabel.vue.d.ts +0 -8
- package/minilo/lib/components/detail/renderLabel.vue.js +0 -9
- package/minilo/lib/components/detail/renderLabel.vue2.js +0 -27
- package/minilo/lib/components/detail/renderTooltip.vue.d.ts +0 -8
- package/minilo/lib/components/detail/renderTooltip.vue.js +0 -9
- package/minilo/lib/components/detail/renderTooltip.vue2.js +0 -27
- package/minilo/lib/components/detail/type.d.ts +0 -27
- package/minilo/lib/components/image-upload-pro/index.d.ts +0 -544
- package/minilo/lib/components/image-upload-pro/index.js +0 -13
- package/minilo/lib/components/image-upload-pro/index.vue.d.ts +0 -546
- package/minilo/lib/components/image-upload-pro/index.vue.js +0 -9
- package/minilo/lib/components/image-upload-pro/index.vue2.js +0 -661
- package/minilo/lib/components/image-upload-pro/type.d.ts +0 -147
- package/minilo/lib/components/image-upload-pro/type.js +0 -83
- package/minilo/lib/components/index.d.ts +0 -11
- package/minilo/lib/components/index.js +0 -33
- package/minilo/lib/components/number-range-input/index.d.ts +0 -41
- package/minilo/lib/components/number-range-input/index.js +0 -11
- package/minilo/lib/components/number-range-input/index.vue.d.ts +0 -33
- package/minilo/lib/components/number-range-input/index.vue.js +0 -9
- package/minilo/lib/components/number-range-input/index.vue2.js +0 -154
- package/minilo/lib/components/number-range-input/props.d.ts +0 -10
- package/minilo/lib/components/search/index.d.ts +0 -488
- package/minilo/lib/components/search/index.js +0 -11
- package/minilo/lib/components/search/index.vue.d.ts +0 -554
- package/minilo/lib/components/search/index.vue.js +0 -9
- package/minilo/lib/components/search/index.vue2.js +0 -301
- package/minilo/lib/components/search/props.d.ts +0 -107
- package/minilo/lib/components/search/props.js +0 -58
- package/minilo/lib/components/search-table/index.js +0 -11
- package/minilo/lib/components/search-table/index.vue.d.ts +0 -189
- package/minilo/lib/components/search-table/index.vue.js +0 -9
- package/minilo/lib/components/search-table/index.vue2.js +0 -202
- package/minilo/lib/components/search-table/props.d.ts +0 -69
- package/minilo/lib/components/search-table/props.js +0 -72
- package/minilo/lib/components/search-table/render.d.ts +0 -11
- package/minilo/lib/components/search-table/render.js +0 -23
- package/minilo/lib/components/tree-select/index.d.ts +0 -34
- package/minilo/lib/components/tree-select/index.js +0 -11
- package/minilo/lib/components/tree-select/index.vue.d.ts +0 -23
- package/minilo/lib/components/tree-select/index.vue.js +0 -9
- package/minilo/lib/components/tree-select/index.vue2.js +0 -233
- package/minilo/lib/components/tree-select/type.d.ts +0 -34
- package/minilo/lib/components/tree-select-dialog/index.d.ts +0 -64
- package/minilo/lib/components/tree-select-dialog/index.js +0 -13
- package/minilo/lib/components/tree-select-dialog/index.vue.d.ts +0 -26
- package/minilo/lib/components/tree-select-dialog/index.vue.js +0 -9
- package/minilo/lib/components/tree-select-dialog/index.vue2.js +0 -149
- package/minilo/lib/components/tree-select-dialog/type.d.ts +0 -9
- package/minilo/lib/components/tree-select-dialog/type.js +0 -26
- package/minilo/lib/components/tree-select-drawer/index.d.ts +0 -69
- package/minilo/lib/components/tree-select-drawer/index.js +0 -13
- package/minilo/lib/components/tree-select-drawer/index.vue.d.ts +0 -26
- package/minilo/lib/components/tree-select-drawer/index.vue.js +0 -9
- package/minilo/lib/components/tree-select-drawer/index.vue2.js +0 -155
- package/minilo/lib/components/tree-select-drawer/type.d.ts +0 -10
- package/minilo/lib/components/tree-select-drawer/type.js +0 -22
- package/minilo/lib/components/virtual-list/index.d.ts +0 -59
- package/minilo/lib/components/virtual-list/index.js +0 -11
- package/minilo/lib/components/virtual-list/index.vue.d.ts +0 -39
- package/minilo/lib/components/virtual-list/index.vue.js +0 -9
- package/minilo/lib/components/virtual-list/index.vue2.js +0 -427
- package/minilo/lib/components/virtual-list/type.d.ts +0 -20
- package/minilo/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.js +0 -44
- package/minilo/lib/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.js +0 -84
- package/minilo/lib/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.js +0 -83
- package/minilo/lib/packages/utils/dist/func/common.js +0 -16
- package/minilo/lib/packages/utils/dist/request/index.js +0 -115
- package/minilo/lib/resolver/index.d.ts +0 -8
- package/minilo/lib/resolver/index.js +0 -28
- package/minilo/lib/utils/index.d.ts +0 -28
- package/minilo/lib/utils/index.js +0 -34
- package/minilo/theme-chalk/index.css +0 -1
- package/minilo/theme-chalk/ml-button.css +0 -1
- package/minilo/theme-chalk/ml-chart.css +0 -1
- package/minilo/theme-chalk/ml-detail.css +0 -1
- package/minilo/theme-chalk/ml-image-upload-pro.css +0 -1
- package/minilo/theme-chalk/ml-number-range-input.css +0 -1
- package/minilo/theme-chalk/ml-search-table.css +0 -1
- package/minilo/theme-chalk/ml-search.css +0 -1
- package/minilo/theme-chalk/ml-tree-select-dialog.css +0 -0
- package/minilo/theme-chalk/ml-tree-select-drawer.css +0 -0
- package/minilo/theme-chalk/ml-tree-select.css +0 -1
- package/minilo/theme-chalk/ml-virtual-list.css +0 -1
- package/minilo/theme-chalk/src/button.scss +0 -22
- package/minilo/theme-chalk/src/chart.scss +0 -11
- package/minilo/theme-chalk/src/default/variable.scss +0 -1
- package/minilo/theme-chalk/src/detail.scss +0 -9
- package/minilo/theme-chalk/src/image-upload-pro.scss +0 -70
- package/minilo/theme-chalk/src/index.scss +0 -14
- package/minilo/theme-chalk/src/mixins/mixin.scss +0 -273
- package/minilo/theme-chalk/src/number-range-input.scss +0 -9
- package/minilo/theme-chalk/src/search-table.scss +0 -47
- package/minilo/theme-chalk/src/search.scss +0 -20
- package/minilo/theme-chalk/src/tree-select-dialog.scss +0 -0
- package/minilo/theme-chalk/src/tree-select-drawer.scss +0 -0
- package/minilo/theme-chalk/src/tree-select.scss +0 -47
- package/minilo/theme-chalk/src/virtual-list.scss +0 -49
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, useAttrs, ref, onMounted, resolveDirective, createElementBlock, openBlock, normalizeClass, unref, createVNode, renderSlot, withDirectives, createElementVNode, mergeProps, createSlots, renderList, withCtx, createBlock, toHandlers, Fragment, createCommentVNode } from 'vue';
|
|
2
|
-
import _sfc_main$1 from '../search/index.vue2.mjs';
|
|
3
|
-
import { searchTableProps, RequestMethodType } from './props.mjs';
|
|
4
|
-
import { ElTable, ElTableColumn, ElPagination } from 'element-plus';
|
|
5
|
-
import Render from './render.mjs';
|
|
6
|
-
import { bem } from '../../utils/index.mjs';
|
|
7
|
-
import { initRequestInstance } from '../../packages/utils/dist/request/index.mjs';
|
|
8
|
-
import { getNestedValue } from '../../packages/utils/dist/func/common.mjs';
|
|
9
|
-
|
|
10
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
...{
|
|
12
|
-
name: "MlSearchTable",
|
|
13
|
-
inheritAttrs: false
|
|
14
|
-
},
|
|
15
|
-
__name: "index",
|
|
16
|
-
props: /* @__PURE__ */ mergeModels(searchTableProps, {
|
|
17
|
-
"search": { type: Object },
|
|
18
|
-
"searchModifiers": {}
|
|
19
|
-
}),
|
|
20
|
-
emits: /* @__PURE__ */ mergeModels(["reset"], ["update:search"]),
|
|
21
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
|
-
const searchModel = useModel(__props, "search");
|
|
23
|
-
const props = __props;
|
|
24
|
-
const attrs = useAttrs();
|
|
25
|
-
const emit = __emit;
|
|
26
|
-
const axios = initRequestInstance({
|
|
27
|
-
baseURL: "",
|
|
28
|
-
headers: props.headers
|
|
29
|
-
});
|
|
30
|
-
const data = ref([]);
|
|
31
|
-
const loading = ref(false);
|
|
32
|
-
const pagination = ref({
|
|
33
|
-
currentPage: 1,
|
|
34
|
-
pageSize: 20,
|
|
35
|
-
total: 100
|
|
36
|
-
});
|
|
37
|
-
const handleSearch = async (reset2 = true) => {
|
|
38
|
-
try {
|
|
39
|
-
if (reset2) {
|
|
40
|
-
pagination.value.currentPage = 1;
|
|
41
|
-
}
|
|
42
|
-
const defaultParams = {
|
|
43
|
-
...searchModel.value
|
|
44
|
-
};
|
|
45
|
-
if (props.showPagination) {
|
|
46
|
-
Object.assign(defaultParams, {
|
|
47
|
-
pageSize: pagination.value.pageSize,
|
|
48
|
-
currentPage: pagination.value.currentPage
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const params = props.paramsHandler ? props.paramsHandler(defaultParams) : defaultParams;
|
|
52
|
-
const requestParams = [RequestMethodType.GET, RequestMethodType.DELETE].includes(
|
|
53
|
-
props.methodType
|
|
54
|
-
) ? { params } : params;
|
|
55
|
-
loading.value = true;
|
|
56
|
-
const res = await axios[props.methodType](
|
|
57
|
-
props.url,
|
|
58
|
-
requestParams
|
|
59
|
-
);
|
|
60
|
-
data.value = getNestedValue(res, props.responseDataField);
|
|
61
|
-
if (props.showPagination) {
|
|
62
|
-
pagination.value.total = getNestedValue(res, props.responseTotalField);
|
|
63
|
-
}
|
|
64
|
-
} catch (error) {
|
|
65
|
-
console.log(error);
|
|
66
|
-
} finally {
|
|
67
|
-
loading.value = false;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const submit = () => {
|
|
71
|
-
handleSearch();
|
|
72
|
-
};
|
|
73
|
-
const reset = () => {
|
|
74
|
-
emit("reset");
|
|
75
|
-
handleSearch();
|
|
76
|
-
};
|
|
77
|
-
onMounted(() => {
|
|
78
|
-
handleSearch();
|
|
79
|
-
});
|
|
80
|
-
__expose({
|
|
81
|
-
handleSearch,
|
|
82
|
-
data,
|
|
83
|
-
loading,
|
|
84
|
-
pagination
|
|
85
|
-
});
|
|
86
|
-
const tableListeners = Object.keys(attrs).reduce((listeners, key) => {
|
|
87
|
-
if (key.startsWith("on")) {
|
|
88
|
-
listeners[key] = attrs[key];
|
|
89
|
-
}
|
|
90
|
-
return listeners;
|
|
91
|
-
}, {});
|
|
92
|
-
return (_ctx, _cache) => {
|
|
93
|
-
const _directive_loading = resolveDirective("loading");
|
|
94
|
-
return openBlock(), createElementBlock(
|
|
95
|
-
"div",
|
|
96
|
-
{
|
|
97
|
-
class: normalizeClass(unref(bem)("search-table"))
|
|
98
|
-
},
|
|
99
|
-
[
|
|
100
|
-
createVNode(_sfc_main$1, mergeProps({
|
|
101
|
-
onSubmit: submit,
|
|
102
|
-
onReset: reset,
|
|
103
|
-
modelValue: searchModel.value,
|
|
104
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchModel.value = $event)
|
|
105
|
-
}, _ctx.searchProps), createSlots({
|
|
106
|
-
_: 2
|
|
107
|
-
/* DYNAMIC */
|
|
108
|
-
}, [
|
|
109
|
-
renderList(_ctx.searchProps.slots, (item) => {
|
|
110
|
-
return {
|
|
111
|
-
name: item.prop,
|
|
112
|
-
fn: withCtx(() => [
|
|
113
|
-
renderSlot(_ctx.$slots, item.prop)
|
|
114
|
-
])
|
|
115
|
-
};
|
|
116
|
-
})
|
|
117
|
-
]), 1040, ["modelValue"]),
|
|
118
|
-
renderSlot(_ctx.$slots, "prefix"),
|
|
119
|
-
withDirectives((openBlock(), createBlock(unref(ElTable), mergeProps(toHandlers(unref(tableListeners)), {
|
|
120
|
-
class: unref(bem)("search-table", "content")
|
|
121
|
-
}, _ctx.tableProps, {
|
|
122
|
-
border: true,
|
|
123
|
-
data: data.value
|
|
124
|
-
}), {
|
|
125
|
-
default: withCtx(() => [
|
|
126
|
-
(openBlock(true), createElementBlock(
|
|
127
|
-
Fragment,
|
|
128
|
-
null,
|
|
129
|
-
renderList(_ctx.columns, (item, index) => {
|
|
130
|
-
return openBlock(), createBlock(
|
|
131
|
-
unref(ElTableColumn),
|
|
132
|
-
mergeProps({ key: index }, { ref_for: true }, item),
|
|
133
|
-
{
|
|
134
|
-
default: withCtx((scope) => [
|
|
135
|
-
item.slotName ? renderSlot(_ctx.$slots, item.slotName, {
|
|
136
|
-
key: 0,
|
|
137
|
-
index: scope.$index,
|
|
138
|
-
row: scope.row
|
|
139
|
-
}) : createCommentVNode("v-if", true),
|
|
140
|
-
item.render ? (openBlock(), createBlock(unref(Render), {
|
|
141
|
-
key: 1,
|
|
142
|
-
scope,
|
|
143
|
-
render: item.render
|
|
144
|
-
}, null, 8, ["scope", "render"])) : createCommentVNode("v-if", true)
|
|
145
|
-
]),
|
|
146
|
-
_: 2
|
|
147
|
-
/* DYNAMIC */
|
|
148
|
-
},
|
|
149
|
-
1040
|
|
150
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
151
|
-
);
|
|
152
|
-
}),
|
|
153
|
-
128
|
|
154
|
-
/* KEYED_FRAGMENT */
|
|
155
|
-
))
|
|
156
|
-
]),
|
|
157
|
-
_: 3
|
|
158
|
-
/* FORWARDED */
|
|
159
|
-
}, 16, ["class", "data"])), [
|
|
160
|
-
[
|
|
161
|
-
_directive_loading,
|
|
162
|
-
loading.value,
|
|
163
|
-
void 0,
|
|
164
|
-
{ lock: true }
|
|
165
|
-
]
|
|
166
|
-
]),
|
|
167
|
-
createElementVNode(
|
|
168
|
-
"div",
|
|
169
|
-
{
|
|
170
|
-
class: normalizeClass(unref(bem)("search-table", "pagination"))
|
|
171
|
-
},
|
|
172
|
-
[
|
|
173
|
-
_ctx.showPagination ? (openBlock(), createBlock(unref(ElPagination), {
|
|
174
|
-
key: 0,
|
|
175
|
-
onChange: _cache[1] || (_cache[1] = ($event) => handleSearch(false)),
|
|
176
|
-
style: { "margin-top": "10px" },
|
|
177
|
-
background: "",
|
|
178
|
-
layout: "total, sizes, prev, pager, next, jumper",
|
|
179
|
-
"page-size": pagination.value.pageSize,
|
|
180
|
-
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pagination.value.pageSize = $event),
|
|
181
|
-
"current-page": pagination.value.currentPage,
|
|
182
|
-
"onUpdate:currentPage": _cache[3] || (_cache[3] = ($event) => pagination.value.currentPage = $event),
|
|
183
|
-
total: pagination.value.total
|
|
184
|
-
}, null, 8, ["page-size", "current-page", "total"])) : createCommentVNode("v-if", true)
|
|
185
|
-
],
|
|
186
|
-
2
|
|
187
|
-
/* CLASS */
|
|
188
|
-
),
|
|
189
|
-
renderSlot(_ctx.$slots, "suffix")
|
|
190
|
-
],
|
|
191
|
-
2
|
|
192
|
-
/* CLASS */
|
|
193
|
-
);
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
export { _sfc_main as default };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export declare enum RequestMethodType {
|
|
2
|
-
GET = "get",
|
|
3
|
-
POST = "post",
|
|
4
|
-
PUT = "put",
|
|
5
|
-
DELETE = "delete"
|
|
6
|
-
}
|
|
7
|
-
export declare const searchTableProps: {
|
|
8
|
-
methodType: {
|
|
9
|
-
type: () => RequestMethodType;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
url: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
responseDataField: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
responseTotalField: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
headers: {
|
|
25
|
-
type: ObjectConstructor;
|
|
26
|
-
default: () => {};
|
|
27
|
-
};
|
|
28
|
-
showPagination: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
paramsHandler: {
|
|
33
|
-
type: FunctionConstructor;
|
|
34
|
-
default: any;
|
|
35
|
-
};
|
|
36
|
-
render: {
|
|
37
|
-
type: FunctionConstructor;
|
|
38
|
-
default: any;
|
|
39
|
-
};
|
|
40
|
-
searchProps: {
|
|
41
|
-
type: ObjectConstructor;
|
|
42
|
-
default: () => void;
|
|
43
|
-
};
|
|
44
|
-
tableProps: {
|
|
45
|
-
type: ObjectConstructor;
|
|
46
|
-
default: () => {
|
|
47
|
-
border: boolean;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
columns: {
|
|
51
|
-
type: {
|
|
52
|
-
(arrayLength: number): any[];
|
|
53
|
-
(...items: any[]): any[];
|
|
54
|
-
new (arrayLength: number): any[];
|
|
55
|
-
new (...items: any[]): any[];
|
|
56
|
-
isArray(arg: any): arg is any[];
|
|
57
|
-
readonly prototype: any[];
|
|
58
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
59
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
60
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
61
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
62
|
-
of<T>(...items: T[]): T[];
|
|
63
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
64
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
65
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
66
|
-
};
|
|
67
|
-
default: () => any[];
|
|
68
|
-
};
|
|
69
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var RequestMethodType = /* @__PURE__ */ ((RequestMethodType2) => {
|
|
2
|
-
RequestMethodType2["GET"] = "get";
|
|
3
|
-
RequestMethodType2["POST"] = "post";
|
|
4
|
-
RequestMethodType2["PUT"] = "put";
|
|
5
|
-
RequestMethodType2["DELETE"] = "delete";
|
|
6
|
-
return RequestMethodType2;
|
|
7
|
-
})(RequestMethodType || {});
|
|
8
|
-
const searchTableProps = {
|
|
9
|
-
// 请求方式
|
|
10
|
-
methodType: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: "post"
|
|
13
|
-
},
|
|
14
|
-
// 请求地址
|
|
15
|
-
url: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
// 返回结果列表访问字段
|
|
20
|
-
responseDataField: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "data.result"
|
|
23
|
-
},
|
|
24
|
-
// 返回结果总数访问字段
|
|
25
|
-
responseTotalField: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "data.total"
|
|
28
|
-
},
|
|
29
|
-
// 请求头
|
|
30
|
-
headers: {
|
|
31
|
-
type: Object,
|
|
32
|
-
default: () => ({})
|
|
33
|
-
},
|
|
34
|
-
// 是否显示分页
|
|
35
|
-
showPagination: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: true
|
|
38
|
-
},
|
|
39
|
-
// 参数控制函数
|
|
40
|
-
paramsHandler: {
|
|
41
|
-
type: Function,
|
|
42
|
-
default: null
|
|
43
|
-
},
|
|
44
|
-
// 列渲染函数
|
|
45
|
-
render: {
|
|
46
|
-
type: Function,
|
|
47
|
-
default: null
|
|
48
|
-
},
|
|
49
|
-
// Search组件配置
|
|
50
|
-
searchProps: {
|
|
51
|
-
type: Object,
|
|
52
|
-
default: () => {
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
// el-table组件配置
|
|
56
|
-
tableProps: {
|
|
57
|
-
type: Object,
|
|
58
|
-
default: () => ({
|
|
59
|
-
border: true
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
// 表格列
|
|
63
|
-
columns: {
|
|
64
|
-
type: Array,
|
|
65
|
-
default: () => []
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { RequestMethodType, searchTableProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'vue/jsx-runtime';
|
|
2
|
-
declare const Render: import('vue').DefineComponent<{
|
|
3
|
-
render: (...args: any[]) => JSX.Element;
|
|
4
|
-
scope: any;
|
|
5
|
-
}, () => JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
-
render: (...args: any[]) => JSX.Element;
|
|
7
|
-
scope: any;
|
|
8
|
-
}> & Readonly<{}>, {
|
|
9
|
-
scope: Record<string, any>;
|
|
10
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
-
export default Render;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from 'vue';
|
|
2
|
-
|
|
3
|
-
const Render = defineComponent({
|
|
4
|
-
props: {
|
|
5
|
-
render: {
|
|
6
|
-
type: Function
|
|
7
|
-
},
|
|
8
|
-
scope: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: () => {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(props) {
|
|
15
|
-
return () => props.render(props.scope.row, props.scope.$index);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export { Render as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const MlTreeSelect: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
2
|
-
slots: {
|
|
3
|
-
footer?(_: {}): any;
|
|
4
|
-
};
|
|
5
|
-
attrs: any;
|
|
6
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "cancel") => void)) & ((evt: "update:searchText", value: string) => void);
|
|
7
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props: {
|
|
9
|
-
readonly onInput?: (value: string) => any;
|
|
10
|
-
readonly "onUpdate:searchText"?: (value: string) => any;
|
|
11
|
-
readonly onConfirm?: (selectedData: T | T[]) => any;
|
|
12
|
-
readonly onCancel?: () => any;
|
|
13
|
-
searchText?: string;
|
|
14
|
-
treeData: T[];
|
|
15
|
-
treeProps?: Record<string, any>;
|
|
16
|
-
multiple?: boolean;
|
|
17
|
-
defaultExpandAll?: boolean;
|
|
18
|
-
defaultSelectedKeys?: any[];
|
|
19
|
-
nodeKey?: string;
|
|
20
|
-
showSearch?: boolean;
|
|
21
|
-
expandOnClickNode?: boolean;
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
} & import('vue').PublicProps;
|
|
24
|
-
expose(exposed: import('vue').ShallowUnwrapRef<import('./type').TreeSelectExpose>): void;
|
|
25
|
-
attrs: any;
|
|
26
|
-
slots: {
|
|
27
|
-
footer?(_: {}): any;
|
|
28
|
-
};
|
|
29
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "cancel") => void)) & ((evt: "update:searchText", value: string) => void);
|
|
30
|
-
}>) => import('vue').VNode & {
|
|
31
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
|
-
};
|
|
33
|
-
export default MlTreeSelect;
|
|
34
|
-
export * from './type';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TreeSelectProps, TreeSelectExpose } from './type';
|
|
2
|
-
declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly onInput?: (value: string) => any;
|
|
5
|
-
readonly "onUpdate:searchText"?: (value: string) => any;
|
|
6
|
-
readonly onConfirm?: (selectedData: T | T[]) => any;
|
|
7
|
-
readonly onCancel?: () => any;
|
|
8
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onInput" | "onUpdate:searchText" | "onConfirm" | "onCancel"> & ({
|
|
9
|
-
searchText?: string;
|
|
10
|
-
} & TreeSelectProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
11
|
-
expose(exposed: import('vue').ShallowUnwrapRef<TreeSelectExpose>): void;
|
|
12
|
-
attrs: any;
|
|
13
|
-
slots: {
|
|
14
|
-
footer?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "cancel") => void)) & ((evt: "update:searchText", value: string) => void);
|
|
17
|
-
}>) => import('vue').VNode & {
|
|
18
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
type __VLS_PrettifyLocal<T> = {
|
|
22
|
-
[K in keyof T]: T[K];
|
|
23
|
-
} & {};
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, ref, watch, computed, resolveComponent, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, createElementVNode, createVNode, mergeProps, toHandlers, renderSlot, withCtx, createTextVNode, nextTick } from 'vue';
|
|
2
|
-
import { ElTree, ElMessage } from 'element-plus';
|
|
3
|
-
import { Search as search_default } from '../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.mjs';
|
|
4
|
-
import { bem } from '../../utils/index.mjs';
|
|
5
|
-
|
|
6
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
...{
|
|
8
|
-
name: "MlTreeSelect"
|
|
9
|
-
},
|
|
10
|
-
__name: "index",
|
|
11
|
-
props: /* @__PURE__ */ mergeModels({
|
|
12
|
-
treeData: { type: Array, required: true },
|
|
13
|
-
treeProps: { type: Object, required: false, default: () => ({ label: "label", children: "children" }) },
|
|
14
|
-
multiple: { type: Boolean, required: false, default: false },
|
|
15
|
-
defaultExpandAll: { type: Boolean, required: false, default: true },
|
|
16
|
-
defaultSelectedKeys: { type: Array, required: false, default: () => [] },
|
|
17
|
-
nodeKey: { type: String, required: false, default: "id" },
|
|
18
|
-
showSearch: { type: Boolean, required: false, default: true },
|
|
19
|
-
expandOnClickNode: { type: Boolean, required: false },
|
|
20
|
-
placeholder: { type: String, required: false, default: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22" }
|
|
21
|
-
}, {
|
|
22
|
-
"searchText": { type: String, ...{ default: "" } },
|
|
23
|
-
"searchTextModifiers": {}
|
|
24
|
-
}),
|
|
25
|
-
emits: /* @__PURE__ */ mergeModels(["confirm", "cancel", "input"], ["update:searchText"]),
|
|
26
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27
|
-
const props = __props;
|
|
28
|
-
const emit = __emit;
|
|
29
|
-
const searchKeyword = useModel(__props, "searchText");
|
|
30
|
-
const treeRef = ref();
|
|
31
|
-
const selectedKeys = ref([]);
|
|
32
|
-
const selectedData = ref(props.multiple ? [] : {});
|
|
33
|
-
const initSelection = () => {
|
|
34
|
-
selectedKeys.value = [...props.defaultSelectedKeys];
|
|
35
|
-
nextTick(() => {
|
|
36
|
-
if (treeRef.value) {
|
|
37
|
-
if (props.multiple) {
|
|
38
|
-
treeRef.value.setCheckedKeys(props.defaultSelectedKeys);
|
|
39
|
-
} else {
|
|
40
|
-
treeRef.value.setCurrentKey(props.defaultSelectedKeys[0]);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
watch(
|
|
46
|
-
() => props.defaultSelectedKeys,
|
|
47
|
-
() => {
|
|
48
|
-
initSelection();
|
|
49
|
-
},
|
|
50
|
-
{ immediate: true }
|
|
51
|
-
);
|
|
52
|
-
const filteredTreeData = computed(() => {
|
|
53
|
-
if (!searchKeyword.value) return props.treeData;
|
|
54
|
-
const filterNode = (nodes) => {
|
|
55
|
-
return nodes.map((node) => {
|
|
56
|
-
const children = filterNode(node[props.treeProps.children || "children"] || []);
|
|
57
|
-
const isMatch = node[props.treeProps.label || "label"].includes(
|
|
58
|
-
searchKeyword.value
|
|
59
|
-
);
|
|
60
|
-
if (isMatch || children.length > 0) {
|
|
61
|
-
return { ...node, [props.treeProps.children || "children"]: children };
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
}).filter(Boolean);
|
|
65
|
-
};
|
|
66
|
-
return filterNode(props.treeData);
|
|
67
|
-
});
|
|
68
|
-
const handleCheckChange = (data, checked) => {
|
|
69
|
-
const nodeKeyField = props.nodeKey;
|
|
70
|
-
if (checked) {
|
|
71
|
-
selectedKeys.value.push(data[nodeKeyField]);
|
|
72
|
-
if (Array.isArray(selectedData.value)) {
|
|
73
|
-
selectedData.value.push(data);
|
|
74
|
-
}
|
|
75
|
-
} else {
|
|
76
|
-
selectedKeys.value = selectedKeys.value.filter((key) => key !== data[nodeKeyField]);
|
|
77
|
-
if (Array.isArray(selectedData.value)) {
|
|
78
|
-
selectedData.value = selectedData.value.filter(
|
|
79
|
-
(item) => item[nodeKeyField] !== data[nodeKeyField]
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const handleNodeClick = (data) => {
|
|
85
|
-
if (!props.multiple) {
|
|
86
|
-
const nodeKeyField = props.nodeKey;
|
|
87
|
-
selectedKeys.value = [data[nodeKeyField]];
|
|
88
|
-
selectedData.value = data;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
const reset = () => {
|
|
92
|
-
searchKeyword.value = "";
|
|
93
|
-
selectedKeys.value = [];
|
|
94
|
-
selectedData.value = props.multiple ? [] : {};
|
|
95
|
-
if (treeRef.value) {
|
|
96
|
-
if (props.multiple) {
|
|
97
|
-
treeRef.value.setCheckedKeys([]);
|
|
98
|
-
} else {
|
|
99
|
-
treeRef.value.setCurrentKey(void 0);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
const getSelectedData = () => selectedData.value;
|
|
104
|
-
const getSelectedKeys = () => selectedKeys.value;
|
|
105
|
-
const handleConfirm = () => {
|
|
106
|
-
if (selectedKeys.value.length === 0) {
|
|
107
|
-
ElMessage.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u8282\u70B9");
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
emit("confirm", selectedData.value);
|
|
111
|
-
};
|
|
112
|
-
const handleCancel = () => {
|
|
113
|
-
emit("cancel");
|
|
114
|
-
};
|
|
115
|
-
__expose({
|
|
116
|
-
reset,
|
|
117
|
-
getSelectedData,
|
|
118
|
-
getSelectedKeys,
|
|
119
|
-
// el-tree 方法透传
|
|
120
|
-
getCheckedNodes: () => treeRef.value?.getCheckedNodes() || [],
|
|
121
|
-
getCheckedKeys: () => treeRef.value?.getCheckedKeys() || [],
|
|
122
|
-
getHalfCheckedNodes: () => treeRef.value?.getHalfCheckedNodes() || [],
|
|
123
|
-
getHalfCheckedKeys: () => treeRef.value?.getHalfCheckedKeys() || [],
|
|
124
|
-
getCurrentKey: () => treeRef.value?.getCurrentKey() ?? void 0,
|
|
125
|
-
getCurrentNode: () => treeRef.value?.getCurrentNode(),
|
|
126
|
-
setCheckedKeys: (keys) => treeRef.value?.setCheckedKeys(keys),
|
|
127
|
-
setCheckedNodes: (nodes) => treeRef.value?.setCheckedNodes(nodes),
|
|
128
|
-
setCurrentKey: (key) => treeRef.value?.setCurrentKey(key),
|
|
129
|
-
setCurrentNode: (node) => treeRef.value?.setCurrentNode(node),
|
|
130
|
-
getNode: (key) => treeRef.value?.getNode(key),
|
|
131
|
-
filter: (value) => treeRef.value?.filter(value),
|
|
132
|
-
updateKeyChildren: (key, children) => treeRef.value?.updateKeyChildren(key, children),
|
|
133
|
-
remove: (node) => treeRef.value?.remove(node),
|
|
134
|
-
append: (data, parentNode) => treeRef.value?.append(data, parentNode),
|
|
135
|
-
insertBefore: (data, refNode) => treeRef.value?.insertBefore(data, refNode),
|
|
136
|
-
insertAfter: (data, refNode) => treeRef.value?.insertAfter(data, refNode),
|
|
137
|
-
//
|
|
138
|
-
input: (value) => emit("input", value)
|
|
139
|
-
});
|
|
140
|
-
return (_ctx, _cache) => {
|
|
141
|
-
const _component_el_input = resolveComponent("el-input");
|
|
142
|
-
const _component_el_button = resolveComponent("el-button");
|
|
143
|
-
return openBlock(), createElementBlock(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
class: normalizeClass(unref(bem)("tree-select"))
|
|
147
|
-
},
|
|
148
|
-
[
|
|
149
|
-
createCommentVNode(" \u641C\u7D22\u6846 "),
|
|
150
|
-
__props.showSearch ? (openBlock(), createBlock(_component_el_input, {
|
|
151
|
-
key: 0,
|
|
152
|
-
modelValue: searchKeyword.value,
|
|
153
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKeyword.value = $event),
|
|
154
|
-
placeholder: __props.placeholder,
|
|
155
|
-
clearable: "",
|
|
156
|
-
"prefix-icon": unref(search_default),
|
|
157
|
-
class: normalizeClass(unref(bem)("tree-select", "search")),
|
|
158
|
-
onInput: _cache[1] || (_cache[1] = (value) => emit("input", value))
|
|
159
|
-
}, null, 8, ["modelValue", "placeholder", "prefix-icon", "class"])) : createCommentVNode("v-if", true),
|
|
160
|
-
createCommentVNode(" \u6811\u5F62\u9009\u62E9 "),
|
|
161
|
-
createElementVNode(
|
|
162
|
-
"div",
|
|
163
|
-
{
|
|
164
|
-
class: normalizeClass(unref(bem)("tree-select", "tree"))
|
|
165
|
-
},
|
|
166
|
-
[
|
|
167
|
-
createVNode(unref(ElTree), mergeProps({
|
|
168
|
-
ref_key: "treeRef",
|
|
169
|
-
ref: treeRef,
|
|
170
|
-
data: filteredTreeData.value,
|
|
171
|
-
props: __props.treeProps,
|
|
172
|
-
"show-checkbox": __props.multiple,
|
|
173
|
-
"default-expand-all": __props.defaultExpandAll,
|
|
174
|
-
"expand-on-click-node": __props.expandOnClickNode,
|
|
175
|
-
"node-key": __props.nodeKey,
|
|
176
|
-
onCheckChange: handleCheckChange,
|
|
177
|
-
onNodeClick: handleNodeClick
|
|
178
|
-
}, _ctx.$attrs, toHandlers(_ctx.$attrs)), null, 16, ["data", "props", "show-checkbox", "default-expand-all", "expand-on-click-node", "node-key"])
|
|
179
|
-
],
|
|
180
|
-
2
|
|
181
|
-
/* CLASS */
|
|
182
|
-
),
|
|
183
|
-
createCommentVNode(" \u5E95\u90E8\u6309\u94AE\u63D2\u69FD "),
|
|
184
|
-
createElementVNode(
|
|
185
|
-
"div",
|
|
186
|
-
{
|
|
187
|
-
class: normalizeClass(unref(bem)("tree-select", "footer"))
|
|
188
|
-
},
|
|
189
|
-
[
|
|
190
|
-
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
191
|
-
createVNode(_component_el_button, { onClick: handleCancel }, {
|
|
192
|
-
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
193
|
-
createTextVNode(
|
|
194
|
-
"\u53D6\u6D88",
|
|
195
|
-
-1
|
|
196
|
-
/* CACHED */
|
|
197
|
-
)
|
|
198
|
-
])]),
|
|
199
|
-
_: 1
|
|
200
|
-
/* STABLE */
|
|
201
|
-
}),
|
|
202
|
-
createVNode(_component_el_button, {
|
|
203
|
-
type: "primary",
|
|
204
|
-
onClick: handleConfirm
|
|
205
|
-
}, {
|
|
206
|
-
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
207
|
-
createTextVNode(
|
|
208
|
-
"\u786E\u5B9A",
|
|
209
|
-
-1
|
|
210
|
-
/* CACHED */
|
|
211
|
-
)
|
|
212
|
-
])]),
|
|
213
|
-
_: 1
|
|
214
|
-
/* STABLE */
|
|
215
|
-
})
|
|
216
|
-
])
|
|
217
|
-
],
|
|
218
|
-
2
|
|
219
|
-
/* CLASS */
|
|
220
|
-
)
|
|
221
|
-
],
|
|
222
|
-
2
|
|
223
|
-
/* CLASS */
|
|
224
|
-
);
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
export { _sfc_main as default };
|