yahee-components 0.0.52 → 0.0.53
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/annex-upload/annex-upload.vue.js +69 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +240 -312
- package/es/complex-search/complex-search.vue2.js +148 -2
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +39 -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 +158 -204
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/image-upload/image-upload.vue.js +76 -113
- 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 +5 -5
- package/es/left-condition/left-condition-sub.vue.js +55 -86
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +93 -210
- package/es/left-condition/left-condition.vue2.js +153 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
- package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
- package/es/operation-log/operation-log-content.vue.js +78 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +57 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +132 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +186 -227
- package/es/operation-log/operation-log.vue2.js +135 -2
- 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/types/src/installs.d.ts +3 -0
- package/types/src/left-condition/index.d.ts +3 -0
- package/types/src/left-condition/left-condition.vue.d.ts +2 -0
|
@@ -1,4 +1,150 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as L, mergeDefaults as V, toRefs as D, ref as l } from "vue";
|
|
2
|
+
import d from "../_virtual/lodash.js";
|
|
3
|
+
import { defaultComplexSearchProps as j } 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 re } 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 te } from "@element-plus/icons-vue";
|
|
23
|
+
import ae from "../node_modules/.pnpm/element-plus@2.9.7_vue@3.5.13_typescript@5.8.3_/node_modules/element-plus/es/locale/lang/zh-cn.js";
|
|
24
|
+
const xe = /* @__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
|
+
}, j()),
|
|
39
|
+
emits: ["filterChangeGrandson"],
|
|
40
|
+
setup(k, { expose: F, emit: b }) {
|
|
41
|
+
F();
|
|
42
|
+
const q = ae, o = b, v = k, {
|
|
43
|
+
defaultSearch: S,
|
|
44
|
+
pasteFormat: x,
|
|
45
|
+
options: T,
|
|
46
|
+
showPatchSearch: w,
|
|
47
|
+
specialOptions: p,
|
|
48
|
+
showWithinFilterCheckbox: I,
|
|
49
|
+
placeholderText: B,
|
|
50
|
+
normalOptions: g,
|
|
51
|
+
showSelect: P,
|
|
52
|
+
searchItem: e
|
|
53
|
+
} = D(v), r = l(S.value || "WHOLE_SEARCH"), i = l(""), u = l(!1), f = l(!1), h = l(!1), y = l(null), n = l({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
|
|
54
|
+
selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
|
|
55
|
+
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
56
|
+
}, R = [
|
|
57
|
+
{
|
|
58
|
+
value: "WHOLE_SEARCH",
|
|
59
|
+
label: "综合搜索"
|
|
60
|
+
}
|
|
61
|
+
], W = () => {
|
|
62
|
+
h.value = !0;
|
|
63
|
+
}, A = () => {
|
|
64
|
+
h.value = !1;
|
|
65
|
+
}, G = () => {
|
|
66
|
+
u.value || (delete e.value.putSearch, o("filterChangeGrandson", e.value, r.value));
|
|
67
|
+
}, E = () => e.value, H = () => {
|
|
68
|
+
i.value ? O() : o("filterChangeGrandson", E(), r.value);
|
|
69
|
+
}, C = (s, c) => {
|
|
70
|
+
const t = { ...s };
|
|
71
|
+
return d.map(p.value, (a) => a.key).includes(c.filterKey) ? p.value.forEach((a) => delete t[a.key]) : delete t[c.filterKey], t;
|
|
72
|
+
};
|
|
73
|
+
function m(s) {
|
|
74
|
+
d.forEach(s, (c) => {
|
|
75
|
+
C(e.value, c);
|
|
76
|
+
const { checkedValues: t, filterKey: a } = c;
|
|
77
|
+
d.isEmpty(t) || (g.value.includes(a) ? e.value[a] = t[0] : e.value[a] = t);
|
|
78
|
+
}), o("filterChangeGrandson", e.value, r.value);
|
|
79
|
+
}
|
|
80
|
+
const O = () => {
|
|
81
|
+
u.value ? m([
|
|
82
|
+
{
|
|
83
|
+
filterKey: "putSearch",
|
|
84
|
+
checkedValues: i.value
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
filterKey: "searchType",
|
|
88
|
+
checkedValues: r.value
|
|
89
|
+
}
|
|
90
|
+
]) : o(
|
|
91
|
+
"filterChangeGrandson",
|
|
92
|
+
{
|
|
93
|
+
putSearch: i.value,
|
|
94
|
+
searchType: r.value
|
|
95
|
+
},
|
|
96
|
+
r.value
|
|
97
|
+
);
|
|
98
|
+
}, _ = { locale: q, emit: o, props: v, defaultSearch: S, pasteFormat: x, options: T, showPatchSearch: w, specialOptions: p, showWithinFilterCheckbox: I, placeholderText: B, normalOptions: g, showSelect: P, searchItem: e, selectedSearchType: r, putSearch: i, isWithinFilterOptions: u, confirmLoading: f, showBatchSearch: h, batchSearchFormRef: y, batchSearchForm: n, rules: K, defalutOptions: R, showBatchSearchDialog: W, handleBatchSearchClose: A, searchWithinFilterOptions: G, getSearchItem: E, handleSearch: H, deleteExistProperty: C, filterChange: m, handlePutSearch: O, confirmSearch: () => {
|
|
99
|
+
y.value.validate((s) => {
|
|
100
|
+
s && (f.value = !0, u.value ? m([
|
|
101
|
+
{
|
|
102
|
+
filterKey: "putSearch",
|
|
103
|
+
checkedValues: n.value.searchContent
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
filterKey: "searchType",
|
|
107
|
+
checkedValues: n.value.searchType
|
|
108
|
+
}
|
|
109
|
+
]) : o(
|
|
110
|
+
"filterChangeGrandson",
|
|
111
|
+
{
|
|
112
|
+
putSearch: n.value.searchContent,
|
|
113
|
+
searchType: n.value.searchType
|
|
114
|
+
},
|
|
115
|
+
r.value
|
|
116
|
+
), h.value = !1, f.value = !1);
|
|
117
|
+
});
|
|
118
|
+
}, get ElInput() {
|
|
119
|
+
return re;
|
|
120
|
+
}, get ElCheckbox() {
|
|
121
|
+
return ee;
|
|
122
|
+
}, get ElSelect() {
|
|
123
|
+
return $;
|
|
124
|
+
}, get ElDialog() {
|
|
125
|
+
return Z;
|
|
126
|
+
}, get ElIcon() {
|
|
127
|
+
return X;
|
|
128
|
+
}, get ElForm() {
|
|
129
|
+
return U;
|
|
130
|
+
}, get ElFormItem() {
|
|
131
|
+
return Q;
|
|
132
|
+
}, get ElRow() {
|
|
133
|
+
return N;
|
|
134
|
+
}, get ElButton() {
|
|
135
|
+
return M;
|
|
136
|
+
}, get ElOption() {
|
|
137
|
+
return J;
|
|
138
|
+
}, get ElLink() {
|
|
139
|
+
return Y;
|
|
140
|
+
}, get ElConfigProvider() {
|
|
141
|
+
return z;
|
|
142
|
+
}, get Search() {
|
|
143
|
+
return te;
|
|
144
|
+
} };
|
|
145
|
+
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
2
148
|
export {
|
|
3
|
-
|
|
149
|
+
xe as default
|
|
4
150
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { withInstall as e } from "../utils/install.js";
|
|
2
|
+
import o from "./complex-search.vue.js";
|
|
3
|
+
const a = e(o);
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
a as YaheeComplexSearch,
|
|
6
|
+
a as default
|
|
7
7
|
};
|
package/es/copy/copy.vue.js
CHANGED
|
@@ -1,57 +1,41 @@
|
|
|
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
|
-
|
|
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, u) {
|
|
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": "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
|
+
/* STABLE */
|
|
26
|
+
})
|
|
27
|
+
]),
|
|
28
|
+
default: c(() => [
|
|
29
|
+
s("div", null, [
|
|
30
|
+
p(t.$slots, "default")
|
|
31
|
+
])
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
/* FORWARDED */
|
|
35
|
+
})
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
const C = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
|
|
55
39
|
export {
|
|
56
|
-
|
|
40
|
+
C as default
|
|
57
41
|
};
|
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