@king-one/antdv 1.0.78 → 1.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/CHANGELOG.md +6 -0
- package/dist/es/components/pro-table/src/field/field-date-range/field-date-range.vue2.mjs +14 -16
- package/dist/es/components/pro-table/src/field/field-input/field-input.vue2.mjs +13 -15
- package/dist/es/components/pro-table/src/field/field-radio/field-radio.vue2.mjs +39 -41
- package/dist/es/components/pro-table/src/field/field-select/field-select.vue2.mjs +39 -41
- package/dist/es/components/pro-table/src/form-render.vue2.mjs +125 -127
- package/dist/es/components/pro-table/src/pro-table.vue.mjs +2 -3
- package/dist/es/components/pro-table/src/pro-table.vue2.mjs +140 -144
- package/dist/es/components/scroll-bar/src/scroll-bar.mjs +1 -1
- package/dist/lib/components/pro-table/src/field/field-date-range/field-date-range.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/field/field-input/field-input.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/field/field-radio/field-radio.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/field/field-select/field-select.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/form-render.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue.js +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue2.js +1 -1
- package/dist/lib/components/scroll-bar/src/scroll-bar.js +1 -1
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/pro-table.css +1 -1
- package/dist/types/components/pro-area/index.d.ts +1 -1
- package/dist/types/components/pro-area/src/ProArea.vue.d.ts +1 -1
- package/dist/types/components/pro-table/src/form-render.vue.d.ts +1 -1
- package/dist/types/components/pro-table/src/pro-table.vue.d.ts +2 -48
- package/package.json +1 -1
- package/dist/es/components/pro-table/src/pro-table.css +0 -1
- package/dist/lib/components/pro-table/src/pro-table.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as d, useModel as i, inject as u, toRefs as m,
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as d, useModel as i, inject as u, toRefs as m, createElementBlock as s, openBlock as c, createCommentVNode as p, createVNode as f, unref as t, mergeProps as _ } from "vue";
|
|
2
|
+
import { RangePicker as v } from "ant-design-vue";
|
|
3
|
+
import { FIELD_CONTEXT_PROVIDE_KEY as V } from "../../constants.mjs";
|
|
4
|
+
const g = { class: "field-date-range" }, x = /* @__PURE__ */ d({
|
|
4
5
|
__name: "field-date-range",
|
|
5
6
|
props: {
|
|
6
7
|
modelValue: {
|
|
@@ -9,20 +10,17 @@ const C = { class: "field-date-range" }, R = /* @__PURE__ */ d({
|
|
|
9
10
|
modelModifiers: {}
|
|
10
11
|
},
|
|
11
12
|
emits: ["update:modelValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const e = i(
|
|
14
|
-
return (E, o) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, V(r).fieldProps), null, 16, ["value"])
|
|
22
|
-
]);
|
|
23
|
-
};
|
|
13
|
+
setup(r) {
|
|
14
|
+
const e = i(r, "modelValue"), l = u(V), { column: n } = m(l);
|
|
15
|
+
return (E, o) => (c(), s("div", g, [
|
|
16
|
+
p(" prettier-ignore-attribute v-bind "),
|
|
17
|
+
f(t(v), _({
|
|
18
|
+
value: e.value,
|
|
19
|
+
"onUpdate:value": o[0] || (o[0] = (a) => e.value = a)
|
|
20
|
+
}, t(n).fieldProps), null, 16, ["value"])
|
|
21
|
+
]));
|
|
24
22
|
}
|
|
25
23
|
});
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
x as default
|
|
28
26
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as i, useModel as d, inject as m, createElementBlock as a, openBlock as p, createCommentVNode as s, createVNode as c, unref as o, mergeProps as f } from "vue";
|
|
2
|
+
import { Input as _ } from "ant-design-vue";
|
|
3
|
+
import { FIELD_CONTEXT_PROVIDE_KEY as v } from "../../constants.mjs";
|
|
4
|
+
const V = { class: "field-input" }, N = /* @__PURE__ */ i({
|
|
4
5
|
__name: "field-input",
|
|
5
6
|
props: {
|
|
6
7
|
modelValue: {
|
|
@@ -9,18 +10,15 @@ const C = { class: "field-input" }, N = /* @__PURE__ */ d({
|
|
|
9
10
|
modelModifiers: {}
|
|
10
11
|
},
|
|
11
12
|
emits: ["update:modelValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
14
|
-
return (E,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, v(l).fieldProps), null, 16, ["value"])
|
|
22
|
-
]);
|
|
23
|
-
};
|
|
13
|
+
setup(l) {
|
|
14
|
+
const e = d(l, "modelValue"), r = m(v), { column: n } = r;
|
|
15
|
+
return (E, t) => (p(), a("div", V, [
|
|
16
|
+
s(" prettier-ignore-attribute v-bind "),
|
|
17
|
+
c(o(_), f({
|
|
18
|
+
value: e.value,
|
|
19
|
+
"onUpdate:value": t[0] || (t[0] = (u) => e.value = u)
|
|
20
|
+
}, o(n).fieldProps), null, 16, ["value"])
|
|
21
|
+
]));
|
|
24
22
|
}
|
|
25
23
|
});
|
|
26
24
|
export {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as m, useModel as c, inject as f, toRefs as p, createElementBlock as a, openBlock as l, createCommentVNode as v, createVNode as _, unref as t, mergeProps as V, withCtx as d, Fragment as b, renderList as x, createBlock as C, createTextVNode as E, toDisplayString as g } from "vue";
|
|
2
|
+
import { RadioGroup as k, Radio as N } from "ant-design-vue";
|
|
3
|
+
import { FIELD_CONTEXT_PROVIDE_KEY as R } from "../../constants.mjs";
|
|
4
|
+
const B = { class: "field-select" }, y = /* @__PURE__ */ m({
|
|
4
5
|
__name: "field-radio",
|
|
5
6
|
props: {
|
|
6
7
|
modelValue: {
|
|
@@ -10,45 +11,42 @@ const B = { class: "field-select" }, T = /* @__PURE__ */ f({
|
|
|
10
11
|
},
|
|
11
12
|
emits: ["update:modelValue"],
|
|
12
13
|
setup(i) {
|
|
13
|
-
const
|
|
14
|
-
return (D,
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, 16, ["value"])
|
|
48
|
-
]);
|
|
49
|
-
};
|
|
14
|
+
const o = c(i, "modelValue"), u = f(R), { fieldOptions: n, column: s } = p(u);
|
|
15
|
+
return (D, r) => (l(), a("div", B, [
|
|
16
|
+
v(" prettier-ignore-attribute v-bind "),
|
|
17
|
+
_(t(k), V({
|
|
18
|
+
value: o.value,
|
|
19
|
+
"onUpdate:value": r[0] || (r[0] = (e) => o.value = e)
|
|
20
|
+
}, t(s).fieldProps), {
|
|
21
|
+
default: d(() => [
|
|
22
|
+
(l(!0), a(
|
|
23
|
+
b,
|
|
24
|
+
null,
|
|
25
|
+
x(t(n), (e) => (l(), C(t(N), {
|
|
26
|
+
key: e.value,
|
|
27
|
+
value: e.value,
|
|
28
|
+
disabled: e.disabled
|
|
29
|
+
}, {
|
|
30
|
+
default: d(() => [
|
|
31
|
+
E(
|
|
32
|
+
g(e.label),
|
|
33
|
+
1
|
|
34
|
+
/* TEXT */
|
|
35
|
+
)
|
|
36
|
+
]),
|
|
37
|
+
_: 2
|
|
38
|
+
/* DYNAMIC */
|
|
39
|
+
}, 1032, ["value", "disabled"]))),
|
|
40
|
+
128
|
|
41
|
+
/* KEYED_FRAGMENT */
|
|
42
|
+
))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
/* STABLE */
|
|
46
|
+
}, 16, ["value"])
|
|
47
|
+
]));
|
|
50
48
|
}
|
|
51
49
|
});
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
y as default
|
|
54
52
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as m, useModel as c, inject as f, toRefs as p, createElementBlock as a, openBlock as l, createCommentVNode as v, createVNode as _, unref as t, mergeProps as V, withCtx as d, Fragment as b, renderList as x, createBlock as C, createTextVNode as E, toDisplayString as g } from "vue";
|
|
2
|
+
import { Select as k, SelectOption as N } from "ant-design-vue";
|
|
3
|
+
import { FIELD_CONTEXT_PROVIDE_KEY as O } from "../../constants.mjs";
|
|
4
|
+
const B = { class: "field-select" }, y = /* @__PURE__ */ m({
|
|
4
5
|
__name: "field-select",
|
|
5
6
|
props: {
|
|
6
7
|
modelValue: {
|
|
@@ -10,45 +11,42 @@ const N = { class: "field-select" }, T = /* @__PURE__ */ f({
|
|
|
10
11
|
},
|
|
11
12
|
emits: ["update:modelValue"],
|
|
12
13
|
setup(i) {
|
|
13
|
-
const
|
|
14
|
-
return (
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, 16, ["value"])
|
|
48
|
-
]);
|
|
49
|
-
};
|
|
14
|
+
const o = c(i, "modelValue"), n = f(O), { fieldOptions: u, column: s } = p(n);
|
|
15
|
+
return (D, r) => (l(), a("div", B, [
|
|
16
|
+
v(" prettier-ignore-attribute v-bind "),
|
|
17
|
+
_(t(k), V({
|
|
18
|
+
value: o.value,
|
|
19
|
+
"onUpdate:value": r[0] || (r[0] = (e) => o.value = e)
|
|
20
|
+
}, t(s).fieldProps), {
|
|
21
|
+
default: d(() => [
|
|
22
|
+
(l(!0), a(
|
|
23
|
+
b,
|
|
24
|
+
null,
|
|
25
|
+
x(t(u), (e) => (l(), C(t(N), {
|
|
26
|
+
key: e.value,
|
|
27
|
+
value: e.value,
|
|
28
|
+
disabled: e.disabled
|
|
29
|
+
}, {
|
|
30
|
+
default: d(() => [
|
|
31
|
+
E(
|
|
32
|
+
g(e.label),
|
|
33
|
+
1
|
|
34
|
+
/* TEXT */
|
|
35
|
+
)
|
|
36
|
+
]),
|
|
37
|
+
_: 2
|
|
38
|
+
/* DYNAMIC */
|
|
39
|
+
}, 1032, ["value", "disabled"]))),
|
|
40
|
+
128
|
|
41
|
+
/* KEYED_FRAGMENT */
|
|
42
|
+
))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
/* STABLE */
|
|
46
|
+
}, 16, ["value"])
|
|
47
|
+
]));
|
|
50
48
|
}
|
|
51
49
|
});
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
y as default
|
|
54
52
|
};
|
|
@@ -1,145 +1,143 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as L, inject as A, toRefs as P, ref as j, computed as i, createElementBlock as d, openBlock as u, createVNode as o, unref as e, mergeProps as s, withCtx as n, createCommentVNode as p, Fragment as y, renderList as q, createBlock as z, normalizeProps as K, guardReactiveProps as X, createTextVNode as x } from "vue";
|
|
2
|
+
import { Form as Y, Row as $, Col as b, FormItem as F, Space as G, Button as I } from "ant-design-vue";
|
|
2
3
|
import "./field/field.vue.mjs";
|
|
3
|
-
import { TABLE_CONTEXT_PROVIDE_KEY as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import { TABLE_CONTEXT_PROVIDE_KEY as H } from "./constants.mjs";
|
|
5
|
+
import J from "./field/field.vue2.mjs";
|
|
6
|
+
const M = { class: "pro-table-form" }, oe = /* @__PURE__ */ L({
|
|
6
7
|
__name: "form-render",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return
|
|
8
|
+
setup(Q, { expose: R }) {
|
|
9
|
+
const c = A(H), { columns: _, pageData: h, handleRequest: N } = c, { loading: T, antdFormProps: B, formColNum: f, formState: E, buttonCol: O } = P(c), l = j();
|
|
10
|
+
function v(t) {
|
|
11
|
+
return t.valueType !== "option" && !t.hideInForm;
|
|
11
12
|
}
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
h.pageNum = 1,
|
|
13
|
+
const S = (t) => t.dataIndex;
|
|
14
|
+
function g() {
|
|
15
|
+
h.pageNum = 1, N();
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
function w() {
|
|
18
|
+
l.value && l.value.validate().then(() => {
|
|
19
|
+
g();
|
|
19
20
|
}).catch(console.error);
|
|
20
21
|
}
|
|
21
22
|
function V() {
|
|
22
|
-
|
|
23
|
+
l.value && (l.value.resetFields(), g());
|
|
23
24
|
}
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
return (
|
|
25
|
+
const m = i(() => (f == null ? void 0 : f.value) || 0), C = i(() => 24 / m.value), D = i(() => {
|
|
26
|
+
const t = _.filter(v).length;
|
|
27
|
+
return (m.value - 1 - t % m.value) * C.value;
|
|
27
28
|
});
|
|
28
|
-
function k(
|
|
29
|
-
return
|
|
30
|
-
span:
|
|
29
|
+
function k(t, a = !1) {
|
|
30
|
+
return t = {
|
|
31
|
+
span: C.value,
|
|
31
32
|
// 4 列
|
|
32
|
-
...
|
|
33
|
-
},
|
|
33
|
+
...t || {}
|
|
34
|
+
}, a && t.offset == null && (t.offset = D.value), t;
|
|
34
35
|
}
|
|
35
36
|
return R({
|
|
36
|
-
formRef:
|
|
37
|
-
}), (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
formRef: l
|
|
38
|
+
}), (t, a) => (u(), d("div", M, [
|
|
39
|
+
o(e(Y), s({
|
|
40
|
+
ref_key: "formRef",
|
|
41
|
+
ref: l,
|
|
42
|
+
autocomplete: "off",
|
|
43
|
+
"label-col": { span: 5 }
|
|
44
|
+
}, e(B), { model: e(E) }), {
|
|
45
|
+
default: n(() => [
|
|
46
|
+
o(e($), { gutter: [0, 24] }, {
|
|
47
|
+
default: n(() => [
|
|
48
|
+
p(" TODO 处理 key 的问题, 有的项没有 key, 有的项没有 dataIndex "),
|
|
49
|
+
(u(!0), d(
|
|
50
|
+
y,
|
|
51
|
+
null,
|
|
52
|
+
q(e(_), (r) => (u(), d(
|
|
53
|
+
y,
|
|
52
54
|
null,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}, n.formItemProps), {
|
|
70
|
-
default: o(() => [
|
|
71
|
-
t(M, { column: n }, null, 8, ["column"])
|
|
72
|
-
]),
|
|
73
|
-
_: 2
|
|
74
|
-
/* DYNAMIC */
|
|
75
|
-
}, 1040, ["label", "name"])
|
|
76
|
-
]),
|
|
77
|
-
_: 2
|
|
78
|
-
/* DYNAMIC */
|
|
79
|
-
},
|
|
80
|
-
1040
|
|
81
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
82
|
-
)) : p("v-if", !0)
|
|
83
|
-
],
|
|
84
|
-
64
|
|
85
|
-
/* STABLE_FRAGMENT */
|
|
86
|
-
))),
|
|
87
|
-
256
|
|
88
|
-
/* UNKEYED_FRAGMENT */
|
|
89
|
-
)),
|
|
90
|
-
p(" 重置查询按钮 "),
|
|
91
|
-
t(
|
|
92
|
-
F,
|
|
93
|
-
G(H(k(u(w), !0))),
|
|
94
|
-
{
|
|
95
|
-
default: o(() => [
|
|
96
|
-
t(y, { "wrapper-col": { style: { textAlign: "right" } } }, {
|
|
97
|
-
default: o(() => [
|
|
98
|
-
t(L, null, {
|
|
99
|
-
default: o(() => [
|
|
100
|
-
t(x, { onClick: V }, {
|
|
101
|
-
default: o(() => l[0] || (l[0] = [
|
|
102
|
-
I(" 重置 ")
|
|
103
|
-
])),
|
|
104
|
-
_: 1
|
|
105
|
-
/* STABLE */
|
|
106
|
-
}),
|
|
107
|
-
t(x, {
|
|
108
|
-
type: "primary",
|
|
109
|
-
loading: u(N),
|
|
110
|
-
onClick: O
|
|
111
|
-
}, {
|
|
112
|
-
default: o(() => l[1] || (l[1] = [
|
|
113
|
-
I(" 查询 ")
|
|
114
|
-
])),
|
|
115
|
-
_: 1
|
|
116
|
-
/* STABLE */
|
|
117
|
-
}, 8, ["loading"])
|
|
55
|
+
[
|
|
56
|
+
v(r) ? (u(), z(
|
|
57
|
+
e(b),
|
|
58
|
+
s({
|
|
59
|
+
key: r.key,
|
|
60
|
+
ref_for: !0
|
|
61
|
+
}, k(r.fieldCol)),
|
|
62
|
+
{
|
|
63
|
+
default: n(() => [
|
|
64
|
+
o(e(F), s({
|
|
65
|
+
label: r.title,
|
|
66
|
+
name: S(r),
|
|
67
|
+
ref_for: !0
|
|
68
|
+
}, r.formItemProps), {
|
|
69
|
+
default: n(() => [
|
|
70
|
+
o(J, { column: r }, null, 8, ["column"])
|
|
118
71
|
]),
|
|
119
|
-
_:
|
|
120
|
-
/*
|
|
121
|
-
})
|
|
72
|
+
_: 2
|
|
73
|
+
/* DYNAMIC */
|
|
74
|
+
}, 1040, ["label", "name"])
|
|
122
75
|
]),
|
|
123
|
-
_:
|
|
124
|
-
/*
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/*
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
76
|
+
_: 2
|
|
77
|
+
/* DYNAMIC */
|
|
78
|
+
},
|
|
79
|
+
1040
|
|
80
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
81
|
+
)) : p("v-if", !0)
|
|
82
|
+
],
|
|
83
|
+
64
|
|
84
|
+
/* STABLE_FRAGMENT */
|
|
85
|
+
))),
|
|
86
|
+
256
|
|
87
|
+
/* UNKEYED_FRAGMENT */
|
|
88
|
+
)),
|
|
89
|
+
p(" 重置查询按钮 "),
|
|
90
|
+
o(
|
|
91
|
+
e(b),
|
|
92
|
+
K(X(k(e(O), !0))),
|
|
93
|
+
{
|
|
94
|
+
default: n(() => [
|
|
95
|
+
o(e(F), { "wrapper-col": { style: { textAlign: "right" } } }, {
|
|
96
|
+
default: n(() => [
|
|
97
|
+
o(e(G), null, {
|
|
98
|
+
default: n(() => [
|
|
99
|
+
o(e(I), { onClick: V }, {
|
|
100
|
+
default: n(() => a[0] || (a[0] = [
|
|
101
|
+
x(" 重置 ")
|
|
102
|
+
])),
|
|
103
|
+
_: 1
|
|
104
|
+
/* STABLE */
|
|
105
|
+
}),
|
|
106
|
+
o(e(I), {
|
|
107
|
+
type: "primary",
|
|
108
|
+
loading: e(T),
|
|
109
|
+
onClick: w
|
|
110
|
+
}, {
|
|
111
|
+
default: n(() => a[1] || (a[1] = [
|
|
112
|
+
x(" 查询 ")
|
|
113
|
+
])),
|
|
114
|
+
_: 1
|
|
115
|
+
/* STABLE */
|
|
116
|
+
}, 8, ["loading"])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
/* STABLE */
|
|
120
|
+
})
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
/* STABLE */
|
|
124
|
+
})
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
/* STABLE */
|
|
128
|
+
},
|
|
129
|
+
16
|
|
130
|
+
/* FULL_PROPS */
|
|
131
|
+
)
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
/* STABLE */
|
|
139
|
+
}, 16, ["model"])
|
|
140
|
+
]));
|
|
143
141
|
}
|
|
144
142
|
});
|
|
145
143
|
export {
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as x, useSlots as $, ref as g, reactive as C, watch as D, toRefs as L, provide as q, createElementBlock as m, openBlock as r, Fragment as T, createCommentVNode as n, createElementVNode as A, createBlock as c, createVNode as u, unref as o, withCtx as s, mergeProps as b, createSlots as O, renderSlot as y, normalizeProps as k, createTextVNode as I, toDisplayString as U } from "vue";
|
|
2
|
+
import { Card as w, Table as j, Pagination as K } from "ant-design-vue";
|
|
3
|
+
import { spitRender as M } from "../utils.mjs";
|
|
3
4
|
import "./form-render.vue.mjs";
|
|
4
|
-
import { TABLE_CONTEXT_PROVIDE_KEY as
|
|
5
|
-
import { useForm as
|
|
6
|
-
import { useTable as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
5
|
+
import { TABLE_CONTEXT_PROVIDE_KEY as X, ANTD_SLOT_NAMES as Y } from "./constants.mjs";
|
|
6
|
+
import { useForm as G } from "./hooks/use-form.mjs";
|
|
7
|
+
import { useTable as H } from "./hooks/use-table.mjs";
|
|
8
|
+
import J from "./form-render.vue2.mjs";
|
|
9
|
+
const Q = { class: "pro-table" }, W = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "toolbar-slot"
|
|
11
|
-
},
|
|
12
|
-
key: 0,
|
|
13
|
-
p: "x24px y17px"
|
|
14
|
-
}, de = /* @__PURE__ */ D({
|
|
12
|
+
}, Z = { key: 0 }, de = /* @__PURE__ */ x({
|
|
15
13
|
__name: "pro-table",
|
|
16
14
|
props: {
|
|
17
15
|
antdTableProps: {},
|
|
@@ -29,162 +27,160 @@ const W = { class: "pro-table" }, Z = {
|
|
|
29
27
|
buttonCol: {}
|
|
30
28
|
},
|
|
31
29
|
setup(z, { expose: B }) {
|
|
32
|
-
const
|
|
33
|
-
pageSize:
|
|
30
|
+
const l = z, d = $(), { columns: N } = l, h = g(), p = g(!1), a = C({
|
|
31
|
+
pageSize: l.pageSize,
|
|
34
32
|
pageNum: 1,
|
|
35
33
|
total: 0
|
|
36
|
-
}),
|
|
37
|
-
filteredColumns:
|
|
34
|
+
}), v = g([]), { formState: S, genFormState: _ } = G(l), {
|
|
35
|
+
filteredColumns: P,
|
|
38
36
|
handleRequest: f,
|
|
39
|
-
getLabelByValue:
|
|
40
|
-
hasCurrentColBodySlot:
|
|
37
|
+
getLabelByValue: E,
|
|
38
|
+
hasCurrentColBodySlot: F,
|
|
41
39
|
bodyCellProps: R
|
|
42
|
-
} =
|
|
40
|
+
} = H(l, d, {
|
|
43
41
|
loading: p,
|
|
44
|
-
pageData:
|
|
45
|
-
formState:
|
|
46
|
-
dataSource:
|
|
42
|
+
pageData: a,
|
|
43
|
+
formState: S,
|
|
44
|
+
dataSource: v
|
|
47
45
|
});
|
|
48
|
-
|
|
46
|
+
D(
|
|
49
47
|
() => N,
|
|
50
48
|
() => {
|
|
51
|
-
|
|
49
|
+
_();
|
|
52
50
|
},
|
|
53
51
|
{
|
|
54
52
|
immediate: !0,
|
|
55
53
|
deep: !0
|
|
56
54
|
}
|
|
57
55
|
);
|
|
58
|
-
const
|
|
59
|
-
...
|
|
56
|
+
const V = C({
|
|
57
|
+
...L(l),
|
|
60
58
|
tableSlots: d,
|
|
61
|
-
formState:
|
|
59
|
+
formState: S,
|
|
62
60
|
loading: p,
|
|
63
|
-
pageData:
|
|
61
|
+
pageData: a,
|
|
64
62
|
handleRequest: f
|
|
65
63
|
});
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
return q(
|
|
65
|
+
X,
|
|
66
|
+
V
|
|
69
67
|
), B({
|
|
70
68
|
onRefresh: f,
|
|
71
69
|
formRef: () => {
|
|
72
|
-
var
|
|
73
|
-
return (
|
|
70
|
+
var t;
|
|
71
|
+
return (t = h.value) == null ? void 0 : t.formRef;
|
|
74
72
|
},
|
|
75
|
-
pageData:
|
|
76
|
-
}), (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
[
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
73
|
+
pageData: a
|
|
74
|
+
}), (t, i) => (r(), m(
|
|
75
|
+
T,
|
|
76
|
+
null,
|
|
77
|
+
[
|
|
78
|
+
n(" eslint-disable vue/component-name-in-template-casing vue/no-use-v-if-with-v-for "),
|
|
79
|
+
A("div", Q, [
|
|
80
|
+
t.hideForm ? n("v-if", !0) : (r(), c(o(w), {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "pro-table-form",
|
|
83
|
+
bordered: !1,
|
|
84
|
+
"body-style": { padding: "16px" },
|
|
85
|
+
shadow: "none!"
|
|
86
|
+
}, {
|
|
87
|
+
default: s(() => [
|
|
88
|
+
u(
|
|
89
|
+
J,
|
|
90
|
+
{
|
|
91
|
+
ref_key: "formRenderRef",
|
|
92
|
+
ref: h
|
|
93
|
+
},
|
|
94
|
+
null,
|
|
95
|
+
512
|
|
96
|
+
/* NEED_PATCH */
|
|
97
|
+
)
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
/* STABLE */
|
|
101
|
+
})),
|
|
102
|
+
u(o(w), {
|
|
103
|
+
class: "pro-table-table",
|
|
104
|
+
title: t.headerTitle,
|
|
105
|
+
"head-style": {
|
|
106
|
+
borderBottom: "none",
|
|
107
|
+
paddingLeft: "16px",
|
|
108
|
+
paddingRight: "16px"
|
|
109
|
+
},
|
|
110
|
+
"body-style": { padding: 0 },
|
|
111
|
+
bordered: !1,
|
|
112
|
+
shadow: "none!"
|
|
113
|
+
}, {
|
|
114
|
+
extra: s(() => [
|
|
115
|
+
d.toolbar || l.toolbarRender ? (r(), m("div", W, [
|
|
116
|
+
d.toolbar ? y(t.$slots, "toolbar", { key: 0 }) : (r(), c(l.toolbarRender, { key: 1 }))
|
|
117
|
+
])) : n("v-if", !0)
|
|
118
|
+
]),
|
|
119
|
+
default: s(() => [
|
|
120
|
+
u(o(j), b(t.antdTableProps, {
|
|
121
|
+
"data-source": v.value,
|
|
122
|
+
columns: o(P),
|
|
123
|
+
pagination: !1,
|
|
124
|
+
loading: p.value
|
|
125
|
+
}), O({
|
|
126
|
+
bodyCell: s((e) => [
|
|
127
|
+
o(F)(e) ? y(t.$slots, "bodyCell", k(b({ key: 0 }, o(R)(e)))) : e.column.customRender ? (r(), c(o(M), {
|
|
128
|
+
key: 1,
|
|
129
|
+
fn: e.column.customRender,
|
|
130
|
+
scope: o(R)(e)
|
|
131
|
+
}, null, 8, ["fn", "scope"])) : e.column.valueType === "select" || e.column.valueEnum ? (r(), m(
|
|
132
|
+
T,
|
|
133
|
+
{ key: 2 },
|
|
134
|
+
[
|
|
135
|
+
I(
|
|
136
|
+
U(o(E)(e.text, e.column)),
|
|
137
|
+
1
|
|
138
|
+
/* TEXT */
|
|
139
|
+
)
|
|
140
|
+
],
|
|
141
|
+
64
|
|
142
|
+
/* STABLE_FRAGMENT */
|
|
143
|
+
)) : n("v-if", !0)
|
|
144
|
+
]),
|
|
145
|
+
_: 2
|
|
146
|
+
/* DYNAMIC */
|
|
147
|
+
}, [
|
|
148
|
+
String(name) !== "bodyCell" ? {
|
|
149
|
+
name,
|
|
150
|
+
fn: s((e) => [
|
|
151
|
+
o(Y).includes(name) ? y(t.$slots, name, k(b({ key: 0 }, e))) : n("v-if", !0)
|
|
148
152
|
]),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* FORWARDED */
|
|
181
|
-
}, 8, ["title"])
|
|
182
|
-
])
|
|
183
|
-
],
|
|
184
|
-
2112
|
|
185
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
186
|
-
);
|
|
187
|
-
};
|
|
153
|
+
key: "0"
|
|
154
|
+
} : void 0
|
|
155
|
+
]), 1040, ["data-source", "columns", "loading"]),
|
|
156
|
+
t.hidePage ? n("v-if", !0) : (r(), m("div", Z, [
|
|
157
|
+
u(o(K), {
|
|
158
|
+
current: a.pageNum,
|
|
159
|
+
"onUpdate:current": i[0] || (i[0] = (e) => a.pageNum = e),
|
|
160
|
+
"page-size": a.pageSize,
|
|
161
|
+
"onUpdate:pageSize": i[1] || (i[1] = (e) => a.pageSize = e),
|
|
162
|
+
class: "pro-table-pagination",
|
|
163
|
+
flex: "",
|
|
164
|
+
"flex-wrap": "",
|
|
165
|
+
"justify-end": "",
|
|
166
|
+
total: a.total,
|
|
167
|
+
size: "small",
|
|
168
|
+
"show-less-items": "",
|
|
169
|
+
"show-size-changer": "",
|
|
170
|
+
"page-size-options": ["5", "10", "20", "50", "100"],
|
|
171
|
+
"show-total": t.pageShowTotal ? (e) => `共 ${e} 条` : void 0,
|
|
172
|
+
onChange: o(f)
|
|
173
|
+
}, null, 8, ["current", "page-size", "total", "show-total", "onChange"])
|
|
174
|
+
]))
|
|
175
|
+
]),
|
|
176
|
+
_: 3
|
|
177
|
+
/* FORWARDED */
|
|
178
|
+
}, 8, ["title"])
|
|
179
|
+
])
|
|
180
|
+
],
|
|
181
|
+
2112
|
|
182
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
183
|
+
));
|
|
188
184
|
}
|
|
189
185
|
});
|
|
190
186
|
export {
|
|
@@ -202,7 +202,7 @@ const Me = /* @__PURE__ */ se({
|
|
|
202
202
|
value: n
|
|
203
203
|
} = w;
|
|
204
204
|
if (n && e.deltaY && I.value && l.xScrollable) {
|
|
205
|
-
const t = n.scrollLeft, r = n.scrollWidth - n.clientWidth, o = e.deltaY * 0.
|
|
205
|
+
const t = n.scrollLeft, r = n.scrollWidth - n.clientWidth, o = e.deltaY * 0.6, M = Math.max(0, Math.min(t + o, r));
|
|
206
206
|
n.scrollLeft = M, h(), e.stopPropagation(), e.preventDefault();
|
|
207
207
|
}
|
|
208
208
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../constants.js"),d={class:"field-date-range"},i=e.defineComponent({__name:"field-date-range",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue"),r=e.inject(s.FIELD_CONTEXT_PROVIDE_KEY),{column:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("ant-design-vue"),s=require("../../constants.js"),d={class:"field-date-range"},i=e.defineComponent({__name:"field-date-range",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue"),r=e.inject(s.FIELD_CONTEXT_PROVIDE_KEY),{column:u}=e.toRefs(r);return(c,o)=>(e.openBlock(),e.createElementBlock("div",d,[e.createCommentVNode(" prettier-ignore-attribute v-bind "),e.createVNode(e.unref(a.RangePicker),e.mergeProps({value:t.value,"onUpdate:value":o[0]||(o[0]=l=>t.value=l)},e.unref(u).fieldProps),null,16,["value"])]))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../constants.js"),d={class:"field-input"},a=e.defineComponent({__name:"field-input",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue"),u=e.inject(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue"),s=require("../../constants.js"),d={class:"field-input"},a=e.defineComponent({__name:"field-input",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue"),u=e.inject(s.FIELD_CONTEXT_PROVIDE_KEY),{column:l}=u;return(c,o)=>(e.openBlock(),e.createElementBlock("div",d,[e.createCommentVNode(" prettier-ignore-attribute v-bind "),e.createVNode(e.unref(i.Input),e.mergeProps({value:t.value,"onUpdate:value":o[0]||(o[0]=r=>t.value=r)},e.unref(l).fieldProps),null,16,["value"])]))}});exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue"),i=require("../../constants.js"),s={class:"field-select"},c=e.defineComponent({__name:"field-radio",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(u){const l=e.useModel(u,"modelValue"),n=e.inject(i.FIELD_CONTEXT_PROVIDE_KEY),{fieldOptions:a,column:d}=e.toRefs(n);return(f,o)=>(e.openBlock(),e.createElementBlock("div",s,[e.createCommentVNode(" prettier-ignore-attribute v-bind "),e.createVNode(e.unref(r.RadioGroup),e.mergeProps({value:l.value,"onUpdate:value":o[0]||(o[0]=t=>l.value=t)},e.unref(d).fieldProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),t=>(e.openBlock(),e.createBlock(e.unref(r.Radio),{key:t.value,value:t.value,disabled:t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},16,["value"])]))}});exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../constants.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("ant-design-vue"),d=require("../../constants.js"),s={class:"field-select"},c=e.defineComponent({__name:"field-select",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(r){const l=e.useModel(r,"modelValue"),u=e.inject(d.FIELD_CONTEXT_PROVIDE_KEY),{fieldOptions:a,column:i}=e.toRefs(u);return(f,o)=>(e.openBlock(),e.createElementBlock("div",s,[e.createCommentVNode(" prettier-ignore-attribute v-bind "),e.createVNode(e.unref(n.Select),e.mergeProps({value:l.value,"onUpdate:value":o[0]||(o[0]=t=>l.value=t)},e.unref(i).fieldProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),t=>(e.openBlock(),e.createBlock(e.unref(n.SelectOption),{key:t.value,value:t.value,disabled:t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},16,["value"])]))}});exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./field/field.vue.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue");require("./field/field.vue.js");const y=require("./constants.js"),B=require("./field/field.vue2.js"),b={class:"pro-table-form"},F=e.defineComponent({__name:"form-render",setup(I,{expose:p}){const f=e.inject(y.TABLE_CONTEXT_PROVIDE_KEY),{columns:i,pageData:_,handleRequest:C}=f,{loading:v,antdFormProps:g,formColNum:a,formState:x,buttonCol:N}=e.toRefs(f),n=e.ref();function d(t){return t.valueType!=="option"&&!t.hideInForm}const V=t=>t.dataIndex;function c(){_.pageNum=1,C()}function k(){n.value&&n.value.validate().then(()=>{c()}).catch(console.error)}function h(){n.value&&(n.value.resetFields(),c())}const l=e.computed(()=>(a==null?void 0:a.value)||0),s=e.computed(()=>24/l.value),w=e.computed(()=>{const t=i.filter(d).length;return(l.value-1-t%l.value)*s.value});function m(t,u=!1){return t={span:s.value,...t||{}},u&&t.offset==null&&(t.offset=w.value),t}return p({formRef:n}),(t,u)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(e.unref(r.Form),e.mergeProps({ref_key:"formRef",ref:n,autocomplete:"off","label-col":{span:5}},e.unref(g),{model:e.unref(x)}),{default:e.withCtx(()=>[e.createVNode(e.unref(r.Row),{gutter:[0,24]},{default:e.withCtx(()=>[e.createCommentVNode(" TODO 处理 key 的问题, 有的项没有 key, 有的项没有 dataIndex "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d(o)?(e.openBlock(),e.createBlock(e.unref(r.Col),e.mergeProps({key:o.key,ref_for:!0},m(o.fieldCol)),{default:e.withCtx(()=>[e.createVNode(e.unref(r.FormItem),e.mergeProps({label:o.title,name:V(o),ref_for:!0},o.formItemProps),{default:e.withCtx(()=>[e.createVNode(B.default,{column:o},null,8,["column"])]),_:2},1040,["label","name"])]),_:2},1040)):e.createCommentVNode("v-if",!0)],64))),256)),e.createCommentVNode(" 重置查询按钮 "),e.createVNode(e.unref(r.Col),e.normalizeProps(e.guardReactiveProps(m(e.unref(N),!0))),{default:e.withCtx(()=>[e.createVNode(e.unref(r.FormItem),{"wrapper-col":{style:{textAlign:"right"}}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.Button),{onClick:h},{default:e.withCtx(()=>u[0]||(u[0]=[e.createTextVNode(" 重置 ")])),_:1}),e.createVNode(e.unref(r.Button),{type:"primary",loading:e.unref(v),onClick:k},{default:e.withCtx(()=>u[1]||(u[1]=[e.createTextVNode(" 查询 ")])),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},16)]),_:1})]),_:1},16,["model"])]))}});exports.default=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./pro-table.vue2.js")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./pro-table.vue2.js");exports.default=e.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("ant-design-vue"),B=require("../utils.js");require("./form-render.vue.js");const f=require("./constants.js"),N=require("./hooks/use-form.js"),R=require("./hooks/use-table.js"),_=require("./form-render.vue2.js"),T={class:"pro-table"},w={key:0,class:"toolbar-slot"},V={key:0},P=e.defineComponent({__name:"pro-table",props:{antdTableProps:{},formColNum:{default:4},columns:{},headerTitle:{},request:{},antdFormProps:{},toolbarRender:{},requestImmediately:{type:Boolean,default:!0},pageShowTotal:{type:Boolean,default:!0},pageSize:{default:10},hideForm:{type:Boolean},hidePage:{type:Boolean},buttonCol:{}},setup(g,{expose:b}){const a=g,n=e.useSlots(),{columns:y}=a,i=e.ref(),u=e.ref(!1),r=e.reactive({pageSize:a.pageSize,pageNum:1,total:0}),m=e.ref([]),{formState:c,genFormState:h}=N.useForm(a),{filteredColumns:v,handleRequest:d,getLabelByValue:C,hasCurrentColBodySlot:k,bodyCellProps:p}=R.useTable(a,n,{loading:u,pageData:r,formState:c,dataSource:m});e.watch(()=>y,()=>{h()},{immediate:!0,deep:!0});const S=e.reactive({...e.toRefs(a),tableSlots:n,formState:c,loading:u,pageData:r,handleRequest:d});return e.provide(f.TABLE_CONTEXT_PROVIDE_KEY,S),b({onRefresh:d,formRef:()=>{var o;return(o=i.value)==null?void 0:o.formRef},pageData:r}),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" eslint-disable vue/component-name-in-template-casing vue/no-use-v-if-with-v-for "),e.createElementVNode("div",T,[o.hideForm?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(s.Card),{key:0,class:"pro-table-form",bordered:!1,"body-style":{padding:"16px"},shadow:"none!"},{default:e.withCtx(()=>[e.createVNode(_.default,{ref_key:"formRenderRef",ref:i},null,512)]),_:1})),e.createVNode(e.unref(s.Card),{class:"pro-table-table",title:o.headerTitle,"head-style":{borderBottom:"none",paddingLeft:"16px",paddingRight:"16px"},"body-style":{padding:0},bordered:!1,shadow:"none!"},{extra:e.withCtx(()=>[n.toolbar||a.toolbarRender?(e.openBlock(),e.createElementBlock("div",w,[n.toolbar?e.renderSlot(o.$slots,"toolbar",{key:0}):(e.openBlock(),e.createBlock(a.toolbarRender,{key:1}))])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(s.Table),e.mergeProps(o.antdTableProps,{"data-source":m.value,columns:e.unref(v),pagination:!1,loading:u.value}),e.createSlots({bodyCell:e.withCtx(t=>[e.unref(k)(t)?e.renderSlot(o.$slots,"bodyCell",e.normalizeProps(e.mergeProps({key:0},e.unref(p)(t)))):t.column.customRender?(e.openBlock(),e.createBlock(e.unref(B.spitRender),{key:1,fn:t.column.customRender,scope:e.unref(p)(t)},null,8,["fn","scope"])):t.column.valueType==="select"||t.column.valueEnum?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(e.unref(C)(t.text,t.column)),1)],64)):e.createCommentVNode("v-if",!0)]),_:2},[String(name)!=="bodyCell"?{name,fn:e.withCtx(t=>[e.unref(f.ANTD_SLOT_NAMES).includes(name)?e.renderSlot(o.$slots,name,e.normalizeProps(e.mergeProps({key:0},t))):e.createCommentVNode("v-if",!0)]),key:"0"}:void 0]),1040,["data-source","columns","loading"]),o.hidePage?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(e.unref(s.Pagination),{current:r.pageNum,"onUpdate:current":l[0]||(l[0]=t=>r.pageNum=t),"page-size":r.pageSize,"onUpdate:pageSize":l[1]||(l[1]=t=>r.pageSize=t),class:"pro-table-pagination",flex:"","flex-wrap":"","justify-end":"",total:r.total,size:"small","show-less-items":"","show-size-changer":"","page-size-options":["5","10","20","50","100"],"show-total":o.pageShowTotal?t=>`共 ${t} 条`:void 0,onChange:e.unref(d)},null,8,["current","page-size","total","show-total","onChange"])]))]),_:3},8,["title"])])],2112))}});exports.default=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),j=require("@vueuse/core"),f=require("evtd"),s=require("../../../hooks/use-namespace/index.js"),re=require("./types.js"),ce=t.defineComponent({name:"KScrollbar",props:re.scrollbarProps,inheritAttrs:!1,setup(o){t.onMounted(()=>{o.container||h()});const v=t.ref(null),m=t.ref(null),x=t.ref(null),P=t.ref(null),d=t.ref(null),i=t.ref(null),u=t.ref(null),R=t.ref(null),X=t.ref(null),z=t.ref(null),A=t.computed(()=>{var e;return((e=o.content)==null?void 0:e.call(o))||v.value}),S=t.computed(()=>{var e;return((e=o.container)==null?void 0:e.call(o))||m.value}),N=t.ref(0),T=t.ref(0);j.useResizeObserver(v,()=>{h()}),j.useResizeObserver(m,()=>{h()});const K=t.computed(()=>{const{value:e}=u,{value:n}=d;return e!==null&&n!==null&&n>e}),w=t.ref(!1),k=t.computed(()=>{const{trigger:e}=o;return e!=="none"&&(e==="always"||w.value)}),W=t.computed(()=>{const{value:e}=u,{value:n}=d,{value:l}=X;return e===null||n===null||l===null?0:Math.min(e,l*e/n+5*1.5)}),F=t.computed(()=>`${W.value}px`),G=t.computed(()=>{const{value:e}=u,{value:n}=N,{value:l}=d,{value:r}=X;if(e===null||l===null||r===null)return 0;{const a=l-e;return a?n/a*(r-W.value):0}}),J=t.computed(()=>`${G.value}px`);let g=!1,H=0,$=0,y,b;const C=e=>{if(!g)return;b!==void 0&&window.clearTimeout(b),y!==void 0&&window.clearTimeout(y);const{value:n}=u,{value:l}=d,{value:r}=W;if(n===null||l===null)return;const B=(e.clientY-$)*(l-n)/(n-r),D=l-n;let c=H+B;c=Math.min(D,c),c=Math.max(c,0);const{value:M}=S;M&&(M.scrollTop=c)},V=e=>{e.preventDefault(),e.stopPropagation(),f.off("mousemove",window,C,!0),f.off("mouseup",window,V,!0),g=!1,w.value=!1,h()},Q=e=>{e.preventDefault(),e.stopPropagation(),f.on("mousemove",window,C,!0),f.on("mouseup",window,V,!0),H=N.value,$=e.clientY,g=!0,w.value=!0};function Z(e){const{onScroll:n}=o;n&&n(e),I()}const _=t.computed(()=>{const{value:e}=R,{value:n}=i;return e!==null&&n!==null&&n>e}),p=t.ref(!1),ee=t.computed(()=>{const{trigger:e}=o;return e!=="none"&&(e==="always"||p.value)}),Y=t.computed(()=>{const{value:e}=R,{value:n}=i,{value:l}=z;return e===null||n===null||l===null?0:l*e/n+5*1.5}),te=t.computed(()=>`${Y.value}px`),ne=t.computed(()=>{const{value:e}=R,{value:n}=T,{value:l}=i,{value:r}=z;if(e===null||l===null||r===null)return 0;{const a=l-e;return a?n/a*(r-Y.value):0}}),le=t.computed(()=>`${ne.value}px`);let L=!1,q=0,E=0;const U=e=>{if(!L)return;b!==void 0&&window.clearTimeout(b),y!==void 0&&window.clearTimeout(y);const{value:n}=R,{value:l}=i,{value:r}=Y;if(n===null||l===null)return;const B=(e.clientX-E)*(l-n)/(n-r),D=l-n;let c=q+B;c=Math.min(D,c),c=Math.max(c,0);const{value:M}=S;M&&(M.scrollLeft=c)},O=e=>{e.preventDefault(),e.stopPropagation(),f.off("mousemove",window,U,!0),f.off("mouseup",window,O,!0),p.value=!1,L=!1,h()};function oe(e){e.preventDefault(),e.stopPropagation(),L=!0,p.value=!0,f.on("mousemove",window,U,!0),f.on("mouseup",window,O,!0),q=T.value,E=e.clientX}function I(){const{value:e}=S;e&&(N.value=e.scrollTop,T.value=e.scrollLeft)}const ae=()=>{const{value:e}=A;if(e){const a=e.getBoundingClientRect();d.value=a.height,i.value=a.width}const{value:n}=S;if(n){const a=n.getBoundingClientRect();u.value=a.height,R.value=a.width}const{value:l}=x;l&&(X.value=l.offsetHeight);const{value:r}=P;r&&(z.value=r.offsetWidth)};function h(){ae(),I()}return{showYBarRef:k,showXBarRef:ee,sync:h,handleMouseEnter:()=>{w.value=!0,p.value=!0},handleMouseLeave:()=>{g||(w.value=!1),L||(p.value=!1)},handleXScrollWheel:e=>{const{value:n}=S;if(n&&e.deltaY&&_.value&&o.xScrollable){const l=n.scrollLeft,r=n.scrollWidth-n.clientWidth,a=e.deltaY*.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),j=require("@vueuse/core"),f=require("evtd"),s=require("../../../hooks/use-namespace/index.js"),re=require("./types.js"),ce=t.defineComponent({name:"KScrollbar",props:re.scrollbarProps,inheritAttrs:!1,setup(o){t.onMounted(()=>{o.container||h()});const v=t.ref(null),m=t.ref(null),x=t.ref(null),P=t.ref(null),d=t.ref(null),i=t.ref(null),u=t.ref(null),R=t.ref(null),X=t.ref(null),z=t.ref(null),A=t.computed(()=>{var e;return((e=o.content)==null?void 0:e.call(o))||v.value}),S=t.computed(()=>{var e;return((e=o.container)==null?void 0:e.call(o))||m.value}),N=t.ref(0),T=t.ref(0);j.useResizeObserver(v,()=>{h()}),j.useResizeObserver(m,()=>{h()});const K=t.computed(()=>{const{value:e}=u,{value:n}=d;return e!==null&&n!==null&&n>e}),w=t.ref(!1),k=t.computed(()=>{const{trigger:e}=o;return e!=="none"&&(e==="always"||w.value)}),W=t.computed(()=>{const{value:e}=u,{value:n}=d,{value:l}=X;return e===null||n===null||l===null?0:Math.min(e,l*e/n+5*1.5)}),F=t.computed(()=>`${W.value}px`),G=t.computed(()=>{const{value:e}=u,{value:n}=N,{value:l}=d,{value:r}=X;if(e===null||l===null||r===null)return 0;{const a=l-e;return a?n/a*(r-W.value):0}}),J=t.computed(()=>`${G.value}px`);let g=!1,H=0,$=0,y,b;const C=e=>{if(!g)return;b!==void 0&&window.clearTimeout(b),y!==void 0&&window.clearTimeout(y);const{value:n}=u,{value:l}=d,{value:r}=W;if(n===null||l===null)return;const B=(e.clientY-$)*(l-n)/(n-r),D=l-n;let c=H+B;c=Math.min(D,c),c=Math.max(c,0);const{value:M}=S;M&&(M.scrollTop=c)},V=e=>{e.preventDefault(),e.stopPropagation(),f.off("mousemove",window,C,!0),f.off("mouseup",window,V,!0),g=!1,w.value=!1,h()},Q=e=>{e.preventDefault(),e.stopPropagation(),f.on("mousemove",window,C,!0),f.on("mouseup",window,V,!0),H=N.value,$=e.clientY,g=!0,w.value=!0};function Z(e){const{onScroll:n}=o;n&&n(e),I()}const _=t.computed(()=>{const{value:e}=R,{value:n}=i;return e!==null&&n!==null&&n>e}),p=t.ref(!1),ee=t.computed(()=>{const{trigger:e}=o;return e!=="none"&&(e==="always"||p.value)}),Y=t.computed(()=>{const{value:e}=R,{value:n}=i,{value:l}=z;return e===null||n===null||l===null?0:l*e/n+5*1.5}),te=t.computed(()=>`${Y.value}px`),ne=t.computed(()=>{const{value:e}=R,{value:n}=T,{value:l}=i,{value:r}=z;if(e===null||l===null||r===null)return 0;{const a=l-e;return a?n/a*(r-Y.value):0}}),le=t.computed(()=>`${ne.value}px`);let L=!1,q=0,E=0;const U=e=>{if(!L)return;b!==void 0&&window.clearTimeout(b),y!==void 0&&window.clearTimeout(y);const{value:n}=R,{value:l}=i,{value:r}=Y;if(n===null||l===null)return;const B=(e.clientX-E)*(l-n)/(n-r),D=l-n;let c=q+B;c=Math.min(D,c),c=Math.max(c,0);const{value:M}=S;M&&(M.scrollLeft=c)},O=e=>{e.preventDefault(),e.stopPropagation(),f.off("mousemove",window,U,!0),f.off("mouseup",window,O,!0),p.value=!1,L=!1,h()};function oe(e){e.preventDefault(),e.stopPropagation(),L=!0,p.value=!0,f.on("mousemove",window,U,!0),f.on("mouseup",window,O,!0),q=T.value,E=e.clientX}function I(){const{value:e}=S;e&&(N.value=e.scrollTop,T.value=e.scrollLeft)}const ae=()=>{const{value:e}=A;if(e){const a=e.getBoundingClientRect();d.value=a.height,i.value=a.width}const{value:n}=S;if(n){const a=n.getBoundingClientRect();u.value=a.height,R.value=a.width}const{value:l}=x;l&&(X.value=l.offsetHeight);const{value:r}=P;r&&(z.value=r.offsetWidth)};function h(){ae(),I()}return{showYBarRef:k,showXBarRef:ee,sync:h,handleMouseEnter:()=>{w.value=!0,p.value=!0},handleMouseLeave:()=>{g||(w.value=!1),L||(p.value=!1)},handleXScrollWheel:e=>{const{value:n}=S;if(n&&e.deltaY&&_.value&&o.xScrollable){const l=n.scrollLeft,r=n.scrollWidth-n.clientWidth,a=e.deltaY*.6,B=Math.max(0,Math.min(l+a,r));n.scrollLeft=B,h(),e.stopPropagation(),e.preventDefault()}},contentRef:v,yRailRef:x,xRailRef:P,containerRef:m,contentHeightRef:d,containerHeightRef:u,needYBarRef:K,needXBarRef:_,yBarSizePxRef:F,handleYScrollMouseDown:Q,handleXScrollMouseDown:oe,yBarTopPxRef:J,handleScroll:Z,xBarSizePxRef:te,xBarLeftPxRef:le}},render(){const{$slots:o,xScrollable:v}=this,m=()=>t.createVNode("div",{class:`${s.defaultNamespace}-scrollbar-rail ${s.defaultNamespace}-scrollbar-rail--horizontal`,ref:"xRailRef"},[this.needXBarRef&&this.showXBarRef&&t.createVNode("div",{class:`${s.defaultNamespace}-scrollbar-rail__scrollbar--horizontal`,style:{width:this.xBarSizePxRef,left:this.xBarLeftPxRef},onMousedown:this.handleXScrollMouseDown},null,46,["onMousedown"])],2),x=()=>t.createVNode("div",{class:`${s.defaultNamespace}-scrollbar-rail ${s.defaultNamespace}-scrollbar-rail--vertical`,ref:"yRailRef"},[this.needYBarRef&&this.showYBarRef&&t.createVNode("div",{class:`${s.defaultNamespace}-scrollbar-rail__scrollbar--vertical`,style:{height:this.yBarSizePxRef,top:this.yBarTopPxRef},onMousedown:this.handleYScrollMouseDown},null,46,["onMousedown"])],2);return(()=>{var i,u;return t.createVNode("div",t.mergeProps({class:`${s.defaultNamespace}-scrollbar`},this.$attrs,{onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave}),[this.container?(i=o.default)==null?void 0:i.call(o):t.createVNode("div",{class:`${s.defaultNamespace}-scrollbar-container`,onScroll:this.handleScroll,ref:"containerRef",onWheel:this.handleXScrollWheel},[t.createVNode("div",{ref:"contentRef",class:`${s.defaultNamespace}-scrollbar-content`},[(u=o.default)==null?void 0:u.call(o)],2)],42,["onScroll","onWheel"]),x(),v&&m()],16,["onMouseenter","onMouseleave"])})()}});exports.default=ce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=
|
|
1
|
+
@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=85331) format("woff2"),url(fonts/iconfont.woff?t=50448) format("woff"),url(fonts/iconfont.ttf?t=75766) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-title-icon:before{content:"\e680"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=
|
|
1
|
+
:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=29408) format("woff2"),url(fonts/iconfont.woff?t=71442) format("woff"),url(fonts/iconfont.ttf?t=85190) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-title-icon:before{content:"\e680"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.pro-table .pro-table-form{margin-bottom:16px}.pro-table .pro-table-form .ant-form .ant-form-item{margin-bottom:0}.pro-table .ant-card .ant-card-head .ant-card-head-wrapper .ant-card-extra{margin-inline-start:unset}.pro-table .ant-table .ant-table-thead tr th{background-color:#f7f8fa!important}.pro-table .ant-table .ant-table-thead tr th::before{display:none}.pro-table .ant-table .ant-table-tbody tr td{background-color:transparent!important}.pro-table .pro-table-pagination{display:flex;justify-content:flex-end;align-items:center;margin:16px}
|
|
@@ -65,8 +65,8 @@ export declare const KProArea: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
|
65
65
|
county?: string;
|
|
66
66
|
}) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
|
-
fieldNames: FieldNames;
|
|
69
68
|
level: 1 | 2 | 3;
|
|
69
|
+
fieldNames: FieldNames;
|
|
70
70
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
|
71
71
|
export * from './hooks/use-pro-area';
|
|
72
72
|
export default KProArea;
|
|
@@ -63,7 +63,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
county?: string;
|
|
64
64
|
}) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
fieldNames: FieldNames;
|
|
67
66
|
level: 1 | 2 | 3;
|
|
67
|
+
fieldNames: FieldNames;
|
|
68
68
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
69
69
|
export default _default;
|
|
@@ -3,6 +3,6 @@ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProv
|
|
|
3
3
|
declare const _default: DefineComponent<{}, {
|
|
4
4
|
formRef: Ref<FormInstance | undefined, FormInstance | undefined>;
|
|
5
5
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
6
|
-
formRef:
|
|
6
|
+
formRef: any;
|
|
7
7
|
}, HTMLDivElement>;
|
|
8
8
|
export default _default;
|
|
@@ -1,57 +1,11 @@
|
|
|
1
1
|
import { TablePropsType, TableExpose } from '..';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef,
|
|
3
|
-
import { RenderExpandIconProps } from 'ant-design-vue/es/vc-table/interface';
|
|
4
|
-
import { ColumnType } from 'ant-design-vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
5
3
|
import { OmittedAntdTableSlots, ExtraTableSlotsType } from './types';
|
|
6
4
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & TablePropsType<RecordType> & Partial<{}>> & PublicProps;
|
|
8
6
|
expose(exposed: ShallowUnwrapRef<TableExpose>): void;
|
|
9
7
|
attrs: any;
|
|
10
|
-
slots: Readonly<Omit<
|
|
11
|
-
emptyText?: any;
|
|
12
|
-
expandIcon?: Slot< RenderExpandIconProps<any> | undefined> | undefined;
|
|
13
|
-
title?: any;
|
|
14
|
-
footer?: any;
|
|
15
|
-
summary?: any;
|
|
16
|
-
expandedRowRender?: any;
|
|
17
|
-
expandColumnTitle?: any;
|
|
18
|
-
bodyCell?: ((props: {
|
|
19
|
-
text: any;
|
|
20
|
-
value: any;
|
|
21
|
-
record: Record<string, any>;
|
|
22
|
-
index: number;
|
|
23
|
-
column: ColumnType<any>;
|
|
24
|
-
}) => void) | undefined;
|
|
25
|
-
headerCell?: ((props: {
|
|
26
|
-
title: any;
|
|
27
|
-
column: ColumnType<any>;
|
|
28
|
-
}) => void) | undefined;
|
|
29
|
-
customFilterIcon?: any;
|
|
30
|
-
customFilterDropdown?: any;
|
|
31
|
-
default: any;
|
|
32
|
-
}>, OmittedAntdTableSlots> & ExtraTableSlotsType<RecordType>> & Omit<Readonly<{
|
|
33
|
-
emptyText?: any;
|
|
34
|
-
expandIcon?: Slot< RenderExpandIconProps<any> | undefined> | undefined;
|
|
35
|
-
title?: any;
|
|
36
|
-
footer?: any;
|
|
37
|
-
summary?: any;
|
|
38
|
-
expandedRowRender?: any;
|
|
39
|
-
expandColumnTitle?: any;
|
|
40
|
-
bodyCell?: ((props: {
|
|
41
|
-
text: any;
|
|
42
|
-
value: any;
|
|
43
|
-
record: Record<string, any>;
|
|
44
|
-
index: number;
|
|
45
|
-
column: ColumnType<any>;
|
|
46
|
-
}) => void) | undefined;
|
|
47
|
-
headerCell?: ((props: {
|
|
48
|
-
title: any;
|
|
49
|
-
column: ColumnType<any>;
|
|
50
|
-
}) => void) | undefined;
|
|
51
|
-
customFilterIcon?: any;
|
|
52
|
-
customFilterDropdown?: any;
|
|
53
|
-
default: any;
|
|
54
|
-
}>, OmittedAntdTableSlots> & ExtraTableSlotsType<RecordType>;
|
|
8
|
+
slots: Readonly<Omit<any, OmittedAntdTableSlots> & ExtraTableSlotsType<RecordType>> & Omit<any, OmittedAntdTableSlots> & ExtraTableSlotsType<RecordType>;
|
|
55
9
|
emit: {};
|
|
56
10
|
}>) => VNode & {
|
|
57
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.pro-table .ant-card .ant-card-head .ant-card-head-wrapper .ant-card-extra{margin-inline-start:unset}.pro-table .ant-table .ant-table-thead tr th{@apply bg-[#F7F8FA];}.pro-table .ant-table .ant-table-thead tr th:before{@apply hidden;}.pro-table .ant-table .ant-table-tbody tr td{background-color:transparent!important}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.pro-table .ant-card .ant-card-head .ant-card-head-wrapper .ant-card-extra{margin-inline-start:unset}.pro-table .ant-table .ant-table-thead tr th{@apply bg-[#F7F8FA];}.pro-table .ant-table .ant-table-thead tr th:before{@apply hidden;}.pro-table .ant-table .ant-table-tbody tr td{background-color:transparent!important}
|