yahee-components 0.0.22 → 0.0.24
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/es/{comprehensive-search/comprehensive-search.vue.js → complex-search/complex-search.vue.js} +48 -48
- package/es/complex-search/complex-search.vue2.js +4 -0
- package/es/complex-search/index.js +7 -0
- package/es/complex-search/style/index.css +24 -0
- package/es/index.js +8 -8
- package/es/installs.js +3 -3
- package/es/style.css +6 -6
- package/lib/complex-search/style/index.css +24 -0
- package/lib/style.css +6 -6
- package/package.json +1 -1
- package/types/src/complex-search/complex-search.d.ts +24 -0
- package/types/src/{comprehensive-search/comprehensive-search.vue.d.ts → complex-search/complex-search.vue.d.ts} +1 -9
- package/types/src/complex-search/index.d.ts +47 -0
- package/types/src/components.d.ts +1 -1
- package/types/src/installs.d.ts +557 -0
- package/es/comprehensive-search/comprehensive-search.vue2.js +0 -4
- package/es/comprehensive-search/index.js +0 -7
- package/es/comprehensive-search/style/index.css +0 -24
- package/global.d.ts +0 -10
- package/lib/comprehensive-search/style/index.css +0 -24
- package/types/src/comprehensive-search/comprehensive-search.d.ts +0 -12
package/es/{comprehensive-search/comprehensive-search.vue.js → complex-search/complex-search.vue.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as oe, toRefs as re, ref as u, openBlock as i, createBlock as
|
|
1
|
+
import { defineComponent as oe, toRefs as re, ref as u, openBlock as i, createBlock as h, unref as e, withCtx as t, createElementVNode as C, createVNode as o, withKeys as se, createSlots as ne, createElementBlock as _, Fragment as O, renderList as P, createTextVNode as S, toDisplayString as v, createCommentVNode as I } from "vue";
|
|
2
2
|
import y from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
|
|
3
|
-
import { ElConfigProvider as ue, ElInput as K, ElIcon as ie, ElSelect as G, ElOption as U, ElCheckbox as ce, ElLink as de, ElDialog as pe, ElButton as L, ElForm as me, ElRow as E, ElFormItem as
|
|
3
|
+
import { ElConfigProvider as ue, ElInput as K, ElIcon as ie, ElSelect as G, ElOption as U, ElCheckbox as ce, ElLink as de, ElDialog as pe, ElButton as L, ElForm as me, ElRow as E, ElFormItem as R } from "element-plus";
|
|
4
4
|
import "element-plus/theme-chalk/src/base.scss";
|
|
5
5
|
import "element-plus/theme-chalk/src/input.scss";
|
|
6
6
|
import "element-plus/theme-chalk/src/checkbox.scss";
|
|
@@ -18,11 +18,11 @@ import "element-plus/theme-chalk/src/row.scss";
|
|
|
18
18
|
import "element-plus/theme-chalk/src/button.scss";
|
|
19
19
|
import "element-plus/theme-chalk/src/link.scss";
|
|
20
20
|
import "element-plus/theme-chalk/src/config-provider.scss";
|
|
21
|
-
import { Search as
|
|
22
|
-
import
|
|
23
|
-
const ve = { class: "yahee-
|
|
24
|
-
name: "
|
|
25
|
-
__name: "
|
|
21
|
+
import { Search as fe } from "@element-plus/icons-vue";
|
|
22
|
+
import he from "../node_modules/.pnpm/element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js";
|
|
23
|
+
const ve = { class: "yahee-complex-search" }, ye = { class: "search-type-checkbox" }, Ce = { class: "dialog-footer" }, Ne = /* @__PURE__ */ oe({
|
|
24
|
+
name: "YaheeComplexSearch",
|
|
25
|
+
__name: "complex-search",
|
|
26
26
|
props: {
|
|
27
27
|
dealSearch: { type: Function, default: y.noop },
|
|
28
28
|
pasteFormat: { type: Function, default: y.noop },
|
|
@@ -37,43 +37,43 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
37
37
|
searchItem: { default: () => ({}) }
|
|
38
38
|
},
|
|
39
39
|
emits: ["filterChangeGrandson"],
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
40
|
+
setup(W, { emit: z }) {
|
|
41
|
+
const N = he, p = z, D = W, {
|
|
42
42
|
dealSearch: q,
|
|
43
43
|
defaultSearch: H,
|
|
44
44
|
pasteFormat: b,
|
|
45
45
|
options: w,
|
|
46
46
|
showPatchSearch: A,
|
|
47
|
-
specialOptions:
|
|
48
|
-
showWithinFilterCheckbox:
|
|
49
|
-
placeholderText:
|
|
50
|
-
normalOptions:
|
|
51
|
-
showSelect:
|
|
47
|
+
specialOptions: x,
|
|
48
|
+
showWithinFilterCheckbox: X,
|
|
49
|
+
placeholderText: Y,
|
|
50
|
+
normalOptions: j,
|
|
51
|
+
showSelect: J,
|
|
52
52
|
searchItem: r
|
|
53
|
-
} = re(D), g = u(H.value), c = u(""), m = u(!1), V = u(!1),
|
|
53
|
+
} = re(D), g = u(H.value), c = u(""), m = u(!1), V = u(!1), f = u(!1), F = u(null), s = u({ searchType: "WHOLE_SEARCH", searchContent: "" }), M = {
|
|
54
54
|
selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
|
|
55
55
|
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
56
|
-
}, M = () => {
|
|
57
|
-
h.value = !0;
|
|
58
|
-
}, B = () => {
|
|
59
|
-
h.value = !1;
|
|
60
56
|
}, Q = () => {
|
|
57
|
+
f.value = !0;
|
|
58
|
+
}, B = () => {
|
|
59
|
+
f.value = !1;
|
|
60
|
+
}, Z = () => {
|
|
61
61
|
m.value || (delete r.value.simpleSearch, p("filterChangeGrandson", r.value));
|
|
62
|
-
},
|
|
63
|
-
c.value ? le() : p("filterChangeGrandson",
|
|
62
|
+
}, $ = () => r.value, k = () => {
|
|
63
|
+
c.value ? le() : p("filterChangeGrandson", $());
|
|
64
64
|
}, ee = (d, l) => {
|
|
65
65
|
const a = { ...d };
|
|
66
|
-
return y.map(
|
|
66
|
+
return y.map(x.value, (n) => n.key).includes(l.filterKey) ? x.value.forEach((n) => delete a[n.key]) : delete a[l.filterKey], a;
|
|
67
67
|
};
|
|
68
|
-
function
|
|
68
|
+
function T(d) {
|
|
69
69
|
y.forEach(d, (l) => {
|
|
70
70
|
ee(r.value, l);
|
|
71
71
|
const { checkedValues: a, filterKey: n } = l;
|
|
72
|
-
y.isEmpty(a) || (
|
|
73
|
-
}), p("filterChangeGrandson", r.value)
|
|
72
|
+
y.isEmpty(a) || (j.value.includes(n) ? r.value[n] = a[0] : r.value[n] = a);
|
|
73
|
+
}), p("filterChangeGrandson", r.value);
|
|
74
74
|
}
|
|
75
75
|
const le = () => {
|
|
76
|
-
m.value ?
|
|
76
|
+
m.value ? T([
|
|
77
77
|
{
|
|
78
78
|
filterKey: "simpleSearch",
|
|
79
79
|
checkedValues: c.value
|
|
@@ -84,24 +84,24 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
84
84
|
}, ae = () => {
|
|
85
85
|
q.value(g.value, c.value);
|
|
86
86
|
}, te = () => {
|
|
87
|
-
|
|
88
|
-
d && (V.value = !0, m.value ?
|
|
87
|
+
F.value.validate((d) => {
|
|
88
|
+
d && (V.value = !0, m.value ? T([
|
|
89
89
|
{
|
|
90
90
|
filterKey: "putSearch",
|
|
91
91
|
checkedValues: s.value.searchContent
|
|
92
92
|
}
|
|
93
93
|
]) : p("filterChangeGrandson", {
|
|
94
94
|
putSearch: s.value.searchContent
|
|
95
|
-
}),
|
|
95
|
+
}), f.value = !1, V.value = !1);
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
return (d, l) => (i(),
|
|
98
|
+
return (d, l) => (i(), h(e(ue), { locale: e(N) }, {
|
|
99
99
|
default: t(() => [
|
|
100
100
|
C("div", ve, [
|
|
101
101
|
o(e(K), {
|
|
102
102
|
modelValue: c.value,
|
|
103
103
|
"onUpdate:modelValue": l[1] || (l[1] = (a) => c.value = a),
|
|
104
|
-
placeholder: e(
|
|
104
|
+
placeholder: e(Y),
|
|
105
105
|
class: "input-with-select",
|
|
106
106
|
clearable: "",
|
|
107
107
|
maxlength: "30",
|
|
@@ -119,14 +119,14 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
119
119
|
onClick: k
|
|
120
120
|
}, {
|
|
121
121
|
default: t(() => [
|
|
122
|
-
o(e(
|
|
122
|
+
o(e(fe))
|
|
123
123
|
]),
|
|
124
124
|
_: 1
|
|
125
125
|
})
|
|
126
126
|
]),
|
|
127
127
|
_: 2
|
|
128
128
|
}, [
|
|
129
|
-
e(
|
|
129
|
+
e(J) ? {
|
|
130
130
|
name: "prepend",
|
|
131
131
|
fn: t(() => [
|
|
132
132
|
o(e(G), {
|
|
@@ -136,7 +136,7 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
136
136
|
class: "custom-select"
|
|
137
137
|
}, {
|
|
138
138
|
default: t(() => [
|
|
139
|
-
(i(!0),
|
|
139
|
+
(i(!0), _(O, null, P(e(w), (a) => (i(), h(e(U), {
|
|
140
140
|
key: a.label,
|
|
141
141
|
label: a.label,
|
|
142
142
|
value: a.value
|
|
@@ -149,32 +149,32 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
149
149
|
} : void 0
|
|
150
150
|
]), 1032, ["modelValue", "placeholder", "onPaste"]),
|
|
151
151
|
C("div", ye, [
|
|
152
|
-
e(
|
|
152
|
+
e(X) ? (i(), h(e(ce), {
|
|
153
153
|
key: 0,
|
|
154
154
|
modelValue: m.value,
|
|
155
155
|
"onUpdate:modelValue": l[2] || (l[2] = (a) => m.value = a),
|
|
156
|
-
onChange:
|
|
156
|
+
onChange: Z
|
|
157
157
|
}, {
|
|
158
158
|
default: t(() => l[6] || (l[6] = [
|
|
159
159
|
S(v("在筛选条件内查询"))
|
|
160
160
|
])),
|
|
161
161
|
_: 1
|
|
162
|
-
}, 8, ["modelValue"])) :
|
|
163
|
-
e(A) ? (i(),
|
|
162
|
+
}, 8, ["modelValue"])) : I("", !0),
|
|
163
|
+
e(A) ? (i(), h(e(de), {
|
|
164
164
|
key: 1,
|
|
165
165
|
type: "primary",
|
|
166
|
-
onClick:
|
|
166
|
+
onClick: Q
|
|
167
167
|
}, {
|
|
168
168
|
default: t(() => l[7] || (l[7] = [
|
|
169
169
|
S(v("批量查询"))
|
|
170
170
|
])),
|
|
171
171
|
_: 1
|
|
172
|
-
})) :
|
|
172
|
+
})) : I("", !0)
|
|
173
173
|
])
|
|
174
174
|
]),
|
|
175
175
|
o(e(pe), {
|
|
176
|
-
modelValue:
|
|
177
|
-
"onUpdate:modelValue": l[5] || (l[5] = (a) =>
|
|
176
|
+
modelValue: f.value,
|
|
177
|
+
"onUpdate:modelValue": l[5] || (l[5] = (a) => f.value = a),
|
|
178
178
|
title: "批量查询",
|
|
179
179
|
width: "30%",
|
|
180
180
|
"before-close": B,
|
|
@@ -204,9 +204,9 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
204
204
|
default: t(() => [
|
|
205
205
|
o(e(me), {
|
|
206
206
|
ref_key: "batchSearchFormRef",
|
|
207
|
-
ref:
|
|
207
|
+
ref: F,
|
|
208
208
|
model: s.value,
|
|
209
|
-
rules:
|
|
209
|
+
rules: M
|
|
210
210
|
}, {
|
|
211
211
|
default: t(() => [
|
|
212
212
|
o(e(E), { class: "row-class" }, {
|
|
@@ -217,7 +217,7 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
217
217
|
}),
|
|
218
218
|
o(e(E), { class: "row-class" }, {
|
|
219
219
|
default: t(() => [
|
|
220
|
-
o(e(
|
|
220
|
+
o(e(R), { prop: "searchType" }, {
|
|
221
221
|
default: t(() => [
|
|
222
222
|
o(e(G), {
|
|
223
223
|
modelValue: s.value.searchType,
|
|
@@ -226,7 +226,7 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
226
226
|
class: "custom-select"
|
|
227
227
|
}, {
|
|
228
228
|
default: t(() => [
|
|
229
|
-
(i(!0),
|
|
229
|
+
(i(!0), _(O, null, P(e(w), (a) => (i(), h(e(U), {
|
|
230
230
|
key: a.label,
|
|
231
231
|
label: a.label,
|
|
232
232
|
value: a.value
|
|
@@ -242,7 +242,7 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
242
242
|
}),
|
|
243
243
|
o(e(E), { class: "row-class" }, {
|
|
244
244
|
default: t(() => [
|
|
245
|
-
o(e(
|
|
245
|
+
o(e(R), {
|
|
246
246
|
prop: "searchContent",
|
|
247
247
|
style: { width: "100%" }
|
|
248
248
|
}, {
|
|
@@ -273,5 +273,5 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
Ne as default
|
|
277
277
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.yahee-complex-search .input-with-select {
|
|
2
|
+
width: 83%;
|
|
3
|
+
border-radius: 0;
|
|
4
|
+
height: 24px;
|
|
5
|
+
}
|
|
6
|
+
.yahee-complex-search .custom-select {
|
|
7
|
+
width: 95px;
|
|
8
|
+
background-color: white;
|
|
9
|
+
}
|
|
10
|
+
.yahee-complex-search :deep(.custom-button + .custom-button) {
|
|
11
|
+
margin-left: 5px;
|
|
12
|
+
}
|
|
13
|
+
.yahee-complex-search :deep(.custom-button) {
|
|
14
|
+
padding: 1px 4px;
|
|
15
|
+
height: 22px;
|
|
16
|
+
}
|
|
17
|
+
.yahee-complex-search .icon-cursor {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
.yahee-complex-search .search-type-checkbox {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
width: 83%;
|
|
24
|
+
}
|
package/es/index.js
CHANGED
|
@@ -2,29 +2,29 @@ import { makeInstaller as e } from "./utils/install.js";
|
|
|
2
2
|
import r from "./installs.js";
|
|
3
3
|
import { config as t } from "./utils/config.js";
|
|
4
4
|
import { YaheeInput as l } from "./input/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import { YaheeCopy as
|
|
5
|
+
import { YaheeComplexSearch as C } from "./complex-search/index.js";
|
|
6
|
+
import { YaheeCopy as s } from "./copy/index.js";
|
|
7
7
|
import { YaheeImageUpload as c } from "./image-upload/index.js";
|
|
8
8
|
import { YaheeAnnexUpload as I } from "./annex-upload/index.js";
|
|
9
9
|
import { YaheeOperationLog as y } from "./operation-log/index.js";
|
|
10
10
|
import { YaheeCountryPlatformShopCondition as S } from "./country-platform-shop-condition/index.js";
|
|
11
11
|
import { YaheeLeftCondition as b } from "./left-condition/index.js";
|
|
12
|
-
import { YaheeLeftConditionEnum as
|
|
13
|
-
import { YaheeDropDownCondition as
|
|
12
|
+
import { YaheeLeftConditionEnum as w } from "./left-condition-enum/index.js";
|
|
13
|
+
import { YaheeDropDownCondition as E } from "./drop-down-condition/index.js";
|
|
14
14
|
const { setConfig: n } = t(), m = e([...r]);
|
|
15
15
|
function i(o) {
|
|
16
16
|
n(o);
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
19
|
I as YaheeAnnexUpload,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
C as YaheeComplexSearch,
|
|
21
|
+
s as YaheeCopy,
|
|
22
22
|
S as YaheeCountryPlatformShopCondition,
|
|
23
|
-
|
|
23
|
+
E as YaheeDropDownCondition,
|
|
24
24
|
c as YaheeImageUpload,
|
|
25
25
|
l as YaheeInput,
|
|
26
26
|
b as YaheeLeftCondition,
|
|
27
|
-
|
|
27
|
+
w as YaheeLeftConditionEnum,
|
|
28
28
|
y as YaheeOperationLog,
|
|
29
29
|
m as default,
|
|
30
30
|
i as useGlobalConfig
|
package/es/installs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YaheeInput as o } from "./input/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { YaheeComplexSearch as e } from "./complex-search/index.js";
|
|
3
3
|
import { YaheeCopy as r } from "./copy/index.js";
|
|
4
4
|
import { YaheeImageUpload as m } from "./image-upload/index.js";
|
|
5
5
|
import { YaheeOperationLog as t } from "./operation-log/index.js";
|
|
@@ -8,7 +8,7 @@ import { YaheeLeftCondition as a } from "./left-condition/index.js";
|
|
|
8
8
|
import { YaheeLeftConditionEnum as p } from "./left-condition-enum/index.js";
|
|
9
9
|
import { YaheeDropDownCondition as n } from "./drop-down-condition/index.js";
|
|
10
10
|
import { YaheeCountryPlatformShopCondition as f } from "./country-platform-shop-condition/index.js";
|
|
11
|
-
const
|
|
11
|
+
const g = [
|
|
12
12
|
o,
|
|
13
13
|
e,
|
|
14
14
|
r,
|
|
@@ -21,5 +21,5 @@ const x = [
|
|
|
21
21
|
f
|
|
22
22
|
];
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
g as default
|
|
25
25
|
};
|
package/es/style.css
CHANGED
|
@@ -14,26 +14,26 @@
|
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.yahee-
|
|
17
|
+
.yahee-complex-search .input-with-select {
|
|
18
18
|
width: 83%;
|
|
19
19
|
border-radius: 0;
|
|
20
20
|
height: 24px;
|
|
21
21
|
}
|
|
22
|
-
.yahee-
|
|
22
|
+
.yahee-complex-search .custom-select {
|
|
23
23
|
width: 95px;
|
|
24
24
|
background-color: white;
|
|
25
25
|
}
|
|
26
|
-
.yahee-
|
|
26
|
+
.yahee-complex-search :deep(.custom-button + .custom-button) {
|
|
27
27
|
margin-left: 5px;
|
|
28
28
|
}
|
|
29
|
-
.yahee-
|
|
29
|
+
.yahee-complex-search :deep(.custom-button) {
|
|
30
30
|
padding: 1px 4px;
|
|
31
31
|
height: 22px;
|
|
32
32
|
}
|
|
33
|
-
.yahee-
|
|
33
|
+
.yahee-complex-search .icon-cursor {
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
}
|
|
36
|
-
.yahee-
|
|
36
|
+
.yahee-complex-search .search-type-checkbox {
|
|
37
37
|
display: flex;
|
|
38
38
|
justify-content: space-between;
|
|
39
39
|
width: 83%;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.yahee-complex-search .input-with-select {
|
|
2
|
+
width: 83%;
|
|
3
|
+
border-radius: 0;
|
|
4
|
+
height: 24px;
|
|
5
|
+
}
|
|
6
|
+
.yahee-complex-search .custom-select {
|
|
7
|
+
width: 95px;
|
|
8
|
+
background-color: white;
|
|
9
|
+
}
|
|
10
|
+
.yahee-complex-search :deep(.custom-button + .custom-button) {
|
|
11
|
+
margin-left: 5px;
|
|
12
|
+
}
|
|
13
|
+
.yahee-complex-search :deep(.custom-button) {
|
|
14
|
+
padding: 1px 4px;
|
|
15
|
+
height: 22px;
|
|
16
|
+
}
|
|
17
|
+
.yahee-complex-search .icon-cursor {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
.yahee-complex-search .search-type-checkbox {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
width: 83%;
|
|
24
|
+
}
|
package/lib/style.css
CHANGED
|
@@ -14,26 +14,26 @@
|
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.yahee-
|
|
17
|
+
.yahee-complex-search .input-with-select {
|
|
18
18
|
width: 83%;
|
|
19
19
|
border-radius: 0;
|
|
20
20
|
height: 24px;
|
|
21
21
|
}
|
|
22
|
-
.yahee-
|
|
22
|
+
.yahee-complex-search .custom-select {
|
|
23
23
|
width: 95px;
|
|
24
24
|
background-color: white;
|
|
25
25
|
}
|
|
26
|
-
.yahee-
|
|
26
|
+
.yahee-complex-search :deep(.custom-button + .custom-button) {
|
|
27
27
|
margin-left: 5px;
|
|
28
28
|
}
|
|
29
|
-
.yahee-
|
|
29
|
+
.yahee-complex-search :deep(.custom-button) {
|
|
30
30
|
padding: 1px 4px;
|
|
31
31
|
height: 22px;
|
|
32
32
|
}
|
|
33
|
-
.yahee-
|
|
33
|
+
.yahee-complex-search .icon-cursor {
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
}
|
|
36
|
-
.yahee-
|
|
36
|
+
.yahee-complex-search .search-type-checkbox {
|
|
37
37
|
display: flex;
|
|
38
38
|
justify-content: space-between;
|
|
39
39
|
width: 83%;
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as ComplexSearch } from './complex-search.vue';
|
|
2
|
+
/**
|
|
3
|
+
* 定义instance类型
|
|
4
|
+
*/
|
|
5
|
+
export type ComplexSearchInstance = InstanceType<typeof ComplexSearch>;
|
|
6
|
+
/**
|
|
7
|
+
* 综合搜索下拉选项
|
|
8
|
+
*/
|
|
9
|
+
export type SearchOptions = {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
export interface SearchDataOptions {
|
|
14
|
+
label: string;
|
|
15
|
+
key: string;
|
|
16
|
+
}
|
|
17
|
+
export type EveryFilter = {
|
|
18
|
+
filterKey: string;
|
|
19
|
+
checkedValues: string[] | string;
|
|
20
|
+
};
|
|
21
|
+
export type FilterValue = string | number | boolean | string[] | number[];
|
|
22
|
+
export interface SearchItem {
|
|
23
|
+
[key: string]: FilterValue;
|
|
24
|
+
}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { SearchOptions } from './
|
|
1
|
+
import { SearchOptions, SearchDataOptions, SearchItem } from './complex-search';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface SearchDataOptions {
|
|
4
|
-
label: string;
|
|
5
|
-
key: string;
|
|
6
|
-
}
|
|
7
|
-
type FilterValue = string | number | boolean | string[] | number[];
|
|
8
|
-
interface SearchItem {
|
|
9
|
-
[key: string]: FilterValue;
|
|
10
|
-
}
|
|
11
3
|
declare const _default: DefineComponent<{
|
|
12
4
|
dealSearch?: (selectedSearchType: string, searchQuery: string) => void;
|
|
13
5
|
pasteFormat?: () => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../utils/typescript';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { SearchOptions, SearchDataOptions, SearchItem } from './complex-search';
|
|
4
|
+
export declare const YaheeComplexSearch: SFCWithInstall<DefineComponent<{
|
|
5
|
+
dealSearch?: (selectedSearchType: string, searchQuery: string) => void;
|
|
6
|
+
pasteFormat?: () => void;
|
|
7
|
+
defaultSearch?: string;
|
|
8
|
+
options?: SearchOptions[];
|
|
9
|
+
placeholderText?: string;
|
|
10
|
+
showPatchSearch?: boolean;
|
|
11
|
+
showWithinFilterCheckbox?: boolean;
|
|
12
|
+
specialOptions?: SearchDataOptions[];
|
|
13
|
+
normalOptions?: string[];
|
|
14
|
+
showSelect?: boolean;
|
|
15
|
+
searchItem?: SearchItem;
|
|
16
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
filterChangeGrandson: (...args: any[]) => void;
|
|
18
|
+
}, string, PublicProps, Readonly<{
|
|
19
|
+
dealSearch?: (selectedSearchType: string, searchQuery: string) => void;
|
|
20
|
+
pasteFormat?: () => void;
|
|
21
|
+
defaultSearch?: string;
|
|
22
|
+
options?: SearchOptions[];
|
|
23
|
+
placeholderText?: string;
|
|
24
|
+
showPatchSearch?: boolean;
|
|
25
|
+
showWithinFilterCheckbox?: boolean;
|
|
26
|
+
specialOptions?: SearchDataOptions[];
|
|
27
|
+
normalOptions?: string[];
|
|
28
|
+
showSelect?: boolean;
|
|
29
|
+
searchItem?: SearchItem;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
onFilterChangeGrandson?: (...args: any[]) => any;
|
|
32
|
+
}>, {
|
|
33
|
+
dealSearch: (selectedSearchType: string, searchQuery: string) => void;
|
|
34
|
+
pasteFormat: () => void;
|
|
35
|
+
defaultSearch: string;
|
|
36
|
+
options: SearchOptions[];
|
|
37
|
+
placeholderText: string;
|
|
38
|
+
showPatchSearch: boolean;
|
|
39
|
+
showWithinFilterCheckbox: boolean;
|
|
40
|
+
specialOptions: SearchDataOptions[];
|
|
41
|
+
normalOptions: string[];
|
|
42
|
+
showSelect: boolean;
|
|
43
|
+
searchItem: SearchItem;
|
|
44
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
45
|
+
export default YaheeComplexSearch;
|
|
46
|
+
export * from './complex-search.vue';
|
|
47
|
+
export * from './complex-search';
|
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
import { SFCWithInstall } from './utils/typescript';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentOptionsBase, ExtractPropTypes } from 'vue';
|
|
3
|
+
import { InputProps } from './input';
|
|
4
|
+
import { SearchOptions, SearchDataOptions, SearchItem } from './complex-search';
|
|
5
|
+
import { CopyProps } from './copy';
|
|
6
|
+
import { ImageUploadProps } from './image-upload';
|
|
7
|
+
import { OperationLogProps } from './operation-log';
|
|
8
|
+
import { AnnexUploadProps } from './annex-upload';
|
|
9
|
+
import { Option } from './static/CommonObject';
|
|
10
|
+
import { DropdownEntity } from './drop-down-condition/drop-down-condition';
|
|
11
|
+
import { data } from './country-platform-shop-condition/country-platform-shop-condition';
|
|
12
|
+
declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
|
|
13
|
+
focus: () => void;
|
|
14
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
|
+
}, string, PublicProps, Readonly< InputProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
18
|
+
}>, {
|
|
19
|
+
modelValue: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>) | ( SFCWithInstall<DefineComponent<{
|
|
22
|
+
dealSearch?: (selectedSearchType: string, searchQuery: string) => void;
|
|
23
|
+
pasteFormat?: () => void;
|
|
24
|
+
defaultSearch?: string;
|
|
25
|
+
options?: SearchOptions[];
|
|
26
|
+
placeholderText?: string;
|
|
27
|
+
showPatchSearch?: boolean;
|
|
28
|
+
showWithinFilterCheckbox?: boolean;
|
|
29
|
+
specialOptions?: SearchDataOptions[];
|
|
30
|
+
normalOptions?: string[];
|
|
31
|
+
showSelect?: boolean;
|
|
32
|
+
searchItem?: SearchItem;
|
|
33
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
34
|
+
filterChangeGrandson: (...args: any[]) => void;
|
|
35
|
+
}, string, PublicProps, Readonly<{
|
|
36
|
+
dealSearch?: (selectedSearchType: string, searchQuery: string) => void;
|
|
37
|
+
pasteFormat?: () => void;
|
|
38
|
+
defaultSearch?: string;
|
|
39
|
+
options?: SearchOptions[];
|
|
40
|
+
placeholderText?: string;
|
|
41
|
+
showPatchSearch?: boolean;
|
|
42
|
+
showWithinFilterCheckbox?: boolean;
|
|
43
|
+
specialOptions?: SearchDataOptions[];
|
|
44
|
+
normalOptions?: string[];
|
|
45
|
+
showSelect?: boolean;
|
|
46
|
+
searchItem?: SearchItem;
|
|
47
|
+
}> & Readonly<{
|
|
48
|
+
onFilterChangeGrandson?: (...args: any[]) => any;
|
|
49
|
+
}>, {
|
|
50
|
+
dealSearch: (selectedSearchType: string, searchQuery: string) => void;
|
|
51
|
+
pasteFormat: () => void;
|
|
52
|
+
defaultSearch: string;
|
|
53
|
+
options: SearchOptions[];
|
|
54
|
+
placeholderText: string;
|
|
55
|
+
showPatchSearch: boolean;
|
|
56
|
+
showWithinFilterCheckbox: boolean;
|
|
57
|
+
specialOptions: SearchDataOptions[];
|
|
58
|
+
normalOptions: string[];
|
|
59
|
+
showSelect: boolean;
|
|
60
|
+
searchItem: SearchItem;
|
|
61
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>) | ( SFCWithInstall<{
|
|
62
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CopyProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< CopyProps> & Readonly<{}>, {
|
|
63
|
+
message: string;
|
|
64
|
+
content: string;
|
|
65
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
66
|
+
P: {};
|
|
67
|
+
B: {};
|
|
68
|
+
D: {};
|
|
69
|
+
C: {};
|
|
70
|
+
M: {};
|
|
71
|
+
Defaults: {};
|
|
72
|
+
}, Readonly< CopyProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
73
|
+
message: string;
|
|
74
|
+
content: string;
|
|
75
|
+
}>;
|
|
76
|
+
__isFragment?: never;
|
|
77
|
+
__isTeleport?: never;
|
|
78
|
+
__isSuspense?: never;
|
|
79
|
+
} & ComponentOptionsBase<Readonly< CopyProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
80
|
+
message: string;
|
|
81
|
+
content: string;
|
|
82
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
83
|
+
$slots: {
|
|
84
|
+
default?(_: {}): any;
|
|
85
|
+
};
|
|
86
|
+
})> & Record<string, any>) | ( SFCWithInstall<{
|
|
87
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ImageUploadProps> & Readonly<{
|
|
88
|
+
onChange?: (...args: any[]) => any;
|
|
89
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
90
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
91
|
+
change: (...args: any[]) => void;
|
|
92
|
+
"update:modelValue": (...args: any[]) => void;
|
|
93
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ImageUploadProps> & Readonly<{
|
|
94
|
+
onChange?: (...args: any[]) => any;
|
|
95
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
96
|
+
}>, {
|
|
97
|
+
modelValue: {
|
|
98
|
+
index: number;
|
|
99
|
+
fileId: string;
|
|
100
|
+
fileName: string;
|
|
101
|
+
};
|
|
102
|
+
fileType: string;
|
|
103
|
+
showDelete: boolean;
|
|
104
|
+
zoom: number;
|
|
105
|
+
imgSize: {
|
|
106
|
+
width: number;
|
|
107
|
+
height: number;
|
|
108
|
+
};
|
|
109
|
+
limitImgSize: boolean;
|
|
110
|
+
limitFileSize: boolean;
|
|
111
|
+
fileSize: number;
|
|
112
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
113
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
114
|
+
P: {};
|
|
115
|
+
B: {};
|
|
116
|
+
D: {};
|
|
117
|
+
C: {};
|
|
118
|
+
M: {};
|
|
119
|
+
Defaults: {};
|
|
120
|
+
}, Readonly< ImageUploadProps> & Readonly<{
|
|
121
|
+
onChange?: (...args: any[]) => any;
|
|
122
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
123
|
+
}>, {}, {}, {}, {}, {
|
|
124
|
+
modelValue: {
|
|
125
|
+
index: number;
|
|
126
|
+
fileId: string;
|
|
127
|
+
fileName: string;
|
|
128
|
+
};
|
|
129
|
+
fileType: string;
|
|
130
|
+
showDelete: boolean;
|
|
131
|
+
zoom: number;
|
|
132
|
+
imgSize: {
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
};
|
|
136
|
+
limitImgSize: boolean;
|
|
137
|
+
limitFileSize: boolean;
|
|
138
|
+
fileSize: number;
|
|
139
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
140
|
+
}>;
|
|
141
|
+
__isFragment?: never;
|
|
142
|
+
__isTeleport?: never;
|
|
143
|
+
__isSuspense?: never;
|
|
144
|
+
} & ComponentOptionsBase<Readonly< ImageUploadProps> & Readonly<{
|
|
145
|
+
onChange?: (...args: any[]) => any;
|
|
146
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
147
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
148
|
+
change: (...args: any[]) => void;
|
|
149
|
+
"update:modelValue": (...args: any[]) => void;
|
|
150
|
+
}, string, {
|
|
151
|
+
modelValue: {
|
|
152
|
+
index: number;
|
|
153
|
+
fileId: string;
|
|
154
|
+
fileName: string;
|
|
155
|
+
};
|
|
156
|
+
fileType: string;
|
|
157
|
+
showDelete: boolean;
|
|
158
|
+
zoom: number;
|
|
159
|
+
imgSize: {
|
|
160
|
+
width: number;
|
|
161
|
+
height: number;
|
|
162
|
+
};
|
|
163
|
+
limitImgSize: boolean;
|
|
164
|
+
limitFileSize: boolean;
|
|
165
|
+
fileSize: number;
|
|
166
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
167
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
168
|
+
$slots: {
|
|
169
|
+
default?(_: {
|
|
170
|
+
value: string;
|
|
171
|
+
}): any;
|
|
172
|
+
};
|
|
173
|
+
})> & Record<string, any>) | ( SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
|
|
174
|
+
projectId: string;
|
|
175
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>) | ( SFCWithInstall<{
|
|
176
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< AnnexUploadProps> & Readonly<{
|
|
177
|
+
onChange?: (...args: any[]) => any;
|
|
178
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
179
|
+
onSuccess?: (...args: any[]) => any;
|
|
180
|
+
onRemove?: (...args: any[]) => any;
|
|
181
|
+
}>, {
|
|
182
|
+
clearFiles: () => Promise<void>;
|
|
183
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
184
|
+
change: (...args: any[]) => void;
|
|
185
|
+
"update:modelValue": (...args: any[]) => void;
|
|
186
|
+
success: (...args: any[]) => void;
|
|
187
|
+
remove: (...args: any[]) => void;
|
|
188
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< AnnexUploadProps> & Readonly<{
|
|
189
|
+
onChange?: (...args: any[]) => any;
|
|
190
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
191
|
+
onSuccess?: (...args: any[]) => any;
|
|
192
|
+
onRemove?: (...args: any[]) => any;
|
|
193
|
+
}>, {
|
|
194
|
+
modelValue: {
|
|
195
|
+
index: number;
|
|
196
|
+
fileId: string;
|
|
197
|
+
fileName: string;
|
|
198
|
+
}[];
|
|
199
|
+
validateEvent: boolean;
|
|
200
|
+
fileType: string;
|
|
201
|
+
limitFileSize: boolean;
|
|
202
|
+
fileSize: number;
|
|
203
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
204
|
+
accept: string;
|
|
205
|
+
fileList: {
|
|
206
|
+
name: string;
|
|
207
|
+
url: string;
|
|
208
|
+
}[];
|
|
209
|
+
limit: number;
|
|
210
|
+
showList: boolean;
|
|
211
|
+
checkRealType: boolean;
|
|
212
|
+
uploadType: "upload" | "import";
|
|
213
|
+
showTips: boolean;
|
|
214
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
215
|
+
P: {};
|
|
216
|
+
B: {};
|
|
217
|
+
D: {};
|
|
218
|
+
C: {};
|
|
219
|
+
M: {};
|
|
220
|
+
Defaults: {};
|
|
221
|
+
}, Readonly< AnnexUploadProps> & Readonly<{
|
|
222
|
+
onChange?: (...args: any[]) => any;
|
|
223
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
224
|
+
onSuccess?: (...args: any[]) => any;
|
|
225
|
+
onRemove?: (...args: any[]) => any;
|
|
226
|
+
}>, {
|
|
227
|
+
clearFiles: () => Promise<void>;
|
|
228
|
+
}, {}, {}, {}, {
|
|
229
|
+
modelValue: {
|
|
230
|
+
index: number;
|
|
231
|
+
fileId: string;
|
|
232
|
+
fileName: string;
|
|
233
|
+
}[];
|
|
234
|
+
validateEvent: boolean;
|
|
235
|
+
fileType: string;
|
|
236
|
+
limitFileSize: boolean;
|
|
237
|
+
fileSize: number;
|
|
238
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
239
|
+
accept: string;
|
|
240
|
+
fileList: {
|
|
241
|
+
name: string;
|
|
242
|
+
url: string;
|
|
243
|
+
}[];
|
|
244
|
+
limit: number;
|
|
245
|
+
showList: boolean;
|
|
246
|
+
checkRealType: boolean;
|
|
247
|
+
uploadType: "upload" | "import";
|
|
248
|
+
showTips: boolean;
|
|
249
|
+
}>;
|
|
250
|
+
__isFragment?: never;
|
|
251
|
+
__isTeleport?: never;
|
|
252
|
+
__isSuspense?: never;
|
|
253
|
+
} & ComponentOptionsBase<Readonly< AnnexUploadProps> & Readonly<{
|
|
254
|
+
onChange?: (...args: any[]) => any;
|
|
255
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
256
|
+
onSuccess?: (...args: any[]) => any;
|
|
257
|
+
onRemove?: (...args: any[]) => any;
|
|
258
|
+
}>, {
|
|
259
|
+
clearFiles: () => Promise<void>;
|
|
260
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
261
|
+
change: (...args: any[]) => void;
|
|
262
|
+
"update:modelValue": (...args: any[]) => void;
|
|
263
|
+
success: (...args: any[]) => void;
|
|
264
|
+
remove: (...args: any[]) => void;
|
|
265
|
+
}, string, {
|
|
266
|
+
modelValue: {
|
|
267
|
+
index: number;
|
|
268
|
+
fileId: string;
|
|
269
|
+
fileName: string;
|
|
270
|
+
}[];
|
|
271
|
+
validateEvent: boolean;
|
|
272
|
+
fileType: string;
|
|
273
|
+
limitFileSize: boolean;
|
|
274
|
+
fileSize: number;
|
|
275
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
276
|
+
accept: string;
|
|
277
|
+
fileList: {
|
|
278
|
+
name: string;
|
|
279
|
+
url: string;
|
|
280
|
+
}[];
|
|
281
|
+
limit: number;
|
|
282
|
+
showList: boolean;
|
|
283
|
+
checkRealType: boolean;
|
|
284
|
+
uploadType: "upload" | "import";
|
|
285
|
+
showTips: boolean;
|
|
286
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
287
|
+
$slots: {
|
|
288
|
+
default?(_: {}): any;
|
|
289
|
+
tip?(_: {}): any;
|
|
290
|
+
};
|
|
291
|
+
})> & Record<string, any>) | ( SFCWithInstall<DefineComponent<{
|
|
292
|
+
multiSelectList?: Array<any>;
|
|
293
|
+
selectList: Array< Option>;
|
|
294
|
+
countList?: Array<any>;
|
|
295
|
+
totalCount?: number;
|
|
296
|
+
hasNum?: boolean;
|
|
297
|
+
displayRangeInput?: boolean;
|
|
298
|
+
rangeLabel?: string;
|
|
299
|
+
rangeStartKey?: string;
|
|
300
|
+
rangeEndKey?: string;
|
|
301
|
+
rangeDelimiter?: string;
|
|
302
|
+
allIsCheckbox?: boolean;
|
|
303
|
+
allIsEmpty?: boolean;
|
|
304
|
+
translateUserId?: boolean;
|
|
305
|
+
staticSearch?: boolean;
|
|
306
|
+
label?: string;
|
|
307
|
+
noNeedRefreshNumFilterName?: string;
|
|
308
|
+
filterKey: string;
|
|
309
|
+
defaultValues?: Array<string | number | boolean>;
|
|
310
|
+
}, {
|
|
311
|
+
clickAllSelected: () => void;
|
|
312
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
313
|
+
filterChange: (...args: any[]) => void;
|
|
314
|
+
setNoNeedRefreshNumFilterName: (...args: any[]) => void;
|
|
315
|
+
}, string, PublicProps, Readonly<{
|
|
316
|
+
multiSelectList?: Array<any>;
|
|
317
|
+
selectList: Array< Option>;
|
|
318
|
+
countList?: Array<any>;
|
|
319
|
+
totalCount?: number;
|
|
320
|
+
hasNum?: boolean;
|
|
321
|
+
displayRangeInput?: boolean;
|
|
322
|
+
rangeLabel?: string;
|
|
323
|
+
rangeStartKey?: string;
|
|
324
|
+
rangeEndKey?: string;
|
|
325
|
+
rangeDelimiter?: string;
|
|
326
|
+
allIsCheckbox?: boolean;
|
|
327
|
+
allIsEmpty?: boolean;
|
|
328
|
+
translateUserId?: boolean;
|
|
329
|
+
staticSearch?: boolean;
|
|
330
|
+
label?: string;
|
|
331
|
+
noNeedRefreshNumFilterName?: string;
|
|
332
|
+
filterKey: string;
|
|
333
|
+
defaultValues?: Array<string | number | boolean>;
|
|
334
|
+
}> & Readonly<{
|
|
335
|
+
onFilterChange?: (...args: any[]) => any;
|
|
336
|
+
onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
|
|
337
|
+
}>, {
|
|
338
|
+
label: string;
|
|
339
|
+
filterKey: string;
|
|
340
|
+
multiSelectList: Array<any>;
|
|
341
|
+
countList: Array<any>;
|
|
342
|
+
hasNum: boolean;
|
|
343
|
+
selectList: Array< Option>;
|
|
344
|
+
totalCount: number;
|
|
345
|
+
displayRangeInput: boolean;
|
|
346
|
+
rangeLabel: string;
|
|
347
|
+
rangeStartKey: string;
|
|
348
|
+
rangeEndKey: string;
|
|
349
|
+
rangeDelimiter: string;
|
|
350
|
+
allIsEmpty: boolean;
|
|
351
|
+
staticSearch: boolean;
|
|
352
|
+
noNeedRefreshNumFilterName: string;
|
|
353
|
+
defaultValues: Array<string | number | boolean>;
|
|
354
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>) | ( SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
355
|
+
selectList: {
|
|
356
|
+
type: {
|
|
357
|
+
(arrayLength: number): Option[];
|
|
358
|
+
(...items: Option[]): Option[];
|
|
359
|
+
new (arrayLength: number): Option[];
|
|
360
|
+
new (...items: Option[]): Option[];
|
|
361
|
+
isArray(arg: any): arg is any[];
|
|
362
|
+
readonly prototype: any[];
|
|
363
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
364
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
365
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
366
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
367
|
+
of<T>(...items: T[]): T[];
|
|
368
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
369
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
370
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
371
|
+
};
|
|
372
|
+
default: () => Option[];
|
|
373
|
+
};
|
|
374
|
+
baseUrl: {
|
|
375
|
+
type: StringConstructor;
|
|
376
|
+
default: string;
|
|
377
|
+
};
|
|
378
|
+
countList: {
|
|
379
|
+
type: {
|
|
380
|
+
(arrayLength: number): any[];
|
|
381
|
+
(...items: any[]): any[];
|
|
382
|
+
new (arrayLength: number): any[];
|
|
383
|
+
new (...items: any[]): any[];
|
|
384
|
+
isArray(arg: any): arg is any[];
|
|
385
|
+
readonly prototype: any[];
|
|
386
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
387
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
388
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
389
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
390
|
+
of<T>(...items: T[]): T[];
|
|
391
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
392
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
393
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
394
|
+
};
|
|
395
|
+
required: false;
|
|
396
|
+
};
|
|
397
|
+
enumEntity: {
|
|
398
|
+
type: StringConstructor;
|
|
399
|
+
default: string;
|
|
400
|
+
};
|
|
401
|
+
filterKey: {
|
|
402
|
+
type: StringConstructor;
|
|
403
|
+
default: string;
|
|
404
|
+
};
|
|
405
|
+
totalCount: {
|
|
406
|
+
type: NumberConstructor;
|
|
407
|
+
required: false;
|
|
408
|
+
};
|
|
409
|
+
noNeedRefreshNumFilterName: {
|
|
410
|
+
type: StringConstructor;
|
|
411
|
+
required: false;
|
|
412
|
+
};
|
|
413
|
+
allIsCheckbox: {
|
|
414
|
+
type: BooleanConstructor;
|
|
415
|
+
required: false;
|
|
416
|
+
};
|
|
417
|
+
allIsEmpty: {
|
|
418
|
+
type: BooleanConstructor;
|
|
419
|
+
required: false;
|
|
420
|
+
};
|
|
421
|
+
translateUserId: {
|
|
422
|
+
type: BooleanConstructor;
|
|
423
|
+
required: false;
|
|
424
|
+
};
|
|
425
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
426
|
+
filterChange: (...args: any[]) => void;
|
|
427
|
+
setNoNeedRefreshNumFilterName: (...args: any[]) => void;
|
|
428
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
429
|
+
selectList: {
|
|
430
|
+
type: {
|
|
431
|
+
(arrayLength: number): Option[];
|
|
432
|
+
(...items: Option[]): Option[];
|
|
433
|
+
new (arrayLength: number): Option[];
|
|
434
|
+
new (...items: Option[]): Option[];
|
|
435
|
+
isArray(arg: any): arg is any[];
|
|
436
|
+
readonly prototype: any[];
|
|
437
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
438
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
439
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
440
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
441
|
+
of<T>(...items: T[]): T[];
|
|
442
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
443
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
444
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
445
|
+
};
|
|
446
|
+
default: () => Option[];
|
|
447
|
+
};
|
|
448
|
+
baseUrl: {
|
|
449
|
+
type: StringConstructor;
|
|
450
|
+
default: string;
|
|
451
|
+
};
|
|
452
|
+
countList: {
|
|
453
|
+
type: {
|
|
454
|
+
(arrayLength: number): any[];
|
|
455
|
+
(...items: any[]): any[];
|
|
456
|
+
new (arrayLength: number): any[];
|
|
457
|
+
new (...items: any[]): any[];
|
|
458
|
+
isArray(arg: any): arg is any[];
|
|
459
|
+
readonly prototype: any[];
|
|
460
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
461
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
462
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
463
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
464
|
+
of<T>(...items: T[]): T[];
|
|
465
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
466
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
467
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
468
|
+
};
|
|
469
|
+
required: false;
|
|
470
|
+
};
|
|
471
|
+
enumEntity: {
|
|
472
|
+
type: StringConstructor;
|
|
473
|
+
default: string;
|
|
474
|
+
};
|
|
475
|
+
filterKey: {
|
|
476
|
+
type: StringConstructor;
|
|
477
|
+
default: string;
|
|
478
|
+
};
|
|
479
|
+
totalCount: {
|
|
480
|
+
type: NumberConstructor;
|
|
481
|
+
required: false;
|
|
482
|
+
};
|
|
483
|
+
noNeedRefreshNumFilterName: {
|
|
484
|
+
type: StringConstructor;
|
|
485
|
+
required: false;
|
|
486
|
+
};
|
|
487
|
+
allIsCheckbox: {
|
|
488
|
+
type: BooleanConstructor;
|
|
489
|
+
required: false;
|
|
490
|
+
};
|
|
491
|
+
allIsEmpty: {
|
|
492
|
+
type: BooleanConstructor;
|
|
493
|
+
required: false;
|
|
494
|
+
};
|
|
495
|
+
translateUserId: {
|
|
496
|
+
type: BooleanConstructor;
|
|
497
|
+
required: false;
|
|
498
|
+
};
|
|
499
|
+
}>> & Readonly<{
|
|
500
|
+
onFilterChange?: (...args: any[]) => any;
|
|
501
|
+
onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
|
|
502
|
+
}>, {
|
|
503
|
+
filterKey: string;
|
|
504
|
+
allIsCheckbox: boolean;
|
|
505
|
+
translateUserId: boolean;
|
|
506
|
+
selectList: Option[];
|
|
507
|
+
allIsEmpty: boolean;
|
|
508
|
+
baseUrl: string;
|
|
509
|
+
enumEntity: string;
|
|
510
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>) | ( SFCWithInstall<DefineComponent<{
|
|
511
|
+
filterList?: Array< DropdownEntity>;
|
|
512
|
+
totalCount?: number;
|
|
513
|
+
level1Count?: Array<{
|
|
514
|
+
value: string;
|
|
515
|
+
count: number;
|
|
516
|
+
}>;
|
|
517
|
+
level2Count?: Array<{
|
|
518
|
+
value: string;
|
|
519
|
+
count: number;
|
|
520
|
+
}>;
|
|
521
|
+
filterKey: string;
|
|
522
|
+
enumEntity: string;
|
|
523
|
+
baseUrl: string;
|
|
524
|
+
noNeedRefreshNumFilterName?: string;
|
|
525
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
526
|
+
filterChange: (...args: any[]) => void;
|
|
527
|
+
setNoNeedRefreshNumFilterName: (...args: any[]) => void;
|
|
528
|
+
}, string, PublicProps, Readonly<{
|
|
529
|
+
filterList?: Array< DropdownEntity>;
|
|
530
|
+
totalCount?: number;
|
|
531
|
+
level1Count?: Array<{
|
|
532
|
+
value: string;
|
|
533
|
+
count: number;
|
|
534
|
+
}>;
|
|
535
|
+
level2Count?: Array<{
|
|
536
|
+
value: string;
|
|
537
|
+
count: number;
|
|
538
|
+
}>;
|
|
539
|
+
filterKey: string;
|
|
540
|
+
enumEntity: string;
|
|
541
|
+
baseUrl: string;
|
|
542
|
+
noNeedRefreshNumFilterName?: string;
|
|
543
|
+
}> & Readonly<{
|
|
544
|
+
onFilterChange?: (...args: any[]) => any;
|
|
545
|
+
onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
|
|
546
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>) | ( SFCWithInstall<DefineComponent<{
|
|
547
|
+
xyFilters?: data;
|
|
548
|
+
filterKey: string;
|
|
549
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
550
|
+
filterChange: (...args: any[]) => void;
|
|
551
|
+
}, string, PublicProps, Readonly<{
|
|
552
|
+
xyFilters?: data;
|
|
553
|
+
filterKey: string;
|
|
554
|
+
}> & Readonly<{
|
|
555
|
+
onFilterChange?: (...args: any[]) => any;
|
|
556
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>))[];
|
|
557
|
+
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.yahee-comporehensive-search .input-with-select {
|
|
2
|
-
width: 83%;
|
|
3
|
-
border-radius: 0;
|
|
4
|
-
height: 24px;
|
|
5
|
-
}
|
|
6
|
-
.yahee-comporehensive-search .custom-select {
|
|
7
|
-
width: 95px;
|
|
8
|
-
background-color: white;
|
|
9
|
-
}
|
|
10
|
-
.yahee-comporehensive-search :deep(.custom-button + .custom-button) {
|
|
11
|
-
margin-left: 5px;
|
|
12
|
-
}
|
|
13
|
-
.yahee-comporehensive-search :deep(.custom-button) {
|
|
14
|
-
padding: 1px 4px;
|
|
15
|
-
height: 22px;
|
|
16
|
-
}
|
|
17
|
-
.yahee-comporehensive-search .icon-cursor {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
}
|
|
20
|
-
.yahee-comporehensive-search .search-type-checkbox {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
width: 83%;
|
|
24
|
-
}
|
package/global.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare module 'vue' {
|
|
2
|
-
export interface GlobalComponents {
|
|
3
|
-
YaheeInput: (typeof import('yahee-component'))['YaheeInput'];
|
|
4
|
-
YaheeComprehensiveSearch: (typeof import('yahee-component'))['YaheeComprehensiveSearch'];
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface ComponentCustomProperties {}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.yahee-comporehensive-search .input-with-select {
|
|
2
|
-
width: 83%;
|
|
3
|
-
border-radius: 0;
|
|
4
|
-
height: 24px;
|
|
5
|
-
}
|
|
6
|
-
.yahee-comporehensive-search .custom-select {
|
|
7
|
-
width: 95px;
|
|
8
|
-
background-color: white;
|
|
9
|
-
}
|
|
10
|
-
.yahee-comporehensive-search :deep(.custom-button + .custom-button) {
|
|
11
|
-
margin-left: 5px;
|
|
12
|
-
}
|
|
13
|
-
.yahee-comporehensive-search :deep(.custom-button) {
|
|
14
|
-
padding: 1px 4px;
|
|
15
|
-
height: 22px;
|
|
16
|
-
}
|
|
17
|
-
.yahee-comporehensive-search .icon-cursor {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
}
|
|
20
|
-
.yahee-comporehensive-search .search-type-checkbox {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
width: 83%;
|
|
24
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as ComprehensiveSearch } from './comprehensive-search.vue';
|
|
2
|
-
/**
|
|
3
|
-
* 定义instance类型
|
|
4
|
-
*/
|
|
5
|
-
export type ComprehensiveSearchInstance = InstanceType<typeof ComprehensiveSearch>;
|
|
6
|
-
/**
|
|
7
|
-
* 综合搜索下拉选项
|
|
8
|
-
*/
|
|
9
|
-
export type SearchOptions = {
|
|
10
|
-
value: string;
|
|
11
|
-
label: string;
|
|
12
|
-
};
|