yahee-components 0.0.91 → 0.0.93
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/annex-upload/annex-upload.vue.js +154 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +666 -369
- package/es/common-import/common-import.vue2.js +2 -337
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +37 -36
- package/es/complex-search/complex-search.vue2.js +82 -94
- package/es/copy/copy.vue.js +55 -37
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +215 -115
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/help-tag/help-tag.vue.js +66 -0
- package/es/help-tag/help-tag.vue2.js +4 -0
- package/es/help-tag/index.js +7 -0
- package/es/help-tag/props.js +9 -0
- package/es/help-tag/style/index.css +0 -0
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/index.js +22 -18
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/installs.js +10 -8
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +67 -45
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/es/yahee-components.css +1 -1
- package/lib/help-tag/style/index.css +0 -0
- package/package.json +1 -1
- package/types/src/components.d.ts +1 -0
- package/types/src/help-tag/help-tag.d.ts +2 -0
- package/types/src/help-tag/help-tag.vue.d.ts +589 -0
- package/types/src/help-tag/index.d.ts +593 -0
- package/types/src/help-tag/props.d.ts +27 -0
- package/types/src/complex-search/complex-search.vue.d.ts +0 -3
- package/types/src/complex-search/index.d.ts +0 -7
- package/types/src/installs.d.ts +0 -2649
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as R, toRefs as _, ref as
|
|
1
|
+
import { defineComponent as R, toRefs as _, ref as l, watch as k } from "vue";
|
|
2
2
|
import v from "../_virtual/lodash.js";
|
|
3
|
-
import { defaultComplexSearchProps as
|
|
4
|
-
import { ElLink as
|
|
3
|
+
import { defaultComplexSearchProps as o } from "./props.js";
|
|
4
|
+
import { ElLink as L, ElOption as P, ElButton as G, ElRow as K, ElFormItem as V, ElForm as j, ElIcon as q, ElDialog as Y, ElSelect as $, ElCheckbox as z, ElInput as J } 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";
|
|
@@ -18,179 +18,167 @@ import "element-plus/theme-chalk/src/form-item.scss";
|
|
|
18
18
|
import "element-plus/theme-chalk/src/row.scss";
|
|
19
19
|
import "element-plus/theme-chalk/src/button.scss";
|
|
20
20
|
import "element-plus/theme-chalk/src/link.scss";
|
|
21
|
-
import { Search as
|
|
22
|
-
const
|
|
21
|
+
import { Search as M } from "@element-plus/icons-vue";
|
|
22
|
+
const ye = R({
|
|
23
23
|
name: "YaheeComplexSearch",
|
|
24
24
|
components: {
|
|
25
|
-
ElInput:
|
|
26
|
-
ElCheckbox:
|
|
27
|
-
ElSelect:
|
|
28
|
-
ElDialog:
|
|
29
|
-
ElIcon:
|
|
30
|
-
ElForm:
|
|
31
|
-
ElFormItem:
|
|
32
|
-
ElRow:
|
|
33
|
-
ElButton:
|
|
25
|
+
ElInput: J,
|
|
26
|
+
ElCheckbox: z,
|
|
27
|
+
ElSelect: $,
|
|
28
|
+
ElDialog: Y,
|
|
29
|
+
ElIcon: q,
|
|
30
|
+
ElForm: j,
|
|
31
|
+
ElFormItem: V,
|
|
32
|
+
ElRow: K,
|
|
33
|
+
ElButton: G,
|
|
34
34
|
ElOption: P,
|
|
35
|
-
ElLink:
|
|
36
|
-
Search:
|
|
35
|
+
ElLink: L,
|
|
36
|
+
Search: M
|
|
37
37
|
},
|
|
38
38
|
props: {
|
|
39
39
|
defaultSearch: {
|
|
40
40
|
type: String,
|
|
41
|
-
default:
|
|
41
|
+
default: o().defaultSearch
|
|
42
42
|
},
|
|
43
43
|
options: {
|
|
44
44
|
type: Array,
|
|
45
|
-
default:
|
|
45
|
+
default: o().options
|
|
46
46
|
},
|
|
47
47
|
placeholderText: {
|
|
48
48
|
type: String,
|
|
49
|
-
default:
|
|
49
|
+
default: o().placeholderText
|
|
50
50
|
},
|
|
51
51
|
showPatchSearch: {
|
|
52
52
|
type: Boolean,
|
|
53
|
-
default:
|
|
53
|
+
default: o().showPatchSearch
|
|
54
54
|
},
|
|
55
55
|
showWithinFilterCheckbox: {
|
|
56
56
|
type: Boolean,
|
|
57
|
-
default:
|
|
57
|
+
default: o().showWithinFilterCheckbox
|
|
58
58
|
},
|
|
59
59
|
specialOptions: {
|
|
60
60
|
type: Array,
|
|
61
|
-
default:
|
|
61
|
+
default: o().specialOptions
|
|
62
62
|
},
|
|
63
63
|
normalOptions: {
|
|
64
64
|
type: Array,
|
|
65
|
-
default:
|
|
65
|
+
default: o().normalOptions
|
|
66
66
|
},
|
|
67
67
|
showSelect: {
|
|
68
68
|
type: Boolean,
|
|
69
|
-
default:
|
|
69
|
+
default: o().showSelect
|
|
70
70
|
},
|
|
71
71
|
searchItem: {
|
|
72
72
|
type: Object,
|
|
73
|
-
default:
|
|
73
|
+
default: o().searchItem
|
|
74
74
|
},
|
|
75
75
|
isBatchSelectOptionsSameWithInput: {
|
|
76
76
|
type: Boolean,
|
|
77
|
-
default:
|
|
77
|
+
default: o().isBatchSelectOptionsSameWithInput
|
|
78
78
|
},
|
|
79
79
|
batchOptions: {
|
|
80
80
|
type: Array,
|
|
81
|
-
default:
|
|
81
|
+
default: o().batchOptions
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
emits: ["filterChangeGrandson", "update:searchItem"],
|
|
85
|
-
setup(y, { emit:
|
|
86
|
-
const { specialOptions: C, normalOptions:
|
|
85
|
+
setup(y, { emit: f }) {
|
|
86
|
+
const { specialOptions: C, normalOptions: g, searchItem: E } = _(y), i = l(y.defaultSearch || "WHOLE_SEARCH"), h = l(""), p = l(!1), d = l(!1), u = l(!1), S = l(null), r = l({ searchType: "WHOLE_SEARCH", searchContent: "" }), I = [{ value: "WHOLE_SEARCH", label: "综合搜索" }], T = {
|
|
87
87
|
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
88
|
-
},
|
|
88
|
+
}, n = l({ ...E.value });
|
|
89
89
|
k(
|
|
90
90
|
() => E.value,
|
|
91
|
-
(
|
|
92
|
-
|
|
91
|
+
(t) => {
|
|
92
|
+
n.value = { ...t }, s();
|
|
93
93
|
},
|
|
94
94
|
{ deep: !0 }
|
|
95
95
|
);
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
p.value ? e = {
|
|
99
|
-
...c.value,
|
|
100
|
-
...o.value ? { putSearch: o.value } : {},
|
|
101
|
-
searchType: h.value
|
|
102
|
-
// 包含 searchType
|
|
103
|
-
} : e = {
|
|
104
|
-
...c.value
|
|
105
|
-
// 注意:这里不包含 searchType
|
|
106
|
-
}, e.putSearch === "" && delete e.putSearch, console.log("左侧筛选条件变化,触发搜索:", e), p.value ? i("filterChangeGrandson", e, h.value) : i("filterChangeGrandson", e, void 0);
|
|
107
|
-
}, m = () => {
|
|
108
|
-
let e = {};
|
|
109
|
-
p.value ? e = {
|
|
110
|
-
...c.value,
|
|
111
|
-
putSearch: o.value || "",
|
|
112
|
-
searchType: h.value
|
|
113
|
-
} : e = {
|
|
114
|
-
putSearch: o.value || "",
|
|
115
|
-
searchType: h.value
|
|
116
|
-
// 包含 searchType
|
|
117
|
-
}, e.putSearch === "" && delete e.putSearch, console.log("搜索框变化,触发搜索:", e), i("filterChangeGrandson", e, h.value);
|
|
118
|
-
}, b = () => {
|
|
119
|
-
m();
|
|
96
|
+
const b = () => {
|
|
97
|
+
s();
|
|
120
98
|
}, w = () => {
|
|
121
|
-
|
|
99
|
+
h.value = "", s();
|
|
100
|
+
}, s = () => {
|
|
101
|
+
let t = {};
|
|
102
|
+
p.value ? t = {
|
|
103
|
+
...n.value,
|
|
104
|
+
putSearch: h.value || "",
|
|
105
|
+
searchType: i.value
|
|
106
|
+
} : t = {
|
|
107
|
+
putSearch: h.value || "",
|
|
108
|
+
searchType: i.value
|
|
109
|
+
}, f("filterChangeGrandson", t, i.value);
|
|
122
110
|
}, W = () => {
|
|
123
|
-
|
|
111
|
+
s();
|
|
124
112
|
}, x = () => {
|
|
125
113
|
u.value = !0;
|
|
126
114
|
}, B = () => {
|
|
127
115
|
u.value = !1, r.value = { searchType: "WHOLE_SEARCH", searchContent: "" };
|
|
128
|
-
},
|
|
129
|
-
const a = { ...
|
|
130
|
-
return v.map(C.value, (
|
|
131
|
-
},
|
|
132
|
-
let
|
|
133
|
-
v.forEach(
|
|
134
|
-
|
|
135
|
-
const { checkedValues:
|
|
136
|
-
v.isEmpty(
|
|
137
|
-
}),
|
|
138
|
-
},
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
116
|
+
}, F = (t, e) => {
|
|
117
|
+
const a = { ...t };
|
|
118
|
+
return v.map(C.value, (c) => c.key).includes(e.filterKey) ? C.value.forEach((c) => delete a[c.key]) : delete a[e.filterKey], a;
|
|
119
|
+
}, H = (t) => {
|
|
120
|
+
let e = { ...n.value };
|
|
121
|
+
v.forEach(t, (a) => {
|
|
122
|
+
e = F(e, a);
|
|
123
|
+
const { checkedValues: c, filterKey: m } = a;
|
|
124
|
+
v.isEmpty(c) ? delete e[m] : g.value.includes(m) ? e[m] = c[0] : e[m] = c;
|
|
125
|
+
}), n.value = e, f("update:searchItem", e), p.value && s();
|
|
126
|
+
}, A = (t) => {
|
|
127
|
+
const e = O(t);
|
|
128
|
+
e !== null && (h.value = e, setTimeout(() => {
|
|
129
|
+
s();
|
|
142
130
|
}, 50));
|
|
143
|
-
},
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
131
|
+
}, D = (t) => {
|
|
132
|
+
const e = O(t);
|
|
133
|
+
if (e) {
|
|
146
134
|
const a = r.value.searchContent || "";
|
|
147
|
-
r.value.searchContent = a ? `${a},${
|
|
135
|
+
r.value.searchContent = a ? `${a},${e}` : e;
|
|
148
136
|
}
|
|
149
|
-
}, O = (
|
|
137
|
+
}, O = (t) => {
|
|
150
138
|
var a;
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
return
|
|
139
|
+
t.preventDefault();
|
|
140
|
+
const e = (a = t.clipboardData) == null ? void 0 : a.getData("text/plain");
|
|
141
|
+
return e == null ? void 0 : e.replace(/[\n\r\t]+/g, ",");
|
|
154
142
|
};
|
|
155
143
|
return {
|
|
156
|
-
selectedSearchType:
|
|
157
|
-
putSearch:
|
|
144
|
+
selectedSearchType: i,
|
|
145
|
+
putSearch: h,
|
|
158
146
|
isWithinFilterOptions: p,
|
|
159
147
|
confirmLoading: d,
|
|
160
148
|
showBatchSearch: u,
|
|
161
149
|
batchSearchFormRef: S,
|
|
162
150
|
batchSearchForm: r,
|
|
163
|
-
defalutOptions:
|
|
164
|
-
rules:
|
|
151
|
+
defalutOptions: I,
|
|
152
|
+
rules: T,
|
|
165
153
|
showBatchSearchDialog: x,
|
|
166
154
|
handleBatchSearchClose: B,
|
|
167
155
|
searchWithinFilterOptions: W,
|
|
168
156
|
handleSearch: b,
|
|
169
157
|
handleClear: w,
|
|
170
|
-
pasteFormatInput:
|
|
158
|
+
pasteFormatInput: A,
|
|
171
159
|
confirmSearch: () => {
|
|
172
|
-
S.value && S.value.validate((
|
|
173
|
-
var
|
|
174
|
-
if (
|
|
160
|
+
S.value && S.value.validate((t) => {
|
|
161
|
+
var e;
|
|
162
|
+
if (t && ((e = r.value.searchContent) != null && e.trim())) {
|
|
175
163
|
d.value = !0;
|
|
176
164
|
let a = {};
|
|
177
165
|
p.value ? a = {
|
|
178
|
-
...
|
|
166
|
+
...n.value,
|
|
179
167
|
putSearch: r.value.searchContent.trim(),
|
|
180
168
|
searchType: r.value.searchType
|
|
181
169
|
} : a = {
|
|
182
170
|
putSearch: r.value.searchContent.trim(),
|
|
183
171
|
searchType: r.value.searchType
|
|
184
|
-
},
|
|
172
|
+
}, f("filterChangeGrandson", a, r.value.searchType), r.value = { searchType: "WHOLE_SEARCH", searchContent: "" }, u.value = !1, d.value = !1;
|
|
185
173
|
}
|
|
186
174
|
});
|
|
187
175
|
},
|
|
188
|
-
pasteFormat:
|
|
189
|
-
filterChange:
|
|
190
|
-
getSearchItem: () =>
|
|
176
|
+
pasteFormat: D,
|
|
177
|
+
filterChange: H,
|
|
178
|
+
getSearchItem: () => n.value
|
|
191
179
|
};
|
|
192
180
|
}
|
|
193
181
|
});
|
|
194
182
|
export {
|
|
195
|
-
|
|
183
|
+
ye as default
|
|
196
184
|
};
|
package/es/copy/copy.vue.js
CHANGED
|
@@ -1,39 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { defineComponent as a, createElementBlock as l, openBlock as m, createVNode as e, unref as o, withCtx as t, createElementVNode as i, renderSlot as f } from "vue";
|
|
2
|
+
import { ElTooltip as u, ElIcon as d, ElMessage as y } from "element-plus";
|
|
3
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
+
import "element-plus/theme-chalk/src/tooltip.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/badge.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/message.scss";
|
|
8
|
+
import { DocumentCopy as h } from "@element-plus/icons-vue";
|
|
9
|
+
import { useClipboard as _ } from "../packages/components/hooks/useClipboard.js";
|
|
10
|
+
const C = { class: "yahee-copy" }, z = /* @__PURE__ */ a({
|
|
11
|
+
name: "YaheeCopy",
|
|
12
|
+
__name: "copy",
|
|
13
|
+
props: {
|
|
14
|
+
content: { default: "" },
|
|
15
|
+
message: { default: "复制成功" }
|
|
16
|
+
},
|
|
17
|
+
setup(c) {
|
|
18
|
+
const s = c, { copyUrl: p } = _(), r = () => {
|
|
19
|
+
p(s.content), y({
|
|
20
|
+
message: s.message,
|
|
21
|
+
type: "success"
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
return (n, g) => (m(), l("div", C, [
|
|
25
|
+
e(o(u), {
|
|
26
|
+
placement: "right",
|
|
27
|
+
effect: "light",
|
|
28
|
+
offset: -5,
|
|
29
|
+
"show-arrow": !1,
|
|
30
|
+
"popper-class": "yahee-copy-custom-popper-class"
|
|
31
|
+
}, {
|
|
32
|
+
content: t(() => [
|
|
33
|
+
e(o(d), {
|
|
34
|
+
color: "#3366cc",
|
|
35
|
+
size: "18",
|
|
36
|
+
class: "icon",
|
|
37
|
+
onClick: r
|
|
38
|
+
}, {
|
|
39
|
+
default: t(() => [
|
|
40
|
+
e(o(h))
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
})
|
|
44
|
+
]),
|
|
45
|
+
default: t(() => [
|
|
46
|
+
i("div", null, [
|
|
47
|
+
f(n.$slots, "default")
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
})
|
|
52
|
+
]));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
37
55
|
export {
|
|
38
|
-
|
|
56
|
+
z as default
|
|
39
57
|
};
|
package/es/copy/copy.vue2.js
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ElMessage as s, ElIcon as m, ElTooltip as i } from "element-plus";
|
|
3
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
-
import "element-plus/theme-chalk/src/tooltip.scss";
|
|
5
|
-
import "element-plus/theme-chalk/src/popper.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/badge.scss";
|
|
7
|
-
import "element-plus/theme-chalk/src/message.scss";
|
|
8
|
-
import { DocumentCopy as c } from "@element-plus/icons-vue";
|
|
9
|
-
import { useClipboard as u } from "../packages/components/hooks/useClipboard.js";
|
|
10
|
-
const b = /* @__PURE__ */ n({
|
|
11
|
-
name: "YaheeCopy",
|
|
12
|
-
__name: "copy",
|
|
13
|
-
props: {
|
|
14
|
-
content: { type: String, required: !0, default: "" },
|
|
15
|
-
message: { type: String, required: !1, default: "复制成功" }
|
|
16
|
-
},
|
|
17
|
-
setup(r, { expose: p }) {
|
|
18
|
-
p();
|
|
19
|
-
const e = r, { copyUrl: t } = u(), o = { props: e, copyUrl: t, copyContent: () => {
|
|
20
|
-
t(e.content), s({
|
|
21
|
-
message: e.message,
|
|
22
|
-
type: "success"
|
|
23
|
-
});
|
|
24
|
-
}, get ElTooltip() {
|
|
25
|
-
return i;
|
|
26
|
-
}, get ElIcon() {
|
|
27
|
-
return m;
|
|
28
|
-
}, get DocumentCopy() {
|
|
29
|
-
return c;
|
|
30
|
-
} };
|
|
31
|
-
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
1
|
+
import f from "./copy.vue.js";
|
|
34
2
|
export {
|
|
35
|
-
|
|
3
|
+
f as default
|
|
36
4
|
};
|
package/es/copy/index.js
CHANGED