@king-one/antdv 1.0.79 → 1.0.90
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 +0 -6
- 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 +131 -137
- package/dist/es/components/scroll-bar/src/types.mjs +2 -10
- 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/lib/components/scroll-bar/src/types.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/theme-chalk/scroll-bar.css +1 -1
- package/dist/types/components/pro-table/src/form-render.vue.d.ts +643 -2
- package/dist/types/components/scroll-bar/index.d.ts +16 -34
- package/dist/types/components/scroll-bar/src/scroll-bar.d.ts +16 -34
- package/dist/types/components/scroll-bar/src/types.d.ts +7 -15
- package/package.json +7 -7
- package/dist/es/components/pro-table/src/pro-table.css +0 -1
- package/dist/lib/components/pro-table/src/pro-table.css +0 -1
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as se, createVNode as v, mergeProps as ue, onMounted as fe, ref as a, computed as c } from "vue";
|
|
2
2
|
import { useResizeObserver as q } from "@vueuse/core";
|
|
3
3
|
import { off as W, on as Y } from "evtd";
|
|
4
|
-
import { defaultNamespace as
|
|
4
|
+
import { defaultNamespace as u } from "../../../hooks/use-namespace/index.mjs";
|
|
5
5
|
import { scrollbarProps as de } from "./types.mjs";
|
|
6
|
-
const
|
|
6
|
+
const Me = /* @__PURE__ */ se({
|
|
7
7
|
name: "KScrollbar",
|
|
8
8
|
props: de,
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
setup(l) {
|
|
11
11
|
fe(() => {
|
|
12
|
-
l.container ||
|
|
12
|
+
l.container || h();
|
|
13
13
|
});
|
|
14
|
-
const
|
|
14
|
+
const R = a(null), S = a(null), p = a(null), z = a(null), d = a(null), f = a(null), s = a(null), m = a(null), T = a(null), b = a(null), F = c(() => {
|
|
15
15
|
var e;
|
|
16
|
-
return ((e = l.content) == null ? void 0 : e.call(l)) ||
|
|
16
|
+
return ((e = l.content) == null ? void 0 : e.call(l)) || R.value;
|
|
17
17
|
}), w = c(() => {
|
|
18
18
|
var e;
|
|
19
|
-
return ((e = l.container) == null ? void 0 : e.call(l)) ||
|
|
20
|
-
}),
|
|
21
|
-
q(
|
|
22
|
-
|
|
23
|
-
}), q(
|
|
24
|
-
|
|
19
|
+
return ((e = l.container) == null ? void 0 : e.call(l)) || S.value;
|
|
20
|
+
}), D = a(0), H = a(0);
|
|
21
|
+
q(R, () => {
|
|
22
|
+
h();
|
|
23
|
+
}), q(S, () => {
|
|
24
|
+
h();
|
|
25
25
|
});
|
|
26
26
|
const G = c(() => {
|
|
27
27
|
const {
|
|
28
28
|
value: e
|
|
29
|
-
} =
|
|
30
|
-
value:
|
|
31
|
-
} =
|
|
32
|
-
return e !== null &&
|
|
29
|
+
} = s, {
|
|
30
|
+
value: n
|
|
31
|
+
} = d;
|
|
32
|
+
return e !== null && n !== null && n > e;
|
|
33
33
|
}), B = a(!1), J = c(() => {
|
|
34
34
|
const {
|
|
35
35
|
trigger: e
|
|
36
36
|
} = l;
|
|
37
37
|
return e !== "none" && (e === "always" || B.value);
|
|
38
|
-
}),
|
|
38
|
+
}), $ = c(() => {
|
|
39
39
|
const {
|
|
40
40
|
value: e
|
|
41
|
-
} =
|
|
42
|
-
value: t
|
|
43
|
-
} = h, {
|
|
41
|
+
} = s, {
|
|
44
42
|
value: n
|
|
45
|
-
} =
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
} = d, {
|
|
44
|
+
value: t
|
|
45
|
+
} = T;
|
|
46
|
+
return e === null || n === null || t === null ? 0 : Math.min(e, t * e / n + 5 * 1.5);
|
|
47
|
+
}), Q = c(() => `${$.value}px`), Z = c(() => {
|
|
48
48
|
const {
|
|
49
49
|
value: e
|
|
50
|
-
} =
|
|
51
|
-
value: t
|
|
52
|
-
} = C, {
|
|
50
|
+
} = s, {
|
|
53
51
|
value: n
|
|
54
|
-
} =
|
|
52
|
+
} = D, {
|
|
53
|
+
value: t
|
|
54
|
+
} = d, {
|
|
55
55
|
value: r
|
|
56
|
-
} =
|
|
57
|
-
if (e === null ||
|
|
56
|
+
} = T;
|
|
57
|
+
if (e === null || t === null || r === null)
|
|
58
58
|
return 0;
|
|
59
59
|
{
|
|
60
|
-
const o =
|
|
61
|
-
return o ?
|
|
60
|
+
const o = t - e;
|
|
61
|
+
return o ? n / o * (r - $.value) : 0;
|
|
62
62
|
}
|
|
63
63
|
}), ee = c(() => `${Z.value}px`);
|
|
64
|
-
let y = !1, N = 0,
|
|
65
|
-
const
|
|
64
|
+
let y = !1, N = 0, U = 0, L, X;
|
|
65
|
+
const _ = (e) => {
|
|
66
66
|
if (!y) return;
|
|
67
67
|
X !== void 0 && window.clearTimeout(X), L !== void 0 && window.clearTimeout(L);
|
|
68
68
|
const {
|
|
69
|
-
value: t
|
|
70
|
-
} = u, {
|
|
71
69
|
value: n
|
|
72
|
-
} =
|
|
70
|
+
} = s, {
|
|
71
|
+
value: t
|
|
72
|
+
} = d, {
|
|
73
73
|
value: r
|
|
74
|
-
} =
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
|
|
74
|
+
} = $;
|
|
75
|
+
if (n === null || t === null) return;
|
|
76
|
+
const M = (e.clientY - U) * (t - n) / (n - r), E = t - n;
|
|
77
|
+
let i = N + M;
|
|
78
|
+
i = Math.min(E, i), i = Math.max(i, 0);
|
|
79
79
|
const {
|
|
80
|
-
value:
|
|
80
|
+
value: g
|
|
81
81
|
} = w;
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
e.preventDefault(), e.stopPropagation(), W("mousemove", window,
|
|
85
|
-
},
|
|
86
|
-
e.preventDefault(), e.stopPropagation(), Y("mousemove", window,
|
|
82
|
+
g && (g.scrollTop = i);
|
|
83
|
+
}, V = (e) => {
|
|
84
|
+
e.preventDefault(), e.stopPropagation(), W("mousemove", window, _, !0), W("mouseup", window, V, !0), y = !1, B.value = !1, h();
|
|
85
|
+
}, ne = (e) => {
|
|
86
|
+
e.preventDefault(), e.stopPropagation(), Y("mousemove", window, _, !0), Y("mouseup", window, V, !0), N = D.value, U = e.clientY, y = !0, B.value = !0;
|
|
87
87
|
};
|
|
88
|
-
function
|
|
88
|
+
function te(e) {
|
|
89
89
|
const {
|
|
90
|
-
onScroll:
|
|
90
|
+
onScroll: n
|
|
91
91
|
} = l;
|
|
92
|
-
|
|
92
|
+
n && n(e), k();
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const I = c(() => {
|
|
95
95
|
const {
|
|
96
96
|
value: e
|
|
97
|
-
} =
|
|
98
|
-
value:
|
|
99
|
-
} =
|
|
100
|
-
return e !== null &&
|
|
97
|
+
} = m, {
|
|
98
|
+
value: n
|
|
99
|
+
} = f;
|
|
100
|
+
return e !== null && n !== null && n > e;
|
|
101
101
|
}), x = a(!1), le = c(() => {
|
|
102
102
|
const {
|
|
103
103
|
trigger: e
|
|
104
104
|
} = l;
|
|
105
105
|
return e !== "none" && (e === "always" || x.value);
|
|
106
|
-
}),
|
|
106
|
+
}), C = c(() => {
|
|
107
107
|
const {
|
|
108
108
|
value: e
|
|
109
|
-
} = d, {
|
|
110
|
-
value: t
|
|
111
109
|
} = m, {
|
|
112
110
|
value: n
|
|
113
|
-
} =
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
} = f, {
|
|
112
|
+
value: t
|
|
113
|
+
} = b;
|
|
114
|
+
return e === null || n === null || t === null ? 0 : t * e / n + 5 * 1.5;
|
|
115
|
+
}), oe = c(() => `${C.value}px`), re = c(() => {
|
|
116
116
|
const {
|
|
117
117
|
value: e
|
|
118
|
-
} = d, {
|
|
119
|
-
value: t
|
|
120
|
-
} = $, {
|
|
121
|
-
value: n
|
|
122
118
|
} = m, {
|
|
119
|
+
value: n
|
|
120
|
+
} = H, {
|
|
121
|
+
value: t
|
|
122
|
+
} = f, {
|
|
123
123
|
value: r
|
|
124
|
-
} =
|
|
125
|
-
if (e === null ||
|
|
124
|
+
} = b;
|
|
125
|
+
if (e === null || t === null || r === null)
|
|
126
126
|
return 0;
|
|
127
127
|
{
|
|
128
|
-
const o =
|
|
129
|
-
return o ?
|
|
128
|
+
const o = t - e;
|
|
129
|
+
return o ? n / o * (r - C.value) : 0;
|
|
130
130
|
}
|
|
131
131
|
}), ae = c(() => `${re.value}px`);
|
|
132
|
-
let P = !1,
|
|
133
|
-
const
|
|
132
|
+
let P = !1, A = 0, K = 0;
|
|
133
|
+
const O = (e) => {
|
|
134
134
|
if (!P) return;
|
|
135
135
|
X !== void 0 && window.clearTimeout(X), L !== void 0 && window.clearTimeout(L);
|
|
136
136
|
const {
|
|
137
|
-
value: t
|
|
138
|
-
} = d, {
|
|
139
137
|
value: n
|
|
140
138
|
} = m, {
|
|
139
|
+
value: t
|
|
140
|
+
} = f, {
|
|
141
141
|
value: r
|
|
142
|
-
} =
|
|
143
|
-
if (
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
|
|
142
|
+
} = C;
|
|
143
|
+
if (n === null || t === null) return;
|
|
144
|
+
const M = (e.clientX - K) * (t - n) / (n - r), E = t - n;
|
|
145
|
+
let i = A + M;
|
|
146
|
+
i = Math.min(E, i), i = Math.max(i, 0);
|
|
147
147
|
const {
|
|
148
|
-
value:
|
|
148
|
+
value: g
|
|
149
149
|
} = w;
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
e.preventDefault(), e.stopPropagation(), W("mousemove", window,
|
|
150
|
+
g && (g.scrollLeft = i);
|
|
151
|
+
}, j = (e) => {
|
|
152
|
+
e.preventDefault(), e.stopPropagation(), W("mousemove", window, O, !0), W("mouseup", window, j, !0), x.value = !1, P = !1, h();
|
|
153
153
|
};
|
|
154
154
|
function ce(e) {
|
|
155
|
-
e.preventDefault(), e.stopPropagation(), P = !0, x.value = !0, Y("mousemove", window,
|
|
155
|
+
e.preventDefault(), e.stopPropagation(), P = !0, x.value = !0, Y("mousemove", window, O, !0), Y("mouseup", window, j, !0), A = H.value, K = e.clientX;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function k() {
|
|
158
158
|
const {
|
|
159
159
|
value: e
|
|
160
160
|
} = w;
|
|
161
|
-
e && (
|
|
161
|
+
e && (D.value = e.scrollTop, H.value = e.scrollLeft);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const ie = () => {
|
|
164
164
|
const {
|
|
165
165
|
value: e
|
|
166
166
|
} = F;
|
|
167
167
|
if (e) {
|
|
168
168
|
const o = e.getBoundingClientRect();
|
|
169
|
-
|
|
169
|
+
d.value = o.height, f.value = o.width;
|
|
170
170
|
}
|
|
171
171
|
const {
|
|
172
|
-
value:
|
|
172
|
+
value: n
|
|
173
173
|
} = w;
|
|
174
|
-
if (
|
|
175
|
-
const o =
|
|
176
|
-
|
|
174
|
+
if (n) {
|
|
175
|
+
const o = n.getBoundingClientRect();
|
|
176
|
+
s.value = o.height, m.value = o.width;
|
|
177
177
|
}
|
|
178
178
|
const {
|
|
179
|
-
value:
|
|
179
|
+
value: t
|
|
180
180
|
} = p;
|
|
181
|
-
|
|
181
|
+
t && (T.value = t.offsetHeight);
|
|
182
182
|
const {
|
|
183
183
|
value: r
|
|
184
|
-
} =
|
|
185
|
-
r && (
|
|
184
|
+
} = z;
|
|
185
|
+
r && (b.value = r.offsetWidth);
|
|
186
186
|
};
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function h() {
|
|
188
|
+
ie(), k();
|
|
189
189
|
}
|
|
190
190
|
return {
|
|
191
191
|
showYBarRef: J,
|
|
192
192
|
showXBarRef: le,
|
|
193
|
-
sync:
|
|
193
|
+
sync: h,
|
|
194
194
|
handleMouseEnter: () => {
|
|
195
195
|
B.value = !0, x.value = !0;
|
|
196
196
|
},
|
|
@@ -199,28 +199,28 @@ const ge = /* @__PURE__ */ ie({
|
|
|
199
199
|
},
|
|
200
200
|
handleXScrollWheel: (e) => {
|
|
201
201
|
const {
|
|
202
|
-
value:
|
|
202
|
+
value: n
|
|
203
203
|
} = w;
|
|
204
|
-
if (
|
|
205
|
-
const
|
|
206
|
-
|
|
204
|
+
if (n && e.deltaY && I.value && l.xScrollable) {
|
|
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
|
+
n.scrollLeft = M, h(), e.stopPropagation(), e.preventDefault();
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
// handleContentResize,
|
|
210
210
|
// handleContainerResize,
|
|
211
|
-
contentRef:
|
|
211
|
+
contentRef: R,
|
|
212
212
|
yRailRef: p,
|
|
213
|
-
xRailRef:
|
|
214
|
-
containerRef:
|
|
215
|
-
contentHeightRef:
|
|
216
|
-
containerHeightRef:
|
|
213
|
+
xRailRef: z,
|
|
214
|
+
containerRef: S,
|
|
215
|
+
contentHeightRef: d,
|
|
216
|
+
containerHeightRef: s,
|
|
217
217
|
needYBarRef: G,
|
|
218
|
-
needXBarRef:
|
|
218
|
+
needXBarRef: I,
|
|
219
219
|
yBarSizePxRef: Q,
|
|
220
|
-
handleYScrollMouseDown:
|
|
220
|
+
handleYScrollMouseDown: ne,
|
|
221
221
|
handleXScrollMouseDown: ce,
|
|
222
222
|
yBarTopPxRef: ee,
|
|
223
|
-
handleScroll:
|
|
223
|
+
handleScroll: te,
|
|
224
224
|
xBarSizePxRef: oe,
|
|
225
225
|
xBarLeftPxRef: ae
|
|
226
226
|
};
|
|
@@ -228,53 +228,47 @@ const ge = /* @__PURE__ */ ie({
|
|
|
228
228
|
render() {
|
|
229
229
|
const {
|
|
230
230
|
$slots: l,
|
|
231
|
-
xScrollable:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
class: `${f}-scrollbar-rail ${f}-scrollbar-rail--horizontal`,
|
|
231
|
+
xScrollable: R
|
|
232
|
+
} = this, S = () => v("div", {
|
|
233
|
+
class: `${u}-scrollbar-rail ${u}-scrollbar-rail--horizontal`,
|
|
235
234
|
ref: "xRailRef"
|
|
236
|
-
}, [this.needXBarRef && this.showXBarRef &&
|
|
237
|
-
class: `${
|
|
235
|
+
}, [this.needXBarRef && this.showXBarRef && v("div", {
|
|
236
|
+
class: `${u}-scrollbar-rail__scrollbar--horizontal`,
|
|
238
237
|
style: {
|
|
239
238
|
width: this.xBarSizePxRef,
|
|
240
|
-
left: this.xBarLeftPxRef
|
|
241
|
-
backgroundColor: i.scrollbarColor
|
|
239
|
+
left: this.xBarLeftPxRef
|
|
242
240
|
},
|
|
243
241
|
onMousedown: this.handleXScrollMouseDown
|
|
244
|
-
}, null, 46, ["onMousedown"])], 2),
|
|
245
|
-
class: `${
|
|
246
|
-
style: {
|
|
247
|
-
right: typeof i.scrollbarOffset == "number" ? `${i.scrollbarOffset}px` : i.scrollbarOffset
|
|
248
|
-
},
|
|
242
|
+
}, null, 46, ["onMousedown"])], 2), p = () => v("div", {
|
|
243
|
+
class: `${u}-scrollbar-rail ${u}-scrollbar-rail--vertical`,
|
|
249
244
|
ref: "yRailRef"
|
|
250
|
-
}, [this.needYBarRef && this.showYBarRef &&
|
|
251
|
-
class: `${
|
|
245
|
+
}, [this.needYBarRef && this.showYBarRef && v("div", {
|
|
246
|
+
class: `${u}-scrollbar-rail__scrollbar--vertical`,
|
|
252
247
|
style: {
|
|
253
248
|
height: this.yBarSizePxRef,
|
|
254
|
-
top: this.yBarTopPxRef
|
|
255
|
-
backgroundColor: i.scrollbarColor
|
|
249
|
+
top: this.yBarTopPxRef
|
|
256
250
|
},
|
|
257
251
|
onMousedown: this.handleYScrollMouseDown
|
|
258
|
-
}, null, 46, ["onMousedown"])],
|
|
252
|
+
}, null, 46, ["onMousedown"])], 2);
|
|
259
253
|
return (() => {
|
|
260
|
-
var
|
|
261
|
-
return
|
|
262
|
-
class: `${
|
|
254
|
+
var f, s;
|
|
255
|
+
return v("div", ue({
|
|
256
|
+
class: `${u}-scrollbar`
|
|
263
257
|
}, this.$attrs, {
|
|
264
258
|
onMouseenter: this.handleMouseEnter,
|
|
265
259
|
onMouseleave: this.handleMouseLeave
|
|
266
|
-
}), [this.container ? (
|
|
267
|
-
class: `${
|
|
260
|
+
}), [this.container ? (f = l.default) == null ? void 0 : f.call(l) : v("div", {
|
|
261
|
+
class: `${u}-scrollbar-container`,
|
|
268
262
|
onScroll: this.handleScroll,
|
|
269
263
|
ref: "containerRef",
|
|
270
264
|
onWheel: this.handleXScrollWheel
|
|
271
|
-
}, [
|
|
265
|
+
}, [v("div", {
|
|
272
266
|
ref: "contentRef",
|
|
273
|
-
class: `${
|
|
274
|
-
}, [(
|
|
267
|
+
class: `${u}-scrollbar-content`
|
|
268
|
+
}, [(s = l.default) == null ? void 0 : s.call(l)], 2)], 42, ["onScroll", "onWheel"]), p(), R && S()], 16, ["onMouseenter", "onMouseleave"]);
|
|
275
269
|
})();
|
|
276
270
|
}
|
|
277
271
|
});
|
|
278
272
|
export {
|
|
279
|
-
|
|
273
|
+
Me as default
|
|
280
274
|
};
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
container: Function,
|
|
3
3
|
content: Function,
|
|
4
4
|
onScroll: Function,
|
|
5
5
|
xScrollable: Boolean,
|
|
6
|
-
scrollbarColor: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: "rgba(0, 0, 0, 0.1)"
|
|
9
|
-
},
|
|
10
|
-
scrollbarOffset: {
|
|
11
|
-
type: [String, Number],
|
|
12
|
-
default: 2
|
|
13
|
-
},
|
|
14
6
|
trigger: {
|
|
15
7
|
type: String,
|
|
16
8
|
default: "hover"
|
|
17
9
|
}
|
|
18
10
|
};
|
|
19
11
|
export {
|
|
20
|
-
|
|
12
|
+
o as scrollbarProps
|
|
21
13
|
};
|
|
@@ -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"),
|
|
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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={container:Function,content:Function,onScroll:Function,xScrollable:Boolean,trigger:{type:String,default:"hover"}};exports.scrollbarProps=o;
|
|
@@ -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=83317) format("woff2"),url(fonts/iconfont.woff?t=60085) format("woff"),url(fonts/iconfont.ttf?t=40884) 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{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{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=41188) format("woff2"),url(fonts/iconfont.woff?t=27900) format("woff"),url(fonts/iconfont.ttf?t=63488) 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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.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{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}
|
|
1
|
+
.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}
|