@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,233 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var index$1 = require('../../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');
|
|
8
|
-
var index = require('../../utils/index.js');
|
|
9
|
-
|
|
10
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
-
...{
|
|
12
|
-
name: "MlTreeSelect"
|
|
13
|
-
},
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: /* @__PURE__ */ vue.mergeModels({
|
|
16
|
-
treeData: { type: Array, required: true },
|
|
17
|
-
treeProps: { type: Object, required: false, default: () => ({ label: "label", children: "children" }) },
|
|
18
|
-
multiple: { type: Boolean, required: false, default: false },
|
|
19
|
-
defaultExpandAll: { type: Boolean, required: false, default: true },
|
|
20
|
-
defaultSelectedKeys: { type: Array, required: false, default: () => [] },
|
|
21
|
-
nodeKey: { type: String, required: false, default: "id" },
|
|
22
|
-
showSearch: { type: Boolean, required: false, default: true },
|
|
23
|
-
expandOnClickNode: { type: Boolean, required: false },
|
|
24
|
-
placeholder: { type: String, required: false, default: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22" }
|
|
25
|
-
}, {
|
|
26
|
-
"searchText": { type: String, ...{ default: "" } },
|
|
27
|
-
"searchTextModifiers": {}
|
|
28
|
-
}),
|
|
29
|
-
emits: /* @__PURE__ */ vue.mergeModels(["confirm", "cancel", "input"], ["update:searchText"]),
|
|
30
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
31
|
-
const props = __props;
|
|
32
|
-
const emit = __emit;
|
|
33
|
-
const searchKeyword = vue.useModel(__props, "searchText");
|
|
34
|
-
const treeRef = vue.ref();
|
|
35
|
-
const selectedKeys = vue.ref([]);
|
|
36
|
-
const selectedData = vue.ref(props.multiple ? [] : {});
|
|
37
|
-
const initSelection = () => {
|
|
38
|
-
selectedKeys.value = [...props.defaultSelectedKeys];
|
|
39
|
-
vue.nextTick(() => {
|
|
40
|
-
if (treeRef.value) {
|
|
41
|
-
if (props.multiple) {
|
|
42
|
-
treeRef.value.setCheckedKeys(props.defaultSelectedKeys);
|
|
43
|
-
} else {
|
|
44
|
-
treeRef.value.setCurrentKey(props.defaultSelectedKeys[0]);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
vue.watch(
|
|
50
|
-
() => props.defaultSelectedKeys,
|
|
51
|
-
() => {
|
|
52
|
-
initSelection();
|
|
53
|
-
},
|
|
54
|
-
{ immediate: true }
|
|
55
|
-
);
|
|
56
|
-
const filteredTreeData = vue.computed(() => {
|
|
57
|
-
if (!searchKeyword.value) return props.treeData;
|
|
58
|
-
const filterNode = (nodes) => {
|
|
59
|
-
return nodes.map((node) => {
|
|
60
|
-
const children = filterNode(node[props.treeProps.children || "children"] || []);
|
|
61
|
-
const isMatch = node[props.treeProps.label || "label"].includes(
|
|
62
|
-
searchKeyword.value
|
|
63
|
-
);
|
|
64
|
-
if (isMatch || children.length > 0) {
|
|
65
|
-
return { ...node, [props.treeProps.children || "children"]: children };
|
|
66
|
-
}
|
|
67
|
-
return null;
|
|
68
|
-
}).filter(Boolean);
|
|
69
|
-
};
|
|
70
|
-
return filterNode(props.treeData);
|
|
71
|
-
});
|
|
72
|
-
const handleCheckChange = (data, checked) => {
|
|
73
|
-
const nodeKeyField = props.nodeKey;
|
|
74
|
-
if (checked) {
|
|
75
|
-
selectedKeys.value.push(data[nodeKeyField]);
|
|
76
|
-
if (Array.isArray(selectedData.value)) {
|
|
77
|
-
selectedData.value.push(data);
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
selectedKeys.value = selectedKeys.value.filter((key) => key !== data[nodeKeyField]);
|
|
81
|
-
if (Array.isArray(selectedData.value)) {
|
|
82
|
-
selectedData.value = selectedData.value.filter(
|
|
83
|
-
(item) => item[nodeKeyField] !== data[nodeKeyField]
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const handleNodeClick = (data) => {
|
|
89
|
-
if (!props.multiple) {
|
|
90
|
-
const nodeKeyField = props.nodeKey;
|
|
91
|
-
selectedKeys.value = [data[nodeKeyField]];
|
|
92
|
-
selectedData.value = data;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
const reset = () => {
|
|
96
|
-
searchKeyword.value = "";
|
|
97
|
-
selectedKeys.value = [];
|
|
98
|
-
selectedData.value = props.multiple ? [] : {};
|
|
99
|
-
if (treeRef.value) {
|
|
100
|
-
if (props.multiple) {
|
|
101
|
-
treeRef.value.setCheckedKeys([]);
|
|
102
|
-
} else {
|
|
103
|
-
treeRef.value.setCurrentKey(void 0);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
const getSelectedData = () => selectedData.value;
|
|
108
|
-
const getSelectedKeys = () => selectedKeys.value;
|
|
109
|
-
const handleConfirm = () => {
|
|
110
|
-
if (selectedKeys.value.length === 0) {
|
|
111
|
-
elementPlus.ElMessage.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u8282\u70B9");
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
emit("confirm", selectedData.value);
|
|
115
|
-
};
|
|
116
|
-
const handleCancel = () => {
|
|
117
|
-
emit("cancel");
|
|
118
|
-
};
|
|
119
|
-
__expose({
|
|
120
|
-
reset,
|
|
121
|
-
getSelectedData,
|
|
122
|
-
getSelectedKeys,
|
|
123
|
-
// el-tree 方法透传
|
|
124
|
-
getCheckedNodes: () => treeRef.value?.getCheckedNodes() || [],
|
|
125
|
-
getCheckedKeys: () => treeRef.value?.getCheckedKeys() || [],
|
|
126
|
-
getHalfCheckedNodes: () => treeRef.value?.getHalfCheckedNodes() || [],
|
|
127
|
-
getHalfCheckedKeys: () => treeRef.value?.getHalfCheckedKeys() || [],
|
|
128
|
-
getCurrentKey: () => treeRef.value?.getCurrentKey() ?? void 0,
|
|
129
|
-
getCurrentNode: () => treeRef.value?.getCurrentNode(),
|
|
130
|
-
setCheckedKeys: (keys) => treeRef.value?.setCheckedKeys(keys),
|
|
131
|
-
setCheckedNodes: (nodes) => treeRef.value?.setCheckedNodes(nodes),
|
|
132
|
-
setCurrentKey: (key) => treeRef.value?.setCurrentKey(key),
|
|
133
|
-
setCurrentNode: (node) => treeRef.value?.setCurrentNode(node),
|
|
134
|
-
getNode: (key) => treeRef.value?.getNode(key),
|
|
135
|
-
filter: (value) => treeRef.value?.filter(value),
|
|
136
|
-
updateKeyChildren: (key, children) => treeRef.value?.updateKeyChildren(key, children),
|
|
137
|
-
remove: (node) => treeRef.value?.remove(node),
|
|
138
|
-
append: (data, parentNode) => treeRef.value?.append(data, parentNode),
|
|
139
|
-
insertBefore: (data, refNode) => treeRef.value?.insertBefore(data, refNode),
|
|
140
|
-
insertAfter: (data, refNode) => treeRef.value?.insertAfter(data, refNode),
|
|
141
|
-
//
|
|
142
|
-
input: (value) => emit("input", value)
|
|
143
|
-
});
|
|
144
|
-
return (_ctx, _cache) => {
|
|
145
|
-
const _component_el_input = vue.resolveComponent("el-input");
|
|
146
|
-
const _component_el_button = vue.resolveComponent("el-button");
|
|
147
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
148
|
-
"div",
|
|
149
|
-
{
|
|
150
|
-
class: vue.normalizeClass(vue.unref(index.bem)("tree-select"))
|
|
151
|
-
},
|
|
152
|
-
[
|
|
153
|
-
vue.createCommentVNode(" \u641C\u7D22\u6846 "),
|
|
154
|
-
__props.showSearch ? (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
155
|
-
key: 0,
|
|
156
|
-
modelValue: searchKeyword.value,
|
|
157
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKeyword.value = $event),
|
|
158
|
-
placeholder: __props.placeholder,
|
|
159
|
-
clearable: "",
|
|
160
|
-
"prefix-icon": vue.unref(index$1.Search),
|
|
161
|
-
class: vue.normalizeClass(vue.unref(index.bem)("tree-select", "search")),
|
|
162
|
-
onInput: _cache[1] || (_cache[1] = (value) => emit("input", value))
|
|
163
|
-
}, null, 8, ["modelValue", "placeholder", "prefix-icon", "class"])) : vue.createCommentVNode("v-if", true),
|
|
164
|
-
vue.createCommentVNode(" \u6811\u5F62\u9009\u62E9 "),
|
|
165
|
-
vue.createElementVNode(
|
|
166
|
-
"div",
|
|
167
|
-
{
|
|
168
|
-
class: vue.normalizeClass(vue.unref(index.bem)("tree-select", "tree"))
|
|
169
|
-
},
|
|
170
|
-
[
|
|
171
|
-
vue.createVNode(vue.unref(elementPlus.ElTree), vue.mergeProps({
|
|
172
|
-
ref_key: "treeRef",
|
|
173
|
-
ref: treeRef,
|
|
174
|
-
data: filteredTreeData.value,
|
|
175
|
-
props: __props.treeProps,
|
|
176
|
-
"show-checkbox": __props.multiple,
|
|
177
|
-
"default-expand-all": __props.defaultExpandAll,
|
|
178
|
-
"expand-on-click-node": __props.expandOnClickNode,
|
|
179
|
-
"node-key": __props.nodeKey,
|
|
180
|
-
onCheckChange: handleCheckChange,
|
|
181
|
-
onNodeClick: handleNodeClick
|
|
182
|
-
}, _ctx.$attrs, vue.toHandlers(_ctx.$attrs)), null, 16, ["data", "props", "show-checkbox", "default-expand-all", "expand-on-click-node", "node-key"])
|
|
183
|
-
],
|
|
184
|
-
2
|
|
185
|
-
/* CLASS */
|
|
186
|
-
),
|
|
187
|
-
vue.createCommentVNode(" \u5E95\u90E8\u6309\u94AE\u63D2\u69FD "),
|
|
188
|
-
vue.createElementVNode(
|
|
189
|
-
"div",
|
|
190
|
-
{
|
|
191
|
-
class: vue.normalizeClass(vue.unref(index.bem)("tree-select", "footer"))
|
|
192
|
-
},
|
|
193
|
-
[
|
|
194
|
-
vue.renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
195
|
-
vue.createVNode(_component_el_button, { onClick: handleCancel }, {
|
|
196
|
-
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
197
|
-
vue.createTextVNode(
|
|
198
|
-
"\u53D6\u6D88",
|
|
199
|
-
-1
|
|
200
|
-
/* CACHED */
|
|
201
|
-
)
|
|
202
|
-
])]),
|
|
203
|
-
_: 1
|
|
204
|
-
/* STABLE */
|
|
205
|
-
}),
|
|
206
|
-
vue.createVNode(_component_el_button, {
|
|
207
|
-
type: "primary",
|
|
208
|
-
onClick: handleConfirm
|
|
209
|
-
}, {
|
|
210
|
-
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
211
|
-
vue.createTextVNode(
|
|
212
|
-
"\u786E\u5B9A",
|
|
213
|
-
-1
|
|
214
|
-
/* CACHED */
|
|
215
|
-
)
|
|
216
|
-
])]),
|
|
217
|
-
_: 1
|
|
218
|
-
/* STABLE */
|
|
219
|
-
})
|
|
220
|
-
])
|
|
221
|
-
],
|
|
222
|
-
2
|
|
223
|
-
/* CLASS */
|
|
224
|
-
)
|
|
225
|
-
],
|
|
226
|
-
2
|
|
227
|
-
/* CLASS */
|
|
228
|
-
);
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
exports.default = _sfc_main;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface TreeSelectProps<T = any> {
|
|
2
|
-
treeData: T[];
|
|
3
|
-
treeProps?: Record<string, any>;
|
|
4
|
-
multiple?: boolean;
|
|
5
|
-
defaultExpandAll?: boolean;
|
|
6
|
-
defaultSelectedKeys?: any[];
|
|
7
|
-
nodeKey?: string;
|
|
8
|
-
showSearch?: boolean;
|
|
9
|
-
expandOnClickNode?: boolean;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TreeSelectExpose {
|
|
13
|
-
reset: () => void;
|
|
14
|
-
getSelectedData: () => any;
|
|
15
|
-
getSelectedKeys: () => any[];
|
|
16
|
-
getCheckedNodes: () => any[];
|
|
17
|
-
getCheckedKeys: () => any[];
|
|
18
|
-
getHalfCheckedNodes: () => any[];
|
|
19
|
-
getHalfCheckedKeys: () => any[];
|
|
20
|
-
getCurrentKey: () => string | number | undefined;
|
|
21
|
-
getCurrentNode: () => any;
|
|
22
|
-
setCheckedKeys: (keys: any[]) => void;
|
|
23
|
-
setCheckedNodes: (nodes: any[]) => void;
|
|
24
|
-
setCurrentKey: (key: string | number | undefined) => void;
|
|
25
|
-
setCurrentNode: (node: any) => void;
|
|
26
|
-
getNode: (key: string | number) => any;
|
|
27
|
-
filter: (value: string) => void;
|
|
28
|
-
updateKeyChildren: (key: string | number, children: any[]) => void;
|
|
29
|
-
remove: (node: any) => void;
|
|
30
|
-
append: (data: any, parentNode?: any) => void;
|
|
31
|
-
insertBefore: (data: any, refNode: any) => void;
|
|
32
|
-
insertAfter: (data: any, refNode: any) => void;
|
|
33
|
-
input: (value: string) => void;
|
|
34
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare const MlTreeSelectDialog: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
2
|
-
slots: {};
|
|
3
|
-
attrs: any;
|
|
4
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "close") => void)) & ((evt: "update:modelValue", value: boolean) => void);
|
|
5
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: {
|
|
7
|
-
readonly onInput?: (value: string) => any;
|
|
8
|
-
readonly "onUpdate:modelValue"?: (value: boolean) => any;
|
|
9
|
-
readonly onClose?: () => any;
|
|
10
|
-
readonly onConfirm?: (selectedData: T | T[]) => any;
|
|
11
|
-
modelValue?: boolean;
|
|
12
|
-
treeData: T[];
|
|
13
|
-
treeProps?: Record<string, any>;
|
|
14
|
-
multiple?: boolean;
|
|
15
|
-
defaultExpandAll?: boolean;
|
|
16
|
-
defaultSelectedKeys?: any[];
|
|
17
|
-
nodeKey?: string;
|
|
18
|
-
showSearch?: boolean;
|
|
19
|
-
expandOnClickNode?: boolean;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
width?: string;
|
|
23
|
-
readonly center?: boolean;
|
|
24
|
-
readonly appendTo?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>))[], unknown, unknown>;
|
|
25
|
-
readonly showClose?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
26
|
-
readonly appendToBody?: boolean;
|
|
27
|
-
readonly destroyOnClose?: boolean;
|
|
28
|
-
readonly closeOnClickModal?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
29
|
-
readonly closeOnPressEscape?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
30
|
-
readonly lockScroll?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
|
-
readonly modal?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
|
-
readonly modalPenetrable?: boolean;
|
|
33
|
-
readonly openDelay?: number;
|
|
34
|
-
readonly closeDelay?: number;
|
|
35
|
-
readonly trapFocus?: boolean;
|
|
36
|
-
readonly headerAriaLevel?: string;
|
|
37
|
-
readonly fullscreen?: boolean;
|
|
38
|
-
readonly ariaLevel?: string;
|
|
39
|
-
readonly top?: string;
|
|
40
|
-
readonly overflow?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
|
-
readonly transition?: undefined;
|
|
42
|
-
readonly zIndex?: number;
|
|
43
|
-
readonly draggable?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
44
|
-
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn;
|
|
45
|
-
readonly modalClass?: string;
|
|
46
|
-
readonly headerClass?: string;
|
|
47
|
-
readonly bodyClass?: string;
|
|
48
|
-
readonly footerClass?: string;
|
|
49
|
-
readonly alignCenter?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
50
|
-
readonly closeIcon?: unknown;
|
|
51
|
-
} & import('vue').PublicProps;
|
|
52
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
53
|
-
input: (value: string) => void;
|
|
54
|
-
searchText: import('vue').Ref<string, string>;
|
|
55
|
-
treeRef: import('vue').Ref<import('..').TreeSelectExpose, import('..').TreeSelectExpose>;
|
|
56
|
-
}>): void;
|
|
57
|
-
attrs: any;
|
|
58
|
-
slots: {};
|
|
59
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "close") => void)) & ((evt: "update:modelValue", value: boolean) => void);
|
|
60
|
-
}>) => import('vue').VNode & {
|
|
61
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
62
|
-
};
|
|
63
|
-
export default MlTreeSelectDialog;
|
|
64
|
-
export * from './type';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var index = require('../../utils/index.js');
|
|
6
|
-
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
7
|
-
var type = require('./type.js');
|
|
8
|
-
|
|
9
|
-
const MlTreeSelectDialog = index.withInstall(index_vue_vue_type_script_setup_true_lang.default);
|
|
10
|
-
|
|
11
|
-
exports.dialogPropKeys = type.dialogPropKeys;
|
|
12
|
-
exports.MlTreeSelectDialog = MlTreeSelectDialog;
|
|
13
|
-
exports.default = MlTreeSelectDialog;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TreeSelectDialogProps } from './type';
|
|
2
|
-
import { TreeSelectExpose } from '../tree-select/type';
|
|
3
|
-
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<{
|
|
4
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
-
readonly onInput?: (value: string) => any;
|
|
6
|
-
readonly "onUpdate:modelValue"?: (value: boolean) => any;
|
|
7
|
-
readonly onConfirm?: (selectedData: T | T[]) => any;
|
|
8
|
-
readonly onClose?: () => any;
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onInput" | "onUpdate:modelValue" | "onClose" | "onConfirm"> & ({
|
|
10
|
-
modelValue?: boolean;
|
|
11
|
-
} & TreeSelectDialogProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
12
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
13
|
-
input: (value: string) => void;
|
|
14
|
-
searchText: import('vue').Ref<string, string>;
|
|
15
|
-
treeRef: import('vue').Ref<TreeSelectExpose, TreeSelectExpose>;
|
|
16
|
-
}>): void;
|
|
17
|
-
attrs: any;
|
|
18
|
-
slots: {};
|
|
19
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "close") => void)) & ((evt: "update:modelValue", value: boolean) => void);
|
|
20
|
-
}>) => import('vue').VNode & {
|
|
21
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var index$1 = require('../tree-select/index.js');
|
|
7
|
-
var type = require('./type.js');
|
|
8
|
-
var index = require('../../utils/index.js');
|
|
9
|
-
|
|
10
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
-
...{
|
|
12
|
-
name: "MlTreeSelectDialog"
|
|
13
|
-
},
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: /* @__PURE__ */ vue.mergeModels({
|
|
16
|
-
treeData: { type: Array, required: true },
|
|
17
|
-
treeProps: { type: Object, required: false, default: () => ({ label: "label", children: "children" }) },
|
|
18
|
-
multiple: { type: Boolean, required: false, default: false },
|
|
19
|
-
defaultExpandAll: { type: Boolean, required: false, default: true },
|
|
20
|
-
defaultSelectedKeys: { type: Array, required: false, default: () => [] },
|
|
21
|
-
nodeKey: { type: String, required: false, default: "id" },
|
|
22
|
-
showSearch: { type: Boolean, required: false, default: true },
|
|
23
|
-
expandOnClickNode: { type: Boolean, required: false },
|
|
24
|
-
placeholder: { type: String, required: false },
|
|
25
|
-
title: { type: String, required: false, default: "\u6811\u5F62\u9009\u62E9" },
|
|
26
|
-
width: { type: String, required: false, default: "500px" },
|
|
27
|
-
appendToBody: { type: Boolean, required: false },
|
|
28
|
-
appendTo: { type: null, required: false },
|
|
29
|
-
beforeClose: { type: null, required: false },
|
|
30
|
-
destroyOnClose: { type: Boolean, required: false },
|
|
31
|
-
closeOnClickModal: { type: Boolean, required: false },
|
|
32
|
-
closeOnPressEscape: { type: Boolean, required: false },
|
|
33
|
-
lockScroll: { type: Boolean, required: false },
|
|
34
|
-
modal: { type: Boolean, required: false },
|
|
35
|
-
modalPenetrable: { type: Boolean, required: false },
|
|
36
|
-
openDelay: { type: Number, required: false },
|
|
37
|
-
closeDelay: { type: Number, required: false },
|
|
38
|
-
top: { type: null, required: false },
|
|
39
|
-
modelValue: { type: Boolean, required: false },
|
|
40
|
-
modalClass: { type: String, required: false },
|
|
41
|
-
headerClass: { type: String, required: false },
|
|
42
|
-
bodyClass: { type: String, required: false },
|
|
43
|
-
footerClass: { type: String, required: false },
|
|
44
|
-
zIndex: { type: null, required: false },
|
|
45
|
-
trapFocus: { type: Boolean, required: false },
|
|
46
|
-
headerAriaLevel: { type: String, required: false },
|
|
47
|
-
transition: { type: null, required: false },
|
|
48
|
-
center: { type: Boolean, required: false },
|
|
49
|
-
alignCenter: { type: Boolean, required: false },
|
|
50
|
-
closeIcon: { type: null, required: false },
|
|
51
|
-
draggable: { type: Boolean, required: false },
|
|
52
|
-
overflow: { type: Boolean, required: false },
|
|
53
|
-
fullscreen: { type: Boolean, required: false },
|
|
54
|
-
showClose: { type: Boolean, required: false },
|
|
55
|
-
ariaLevel: { type: String, required: false }
|
|
56
|
-
}, {
|
|
57
|
-
"modelValue": { type: Boolean, ...{ default: false } },
|
|
58
|
-
"modelModifiers": {}
|
|
59
|
-
}),
|
|
60
|
-
emits: /* @__PURE__ */ vue.mergeModels(["confirm", "close", "input"], ["update:modelValue"]),
|
|
61
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
62
|
-
const visible = vue.useModel(__props, "modelValue");
|
|
63
|
-
const props = __props;
|
|
64
|
-
const emit = __emit;
|
|
65
|
-
const attrs = vue.useAttrs();
|
|
66
|
-
const dialogAttrs = vue.computed(() => {
|
|
67
|
-
const result = {
|
|
68
|
-
title: props.title,
|
|
69
|
-
width: props.width
|
|
70
|
-
};
|
|
71
|
-
Object.keys(attrs).forEach((key) => {
|
|
72
|
-
if (type.dialogPropKeys.includes(key)) {
|
|
73
|
-
result[key] = attrs[key];
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
return result;
|
|
77
|
-
});
|
|
78
|
-
const treeSelectAttrs = vue.computed(() => {
|
|
79
|
-
const result = {
|
|
80
|
-
treeData: props.treeData,
|
|
81
|
-
treeProps: props.treeProps,
|
|
82
|
-
multiple: props.multiple,
|
|
83
|
-
defaultExpandAll: props.defaultExpandAll,
|
|
84
|
-
defaultSelectedKeys: props.defaultSelectedKeys,
|
|
85
|
-
nodeKey: props.nodeKey,
|
|
86
|
-
showSearch: props.showSearch
|
|
87
|
-
};
|
|
88
|
-
Object.keys(attrs).forEach((key) => {
|
|
89
|
-
if (!type.dialogPropKeys.includes(key) && !key.startsWith("on")) {
|
|
90
|
-
result[key] = attrs[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
return result;
|
|
94
|
-
});
|
|
95
|
-
const treeSelectRef = vue.ref();
|
|
96
|
-
const searchText = vue.ref("");
|
|
97
|
-
vue.watch(visible, (val) => {
|
|
98
|
-
if (!val) {
|
|
99
|
-
searchText.value = "";
|
|
100
|
-
if (treeSelectRef.value) {
|
|
101
|
-
treeSelectRef.value.reset();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
const handleBeforeClose = () => {
|
|
106
|
-
visible.value = false;
|
|
107
|
-
};
|
|
108
|
-
const handleConfirm = (selectedData) => {
|
|
109
|
-
emit("confirm", selectedData);
|
|
110
|
-
visible.value = false;
|
|
111
|
-
};
|
|
112
|
-
const handleCancel = () => {
|
|
113
|
-
visible.value = false;
|
|
114
|
-
};
|
|
115
|
-
__expose({
|
|
116
|
-
input: (value) => emit("input", value),
|
|
117
|
-
searchText,
|
|
118
|
-
treeRef: treeSelectRef
|
|
119
|
-
});
|
|
120
|
-
return (_ctx, _cache) => {
|
|
121
|
-
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
122
|
-
return vue.openBlock(), vue.createBlock(_component_el_dialog, vue.mergeProps({
|
|
123
|
-
modelValue: visible.value,
|
|
124
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event)
|
|
125
|
-
}, dialogAttrs.value, {
|
|
126
|
-
class: vue.unref(index.bem)("tree-select-dialog"),
|
|
127
|
-
"before-close": handleBeforeClose,
|
|
128
|
-
onClose: _cache[2] || (_cache[2] = ($event) => emit("close"))
|
|
129
|
-
}), {
|
|
130
|
-
default: vue.withCtx(() => [
|
|
131
|
-
vue.createVNode(vue.unref(index$1.MlTreeSelect), vue.mergeProps({
|
|
132
|
-
ref_key: "treeSelectRef",
|
|
133
|
-
ref: treeSelectRef,
|
|
134
|
-
"search-text": searchText.value,
|
|
135
|
-
"onUpdate:searchText": _cache[0] || (_cache[0] = ($event) => searchText.value = $event),
|
|
136
|
-
"tree-data": props.treeData
|
|
137
|
-
}, treeSelectAttrs.value, vue.toHandlers(_ctx.$attrs), {
|
|
138
|
-
onConfirm: handleConfirm,
|
|
139
|
-
onCancel: handleCancel
|
|
140
|
-
}), null, 16, ["search-text", "tree-data"])
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
/* STABLE */
|
|
144
|
-
}, 16, ["modelValue", "class"]);
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
exports.default = _sfc_main;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TreeSelectProps } from '../tree-select/type';
|
|
2
|
-
import { DialogProps } from 'element-plus';
|
|
3
|
-
export interface DialogContainerProps extends Partial<DialogProps> {
|
|
4
|
-
title?: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface TreeSelectDialogProps<T = any> extends TreeSelectProps<T>, DialogContainerProps {
|
|
8
|
-
}
|
|
9
|
-
export declare const dialogPropKeys: string[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const dialogPropKeys = [
|
|
4
|
-
"title",
|
|
5
|
-
"width",
|
|
6
|
-
"fullscreen",
|
|
7
|
-
"top",
|
|
8
|
-
"modal",
|
|
9
|
-
"modalClass",
|
|
10
|
-
"appendToBody",
|
|
11
|
-
"appendTo",
|
|
12
|
-
"lockScroll",
|
|
13
|
-
"closeOnClickModal",
|
|
14
|
-
"closeOnPressEscape",
|
|
15
|
-
"showClose",
|
|
16
|
-
"draggable",
|
|
17
|
-
"overflow",
|
|
18
|
-
"center",
|
|
19
|
-
"alignCenter",
|
|
20
|
-
"destroyOnClose",
|
|
21
|
-
"closeIcon",
|
|
22
|
-
"zIndex",
|
|
23
|
-
"headerAriaLevel"
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
exports.dialogPropKeys = dialogPropKeys;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export declare const MlTreeSelectDrawer: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
2
|
-
slots: {};
|
|
3
|
-
attrs: any;
|
|
4
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "close") => void)) & ((evt: "update:modelValue", value: boolean) => void);
|
|
5
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: {
|
|
7
|
-
readonly onInput?: (value: string) => any;
|
|
8
|
-
readonly "onUpdate:modelValue"?: (value: boolean) => any;
|
|
9
|
-
readonly onClose?: () => any;
|
|
10
|
-
readonly onConfirm?: (selectedData: T | T[]) => any;
|
|
11
|
-
modelValue?: boolean;
|
|
12
|
-
treeData: T[];
|
|
13
|
-
treeProps?: Record<string, any>;
|
|
14
|
-
multiple?: boolean;
|
|
15
|
-
defaultExpandAll?: boolean;
|
|
16
|
-
defaultSelectedKeys?: any[];
|
|
17
|
-
nodeKey?: string;
|
|
18
|
-
showSearch?: boolean;
|
|
19
|
-
expandOnClickNode?: boolean;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
size?: string | number;
|
|
23
|
-
direction?: "rtl" | "ltr" | "ttb" | "btt";
|
|
24
|
-
readonly center?: boolean;
|
|
25
|
-
readonly appendTo?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>))[], unknown, unknown>;
|
|
26
|
-
readonly resizable?: boolean;
|
|
27
|
-
readonly showClose?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
28
|
-
readonly appendToBody?: boolean;
|
|
29
|
-
readonly destroyOnClose?: boolean;
|
|
30
|
-
readonly closeOnClickModal?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
|
-
readonly closeOnPressEscape?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
|
-
readonly lockScroll?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
|
-
readonly modal?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
|
-
readonly modalPenetrable?: boolean;
|
|
35
|
-
readonly openDelay?: number;
|
|
36
|
-
readonly closeDelay?: number;
|
|
37
|
-
readonly trapFocus?: boolean;
|
|
38
|
-
readonly headerAriaLevel?: string;
|
|
39
|
-
readonly fullscreen?: boolean;
|
|
40
|
-
readonly ariaLevel?: string;
|
|
41
|
-
readonly withHeader?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
42
|
-
readonly modalFade?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
43
|
-
readonly top?: string;
|
|
44
|
-
readonly overflow?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
45
|
-
readonly transition?: undefined;
|
|
46
|
-
readonly width?: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
47
|
-
readonly zIndex?: number;
|
|
48
|
-
readonly draggable?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
49
|
-
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn;
|
|
50
|
-
readonly modalClass?: string;
|
|
51
|
-
readonly headerClass?: string;
|
|
52
|
-
readonly bodyClass?: string;
|
|
53
|
-
readonly footerClass?: string;
|
|
54
|
-
readonly alignCenter?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
55
|
-
readonly closeIcon?: unknown;
|
|
56
|
-
} & import('vue').PublicProps;
|
|
57
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
58
|
-
input: (value: string) => void;
|
|
59
|
-
searchText: import('vue').Ref<string, string>;
|
|
60
|
-
treeRef: import('vue').Ref<import('..').TreeSelectExpose, import('..').TreeSelectExpose>;
|
|
61
|
-
}>): void;
|
|
62
|
-
attrs: any;
|
|
63
|
-
slots: {};
|
|
64
|
-
emit: (((evt: "input", value: string) => void) & ((evt: "confirm", selectedData: T | T[]) => void) & ((evt: "close") => void)) & ((evt: "update:modelValue", value: boolean) => void);
|
|
65
|
-
}>) => import('vue').VNode & {
|
|
66
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
67
|
-
};
|
|
68
|
-
export default MlTreeSelectDrawer;
|
|
69
|
-
export * from './type';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var index = require('../../utils/index.js');
|
|
6
|
-
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
7
|
-
var type = require('./type.js');
|
|
8
|
-
|
|
9
|
-
const MlTreeSelectDrawer = index.withInstall(index_vue_vue_type_script_setup_true_lang.default);
|
|
10
|
-
|
|
11
|
-
exports.drawerPropKeys = type.drawerPropKeys;
|
|
12
|
-
exports.MlTreeSelectDrawer = MlTreeSelectDrawer;
|
|
13
|
-
exports.default = MlTreeSelectDrawer;
|