yahee-components 0.0.40 → 0.0.41
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 -69
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +294 -240
- package/es/complex-search/complex-search.vue2.js +2 -130
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +55 -39
- 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 +204 -158
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +211 -193
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/image-upload/image-upload.vue.js +113 -76
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- 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/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +86 -55
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +209 -91
- package/es/left-condition/left-condition.vue2.js +2 -152
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +77 -19
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -69
- package/es/operation-log/operation-log-content.vue.js +88 -78
- package/es/operation-log/operation-log-content.vue2.js +2 -35
- package/es/operation-log/operation-log-dialog.vue.js +68 -57
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -132
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +222 -183
- package/es/operation-log/operation-log.vue2.js +2 -133
- package/es/packages/components/api/log-server.js +5 -5
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/utils/translate.js +19 -19
- package/package.json +1 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
|
@@ -1,132 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import f from "../_virtual/lodash.js";
|
|
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
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/input.scss";
|
|
7
|
-
import "element-plus/theme-chalk/src/checkbox.scss";
|
|
8
|
-
import "element-plus/theme-chalk/src/tag.scss";
|
|
9
|
-
import "element-plus/theme-chalk/src/option.scss";
|
|
10
|
-
import "element-plus/theme-chalk/src/option-group.scss";
|
|
11
|
-
import "element-plus/theme-chalk/src/scrollbar.scss";
|
|
12
|
-
import "element-plus/theme-chalk/src/popper.scss";
|
|
13
|
-
import "element-plus/theme-chalk/src/select.scss";
|
|
14
|
-
import "element-plus/theme-chalk/src/dialog.scss";
|
|
15
|
-
import "element-plus/theme-chalk/src/overlay.scss";
|
|
16
|
-
import "element-plus/theme-chalk/src/form.scss";
|
|
17
|
-
import "element-plus/theme-chalk/src/form-item.scss";
|
|
18
|
-
import "element-plus/theme-chalk/src/row.scss";
|
|
19
|
-
import "element-plus/theme-chalk/src/button.scss";
|
|
20
|
-
import "element-plus/theme-chalk/src/link.scss";
|
|
21
|
-
import "element-plus/theme-chalk/src/config-provider.scss";
|
|
22
|
-
import { Search as re } from "@element-plus/icons-vue";
|
|
23
|
-
import ae from "../packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js";
|
|
24
|
-
const _e = /* @__PURE__ */ L({
|
|
25
|
-
name: "YaheeComplexSearch",
|
|
26
|
-
__name: "complex-search",
|
|
27
|
-
props: /* @__PURE__ */ V({
|
|
28
|
-
pasteFormat: { type: Function, required: !1 },
|
|
29
|
-
defaultSearch: { type: String, required: !1 },
|
|
30
|
-
options: { type: Array, required: !1 },
|
|
31
|
-
placeholderText: { type: String, required: !1 },
|
|
32
|
-
showPatchSearch: { type: Boolean, required: !1 },
|
|
33
|
-
showWithinFilterCheckbox: { type: Boolean, required: !1 },
|
|
34
|
-
specialOptions: { type: Array, required: !1 },
|
|
35
|
-
normalOptions: { type: Array, required: !1 },
|
|
36
|
-
showSelect: { type: Boolean, required: !1 },
|
|
37
|
-
searchItem: { type: Object, required: !1 }
|
|
38
|
-
}, z()),
|
|
39
|
-
emits: ["filterChangeGrandson"],
|
|
40
|
-
setup(b, { expose: q, emit: x }) {
|
|
41
|
-
q();
|
|
42
|
-
const k = ae, o = x, d = b, {
|
|
43
|
-
defaultSearch: g,
|
|
44
|
-
pasteFormat: O,
|
|
45
|
-
options: _,
|
|
46
|
-
showPatchSearch: w,
|
|
47
|
-
specialOptions: u,
|
|
48
|
-
showWithinFilterCheckbox: I,
|
|
49
|
-
placeholderText: B,
|
|
50
|
-
normalOptions: S,
|
|
51
|
-
showSelect: P,
|
|
52
|
-
searchItem: e
|
|
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
|
-
selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
|
|
55
|
-
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
56
|
-
}, T = [
|
|
57
|
-
{
|
|
58
|
-
value: "integrated",
|
|
59
|
-
label: "综合搜索"
|
|
60
|
-
}
|
|
61
|
-
], D = () => {
|
|
62
|
-
c.value = !0;
|
|
63
|
-
}, R = () => {
|
|
64
|
-
c.value = !1;
|
|
65
|
-
}, W = () => {
|
|
66
|
-
s.value || (delete e.value.putSearch, o("filterChangeGrandson", e.value));
|
|
67
|
-
}, E = () => e.value, A = () => {
|
|
68
|
-
i.value ? C() : o("filterChangeGrandson", E());
|
|
69
|
-
}, y = (l, n) => {
|
|
70
|
-
const t = { ...l };
|
|
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;
|
|
72
|
-
};
|
|
73
|
-
function m(l) {
|
|
74
|
-
f.forEach(l, (n) => {
|
|
75
|
-
y(e.value, n);
|
|
76
|
-
const { checkedValues: t, filterKey: r } = n;
|
|
77
|
-
f.isEmpty(t) || (S.value.includes(r) ? e.value[r] = t[0] : e.value[r] = t);
|
|
78
|
-
}), o("filterChangeGrandson", e.value);
|
|
79
|
-
}
|
|
80
|
-
const C = () => {
|
|
81
|
-
s.value ? m([
|
|
82
|
-
{
|
|
83
|
-
filterKey: "putSearch",
|
|
84
|
-
checkedValues: i.value
|
|
85
|
-
}
|
|
86
|
-
]) : o("filterChangeGrandson", {
|
|
87
|
-
putSearch: i.value
|
|
88
|
-
});
|
|
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
|
-
l && (p.value = !0, s.value ? m([
|
|
92
|
-
{
|
|
93
|
-
filterKey: "putSearch",
|
|
94
|
-
checkedValues: h.value.searchContent
|
|
95
|
-
}
|
|
96
|
-
]) : o("filterChangeGrandson", {
|
|
97
|
-
putSearch: h.value.searchContent
|
|
98
|
-
}), c.value = !1, p.value = !1);
|
|
99
|
-
});
|
|
100
|
-
}, get ElInput() {
|
|
101
|
-
return te;
|
|
102
|
-
}, get ElCheckbox() {
|
|
103
|
-
return ee;
|
|
104
|
-
}, get ElSelect() {
|
|
105
|
-
return $;
|
|
106
|
-
}, get ElDialog() {
|
|
107
|
-
return Z;
|
|
108
|
-
}, get ElIcon() {
|
|
109
|
-
return X;
|
|
110
|
-
}, get ElForm() {
|
|
111
|
-
return U;
|
|
112
|
-
}, get ElFormItem() {
|
|
113
|
-
return Q;
|
|
114
|
-
}, get ElRow() {
|
|
115
|
-
return N;
|
|
116
|
-
}, get ElButton() {
|
|
117
|
-
return M;
|
|
118
|
-
}, get ElOption() {
|
|
119
|
-
return J;
|
|
120
|
-
}, get ElLink() {
|
|
121
|
-
return H;
|
|
122
|
-
}, get ElConfigProvider() {
|
|
123
|
-
return Y;
|
|
124
|
-
}, get Search() {
|
|
125
|
-
return re;
|
|
126
|
-
} };
|
|
127
|
-
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
1
|
+
import f from "./complex-search.vue.js";
|
|
130
2
|
export {
|
|
131
|
-
|
|
3
|
+
f as default
|
|
132
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { withInstall as o } from "../utils/install.js";
|
|
2
|
+
import t from "./complex-search.vue.js";
|
|
3
|
+
const m = o(t);
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
m as YaheeComplexSearch,
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/es/copy/copy.vue.js
CHANGED
|
@@ -1,41 +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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { defineComponent as l, createElementBlock as a, 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 _ } 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 y } from "../packages/components/hooks/useClipboard.js";
|
|
10
|
+
const C = { class: "yahee-copy" }, z = /* @__PURE__ */ l({
|
|
11
|
+
name: "YaheeCopy",
|
|
12
|
+
__name: "copy",
|
|
13
|
+
props: {
|
|
14
|
+
content: { default: "" },
|
|
15
|
+
message: { default: "复制成功" }
|
|
16
|
+
},
|
|
17
|
+
setup(c) {
|
|
18
|
+
const s = c, { copyUrl: r } = y(), p = () => {
|
|
19
|
+
r(s.content), _({
|
|
20
|
+
message: s.message,
|
|
21
|
+
type: "success"
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
return (n, g) => (m(), a("div", C, [
|
|
25
|
+
e(o(u), {
|
|
26
|
+
placement: "right",
|
|
27
|
+
effect: "light",
|
|
28
|
+
offset: -5,
|
|
29
|
+
"show-arrow": !1,
|
|
30
|
+
"popper-class": "custom-popper-class"
|
|
31
|
+
}, {
|
|
32
|
+
content: t(() => [
|
|
33
|
+
e(o(d), {
|
|
34
|
+
color: "#3366cc",
|
|
35
|
+
size: "18",
|
|
36
|
+
class: "icon",
|
|
37
|
+
onClick: p
|
|
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
|
+
});
|
|
39
55
|
export {
|
|
40
|
-
|
|
56
|
+
z as default
|
|
41
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