yahee-components 0.0.87 → 0.0.89
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 +51 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +64 -95
- package/es/border-wrap/border-wrap.vue2.js +46 -2
- package/es/common-import/common-import.vue.js +369 -666
- package/es/common-import/common-import.vue2.js +337 -2
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +38 -37
- package/es/complex-search/complex-search.vue2.js +117 -116
- package/es/copy/copy.vue.js +37 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +115 -215
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/echart-gauge/echart-gauge.vue.js +12 -140
- package/es/echart-gauge/echart-gauge.vue2.js +147 -2
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +109 -170
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +32 -91
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +70 -218
- package/es/left-condition/left-condition.vue2.js +160 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
- package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
- package/es/operation-log/operation-log-content.vue.js +71 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +45 -67
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +108 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +119 -228
- package/es/operation-log/operation-log.vue2.js +135 -2
- 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 +19 -126
- package/es/scale-screen/scale-screen.vue2.js +125 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { defaultComplexSearchProps as
|
|
4
|
-
import { ElLink as
|
|
1
|
+
import { defineComponent as R, toRefs as _, ref as l, watch as k } from "vue";
|
|
2
|
+
import v from "../_virtual/lodash.js";
|
|
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,166 +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
|
-
// 使用 components 选项注册所有 Element Plus 组件
|
|
25
24
|
components: {
|
|
26
|
-
ElInput:
|
|
27
|
-
ElCheckbox:
|
|
28
|
-
ElSelect:
|
|
29
|
-
ElDialog:
|
|
25
|
+
ElInput: J,
|
|
26
|
+
ElCheckbox: z,
|
|
27
|
+
ElSelect: $,
|
|
28
|
+
ElDialog: Y,
|
|
30
29
|
ElIcon: q,
|
|
31
|
-
ElForm:
|
|
32
|
-
ElFormItem:
|
|
33
|
-
ElRow:
|
|
34
|
-
ElButton:
|
|
35
|
-
ElOption:
|
|
36
|
-
ElLink:
|
|
37
|
-
Search:
|
|
30
|
+
ElForm: j,
|
|
31
|
+
ElFormItem: V,
|
|
32
|
+
ElRow: K,
|
|
33
|
+
ElButton: G,
|
|
34
|
+
ElOption: P,
|
|
35
|
+
ElLink: L,
|
|
36
|
+
Search: M
|
|
38
37
|
},
|
|
39
38
|
props: {
|
|
40
39
|
defaultSearch: {
|
|
41
40
|
type: String,
|
|
42
|
-
default:
|
|
41
|
+
default: o().defaultSearch
|
|
43
42
|
},
|
|
44
43
|
options: {
|
|
45
44
|
type: Array,
|
|
46
|
-
default:
|
|
45
|
+
default: o().options
|
|
47
46
|
},
|
|
48
47
|
placeholderText: {
|
|
49
48
|
type: String,
|
|
50
|
-
default:
|
|
49
|
+
default: o().placeholderText
|
|
51
50
|
},
|
|
52
51
|
showPatchSearch: {
|
|
53
52
|
type: Boolean,
|
|
54
|
-
default:
|
|
53
|
+
default: o().showPatchSearch
|
|
55
54
|
},
|
|
56
55
|
showWithinFilterCheckbox: {
|
|
57
56
|
type: Boolean,
|
|
58
|
-
default:
|
|
57
|
+
default: o().showWithinFilterCheckbox
|
|
59
58
|
},
|
|
60
59
|
specialOptions: {
|
|
61
60
|
type: Array,
|
|
62
|
-
default:
|
|
61
|
+
default: o().specialOptions
|
|
63
62
|
},
|
|
64
63
|
normalOptions: {
|
|
65
64
|
type: Array,
|
|
66
|
-
default:
|
|
65
|
+
default: o().normalOptions
|
|
67
66
|
},
|
|
68
67
|
showSelect: {
|
|
69
68
|
type: Boolean,
|
|
70
|
-
default:
|
|
69
|
+
default: o().showSelect
|
|
71
70
|
},
|
|
72
71
|
searchItem: {
|
|
73
72
|
type: Object,
|
|
74
|
-
default:
|
|
73
|
+
default: o().searchItem
|
|
75
74
|
},
|
|
76
75
|
isBatchSelectOptionsSameWithInput: {
|
|
77
76
|
type: Boolean,
|
|
78
|
-
default:
|
|
77
|
+
default: o().isBatchSelectOptionsSameWithInput
|
|
79
78
|
},
|
|
80
79
|
batchOptions: {
|
|
81
80
|
type: Array,
|
|
82
|
-
default:
|
|
81
|
+
default: o().batchOptions
|
|
83
82
|
}
|
|
84
83
|
},
|
|
85
|
-
emits: ["filterChangeGrandson"],
|
|
86
|
-
setup(
|
|
87
|
-
const { specialOptions:
|
|
88
|
-
selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
|
|
84
|
+
emits: ["filterChangeGrandson", "update:searchItem"],
|
|
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 = {
|
|
89
87
|
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
88
|
+
}, n = l({ ...E.value });
|
|
89
|
+
k(
|
|
90
|
+
() => E.value,
|
|
91
|
+
(t) => {
|
|
92
|
+
n.value = { ...t }, s();
|
|
93
|
+
},
|
|
94
|
+
{ deep: !0 }
|
|
95
|
+
);
|
|
96
|
+
const b = () => {
|
|
97
|
+
s();
|
|
98
|
+
}, w = () => {
|
|
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);
|
|
110
|
+
}, W = () => {
|
|
111
|
+
s();
|
|
112
|
+
}, x = () => {
|
|
113
|
+
u.value = !0;
|
|
114
|
+
}, B = () => {
|
|
115
|
+
u.value = !1, r.value = { searchType: "WHOLE_SEARCH", searchContent: "" };
|
|
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();
|
|
130
|
+
}, 50));
|
|
131
|
+
}, D = (t) => {
|
|
132
|
+
const e = O(t);
|
|
110
133
|
if (e) {
|
|
111
|
-
const
|
|
112
|
-
|
|
134
|
+
const a = r.value.searchContent || "";
|
|
135
|
+
r.value.searchContent = a ? `${a},${e}` : e;
|
|
113
136
|
}
|
|
114
|
-
},
|
|
115
|
-
var
|
|
116
|
-
|
|
117
|
-
const e = (
|
|
137
|
+
}, O = (t) => {
|
|
138
|
+
var a;
|
|
139
|
+
t.preventDefault();
|
|
140
|
+
const e = (a = t.clipboardData) == null ? void 0 : a.getData("text/plain");
|
|
118
141
|
return e == null ? void 0 : e.replace(/[\n\r\t]+/g, ",");
|
|
119
|
-
}, A = () => {
|
|
120
|
-
h.value ? k([
|
|
121
|
-
{ filterKey: "putSearch", checkedValues: i.value },
|
|
122
|
-
{ filterKey: "searchType", checkedValues: l.value }
|
|
123
|
-
]) : u(
|
|
124
|
-
"filterChangeGrandson",
|
|
125
|
-
{ putSearch: i.value, searchType: l.value },
|
|
126
|
-
l.value
|
|
127
|
-
);
|
|
128
|
-
}, B = () => {
|
|
129
|
-
m.value && m.value.validate((a) => {
|
|
130
|
-
a && (f.value = !0, h.value ? k([
|
|
131
|
-
{ filterKey: "putSearch", checkedValues: o.value.searchContent },
|
|
132
|
-
{ filterKey: "searchType", checkedValues: o.value.searchType }
|
|
133
|
-
]) : u(
|
|
134
|
-
"filterChangeGrandson",
|
|
135
|
-
{
|
|
136
|
-
putSearch: o.value.searchContent,
|
|
137
|
-
searchType: o.value.searchType
|
|
138
|
-
},
|
|
139
|
-
l.value
|
|
140
|
-
), p.value = !1, f.value = !1);
|
|
141
|
-
});
|
|
142
142
|
};
|
|
143
143
|
return {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
144
|
+
selectedSearchType: i,
|
|
145
|
+
putSearch: h,
|
|
146
|
+
isWithinFilterOptions: p,
|
|
147
|
+
confirmLoading: d,
|
|
148
|
+
showBatchSearch: u,
|
|
149
|
+
batchSearchFormRef: S,
|
|
150
|
+
batchSearchForm: r,
|
|
151
|
+
defalutOptions: I,
|
|
152
|
+
rules: T,
|
|
153
|
+
showBatchSearchDialog: x,
|
|
154
|
+
handleBatchSearchClose: B,
|
|
155
|
+
searchWithinFilterOptions: W,
|
|
156
|
+
handleSearch: b,
|
|
157
|
+
handleClear: w,
|
|
158
|
+
pasteFormatInput: A,
|
|
159
|
+
confirmSearch: () => {
|
|
160
|
+
S.value && S.value.validate((t) => {
|
|
161
|
+
var e;
|
|
162
|
+
if (t && ((e = r.value.searchContent) != null && e.trim())) {
|
|
163
|
+
d.value = !0;
|
|
164
|
+
let a = {};
|
|
165
|
+
p.value ? a = {
|
|
166
|
+
...n.value,
|
|
167
|
+
putSearch: r.value.searchContent.trim(),
|
|
168
|
+
searchType: r.value.searchType
|
|
169
|
+
} : a = {
|
|
170
|
+
putSearch: r.value.searchContent.trim(),
|
|
171
|
+
searchType: r.value.searchType
|
|
172
|
+
}, f("filterChangeGrandson", a, r.value.searchType), r.value = { searchType: "WHOLE_SEARCH", searchContent: "" }, u.value = !1, d.value = !1;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
161
175
|
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
confirmLoading: f,
|
|
166
|
-
showBatchSearch: p,
|
|
167
|
-
batchSearchFormRef: m,
|
|
168
|
-
batchSearchForm: o,
|
|
169
|
-
defalutOptions: g,
|
|
170
|
-
rules: C,
|
|
171
|
-
showBatchSearchDialog: E,
|
|
172
|
-
handleBatchSearchClose: O,
|
|
173
|
-
searchWithinFilterOptions: b,
|
|
174
|
-
handleSearch: I,
|
|
175
|
-
pasteFormatInput: T,
|
|
176
|
-
confirmSearch: B,
|
|
177
|
-
pasteFormat: w
|
|
176
|
+
pasteFormat: D,
|
|
177
|
+
filterChange: H,
|
|
178
|
+
getSearchItem: () => n.value
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
181
|
});
|
|
181
182
|
export {
|
|
182
|
-
|
|
183
|
+
ye as default
|
|
183
184
|
};
|
package/es/copy/copy.vue.js
CHANGED
|
@@ -1,57 +1,39 @@
|
|
|
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
|
-
|
|
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
|
-
});
|
|
1
|
+
import n from "./copy.vue2.js";
|
|
2
|
+
import { createElementBlock as r, openBlock as l, createVNode as e, withCtx as c, createElementVNode as s, renderSlot as p } from "vue";
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = { class: "yahee-copy" };
|
|
5
|
+
function i(t, m, _, o, d, y) {
|
|
6
|
+
return l(), r("div", f, [
|
|
7
|
+
e(o.ElTooltip, {
|
|
8
|
+
placement: "right",
|
|
9
|
+
effect: "light",
|
|
10
|
+
offset: -5,
|
|
11
|
+
"show-arrow": !1,
|
|
12
|
+
"popper-class": "yahee-copy-custom-popper-class"
|
|
13
|
+
}, {
|
|
14
|
+
content: c(() => [
|
|
15
|
+
e(o.ElIcon, {
|
|
16
|
+
color: "#3366cc",
|
|
17
|
+
size: "18",
|
|
18
|
+
class: "icon",
|
|
19
|
+
onClick: o.copyContent
|
|
20
|
+
}, {
|
|
21
|
+
default: c(() => [
|
|
22
|
+
e(o.DocumentCopy)
|
|
23
|
+
]),
|
|
24
|
+
_: 1
|
|
25
|
+
})
|
|
26
|
+
]),
|
|
27
|
+
default: c(() => [
|
|
28
|
+
s("div", null, [
|
|
29
|
+
p(t.$slots, "default")
|
|
30
|
+
])
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
})
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
const E = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
|
|
55
37
|
export {
|
|
56
|
-
|
|
38
|
+
E as default
|
|
57
39
|
};
|
package/es/copy/copy.vue2.js
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as n } from "vue";
|
|
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
|
+
});
|
|
2
34
|
export {
|
|
3
|
-
|
|
35
|
+
b as default
|
|
4
36
|
};
|
package/es/copy/index.js
CHANGED