yahee-components 0.0.13 → 0.0.14

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