@yetuzi/vue3-query-components 1.5.0 → 1.5.1
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/CHANGELOG.md +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +109 -338
- package/dist/index.js +1062 -1029
- package/dist/version-info.json +7 -7
- package/package.json +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/components/CommonButton/index.vue.js +0 -40
- package/dist/components/CommonButton/index.vue2.js +0 -4
- package/dist/components/CommonCascader/index.vue.js +0 -46
- package/dist/components/CommonCascader/index.vue2.js +0 -4
- package/dist/components/CommonCheckbox/index.vue.js +0 -38
- package/dist/components/CommonCheckbox/index.vue2.js +0 -4
- package/dist/components/CommonConfigProvider/index.vue.js +0 -19
- package/dist/components/CommonConfigProvider/index.vue2.js +0 -4
- package/dist/components/CommonDatePicker/index.vue.js +0 -74
- package/dist/components/CommonDatePicker/index.vue2.js +0 -4
- package/dist/components/CommonForm/index.vue.js +0 -7
- package/dist/components/CommonForm/index.vue2.js +0 -148
- package/dist/components/CommonInput/index.vue.js +0 -38
- package/dist/components/CommonInput/index.vue2.js +0 -4
- package/dist/components/CommonInputNumber/index.vue.js +0 -45
- package/dist/components/CommonInputNumber/index.vue2.js +0 -4
- package/dist/components/CommonPagination/index.vue.js +0 -88
- package/dist/components/CommonPagination/index.vue2.js +0 -4
- package/dist/components/CommonQueryTable/index.vue.js +0 -7
- package/dist/components/CommonQueryTable/index.vue2.js +0 -132
- package/dist/components/CommonRadio/index.vue.js +0 -37
- package/dist/components/CommonRadio/index.vue2.js +0 -4
- package/dist/components/CommonSelect/index.vue.js +0 -44
- package/dist/components/CommonSelect/index.vue2.js +0 -4
- package/dist/components/CommonSwitch/index.vue.js +0 -51
- package/dist/components/CommonSwitch/index.vue2.js +0 -4
- package/dist/components/CommonTable/config.js +0 -57
- package/dist/components/CommonTable/index.vue.js +0 -7
- package/dist/components/CommonTable/index.vue2.js +0 -139
- package/dist/components/CommonTimePicker/index.vue.js +0 -72
- package/dist/components/CommonTimePicker/index.vue2.js +0 -4
- package/dist/hooks/useGetComponentsChildrenSlots.js +0 -58
- package/dist/hooks/useResettable.js +0 -20
- package/dist/provide/index.js +0 -10
- package/dist/provide/key.js +0 -4
- package/dist/utils/index.js +0 -14
package/dist/version-info.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.5.
|
|
3
|
-
"publishDate": "2026-
|
|
2
|
+
"version": "1.5.1",
|
|
3
|
+
"publishDate": "2026-03-10",
|
|
4
4
|
"name": "@yetuzi/vue3-query-components",
|
|
5
5
|
"description": "Vue3查询页面组件库,基于Element Plus封装的表格查询组件 - 开箱即用",
|
|
6
6
|
"repository": "https://github.com/yetuzi-open/vue3-query-components",
|
|
7
7
|
"homepage": "https://yetuzi-open.github.io/vue3-query-components",
|
|
8
8
|
"bugs": "https://github.com/yetuzi-open/vue3-query-components/issues",
|
|
9
9
|
"recentChanges": [
|
|
10
|
+
{
|
|
11
|
+
"version": "1.5.1",
|
|
12
|
+
"date": "2026-03-10",
|
|
13
|
+
"content": "1.5.1](https://github.com/yetuzi-open/vue3-query-components/compare/v1.5.0...v1.5.1) (2026-03-10)\n\n\n### ♻️ 重构\n\n* 简化 CommonTable 枚举列配置判断逻辑 ([adc524e](https://github.com/yetuzi-open/vue3-query-components/commit/adc524ef4f72c6489cafe38c712cdee248b0ef27))\n* 精简 CommonTable 渲染与列归一化逻辑 ([8bd4728](https://github.com/yetuzi-open/vue3-query-components/commit/8bd4728239145faac10ad4eba3e46105e9e8fdfa))\n\n\n### 📝 文档\n\n* 同步 CommonTable 注释与文档说明 ([d36ba28](https://github.com/yetuzi-open/vue3-query-components/commi..."
|
|
14
|
+
},
|
|
10
15
|
{
|
|
11
16
|
"version": "1.5.0",
|
|
12
17
|
"date": "2026-01-26",
|
|
@@ -16,11 +21,6 @@
|
|
|
16
21
|
"version": "1.4.4",
|
|
17
22
|
"date": "2026-01-22",
|
|
18
23
|
"content": "1.4.4](https://github.com/yetuzi-open/vue3-query-components/compare/v1.4.1...v1.4.4) (2026-01-22)\n\n\n### 🔧 修复\n\n* 修复开发环境下版本号显示错误的问题 ([977cb19](https://github.com/yetuzi-open/vue3-query-components/commit/977cb19))"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"version": "1.4.1",
|
|
22
|
-
"date": "2026-01-22",
|
|
23
|
-
"content": "1.4.1](https://github.com/yetuzi-open/vue3-query-components/compare/v1.4.0...v1.4.1) (2026-01-22)\n\n### 🔧 修复\n\n* 修复构建时版本号替换问题"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as n, openBlock as a, unref as i, normalizeProps as p, guardReactiveProps as l, withCtx as c, renderSlot as s } from "vue";
|
|
2
|
-
import { ElButton as u } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
const k = /* @__PURE__ */ r({
|
|
6
|
-
name: "CommonButton",
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
size: {},
|
|
10
|
-
disabled: {},
|
|
11
|
-
type: { default: "primary" },
|
|
12
|
-
icon: {},
|
|
13
|
-
nativeType: {},
|
|
14
|
-
loading: {},
|
|
15
|
-
loadingIcon: {},
|
|
16
|
-
plain: {},
|
|
17
|
-
text: {},
|
|
18
|
-
link: {},
|
|
19
|
-
bg: {},
|
|
20
|
-
autofocus: {},
|
|
21
|
-
round: {},
|
|
22
|
-
circle: {},
|
|
23
|
-
color: {},
|
|
24
|
-
dark: {},
|
|
25
|
-
autoInsertSpace: {},
|
|
26
|
-
tag: {}
|
|
27
|
-
},
|
|
28
|
-
setup(o) {
|
|
29
|
-
const e = o;
|
|
30
|
-
return (t, d) => (a(), n(i(u), p(l(e)), {
|
|
31
|
-
default: c(() => [
|
|
32
|
-
s(t.$slots, "default")
|
|
33
|
-
]),
|
|
34
|
-
_: 3
|
|
35
|
-
}, 16));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
k as default
|
|
40
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, useModel as i, useSlots as f, createBlock as c, openBlock as V, unref as r, mergeProps as C, createSlots as k, withCtx as a, renderSlot as s } from "vue";
|
|
2
|
-
import { ElCascader as v } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
/* empty css */
|
|
11
|
-
/* empty css */
|
|
12
|
-
const _ = /* @__PURE__ */ u({
|
|
13
|
-
name: "CommonCascader",
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: {
|
|
16
|
-
modelValue: {},
|
|
17
|
-
modelModifiers: {}
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:modelValue"],
|
|
20
|
-
setup(o) {
|
|
21
|
-
const d = o, t = i(o, "modelValue"), p = f();
|
|
22
|
-
return (m, l) => (V(), c(r(v), C(d, {
|
|
23
|
-
modelValue: t.value,
|
|
24
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) => t.value = e)
|
|
25
|
-
}), k({
|
|
26
|
-
empty: a(() => [
|
|
27
|
-
s(m.$slots, "empty")
|
|
28
|
-
]),
|
|
29
|
-
_: 2
|
|
30
|
-
}, [
|
|
31
|
-
r(p).default ? {
|
|
32
|
-
name: "default",
|
|
33
|
-
fn: a(({ node: e, data: n }) => [
|
|
34
|
-
s(m.$slots, "default", {
|
|
35
|
-
node: e,
|
|
36
|
-
data: n
|
|
37
|
-
})
|
|
38
|
-
]),
|
|
39
|
-
key: "0"
|
|
40
|
-
} : void 0
|
|
41
|
-
]), 1040, ["modelValue"]));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
_ as default
|
|
46
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, mergeModels as r, useModel as d, createBlock as n, openBlock as p, unref as u, mergeProps as i } from "vue";
|
|
2
|
-
import { ElCheckboxGroup as s } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
const k = /* @__PURE__ */ a({
|
|
7
|
-
name: "CommonCheckbox",
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: /* @__PURE__ */ r({
|
|
10
|
-
ariaLabel: {},
|
|
11
|
-
modelValue: {},
|
|
12
|
-
disabled: {},
|
|
13
|
-
min: {},
|
|
14
|
-
max: {},
|
|
15
|
-
size: {},
|
|
16
|
-
fill: {},
|
|
17
|
-
textColor: {},
|
|
18
|
-
tag: {},
|
|
19
|
-
validateEvent: {},
|
|
20
|
-
options: {},
|
|
21
|
-
props: {},
|
|
22
|
-
type: {}
|
|
23
|
-
}, {
|
|
24
|
-
modelValue: {},
|
|
25
|
-
modelModifiers: {}
|
|
26
|
-
}),
|
|
27
|
-
emits: ["update:modelValue"],
|
|
28
|
-
setup(e) {
|
|
29
|
-
const m = e, o = d(e, "modelValue");
|
|
30
|
-
return (c, l) => (p(), n(u(s), i(m, {
|
|
31
|
-
modelValue: o.value,
|
|
32
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) => o.value = t)
|
|
33
|
-
}), null, 16, ["modelValue"]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
k as default
|
|
38
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, useAttrs as s, reactive as c, provide as f, watchEffect as a, renderSlot as p } from "vue";
|
|
2
|
-
import "../../index.js";
|
|
3
|
-
import { merge as r, cloneDeep as n } from "lodash-es";
|
|
4
|
-
import { getCommonProviderConfig as d } from "../../provide/index.js";
|
|
5
|
-
import { configInjectKey as g } from "../../provide/key.js";
|
|
6
|
-
const x = /* @__PURE__ */ m({
|
|
7
|
-
name: "CommonConfigProvider",
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(u) {
|
|
11
|
-
const e = d(), o = s(), t = c(r(n(e), o));
|
|
12
|
-
return f(g, t), a(() => {
|
|
13
|
-
Object.assign(t, r(n(e), o));
|
|
14
|
-
}), (i, _) => p(i.$slots, "default");
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
x as default
|
|
19
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, mergeModels as n, useModel as p, createBlock as m, openBlock as d, unref as i, mergeProps as s } from "vue";
|
|
2
|
-
import { ElDatePicker as u } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import "../../node_modules/element-plus/theme-chalk/el-date-picker.css.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
const P = /* @__PURE__ */ r({
|
|
11
|
-
name: "CommonDatePicker",
|
|
12
|
-
__name: "index",
|
|
13
|
-
props: /* @__PURE__ */ n({
|
|
14
|
-
type: {},
|
|
15
|
-
showNow: { type: Boolean },
|
|
16
|
-
showConfirm: { type: Boolean },
|
|
17
|
-
showFooter: { type: Boolean },
|
|
18
|
-
showWeekNumber: { type: Boolean },
|
|
19
|
-
ariaLabel: {},
|
|
20
|
-
emptyValues: {},
|
|
21
|
-
valueOnClear: {},
|
|
22
|
-
disabledDate: {},
|
|
23
|
-
cellClassName: {},
|
|
24
|
-
shortcuts: {},
|
|
25
|
-
arrowControl: { type: Boolean },
|
|
26
|
-
tabindex: {},
|
|
27
|
-
validateEvent: { type: Boolean },
|
|
28
|
-
unlinkPanels: { type: Boolean },
|
|
29
|
-
placement: {},
|
|
30
|
-
fallbackPlacements: {},
|
|
31
|
-
disabledHours: {},
|
|
32
|
-
disabledMinutes: {},
|
|
33
|
-
disabledSeconds: {},
|
|
34
|
-
automaticDropdown: { type: Boolean },
|
|
35
|
-
id: {},
|
|
36
|
-
name: {},
|
|
37
|
-
popperClass: {},
|
|
38
|
-
popperStyle: {},
|
|
39
|
-
format: {},
|
|
40
|
-
valueFormat: { default: "YYYY-MM-DD" },
|
|
41
|
-
dateFormat: {},
|
|
42
|
-
timeFormat: {},
|
|
43
|
-
clearable: { type: Boolean },
|
|
44
|
-
clearIcon: {},
|
|
45
|
-
editable: { type: Boolean },
|
|
46
|
-
prefixIcon: {},
|
|
47
|
-
size: {},
|
|
48
|
-
readonly: { type: Boolean },
|
|
49
|
-
disabled: { type: Boolean },
|
|
50
|
-
placeholder: {},
|
|
51
|
-
popperOptions: {},
|
|
52
|
-
modelValue: {},
|
|
53
|
-
rangeSeparator: {},
|
|
54
|
-
startPlaceholder: {},
|
|
55
|
-
endPlaceholder: {},
|
|
56
|
-
defaultValue: {},
|
|
57
|
-
defaultTime: {},
|
|
58
|
-
isRange: { type: Boolean }
|
|
59
|
-
}, {
|
|
60
|
-
modelValue: {},
|
|
61
|
-
modelModifiers: {}
|
|
62
|
-
}),
|
|
63
|
-
emits: ["update:modelValue"],
|
|
64
|
-
setup(e) {
|
|
65
|
-
const l = e, o = p(e, "modelValue");
|
|
66
|
-
return (c, a) => (d(), m(i(u), s(l, {
|
|
67
|
-
modelValue: o.value,
|
|
68
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => o.value = t)
|
|
69
|
-
}), null, 16, ["modelValue"]));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
P as default
|
|
74
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, mergeModels as V, useCssVars as O, unref as t, getCurrentInstance as P, useAttrs as T, ref as U, reactive as A, useModel as B, createBlock as i, openBlock as a, mergeProps as s, withModifiers as D, withCtx as l, createElementBlock as N, createVNode as u, Fragment as j, renderList as q, renderSlot as z, createCommentVNode as L, resolveDynamicComponent as k, createTextVNode as C, toDisplayString as x } from "vue";
|
|
2
|
-
import { ElForm as W, ElFormItem as h } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
import "../../index.js";
|
|
8
|
-
import $ from "../CommonButton/index.vue.js";
|
|
9
|
-
import G from "../CommonSelect/index.vue.js";
|
|
10
|
-
import H from "../CommonInput/index.vue.js";
|
|
11
|
-
import J from "../CommonInputNumber/index.vue.js";
|
|
12
|
-
import K from "../CommonDatePicker/index.vue.js";
|
|
13
|
-
import Q from "../CommonTimePicker/index.vue.js";
|
|
14
|
-
import X from "../CommonCascader/index.vue.js";
|
|
15
|
-
import Y from "../CommonRadio/index.vue.js";
|
|
16
|
-
import Z from "../CommonCheckbox/index.vue.js";
|
|
17
|
-
import ee from "../CommonSwitch/index.vue.js";
|
|
18
|
-
import { getCommonProviderConfig as oe } from "../../provide/index.js";
|
|
19
|
-
const ke = /* @__PURE__ */ R({
|
|
20
|
-
name: "CommonForm",
|
|
21
|
-
__name: "index",
|
|
22
|
-
props: /* @__PURE__ */ V({
|
|
23
|
-
form: { default() {
|
|
24
|
-
return [];
|
|
25
|
-
} },
|
|
26
|
-
model: {},
|
|
27
|
-
rules: {},
|
|
28
|
-
labelPosition: {},
|
|
29
|
-
requireAsteriskPosition: {},
|
|
30
|
-
labelWidth: { default: "auto" },
|
|
31
|
-
labelSuffix: {},
|
|
32
|
-
inline: { default: !0 },
|
|
33
|
-
inlineMessage: {},
|
|
34
|
-
statusIcon: {},
|
|
35
|
-
showMessage: {},
|
|
36
|
-
validateOnRuleChange: {},
|
|
37
|
-
hideRequiredAsterisk: {},
|
|
38
|
-
scrollToError: {},
|
|
39
|
-
scrollIntoViewOptions: {},
|
|
40
|
-
size: {},
|
|
41
|
-
disabled: {}
|
|
42
|
-
}, {
|
|
43
|
-
loading: {
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
loadingModifiers: {}
|
|
47
|
-
}),
|
|
48
|
-
emits: /* @__PURE__ */ V(["submit", "reset"], ["update:loading"]),
|
|
49
|
-
setup(m, { expose: y, emit: w }) {
|
|
50
|
-
O((o) => ({
|
|
51
|
-
v2729f738: t(f).component.form.formItem.components.width
|
|
52
|
-
}));
|
|
53
|
-
const d = m, M = /* @__PURE__ */ new Map([
|
|
54
|
-
["select", G],
|
|
55
|
-
["input", H],
|
|
56
|
-
["input-number", J],
|
|
57
|
-
["date-picker", K],
|
|
58
|
-
["time-picker", Q],
|
|
59
|
-
["cascader", X],
|
|
60
|
-
["radio", Y],
|
|
61
|
-
["check-box", Z],
|
|
62
|
-
["switch", ee]
|
|
63
|
-
]);
|
|
64
|
-
function c(o) {
|
|
65
|
-
if (typeof o.is == "string")
|
|
66
|
-
return M.get(o.is);
|
|
67
|
-
}
|
|
68
|
-
const _ = P(), F = T(), g = w, p = U(), r = A(
|
|
69
|
-
Object.fromEntries(d.form.map((o) => [o.prop, o.initialValue]))
|
|
70
|
-
), f = oe(), b = B(m, "loading");
|
|
71
|
-
async function I() {
|
|
72
|
-
await p.value?.validate(), g("submit", r);
|
|
73
|
-
}
|
|
74
|
-
function S() {
|
|
75
|
-
p.value?.resetFields(), g("reset", r);
|
|
76
|
-
}
|
|
77
|
-
function E(o) {
|
|
78
|
-
_?.exposed && Object.assign(_.exposed, {
|
|
79
|
-
...o,
|
|
80
|
-
formData: r
|
|
81
|
-
}), p.value = o;
|
|
82
|
-
}
|
|
83
|
-
return y(), (o, v) => (a(), i(t(W), s({ ref: E }, { ...d, ...t(F) }, {
|
|
84
|
-
model: r,
|
|
85
|
-
onSubmit: v[0] || (v[0] = D(() => {
|
|
86
|
-
}, ["prevent"]))
|
|
87
|
-
}), {
|
|
88
|
-
default: l(() => [
|
|
89
|
-
(a(!0), N(j, null, q(m.form, (e) => (a(), i(t(h), s({ ref_for: !0 }, e.formItem, {
|
|
90
|
-
label: e.label,
|
|
91
|
-
prop: String(e.prop),
|
|
92
|
-
key: e.prop
|
|
93
|
-
}), {
|
|
94
|
-
default: l(() => [
|
|
95
|
-
z(o.$slots, e.prop, {
|
|
96
|
-
props: e.props,
|
|
97
|
-
value: r[e.prop],
|
|
98
|
-
updateValue: (n) => r[e.prop] = n
|
|
99
|
-
}, () => [
|
|
100
|
-
c(e) ? (a(), i(k(c(e)), s({
|
|
101
|
-
key: 0,
|
|
102
|
-
ref_for: !0
|
|
103
|
-
}, e.props, {
|
|
104
|
-
modelValue: r[e.prop],
|
|
105
|
-
"onUpdate:modelValue": (n) => r[e.prop] = n
|
|
106
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : typeof e.is != "string" ? (a(), i(k(e.is), s({
|
|
107
|
-
key: 1,
|
|
108
|
-
ref_for: !0
|
|
109
|
-
}, e.props, {
|
|
110
|
-
modelValue: r[e.prop],
|
|
111
|
-
"onUpdate:modelValue": (n) => r[e.prop] = n
|
|
112
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : L("", !0)
|
|
113
|
-
], !0)
|
|
114
|
-
]),
|
|
115
|
-
_: 2
|
|
116
|
-
}, 1040, ["label", "prop"]))), 128)),
|
|
117
|
-
u(t(h), { label: " " }, {
|
|
118
|
-
default: l(() => [
|
|
119
|
-
u(t($), {
|
|
120
|
-
loading: b.value,
|
|
121
|
-
onClick: I
|
|
122
|
-
}, {
|
|
123
|
-
default: l(() => [
|
|
124
|
-
C(x(t(f).component.form.submitText), 1)
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["loading"]),
|
|
128
|
-
u(t($), {
|
|
129
|
-
type: "default",
|
|
130
|
-
loading: b.value,
|
|
131
|
-
onClick: S
|
|
132
|
-
}, {
|
|
133
|
-
default: l(() => [
|
|
134
|
-
C(x(t(f).component.form.resetText), 1)
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["loading"])
|
|
138
|
-
]),
|
|
139
|
-
_: 1
|
|
140
|
-
})
|
|
141
|
-
]),
|
|
142
|
-
_: 3
|
|
143
|
-
}, 16, ["model"]));
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
export {
|
|
147
|
-
ke as default
|
|
148
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, mergeModels as c, useModel as V, useSlots as g, createBlock as C, openBlock as v, unref as s, mergeProps as w, withKeys as x, createSlots as M, renderList as P, withCtx as S, renderSlot as _, normalizeProps as h, guardReactiveProps as k } from "vue";
|
|
2
|
-
import { ElInput as y } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
const z = /* @__PURE__ */ f({
|
|
6
|
-
name: "CommonInput",
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: {},
|
|
10
|
-
modelModifiers: {}
|
|
11
|
-
},
|
|
12
|
-
emits: /* @__PURE__ */ c(["enter"], ["update:modelValue"]),
|
|
13
|
-
setup(o, { emit: m }) {
|
|
14
|
-
const i = o, u = m, t = V(o, "modelValue"), a = g();
|
|
15
|
-
function d(e) {
|
|
16
|
-
if ("isComposing" in e) {
|
|
17
|
-
if (e.isComposing) return;
|
|
18
|
-
} else
|
|
19
|
-
return;
|
|
20
|
-
u("enter", e);
|
|
21
|
-
}
|
|
22
|
-
return (e, n) => (v(), C(s(y), w(i, {
|
|
23
|
-
modelValue: t.value,
|
|
24
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
|
|
25
|
-
onKeydown: x(d, ["enter"])
|
|
26
|
-
}), M({ _: 2 }, [
|
|
27
|
-
P(s(a), (r, l) => ({
|
|
28
|
-
name: l,
|
|
29
|
-
fn: S((p) => [
|
|
30
|
-
_(e.$slots, l, h(k(p)))
|
|
31
|
-
])
|
|
32
|
-
}))
|
|
33
|
-
]), 1040, ["modelValue"]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
z as default
|
|
38
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, mergeModels as m, useModel as r, createBlock as i, openBlock as p, unref as d, mergeProps as u } from "vue";
|
|
2
|
-
import { ElInputNumber as s } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
const v = /* @__PURE__ */ n({
|
|
7
|
-
name: "CommonInputNumber",
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: /* @__PURE__ */ m({
|
|
10
|
-
inputmode: {},
|
|
11
|
-
align: {},
|
|
12
|
-
disabledScientific: { type: Boolean },
|
|
13
|
-
ariaLabel: {},
|
|
14
|
-
id: {},
|
|
15
|
-
step: {},
|
|
16
|
-
stepStrictly: { type: Boolean },
|
|
17
|
-
max: {},
|
|
18
|
-
min: {},
|
|
19
|
-
modelValue: {},
|
|
20
|
-
readonly: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
size: {},
|
|
23
|
-
controls: { type: Boolean },
|
|
24
|
-
controlsPosition: {},
|
|
25
|
-
valueOnClear: {},
|
|
26
|
-
name: {},
|
|
27
|
-
placeholder: {},
|
|
28
|
-
precision: {},
|
|
29
|
-
validateEvent: { type: Boolean }
|
|
30
|
-
}, {
|
|
31
|
-
modelValue: {},
|
|
32
|
-
modelModifiers: {}
|
|
33
|
-
}),
|
|
34
|
-
emits: ["update:modelValue"],
|
|
35
|
-
setup(e) {
|
|
36
|
-
const t = e, o = r(e, "modelValue");
|
|
37
|
-
return (c, l) => (p(), i(d(s), u(t, {
|
|
38
|
-
modelValue: o.value,
|
|
39
|
-
"onUpdate:modelValue": l[0] || (l[0] = (a) => o.value = a)
|
|
40
|
-
}), null, 16, ["modelValue"]));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
v as default
|
|
45
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, mergeModels as n, useAttrs as z, useModel as i, watch as u, createBlock as c, openBlock as v, unref as l, mergeProps as S, withCtx as y, renderSlot as N } from "vue";
|
|
2
|
-
import { ElPagination as x } from "element-plus";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
/* empty css */
|
|
11
|
-
/* empty css */
|
|
12
|
-
const U = /* @__PURE__ */ f({
|
|
13
|
-
name: "CommonPagination",
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: /* @__PURE__ */ n({
|
|
16
|
-
pageSize: {},
|
|
17
|
-
defaultPageSize: {},
|
|
18
|
-
total: { default: 0 },
|
|
19
|
-
pageCount: {},
|
|
20
|
-
pagerCount: {},
|
|
21
|
-
currentPage: {},
|
|
22
|
-
defaultCurrentPage: {},
|
|
23
|
-
layout: { default: "slot, ->, total, sizes, prev, pager, next, jumper" },
|
|
24
|
-
pageSizes: { default: () => [10, 20, 30, 40, 50] },
|
|
25
|
-
popperClass: {},
|
|
26
|
-
popperStyle: {},
|
|
27
|
-
prevText: {},
|
|
28
|
-
prevIcon: {},
|
|
29
|
-
nextText: {},
|
|
30
|
-
nextIcon: {},
|
|
31
|
-
teleported: { type: Boolean, default: !0 },
|
|
32
|
-
small: { type: Boolean },
|
|
33
|
-
size: {},
|
|
34
|
-
background: { type: Boolean, default: !0 },
|
|
35
|
-
disabled: { type: Boolean },
|
|
36
|
-
hideOnSinglePage: { type: Boolean },
|
|
37
|
-
appendSizeTo: {}
|
|
38
|
-
}, {
|
|
39
|
-
pageNo: {
|
|
40
|
-
/** 数值类型 */
|
|
41
|
-
type: Number,
|
|
42
|
-
/** 必填项 */
|
|
43
|
-
required: !0
|
|
44
|
-
},
|
|
45
|
-
pageNoModifiers: {},
|
|
46
|
-
pageSize: {
|
|
47
|
-
/** 数值类型 */
|
|
48
|
-
type: Number,
|
|
49
|
-
/** 必填项 */
|
|
50
|
-
required: !0
|
|
51
|
-
},
|
|
52
|
-
pageSizeModifiers: {}
|
|
53
|
-
}),
|
|
54
|
-
emits: /* @__PURE__ */ n(["change"], ["update:pageNo", "update:pageSize"]),
|
|
55
|
-
setup(o, { emit: g }) {
|
|
56
|
-
const s = o, d = z(), r = g, e = i(o, "pageNo"), t = i(o, "pageSize");
|
|
57
|
-
return u(
|
|
58
|
-
() => t.value,
|
|
59
|
-
() => {
|
|
60
|
-
e.value === 1 ? r("change", {
|
|
61
|
-
pageNo: e.value,
|
|
62
|
-
pageSize: t.value
|
|
63
|
-
}) : e.value = 1;
|
|
64
|
-
}
|
|
65
|
-
), u(
|
|
66
|
-
() => e.value,
|
|
67
|
-
() => {
|
|
68
|
-
r("change", {
|
|
69
|
-
pageNo: e.value,
|
|
70
|
-
pageSize: t.value
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
), (m, a) => (v(), c(l(x), S({ ...s, ...l(d) }, {
|
|
74
|
-
"page-size": t.value,
|
|
75
|
-
"onUpdate:pageSize": a[0] || (a[0] = (p) => t.value = p),
|
|
76
|
-
"current-page": e.value,
|
|
77
|
-
"onUpdate:currentPage": a[1] || (a[1] = (p) => e.value = p)
|
|
78
|
-
}), {
|
|
79
|
-
default: y(() => [
|
|
80
|
-
N(m.$slots, "default")
|
|
81
|
-
]),
|
|
82
|
-
_: 3
|
|
83
|
-
}, 16, ["page-size", "current-page"]));
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
U as default
|
|
88
|
-
};
|