@minilo/ui 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/minilo/dist/index.full.js +186 -214
- package/minilo/dist/index.full.min.js +1 -1
- package/minilo/dist/index.full.min.js.map +1 -1
- package/minilo/dist/index.full.min.mjs +1 -1
- package/minilo/dist/index.full.min.mjs.map +1 -1
- package/minilo/dist/index.full.mjs +186 -214
- package/minilo/es/components/image-upload-pro/index.vue2.mjs +2 -2
- package/minilo/es/components/search/index.vue2.mjs +0 -1
- package/minilo/es/components/search-table/index.vue.d.ts +16 -0
- package/minilo/es/components/search-table/index.vue2.mjs +6 -3
- package/minilo/es/components/tree-select/index.d.ts +4 -2
- package/minilo/es/components/tree-select/index.vue.d.ts +5 -2
- package/minilo/es/components/tree-select/index.vue2.mjs +8 -5
- package/minilo/es/components/tree-select-dialog/index.d.ts +2 -0
- package/minilo/es/components/tree-select-dialog/index.vue.d.ts +3 -0
- package/minilo/es/components/tree-select-dialog/index.vue2.mjs +14 -6
- package/minilo/es/components/tree-select-drawer/index.d.ts +2 -0
- package/minilo/es/components/tree-select-drawer/index.vue.d.ts +3 -0
- package/minilo/es/components/tree-select-drawer/index.vue2.mjs +14 -6
- package/minilo/es/components/virtual-list/index.vue2.mjs +3 -1
- package/minilo/es/packages/utils/dist/request/index.mjs +105 -0
- package/minilo/es/resolver/index.mjs +1 -4
- package/minilo/lib/components/image-upload-pro/index.vue2.js +2 -2
- package/minilo/lib/components/search/index.vue2.js +0 -1
- package/minilo/lib/components/search-table/index.vue.d.ts +16 -0
- package/minilo/lib/components/search-table/index.vue2.js +6 -3
- package/minilo/lib/components/tree-select/index.d.ts +4 -2
- package/minilo/lib/components/tree-select/index.vue.d.ts +5 -2
- package/minilo/lib/components/tree-select/index.vue2.js +7 -4
- package/minilo/lib/components/tree-select-dialog/index.d.ts +2 -0
- package/minilo/lib/components/tree-select-dialog/index.vue.d.ts +3 -0
- package/minilo/lib/components/tree-select-dialog/index.vue2.js +14 -6
- package/minilo/lib/components/tree-select-drawer/index.d.ts +2 -0
- package/minilo/lib/components/tree-select-drawer/index.vue.d.ts +3 -0
- package/minilo/lib/components/tree-select-drawer/index.vue2.js +14 -6
- package/minilo/lib/components/virtual-list/index.vue2.js +3 -1
- package/minilo/lib/packages/utils/dist/request/index.js +115 -0
- package/minilo/lib/resolver/index.js +1 -4
- package/package.json +2 -2
- package/minilo/es/components/search-table/index.d.ts +0 -274
- package/minilo/es/index.d.ts +0 -1724
- package/minilo/es/node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo/utils/dist/request/index.mjs +0 -110
- package/minilo/lib/components/search-table/index.d.ts +0 -274
- package/minilo/lib/index.d.ts +0 -1724
- package/minilo/lib/node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo/utils/dist/request/index.js +0 -120
- /package/minilo/es/{node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo → packages}/utils/dist/func/common.mjs +0 -0
- /package/minilo/lib/{node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo → packages}/utils/dist/func/common.js +0 -0
|
@@ -93,9 +93,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
93
93
|
return result;
|
|
94
94
|
});
|
|
95
95
|
const treeSelectRef = vue.ref();
|
|
96
|
+
const searchText = vue.ref("");
|
|
96
97
|
vue.watch(visible, (val) => {
|
|
97
|
-
if (!val
|
|
98
|
-
|
|
98
|
+
if (!val) {
|
|
99
|
+
searchText.value = "";
|
|
100
|
+
if (treeSelectRef.value) {
|
|
101
|
+
treeSelectRef.value.reset();
|
|
102
|
+
}
|
|
99
103
|
}
|
|
100
104
|
});
|
|
101
105
|
const handleBeforeClose = () => {
|
|
@@ -109,27 +113,31 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
113
|
visible.value = false;
|
|
110
114
|
};
|
|
111
115
|
__expose({
|
|
112
|
-
input: (value) => emit("input", value)
|
|
116
|
+
input: (value) => emit("input", value),
|
|
117
|
+
searchText,
|
|
118
|
+
treeRef: treeSelectRef
|
|
113
119
|
});
|
|
114
120
|
return (_ctx, _cache) => {
|
|
115
121
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
116
122
|
return vue.openBlock(), vue.createBlock(_component_el_dialog, vue.mergeProps({
|
|
117
123
|
modelValue: visible.value,
|
|
118
|
-
"onUpdate:modelValue": _cache[
|
|
124
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event)
|
|
119
125
|
}, dialogAttrs.value, {
|
|
120
126
|
class: vue.unref(index.bem)("tree-select-dialog"),
|
|
121
127
|
"before-close": handleBeforeClose,
|
|
122
|
-
onClose: _cache[
|
|
128
|
+
onClose: _cache[2] || (_cache[2] = ($event) => emit("close"))
|
|
123
129
|
}), {
|
|
124
130
|
default: vue.withCtx(() => [
|
|
125
131
|
vue.createVNode(vue.unref(index$1.MlTreeSelect), vue.mergeProps({
|
|
126
132
|
ref_key: "treeSelectRef",
|
|
127
133
|
ref: treeSelectRef,
|
|
134
|
+
"search-text": searchText.value,
|
|
135
|
+
"onUpdate:searchText": _cache[0] || (_cache[0] = ($event) => searchText.value = $event),
|
|
128
136
|
"tree-data": props.treeData
|
|
129
137
|
}, treeSelectAttrs.value, vue.toHandlers(_ctx.$attrs), {
|
|
130
138
|
onConfirm: handleConfirm,
|
|
131
139
|
onCancel: handleCancel
|
|
132
|
-
}), null, 16, ["tree-data"])
|
|
140
|
+
}), null, 16, ["search-text", "tree-data"])
|
|
133
141
|
]),
|
|
134
142
|
_: 1
|
|
135
143
|
/* STABLE */
|
|
@@ -56,6 +56,8 @@ export declare const MlTreeSelectDrawer: <T = any>(__VLS_props: NonNullable<Awai
|
|
|
56
56
|
} & import('vue').PublicProps;
|
|
57
57
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
58
58
|
input: (value: string) => void;
|
|
59
|
+
searchText: import('vue').Ref<string, string>;
|
|
60
|
+
treeRef: import('vue').Ref<import('..').TreeSelectExpose, import('..').TreeSelectExpose>;
|
|
59
61
|
}>): void;
|
|
60
62
|
attrs: any;
|
|
61
63
|
slots: {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TreeSelectDrawerProps } from './type';
|
|
2
|
+
import { TreeSelectExpose } from '../tree-select/type';
|
|
2
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<{
|
|
3
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
5
|
readonly onInput?: (value: string) => any;
|
|
@@ -10,6 +11,8 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
10
11
|
} & TreeSelectDrawerProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
11
12
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
12
13
|
input: (value: string) => void;
|
|
14
|
+
searchText: import('vue').Ref<string, string>;
|
|
15
|
+
treeRef: import('vue').Ref<TreeSelectExpose, TreeSelectExpose>;
|
|
13
16
|
}>): void;
|
|
14
17
|
attrs: any;
|
|
15
18
|
slots: {};
|
|
@@ -98,9 +98,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
98
98
|
return result;
|
|
99
99
|
});
|
|
100
100
|
const treeSelectRef = vue.ref();
|
|
101
|
+
const searchText = vue.ref("");
|
|
101
102
|
vue.watch(visible, (val) => {
|
|
102
|
-
if (!val
|
|
103
|
-
|
|
103
|
+
if (!val) {
|
|
104
|
+
searchText.value = "";
|
|
105
|
+
if (treeSelectRef.value) {
|
|
106
|
+
treeSelectRef.value.reset();
|
|
107
|
+
}
|
|
104
108
|
}
|
|
105
109
|
});
|
|
106
110
|
const handleBeforeClose = (done) => {
|
|
@@ -115,27 +119,31 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
119
|
visible.value = false;
|
|
116
120
|
};
|
|
117
121
|
__expose({
|
|
118
|
-
input: (value) => emit("input", value)
|
|
122
|
+
input: (value) => emit("input", value),
|
|
123
|
+
searchText,
|
|
124
|
+
treeRef: treeSelectRef
|
|
119
125
|
});
|
|
120
126
|
return (_ctx, _cache) => {
|
|
121
127
|
const _component_el_drawer = vue.resolveComponent("el-drawer");
|
|
122
128
|
return vue.openBlock(), vue.createBlock(_component_el_drawer, vue.mergeProps({
|
|
123
129
|
modelValue: visible.value,
|
|
124
|
-
"onUpdate:modelValue": _cache[
|
|
130
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event)
|
|
125
131
|
}, drawerAttrs.value, {
|
|
126
132
|
class: vue.unref(index.bem)("tree-select-drawer"),
|
|
127
133
|
"before-close": handleBeforeClose,
|
|
128
|
-
onClose: _cache[
|
|
134
|
+
onClose: _cache[2] || (_cache[2] = ($event) => emit("close"))
|
|
129
135
|
}), {
|
|
130
136
|
default: vue.withCtx(() => [
|
|
131
137
|
vue.createVNode(index_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({
|
|
132
138
|
ref_key: "treeSelectRef",
|
|
133
139
|
ref: treeSelectRef,
|
|
140
|
+
"search-text": searchText.value,
|
|
141
|
+
"onUpdate:searchText": _cache[0] || (_cache[0] = ($event) => searchText.value = $event),
|
|
134
142
|
"tree-data": __props.treeData
|
|
135
143
|
}, treeSelectAttrs.value, vue.toHandlers(_ctx.$attrs), {
|
|
136
144
|
onConfirm: handleConfirm,
|
|
137
145
|
onCancel: handleCancel
|
|
138
|
-
}), null, 16, ["tree-data"])
|
|
146
|
+
}), null, 16, ["search-text", "tree-data"])
|
|
139
147
|
]),
|
|
140
148
|
_: 1
|
|
141
149
|
/* STABLE */
|
|
@@ -125,9 +125,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
125
125
|
resizeObserver.disconnect();
|
|
126
126
|
}
|
|
127
127
|
resizeObserver = new ResizeObserver((entries) => {
|
|
128
|
+
console.log("\u5916\u90E8entries:", entries);
|
|
128
129
|
let needUpdate = false;
|
|
129
130
|
const changedIndices = [];
|
|
130
131
|
for (const entry of entries) {
|
|
132
|
+
console.log("entry:", entry);
|
|
131
133
|
const target = entry.target;
|
|
132
134
|
const index = parseInt(target.dataset.index || "0");
|
|
133
135
|
const pos = positions.value[index];
|
|
@@ -165,7 +167,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
165
167
|
const observeVisibleItems = () => {
|
|
166
168
|
if (!resizeObserver || props.itemEqual) return;
|
|
167
169
|
resizeObserver.disconnect();
|
|
168
|
-
const nodes = containerRef.value?.querySelectorAll("
|
|
170
|
+
const nodes = containerRef.value?.querySelectorAll(`.${index.bem("virtual-list", "item")}`);
|
|
169
171
|
if (!nodes) return;
|
|
170
172
|
nodes.forEach((node) => {
|
|
171
173
|
resizeObserver.observe(node);
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var axios = require('axios');
|
|
4
|
+
var elementPlus = require('element-plus');
|
|
5
|
+
var defu = require('defu');
|
|
6
|
+
|
|
7
|
+
const initRequestInstance = (extendConfig = {}, options = {}) => {
|
|
8
|
+
const { interceptorsRequestFn = () => {
|
|
9
|
+
}, interceptorsResponseFn = () => {
|
|
10
|
+
}, isSuccess = (data) => data?.code === 200, getData = (data) => data?.data, getMessage = (data) => data?.msg || "\u8BF7\u6C42\u5931\u8D25" } = options;
|
|
11
|
+
const axiosConfig = defu.defu({}, extendConfig, {
|
|
12
|
+
baseURL: "/",
|
|
13
|
+
// 从环境变量获取基础URL
|
|
14
|
+
timeout: 1e4,
|
|
15
|
+
// 超时时间
|
|
16
|
+
headers: {
|
|
17
|
+
"Content-Type": "application/json;charset=utf-8"
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const instance = axios.create(axiosConfig);
|
|
21
|
+
instance.interceptors.request.use((config) => {
|
|
22
|
+
interceptorsRequestFn(config);
|
|
23
|
+
addPendingRequest(config);
|
|
24
|
+
return config;
|
|
25
|
+
}, (error) => {
|
|
26
|
+
return Promise.reject(error);
|
|
27
|
+
});
|
|
28
|
+
instance.interceptors.response.use((response) => {
|
|
29
|
+
interceptorsResponseFn(response);
|
|
30
|
+
removePendingRequest(response.config);
|
|
31
|
+
const data = response.data;
|
|
32
|
+
if (isSuccess(data)) {
|
|
33
|
+
return Promise.resolve({
|
|
34
|
+
...response,
|
|
35
|
+
...data,
|
|
36
|
+
data: getData(data)
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
const msg = getMessage(data);
|
|
40
|
+
elementPlus.ElMessage.error(msg);
|
|
41
|
+
return Promise.reject(new Error(msg));
|
|
42
|
+
}
|
|
43
|
+
}, (error) => {
|
|
44
|
+
console.log("\u8BF7\u6C42\u53D1\u751F\u9519\u8BEF>>>>>>>>>>>>>>>>>>\uFF1A", error);
|
|
45
|
+
if (error.config) {
|
|
46
|
+
removePendingRequest(error.config);
|
|
47
|
+
}
|
|
48
|
+
if (axios.isCancel(error)) {
|
|
49
|
+
console.warn("\u8BF7\u6C42\u5DF2\u88AB\u53D6\u6D88:", error.message);
|
|
50
|
+
return Promise.reject(new Error("\u8BF7\u6C42\u5DF2\u88AB\u53D6\u6D88"));
|
|
51
|
+
}
|
|
52
|
+
if (!window.navigator.onLine) {
|
|
53
|
+
elementPlus.ElMessage.error("\u7F51\u7EDC\u8FDE\u63A5\u5DF2\u65AD\u5F00\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC");
|
|
54
|
+
return Promise.reject(new Error("\u7F51\u7EDC\u8FDE\u63A5\u5DF2\u65AD\u5F00"));
|
|
55
|
+
}
|
|
56
|
+
const { response } = error;
|
|
57
|
+
if (response) {
|
|
58
|
+
switch (response.status) {
|
|
59
|
+
case 401:
|
|
60
|
+
elementPlus.ElMessage.error("\u8EAB\u4EFD\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55");
|
|
61
|
+
break;
|
|
62
|
+
case 403:
|
|
63
|
+
elementPlus.ElMessage.error("\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C");
|
|
64
|
+
break;
|
|
65
|
+
case 404:
|
|
66
|
+
elementPlus.ElMessage.error("\u8BF7\u6C42\u7684\u8D44\u6E90\u4E0D\u5B58\u5728");
|
|
67
|
+
break;
|
|
68
|
+
case 500:
|
|
69
|
+
elementPlus.ElMessage.error("\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF");
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
elementPlus.ElMessage.error(`\u8BF7\u6C42\u9519\u8BEF: ${response.status}`);
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
elementPlus.ElMessage.error("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");
|
|
76
|
+
}
|
|
77
|
+
return Promise.reject(error);
|
|
78
|
+
});
|
|
79
|
+
return instance;
|
|
80
|
+
};
|
|
81
|
+
const pendingRequests = /* @__PURE__ */ new Map();
|
|
82
|
+
const generateRequestKey = (config) => {
|
|
83
|
+
const { method, url, params, data } = config;
|
|
84
|
+
const paramsStr = params ? JSON.stringify(params) : "";
|
|
85
|
+
const dataStr = data ? JSON.stringify(data) : "";
|
|
86
|
+
return `${method}-${url}-${paramsStr}-${dataStr}`;
|
|
87
|
+
};
|
|
88
|
+
const addPendingRequest = (config) => {
|
|
89
|
+
const requestKey = generateRequestKey(config);
|
|
90
|
+
if (pendingRequests.has(requestKey)) {
|
|
91
|
+
const cancelToken = pendingRequests.get(requestKey);
|
|
92
|
+
cancelToken.cancel(`\u91CD\u590D\u8BF7\u6C42\u88AB\u53D6\u6D88: ${config.url}`);
|
|
93
|
+
pendingRequests.delete(requestKey);
|
|
94
|
+
}
|
|
95
|
+
const source = axios.CancelToken.source();
|
|
96
|
+
config.cancelToken = source.token;
|
|
97
|
+
pendingRequests.set(requestKey, source);
|
|
98
|
+
};
|
|
99
|
+
const removePendingRequest = (config) => {
|
|
100
|
+
const requestKey = generateRequestKey(config);
|
|
101
|
+
if (pendingRequests.has(requestKey)) {
|
|
102
|
+
pendingRequests.delete(requestKey);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
exports.addPendingRequest = addPendingRequest;
|
|
107
|
+
exports.generateRequestKey = generateRequestKey;
|
|
108
|
+
exports.initRequestInstance = initRequestInstance;
|
|
109
|
+
exports.removePendingRequest = removePendingRequest;
|
|
110
|
+
Object.keys(axios).forEach(function (k) {
|
|
111
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return axios[k]; }
|
|
114
|
+
});
|
|
115
|
+
});
|
|
@@ -17,10 +17,7 @@ const MiniloUiResolver = () => {
|
|
|
17
17
|
return {
|
|
18
18
|
name,
|
|
19
19
|
from: `@${libraryName}/ui/es/${componentName}`,
|
|
20
|
-
sideEffects: [
|
|
21
|
-
"element-plus/theme-chalk/index.css",
|
|
22
|
-
`@${libraryName}/ui/theme-chalk/ml-${componentName}`
|
|
23
|
-
]
|
|
20
|
+
sideEffects: [`@${libraryName}/ui/theme-chalk/ml-${componentName}`]
|
|
24
21
|
};
|
|
25
22
|
}
|
|
26
23
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minilo/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#/*": "./src/*"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"vitepress": "2.0.0-alpha.12",
|
|
97
97
|
"vitest": "^4.0.16",
|
|
98
98
|
"vue-tsc": "^3.1.0",
|
|
99
|
-
"@minilo/utils": "0.0.
|
|
99
|
+
"@minilo/utils": "0.0.8"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"vue": "^3.5.17"
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
export declare const MlSearchTable: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
-
methodType: {
|
|
4
|
-
type: () => import('./props').RequestMethodType;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
url: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
responseDataField: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
responseTotalField: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
headers: {
|
|
20
|
-
type: ObjectConstructor;
|
|
21
|
-
default: () => {};
|
|
22
|
-
};
|
|
23
|
-
showPagination: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
paramsHandler: {
|
|
28
|
-
type: FunctionConstructor;
|
|
29
|
-
default: any;
|
|
30
|
-
};
|
|
31
|
-
render: {
|
|
32
|
-
type: FunctionConstructor;
|
|
33
|
-
default: any;
|
|
34
|
-
};
|
|
35
|
-
searchProps: {
|
|
36
|
-
type: ObjectConstructor;
|
|
37
|
-
default: () => void;
|
|
38
|
-
};
|
|
39
|
-
tableProps: {
|
|
40
|
-
type: ObjectConstructor;
|
|
41
|
-
default: () => {
|
|
42
|
-
border: boolean;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
columns: {
|
|
46
|
-
type: {
|
|
47
|
-
(arrayLength: number): any[];
|
|
48
|
-
(...items: any[]): any[];
|
|
49
|
-
new (arrayLength: number): any[];
|
|
50
|
-
new (...items: any[]): any[];
|
|
51
|
-
isArray(arg: any): arg is any[];
|
|
52
|
-
readonly prototype: any[];
|
|
53
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
54
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
55
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
56
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
57
|
-
of<T>(...items: T[]): T[];
|
|
58
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
59
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
60
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
61
|
-
};
|
|
62
|
-
default: () => any[];
|
|
63
|
-
};
|
|
64
|
-
search: {
|
|
65
|
-
type: import('vue').PropType<import('../search/props').SearchModel>;
|
|
66
|
-
};
|
|
67
|
-
}>> & Readonly<{
|
|
68
|
-
onReset?: (...args: any[]) => any;
|
|
69
|
-
"onUpdate:search"?: (value: import('../search/props').SearchModel) => any;
|
|
70
|
-
}>, {
|
|
71
|
-
handleSearch: (reset?: boolean) => Promise<void>;
|
|
72
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
|
-
reset: (...args: any[]) => void;
|
|
74
|
-
"update:search": (value: import('../search/props').SearchModel) => void;
|
|
75
|
-
}, import('vue').PublicProps, {
|
|
76
|
-
render: Function;
|
|
77
|
-
url: string;
|
|
78
|
-
methodType: import('./props').RequestMethodType;
|
|
79
|
-
responseDataField: string;
|
|
80
|
-
responseTotalField: string;
|
|
81
|
-
headers: Record<string, any>;
|
|
82
|
-
showPagination: boolean;
|
|
83
|
-
paramsHandler: Function;
|
|
84
|
-
searchProps: Record<string, any>;
|
|
85
|
-
tableProps: Record<string, any>;
|
|
86
|
-
columns: any[];
|
|
87
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
88
|
-
P: {};
|
|
89
|
-
B: {};
|
|
90
|
-
D: {};
|
|
91
|
-
C: {};
|
|
92
|
-
M: {};
|
|
93
|
-
Defaults: {};
|
|
94
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
95
|
-
methodType: {
|
|
96
|
-
type: () => import('./props').RequestMethodType;
|
|
97
|
-
default: string;
|
|
98
|
-
};
|
|
99
|
-
url: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
responseDataField: {
|
|
104
|
-
type: StringConstructor;
|
|
105
|
-
default: string;
|
|
106
|
-
};
|
|
107
|
-
responseTotalField: {
|
|
108
|
-
type: StringConstructor;
|
|
109
|
-
default: string;
|
|
110
|
-
};
|
|
111
|
-
headers: {
|
|
112
|
-
type: ObjectConstructor;
|
|
113
|
-
default: () => {};
|
|
114
|
-
};
|
|
115
|
-
showPagination: {
|
|
116
|
-
type: BooleanConstructor;
|
|
117
|
-
default: boolean;
|
|
118
|
-
};
|
|
119
|
-
paramsHandler: {
|
|
120
|
-
type: FunctionConstructor;
|
|
121
|
-
default: any;
|
|
122
|
-
};
|
|
123
|
-
render: {
|
|
124
|
-
type: FunctionConstructor;
|
|
125
|
-
default: any;
|
|
126
|
-
};
|
|
127
|
-
searchProps: {
|
|
128
|
-
type: ObjectConstructor;
|
|
129
|
-
default: () => void;
|
|
130
|
-
};
|
|
131
|
-
tableProps: {
|
|
132
|
-
type: ObjectConstructor;
|
|
133
|
-
default: () => {
|
|
134
|
-
border: boolean;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
columns: {
|
|
138
|
-
type: {
|
|
139
|
-
(arrayLength: number): any[];
|
|
140
|
-
(...items: any[]): any[];
|
|
141
|
-
new (arrayLength: number): any[];
|
|
142
|
-
new (...items: any[]): any[];
|
|
143
|
-
isArray(arg: any): arg is any[];
|
|
144
|
-
readonly prototype: any[];
|
|
145
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
146
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
147
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
148
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
149
|
-
of<T>(...items: T[]): T[];
|
|
150
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
151
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
152
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
153
|
-
};
|
|
154
|
-
default: () => any[];
|
|
155
|
-
};
|
|
156
|
-
search: {
|
|
157
|
-
type: import('vue').PropType<import('../search/props').SearchModel>;
|
|
158
|
-
};
|
|
159
|
-
}>> & Readonly<{
|
|
160
|
-
onReset?: (...args: any[]) => any;
|
|
161
|
-
"onUpdate:search"?: (value: import('../search/props').SearchModel) => any;
|
|
162
|
-
}>, {
|
|
163
|
-
handleSearch: (reset?: boolean) => Promise<void>;
|
|
164
|
-
}, {}, {}, {}, {
|
|
165
|
-
render: Function;
|
|
166
|
-
url: string;
|
|
167
|
-
methodType: import('./props').RequestMethodType;
|
|
168
|
-
responseDataField: string;
|
|
169
|
-
responseTotalField: string;
|
|
170
|
-
headers: Record<string, any>;
|
|
171
|
-
showPagination: boolean;
|
|
172
|
-
paramsHandler: Function;
|
|
173
|
-
searchProps: Record<string, any>;
|
|
174
|
-
tableProps: Record<string, any>;
|
|
175
|
-
columns: any[];
|
|
176
|
-
}>;
|
|
177
|
-
__isFragment?: never;
|
|
178
|
-
__isTeleport?: never;
|
|
179
|
-
__isSuspense?: never;
|
|
180
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
181
|
-
methodType: {
|
|
182
|
-
type: () => import('./props').RequestMethodType;
|
|
183
|
-
default: string;
|
|
184
|
-
};
|
|
185
|
-
url: {
|
|
186
|
-
type: StringConstructor;
|
|
187
|
-
default: string;
|
|
188
|
-
};
|
|
189
|
-
responseDataField: {
|
|
190
|
-
type: StringConstructor;
|
|
191
|
-
default: string;
|
|
192
|
-
};
|
|
193
|
-
responseTotalField: {
|
|
194
|
-
type: StringConstructor;
|
|
195
|
-
default: string;
|
|
196
|
-
};
|
|
197
|
-
headers: {
|
|
198
|
-
type: ObjectConstructor;
|
|
199
|
-
default: () => {};
|
|
200
|
-
};
|
|
201
|
-
showPagination: {
|
|
202
|
-
type: BooleanConstructor;
|
|
203
|
-
default: boolean;
|
|
204
|
-
};
|
|
205
|
-
paramsHandler: {
|
|
206
|
-
type: FunctionConstructor;
|
|
207
|
-
default: any;
|
|
208
|
-
};
|
|
209
|
-
render: {
|
|
210
|
-
type: FunctionConstructor;
|
|
211
|
-
default: any;
|
|
212
|
-
};
|
|
213
|
-
searchProps: {
|
|
214
|
-
type: ObjectConstructor;
|
|
215
|
-
default: () => void;
|
|
216
|
-
};
|
|
217
|
-
tableProps: {
|
|
218
|
-
type: ObjectConstructor;
|
|
219
|
-
default: () => {
|
|
220
|
-
border: boolean;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
columns: {
|
|
224
|
-
type: {
|
|
225
|
-
(arrayLength: number): any[];
|
|
226
|
-
(...items: any[]): any[];
|
|
227
|
-
new (arrayLength: number): any[];
|
|
228
|
-
new (...items: any[]): any[];
|
|
229
|
-
isArray(arg: any): arg is any[];
|
|
230
|
-
readonly prototype: any[];
|
|
231
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
232
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
233
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
234
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
235
|
-
of<T>(...items: T[]): T[];
|
|
236
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
237
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
238
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
239
|
-
};
|
|
240
|
-
default: () => any[];
|
|
241
|
-
};
|
|
242
|
-
search: {
|
|
243
|
-
type: import('vue').PropType<import('../search/props').SearchModel>;
|
|
244
|
-
};
|
|
245
|
-
}>> & Readonly<{
|
|
246
|
-
onReset?: (...args: any[]) => any;
|
|
247
|
-
"onUpdate:search"?: (value: import('../search/props').SearchModel) => any;
|
|
248
|
-
}>, {
|
|
249
|
-
handleSearch: (reset?: boolean) => Promise<void>;
|
|
250
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
251
|
-
reset: (...args: any[]) => void;
|
|
252
|
-
"update:search": (value: import('../search/props').SearchModel) => void;
|
|
253
|
-
}, string, {
|
|
254
|
-
render: Function;
|
|
255
|
-
url: string;
|
|
256
|
-
methodType: import('./props').RequestMethodType;
|
|
257
|
-
responseDataField: string;
|
|
258
|
-
responseTotalField: string;
|
|
259
|
-
headers: Record<string, any>;
|
|
260
|
-
showPagination: boolean;
|
|
261
|
-
paramsHandler: Function;
|
|
262
|
-
searchProps: Record<string, any>;
|
|
263
|
-
tableProps: Record<string, any>;
|
|
264
|
-
columns: any[];
|
|
265
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
266
|
-
$slots: Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
|
|
267
|
-
index: any;
|
|
268
|
-
row: any;
|
|
269
|
-
}) => any>> & {
|
|
270
|
-
prefix?(_: {}): any;
|
|
271
|
-
suffix?(_: {}): any;
|
|
272
|
-
};
|
|
273
|
-
});
|
|
274
|
-
export default MlSearchTable;
|