yahee-components 0.0.39 → 0.0.40

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,11 +1,11 @@
1
1
  import E from "./complex-search.vue2.js";
2
- import { createBlock as t, openBlock as n, withCtx as o, createElementVNode as c, createVNode as r, withKeys as f, createSlots as S, createElementBlock as m, Fragment as i, renderList as h, createCommentVNode as s, createTextVNode as u, toDisplayString as d } from "vue";
3
- import b from "../_virtual/_plugin-vue_export-helper.js";
4
- const y = { class: "yahee-complex-search" }, F = { class: "search-type-checkbox" }, C = { class: "dialog-footer" };
5
- function V(B, a, k, e, w, v) {
6
- return n(), t(e.ElConfigProvider, { locale: e.locale }, {
2
+ import { createBlock as n, openBlock as t, withCtx as o, createElementVNode as h, createVNode as r, withKeys as f, createSlots as b, createElementBlock as d, Fragment as c, renderList as u, createCommentVNode as s, createTextVNode as m, toDisplayString as i } from "vue";
3
+ import y from "../_virtual/_plugin-vue_export-helper.js";
4
+ const S = { class: "yahee-complex-search" }, F = { class: "search-type-checkbox" }, V = { class: "dialog-footer" };
5
+ function k(C, a, w, e, B, v) {
6
+ return t(), n(e.ElConfigProvider, { locale: e.locale }, {
7
7
  default: o(() => [
8
- c("div", y, [
8
+ h("div", S, [
9
9
  r(e.ElInput, {
10
10
  modelValue: e.putSearch,
11
11
  "onUpdate:modelValue": a[2] || (a[2] = (l) => e.putSearch = l),
@@ -16,7 +16,7 @@ function V(B, a, k, e, w, v) {
16
16
  onChange: e.handleSearch,
17
17
  onKeyup: f(e.handleSearch, ["enter"]),
18
18
  onPaste: e.pasteFormat
19
- }, S({
19
+ }, b({
20
20
  append: o(() => [
21
21
  r(e.ElIcon, {
22
22
  size: "12",
@@ -45,10 +45,10 @@ function V(B, a, k, e, w, v) {
45
45
  class: "custom-select"
46
46
  }, {
47
47
  default: o(() => [
48
- (n(!0), m(
49
- i,
48
+ (t(!0), d(
49
+ c,
50
50
  null,
51
- h(e.options, (l) => (n(), t(e.ElOption, {
51
+ u(e.options, (l) => (t(), n(e.ElOption, {
52
52
  key: l.label,
53
53
  label: l.label,
54
54
  value: l.value
@@ -73,10 +73,10 @@ function V(B, a, k, e, w, v) {
73
73
  disabled: ""
74
74
  }, {
75
75
  default: o(() => [
76
- (n(), m(
77
- i,
76
+ (t(), d(
77
+ c,
78
78
  null,
79
- h(e.defalutOptions, (l) => r(e.ElOption, {
79
+ u(e.defalutOptions, (l) => r(e.ElOption, {
80
80
  key: l.label,
81
81
  label: l.label,
82
82
  value: l.value
@@ -92,26 +92,26 @@ function V(B, a, k, e, w, v) {
92
92
  key: "1"
93
93
  }
94
94
  ]), 1032, ["modelValue", "placeholder", "onPaste"]),
95
- c("div", F, [
96
- e.showWithinFilterCheckbox ? (n(), t(e.ElCheckbox, {
95
+ h("div", F, [
96
+ e.showWithinFilterCheckbox ? (t(), n(e.ElCheckbox, {
97
97
  key: 0,
98
98
  modelValue: e.isWithinFilterOptions,
99
99
  "onUpdate:modelValue": a[3] || (a[3] = (l) => e.isWithinFilterOptions = l),
100
100
  onChange: e.searchWithinFilterOptions
101
101
  }, {
102
- default: o(() => a[7] || (a[7] = [
103
- u(d("在筛选条件内查询"))
102
+ default: o(() => a[8] || (a[8] = [
103
+ m(i("在筛选条件内查询"))
104
104
  ])),
105
105
  _: 1
106
106
  /* STABLE */
107
107
  }, 8, ["modelValue"])) : s("v-if", !0),
108
- e.showPatchSearch ? (n(), t(e.ElLink, {
108
+ e.showPatchSearch ? (t(), n(e.ElLink, {
109
109
  key: 1,
110
110
  type: "primary",
111
111
  onClick: e.showBatchSearchDialog
112
112
  }, {
113
- default: o(() => a[8] || (a[8] = [
114
- u(d("批量查询"))
113
+ default: o(() => a[9] || (a[9] = [
114
+ m(i("批量查询"))
115
115
  ])),
116
116
  _: 1
117
117
  /* STABLE */
@@ -120,7 +120,7 @@ function V(B, a, k, e, w, v) {
120
120
  ]),
121
121
  r(e.ElDialog, {
122
122
  modelValue: e.showBatchSearch,
123
- "onUpdate:modelValue": a[6] || (a[6] = (l) => e.showBatchSearch = l),
123
+ "onUpdate:modelValue": a[7] || (a[7] = (l) => e.showBatchSearch = l),
124
124
  title: "批量查询",
125
125
  width: "30%",
126
126
  "before-close": e.handleBatchSearchClose,
@@ -128,21 +128,21 @@ function V(B, a, k, e, w, v) {
128
128
  draggable: ""
129
129
  }, {
130
130
  footer: o(() => [
131
- c("div", C, [
131
+ h("div", V, [
132
132
  r(e.ElButton, {
133
133
  type: "primary",
134
134
  loading: e.confirmLoading,
135
135
  onClick: e.confirmSearch
136
136
  }, {
137
137
  default: o(() => a[10] || (a[10] = [
138
- u(d("确认"))
138
+ m(i("确认"))
139
139
  ])),
140
140
  _: 1
141
141
  /* STABLE */
142
142
  }, 8, ["loading"]),
143
143
  r(e.ElButton, { onClick: e.handleBatchSearchClose }, {
144
144
  default: o(() => a[11] || (a[11] = [
145
- u(d("关闭"))
145
+ m(i("关闭"))
146
146
  ])),
147
147
  _: 1
148
148
  /* STABLE */
@@ -156,34 +156,22 @@ function V(B, a, k, e, w, v) {
156
156
  rules: e.rules
157
157
  }, {
158
158
  default: o(() => [
159
- r(e.ElRow, { class: "row-class" }, {
160
- default: o(() => a[9] || (a[9] = [
161
- c(
162
- "span",
163
- null,
164
- d("综合搜索"),
165
- -1
166
- /* HOISTED */
167
- )
168
- ])),
169
- _: 1
170
- /* STABLE */
171
- }),
172
159
  r(e.ElRow, { class: "row-class" }, {
173
160
  default: o(() => [
174
161
  r(e.ElFormItem, { prop: "searchType" }, {
175
162
  default: o(() => [
176
- r(e.ElSelect, {
163
+ e.showSelect ? (t(), n(e.ElSelect, {
164
+ key: 0,
177
165
  modelValue: e.batchSearchForm.searchType,
178
166
  "onUpdate:modelValue": a[4] || (a[4] = (l) => e.batchSearchForm.searchType = l),
179
167
  size: "small",
180
- class: "custom-select"
168
+ style: { width: "95px", "background-color": "white" }
181
169
  }, {
182
170
  default: o(() => [
183
- (n(!0), m(
184
- i,
171
+ (t(!0), d(
172
+ c,
185
173
  null,
186
- h(e.options, (l) => (n(), t(e.ElOption, {
174
+ u(e.options, (l) => (t(), n(e.ElOption, {
187
175
  key: l.label,
188
176
  label: l.label,
189
177
  value: l.value
@@ -194,7 +182,30 @@ function V(B, a, k, e, w, v) {
194
182
  ]),
195
183
  _: 1
196
184
  /* STABLE */
197
- }, 8, ["modelValue"])
185
+ }, 8, ["modelValue"])) : (t(), n(e.ElSelect, {
186
+ key: 1,
187
+ modelValue: e.batchSearchForm.searchType,
188
+ "onUpdate:modelValue": a[5] || (a[5] = (l) => e.batchSearchForm.searchType = l),
189
+ size: "small",
190
+ style: { width: "95px", "background-color": "white" },
191
+ disabled: ""
192
+ }, {
193
+ default: o(() => [
194
+ (t(), d(
195
+ c,
196
+ null,
197
+ u(e.defalutOptions, (l) => r(e.ElOption, {
198
+ key: l.label,
199
+ label: l.label,
200
+ value: l.value
201
+ }, null, 8, ["label", "value"])),
202
+ 64
203
+ /* STABLE_FRAGMENT */
204
+ ))
205
+ ]),
206
+ _: 1
207
+ /* STABLE */
208
+ }, 8, ["modelValue"]))
198
209
  ]),
199
210
  _: 1
200
211
  /* STABLE */
@@ -212,7 +223,7 @@ function V(B, a, k, e, w, v) {
212
223
  default: o(() => [
213
224
  r(e.ElInput, {
214
225
  modelValue: e.batchSearchForm.searchContent,
215
- "onUpdate:modelValue": a[5] || (a[5] = (l) => e.batchSearchForm.searchContent = l),
226
+ "onUpdate:modelValue": a[6] || (a[6] = (l) => e.batchSearchForm.searchContent = l),
216
227
  placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
217
228
  type: "textarea",
218
229
  rows: 5,
@@ -239,7 +250,7 @@ function V(B, a, k, e, w, v) {
239
250
  /* STABLE */
240
251
  }, 8, ["locale"]);
241
252
  }
242
- const _ = /* @__PURE__ */ b(E, [["render", V], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
253
+ const _ = /* @__PURE__ */ y(E, [["render", k], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
243
254
  export {
244
255
  _ as default
245
256
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as L, mergeDefaults as V, toRefs as j, ref as a } from "vue";
2
2
  import f from "../_virtual/lodash.js";
3
- import { defaultComplexSearchProps as H } from "./props.js";
4
- import { ElConfigProvider as z, ElLink as Y, ElOption as J, ElButton as M, ElRow as N, ElFormItem as Q, ElForm as U, ElIcon as X, ElDialog as Z, ElSelect as $, ElCheckbox as ee, ElInput as te } from "element-plus";
3
+ import { defaultComplexSearchProps as z } from "./props.js";
4
+ import { ElConfigProvider as Y, ElLink as H, ElOption as J, ElButton as M, ElRow as N, ElFormItem as Q, ElForm as U, ElIcon as X, ElDialog as Z, ElSelect as $, ElCheckbox as ee, ElInput as te } from "element-plus";
5
5
  import "element-plus/theme-chalk/src/base.scss";
6
6
  import "element-plus/theme-chalk/src/input.scss";
7
7
  import "element-plus/theme-chalk/src/checkbox.scss";
@@ -21,7 +21,7 @@ import "element-plus/theme-chalk/src/link.scss";
21
21
  import "element-plus/theme-chalk/src/config-provider.scss";
22
22
  import { Search as re } from "@element-plus/icons-vue";
23
23
  import ae from "../packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js";
24
- const ke = /* @__PURE__ */ L({
24
+ const _e = /* @__PURE__ */ L({
25
25
  name: "YaheeComplexSearch",
26
26
  __name: "complex-search",
27
27
  props: /* @__PURE__ */ V({
@@ -35,14 +35,14 @@ const ke = /* @__PURE__ */ L({
35
35
  normalOptions: { type: Array, required: !1 },
36
36
  showSelect: { type: Boolean, required: !1 },
37
37
  searchItem: { type: Object, required: !1 }
38
- }, H()),
38
+ }, z()),
39
39
  emits: ["filterChangeGrandson"],
40
40
  setup(b, { expose: q, emit: x }) {
41
41
  q();
42
- const O = ae, o = x, d = b, {
42
+ const k = ae, o = x, d = b, {
43
43
  defaultSearch: g,
44
- pasteFormat: _,
45
- options: k,
44
+ pasteFormat: O,
45
+ options: _,
46
46
  showPatchSearch: w,
47
47
  specialOptions: u,
48
48
  showWithinFilterCheckbox: I,
@@ -50,22 +50,22 @@ const ke = /* @__PURE__ */ L({
50
50
  normalOptions: S,
51
51
  showSelect: P,
52
52
  searchItem: e
53
- } = j(d), G = a(g.value || "integrated"), i = a(""), s = a(!1), p = a(!1), c = a(!1), E = a(null), h = a({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
53
+ } = j(d), G = a(g.value || "integrated"), i = a(""), s = a(!1), p = a(!1), c = a(!1), v = a(null), h = a({ searchType: "integrated", searchContent: "" }), K = {
54
54
  selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
55
55
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
56
- }, R = [
56
+ }, T = [
57
57
  {
58
58
  value: "integrated",
59
59
  label: "综合搜索"
60
60
  }
61
- ], T = () => {
61
+ ], D = () => {
62
62
  c.value = !0;
63
- }, W = () => {
63
+ }, R = () => {
64
64
  c.value = !1;
65
- }, A = () => {
65
+ }, W = () => {
66
66
  s.value || (delete e.value.putSearch, o("filterChangeGrandson", e.value));
67
- }, v = () => e.value, D = () => {
68
- i.value ? C() : o("filterChangeGrandson", v());
67
+ }, E = () => e.value, A = () => {
68
+ i.value ? C() : o("filterChangeGrandson", E());
69
69
  }, y = (l, n) => {
70
70
  const t = { ...l };
71
71
  return f.map(u.value, (r) => r.key).includes(n.filterKey) ? u.value.forEach((r) => delete t[r.key]) : delete t[n.filterKey], t;
@@ -86,8 +86,8 @@ const ke = /* @__PURE__ */ L({
86
86
  ]) : o("filterChangeGrandson", {
87
87
  putSearch: i.value
88
88
  });
89
- }, F = { locale: O, emit: o, props: d, defaultSearch: g, pasteFormat: _, options: k, showPatchSearch: w, specialOptions: u, showWithinFilterCheckbox: I, placeholderText: B, normalOptions: S, showSelect: P, searchItem: e, selectedSearchType: G, putSearch: i, isWithinFilterOptions: s, confirmLoading: p, showBatchSearch: c, batchSearchFormRef: E, batchSearchForm: h, rules: K, defalutOptions: R, showBatchSearchDialog: T, handleBatchSearchClose: W, searchWithinFilterOptions: A, getSearchItem: v, handleSearch: D, deleteExistProperty: y, filterChange: m, handlePutSearch: C, confirmSearch: () => {
90
- E.value.validate((l) => {
89
+ }, F = { locale: k, emit: o, props: d, defaultSearch: g, pasteFormat: O, options: _, showPatchSearch: w, specialOptions: u, showWithinFilterCheckbox: I, placeholderText: B, normalOptions: S, showSelect: P, searchItem: e, selectedSearchType: G, putSearch: i, isWithinFilterOptions: s, confirmLoading: p, showBatchSearch: c, batchSearchFormRef: v, batchSearchForm: h, rules: K, defalutOptions: T, showBatchSearchDialog: D, handleBatchSearchClose: R, searchWithinFilterOptions: W, getSearchItem: E, handleSearch: A, deleteExistProperty: y, filterChange: m, handlePutSearch: C, confirmSearch: () => {
90
+ v.value.validate((l) => {
91
91
  l && (p.value = !0, s.value ? m([
92
92
  {
93
93
  filterKey: "putSearch",
@@ -118,9 +118,9 @@ const ke = /* @__PURE__ */ L({
118
118
  }, get ElOption() {
119
119
  return J;
120
120
  }, get ElLink() {
121
- return Y;
121
+ return H;
122
122
  }, get ElConfigProvider() {
123
- return z;
123
+ return Y;
124
124
  }, get Search() {
125
125
  return re;
126
126
  } };
@@ -128,5 +128,5 @@ const ke = /* @__PURE__ */ L({
128
128
  }
129
129
  });
130
130
  export {
131
- ke as default
131
+ _e as default
132
132
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.39",
4
+ "version": "0.0.40",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -1,6 +1,6 @@
1
1
  import { ComplexSearchProps } from './props';
2
- import { SearchOptions, SearchDataOptions, SearchItem } from './complex-search';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { SearchOptions, SearchDataOptions, SearchItem } from './complex-search';
4
4
  declare const _default: DefineComponent<ComplexSearchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
5
  filterChangeGrandson: (...args: any[]) => void;
6
6
  }, string, PublicProps, Readonly<ComplexSearchProps> & Readonly<{