@witlink/usercenter 1.1.7 → 1.1.8
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/dist/{404.86a8a5f2.mjs → 404.21de5c81.mjs} +1 -1
- package/dist/{RegionSelect.3e813071.mjs → RegionSelect.ed800cfc.mjs} +13 -13
- package/dist/{Standard.c0ab78d4.mjs → Standard.0dfb7c04.mjs} +3 -3
- package/dist/{UpOutlined.a508b57b.mjs → UpOutlined.0b75f70c.mjs} +5 -5
- package/dist/{WebClient.2efb264e.mjs → WebClient.0b60e495.mjs} +2 -2
- package/dist/assets/index.27fc518a.css +1 -0
- package/dist/assets/index.40400b03.css +1 -0
- package/dist/{index.1428a470.mjs → index.000f56c3.mjs} +43 -43
- package/dist/{index.9e0f747b.mjs → index.3effad83.mjs} +22 -22
- package/dist/{index.13cba50e.mjs → index.5c03fe2d.mjs} +2 -2
- package/dist/{index.4d447402.mjs → index.66a93694.mjs} +72 -72
- package/dist/{index.7405077b.mjs → index.69e367e1.mjs} +331 -325
- package/dist/{index.a4bd7101.mjs → index.78709838.mjs} +2 -2
- package/dist/{index.db8eb92b.mjs → index.7a7ae233.mjs} +1 -1
- package/dist/{index.fcf0b996.mjs → index.7d901849.mjs} +22356 -21669
- package/dist/{index.af28f11f.mjs → index.7ed360e9.mjs} +1 -1
- package/dist/{index.f3367aeb.mjs → index.8ebf99bf.mjs} +1 -1
- package/dist/index.aca201c5.mjs +962 -0
- package/dist/usercenter.es.js +2 -2
- package/dist/usercenter.umd.js +80 -80
- package/package.json +1 -1
- package/version.md +4 -1
- package/dist/assets/index.60694a0c.css +0 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { U as St } from "./UpOutlined.
|
|
1
|
+
import { a7 as A, a8 as et, c as j, a as T, a9 as tt, aa as Ae, ab as v, ac as F, ad as Z, ae as xe, af as ie, g as nt, ag as at, ah as rt, ai as Te, aj as je, ak as We, al as He, am as lt, an as it, ao as ot, ap as st, aq as ut, ar as dt, as as ct, at as ft, u as pt, au as mt, av as gt, aw as Se, ax as vt, D as ht, ay as Ve, az as Oe, aA as bt, P as $e } from "./index.7d901849.mjs";
|
|
2
|
+
import { defineComponent as Ee, ref as Ge, onBeforeUnmount as qe, createVNode as b, shallowRef as M, computed as W, watch as ee } from "vue";
|
|
3
|
+
import { U as St } from "./UpOutlined.0b75f70c.mjs";
|
|
4
4
|
function we() {
|
|
5
5
|
return typeof BigInt == "function";
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function te(e) {
|
|
8
8
|
let t = e.trim(), n = t.startsWith("-");
|
|
9
9
|
n && (t = t.slice(1)), t = t.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""), t.startsWith(".") && (t = `0${t}`);
|
|
10
|
-
const r = t || "0",
|
|
11
|
-
|
|
10
|
+
const r = t || "0", o = r.split("."), l = o[0] || "0", d = o[1] || "0";
|
|
11
|
+
l === "0" && d === "0" && (n = !1);
|
|
12
12
|
const c = n ? "-" : "";
|
|
13
13
|
return {
|
|
14
14
|
negative: n,
|
|
15
15
|
negativeStr: c,
|
|
16
16
|
trimStr: r,
|
|
17
|
-
integerStr:
|
|
17
|
+
integerStr: l,
|
|
18
18
|
decimalStr: d,
|
|
19
19
|
fullStr: `${c}${r}`
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ce(e) {
|
|
23
23
|
const t = String(e);
|
|
24
24
|
return !Number.isNaN(Number(t)) && t.includes("e");
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function ne(e) {
|
|
27
27
|
const t = String(e);
|
|
28
|
-
if (
|
|
28
|
+
if (Ce(e)) {
|
|
29
29
|
let n = Number(t.slice(t.indexOf("e-") + 2));
|
|
30
30
|
const r = t.match(/\.(\d+)/);
|
|
31
31
|
return r != null && r[1] && (n += r[1].length), n;
|
|
32
32
|
}
|
|
33
|
-
return t.includes(".") &&
|
|
33
|
+
return t.includes(".") && _e(t) ? t.length - t.indexOf(".") - 1 : 0;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function De(e) {
|
|
36
36
|
let t = String(e);
|
|
37
|
-
if (
|
|
37
|
+
if (Ce(e)) {
|
|
38
38
|
if (e > Number.MAX_SAFE_INTEGER)
|
|
39
39
|
return String(we() ? BigInt(e).toString() : Number.MAX_SAFE_INTEGER);
|
|
40
40
|
if (e < Number.MIN_SAFE_INTEGER)
|
|
41
41
|
return String(we() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER);
|
|
42
|
-
t = e.toFixed(
|
|
42
|
+
t = e.toFixed(ne(t));
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return te(t).fullStr;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function _e(e) {
|
|
47
47
|
return typeof e == "number" ? !Number.isNaN(e) : e ? /^\s*-?\d+(\.\d+)?\s*$/.test(e) || /^\s*-?\d+\.\s*$/.test(e) || /^\s*-?\.\d+\s*$/.test(e) : !1;
|
|
48
48
|
}
|
|
49
49
|
function Le(e) {
|
|
@@ -71,8 +71,8 @@ class z {
|
|
|
71
71
|
return new z(Number.MAX_SAFE_INTEGER);
|
|
72
72
|
if (r < Number.MIN_SAFE_INTEGER)
|
|
73
73
|
return new z(Number.MIN_SAFE_INTEGER);
|
|
74
|
-
const
|
|
75
|
-
return new z(r.toFixed(
|
|
74
|
+
const o = Math.max(ne(this.number), ne(n));
|
|
75
|
+
return new z(r.toFixed(o));
|
|
76
76
|
}
|
|
77
77
|
isEmpty() {
|
|
78
78
|
return this.empty;
|
|
@@ -93,7 +93,7 @@ class z {
|
|
|
93
93
|
return this.number;
|
|
94
94
|
}
|
|
95
95
|
toString() {
|
|
96
|
-
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" :
|
|
96
|
+
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : De(this.number) : this.origin;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
class U {
|
|
@@ -107,13 +107,13 @@ class U {
|
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
let n = t;
|
|
110
|
-
if (
|
|
111
|
-
const r =
|
|
110
|
+
if (Ce(n) && (n = Number(n)), n = typeof n == "string" ? n : De(n), _e(n)) {
|
|
111
|
+
const r = te(n);
|
|
112
112
|
this.negative = r.negative;
|
|
113
|
-
const
|
|
114
|
-
this.integer = BigInt(
|
|
115
|
-
const
|
|
116
|
-
this.decimal = BigInt(
|
|
113
|
+
const o = r.trimStr.split(".");
|
|
114
|
+
this.integer = BigInt(o[0]);
|
|
115
|
+
const l = o[1] || "0";
|
|
116
|
+
this.decimal = BigInt(l), this.decimalLen = l.length;
|
|
117
117
|
} else
|
|
118
118
|
this.nan = !0;
|
|
119
119
|
}
|
|
@@ -140,11 +140,11 @@ class U {
|
|
|
140
140
|
const n = new U(t);
|
|
141
141
|
if (n.isInvalidate())
|
|
142
142
|
return this;
|
|
143
|
-
const r = Math.max(this.getDecimalStr().length, n.getDecimalStr().length),
|
|
143
|
+
const r = Math.max(this.getDecimalStr().length, n.getDecimalStr().length), o = this.alignDecimal(r), l = n.alignDecimal(r), d = (o + l).toString(), {
|
|
144
144
|
negativeStr: c,
|
|
145
|
-
trimStr:
|
|
146
|
-
} =
|
|
147
|
-
return new U(`${
|
|
145
|
+
trimStr: f
|
|
146
|
+
} = te(d), p = `${c}${f.padStart(r + 1, "0")}`;
|
|
147
|
+
return new U(`${p.slice(0, -r)}.${p.slice(-r)}`);
|
|
148
148
|
}
|
|
149
149
|
isEmpty() {
|
|
150
150
|
return this.empty;
|
|
@@ -165,32 +165,32 @@ class U {
|
|
|
165
165
|
return this.isNaN() ? NaN : Number(this.toString());
|
|
166
166
|
}
|
|
167
167
|
toString() {
|
|
168
|
-
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" :
|
|
168
|
+
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : te(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr : this.origin;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
function _(e) {
|
|
172
172
|
return we() ? new U(e) : new z(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Ie(e, t, n) {
|
|
175
175
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
176
176
|
if (e === "")
|
|
177
177
|
return "";
|
|
178
178
|
const {
|
|
179
|
-
negativeStr:
|
|
180
|
-
integerStr:
|
|
179
|
+
negativeStr: o,
|
|
180
|
+
integerStr: l,
|
|
181
181
|
decimalStr: d
|
|
182
|
-
} =
|
|
182
|
+
} = te(e), c = `${t}${d}`, f = `${o}${l}`;
|
|
183
183
|
if (n >= 0) {
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
187
|
-
return
|
|
184
|
+
const p = Number(d[n]);
|
|
185
|
+
if (p >= 5 && !r) {
|
|
186
|
+
const s = _(e).add(`${o}0.${"0".repeat(n)}${10 - p}`);
|
|
187
|
+
return Ie(s.toString(), t, n, r);
|
|
188
188
|
}
|
|
189
|
-
return n === 0 ?
|
|
189
|
+
return n === 0 ? f : `${f}${t}${d.padEnd(n, "0").slice(0, n)}`;
|
|
190
190
|
}
|
|
191
|
-
return c === ".0" ?
|
|
191
|
+
return c === ".0" ? f : `${f}${c}`;
|
|
192
192
|
}
|
|
193
|
-
const $t = 200, Nt = 600, yt =
|
|
193
|
+
const $t = 200, Nt = 600, yt = Ee({
|
|
194
194
|
compatConfig: {
|
|
195
195
|
MODE: 3
|
|
196
196
|
},
|
|
@@ -208,14 +208,14 @@ const $t = 200, Nt = 600, yt = Ie({
|
|
|
208
208
|
slots: n,
|
|
209
209
|
emit: r
|
|
210
210
|
} = t;
|
|
211
|
-
const
|
|
212
|
-
c.preventDefault(), r("step",
|
|
213
|
-
function
|
|
214
|
-
r("step",
|
|
211
|
+
const o = Ge(), l = (c, f) => {
|
|
212
|
+
c.preventDefault(), r("step", f);
|
|
213
|
+
function p() {
|
|
214
|
+
r("step", f), o.value = setTimeout(p, $t);
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
o.value = setTimeout(p, Nt);
|
|
217
217
|
}, d = () => {
|
|
218
|
-
clearTimeout(
|
|
218
|
+
clearTimeout(o.value);
|
|
219
219
|
};
|
|
220
220
|
return qe(() => {
|
|
221
221
|
d();
|
|
@@ -224,12 +224,12 @@ const $t = 200, Nt = 600, yt = Ie({
|
|
|
224
224
|
return null;
|
|
225
225
|
const {
|
|
226
226
|
prefixCls: c,
|
|
227
|
-
upDisabled:
|
|
228
|
-
downDisabled:
|
|
229
|
-
} = e,
|
|
230
|
-
[`${
|
|
231
|
-
}), S = j(
|
|
232
|
-
[`${
|
|
227
|
+
upDisabled: f,
|
|
228
|
+
downDisabled: p
|
|
229
|
+
} = e, s = `${c}-handler`, x = j(s, `${s}-up`, {
|
|
230
|
+
[`${s}-up-disabled`]: f
|
|
231
|
+
}), S = j(s, `${s}-down`, {
|
|
232
|
+
[`${s}-down-disabled`]: p
|
|
233
233
|
}), I = {
|
|
234
234
|
unselectable: "on",
|
|
235
235
|
role: "button",
|
|
@@ -240,23 +240,23 @@ const $t = 200, Nt = 600, yt = Ie({
|
|
|
240
240
|
downNode: E
|
|
241
241
|
} = n;
|
|
242
242
|
return b("div", {
|
|
243
|
-
class: `${
|
|
243
|
+
class: `${s}-wrap`
|
|
244
244
|
}, [b("span", T(T({}, I), {}, {
|
|
245
245
|
onMousedown: (P) => {
|
|
246
|
-
|
|
246
|
+
l(P, !0);
|
|
247
247
|
},
|
|
248
248
|
"aria-label": "Increase Value",
|
|
249
|
-
"aria-disabled":
|
|
250
|
-
class:
|
|
249
|
+
"aria-disabled": f,
|
|
250
|
+
class: x
|
|
251
251
|
}), [($ == null ? void 0 : $()) || b("span", {
|
|
252
252
|
unselectable: "on",
|
|
253
253
|
class: `${c}-handler-up-inner`
|
|
254
254
|
}, null)]), b("span", T(T({}, I), {}, {
|
|
255
255
|
onMousedown: (P) => {
|
|
256
|
-
|
|
256
|
+
l(P, !1);
|
|
257
257
|
},
|
|
258
258
|
"aria-label": "Decrease Value",
|
|
259
|
-
"aria-disabled":
|
|
259
|
+
"aria-disabled": p,
|
|
260
260
|
class: S
|
|
261
261
|
}), [(E == null ? void 0 : E()) || b("span", {
|
|
262
262
|
unselectable: "on",
|
|
@@ -265,52 +265,52 @@ const $t = 200, Nt = 600, yt = Ie({
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
function
|
|
268
|
+
function xt(e, t) {
|
|
269
269
|
const n = Ge(null);
|
|
270
270
|
function r() {
|
|
271
271
|
try {
|
|
272
272
|
const {
|
|
273
|
-
selectionStart:
|
|
273
|
+
selectionStart: l,
|
|
274
274
|
selectionEnd: d,
|
|
275
275
|
value: c
|
|
276
|
-
} = e.value,
|
|
276
|
+
} = e.value, f = c.substring(0, l), p = c.substring(d);
|
|
277
277
|
n.value = {
|
|
278
|
-
start:
|
|
278
|
+
start: l,
|
|
279
279
|
end: d,
|
|
280
280
|
value: c,
|
|
281
|
-
beforeTxt:
|
|
282
|
-
afterTxt:
|
|
281
|
+
beforeTxt: f,
|
|
282
|
+
afterTxt: p
|
|
283
283
|
};
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function o() {
|
|
288
288
|
if (e.value && n.value && t.value)
|
|
289
289
|
try {
|
|
290
290
|
const {
|
|
291
|
-
value:
|
|
291
|
+
value: l
|
|
292
292
|
} = e.value, {
|
|
293
293
|
beforeTxt: d,
|
|
294
294
|
afterTxt: c,
|
|
295
|
-
start:
|
|
295
|
+
start: f
|
|
296
296
|
} = n.value;
|
|
297
|
-
let
|
|
298
|
-
if (
|
|
299
|
-
|
|
300
|
-
else if (
|
|
301
|
-
|
|
297
|
+
let p = l.length;
|
|
298
|
+
if (l.endsWith(c))
|
|
299
|
+
p = l.length - n.value.afterTxt.length;
|
|
300
|
+
else if (l.startsWith(d))
|
|
301
|
+
p = d.length;
|
|
302
302
|
else {
|
|
303
|
-
const
|
|
304
|
-
|
|
303
|
+
const s = d[f - 1], x = l.indexOf(s, f - 1);
|
|
304
|
+
x !== -1 && (p = x + 1);
|
|
305
305
|
}
|
|
306
|
-
e.value.setSelectionRange(
|
|
307
|
-
} catch (
|
|
308
|
-
tt(!1, `Something warning of cursor restore. Please fire issue about this: ${
|
|
306
|
+
e.value.setSelectionRange(p, p);
|
|
307
|
+
} catch (l) {
|
|
308
|
+
tt(!1, `Something warning of cursor restore. Please fire issue about this: ${l.message}`);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
return [r,
|
|
311
|
+
return [r, o];
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const wt = () => {
|
|
314
314
|
const e = M(0), t = () => {
|
|
315
315
|
Ae.cancel(e.value);
|
|
316
316
|
};
|
|
@@ -327,27 +327,27 @@ var It = globalThis && globalThis.__rest || function(e, t) {
|
|
|
327
327
|
for (var r in e)
|
|
328
328
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
329
329
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
330
|
-
for (var
|
|
331
|
-
t.indexOf(r[
|
|
330
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
331
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
332
332
|
return n;
|
|
333
333
|
};
|
|
334
|
-
const
|
|
334
|
+
const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) => {
|
|
335
335
|
const t = _(e);
|
|
336
336
|
return t.isInvalidate() ? null : t;
|
|
337
337
|
}, Ue = () => ({
|
|
338
|
-
stringMode:
|
|
339
|
-
defaultValue:
|
|
340
|
-
value:
|
|
341
|
-
prefixCls:
|
|
342
|
-
min:
|
|
343
|
-
max:
|
|
344
|
-
step:
|
|
338
|
+
stringMode: F(),
|
|
339
|
+
defaultValue: Z([String, Number]),
|
|
340
|
+
value: Z([String, Number]),
|
|
341
|
+
prefixCls: xe(),
|
|
342
|
+
min: Z([String, Number]),
|
|
343
|
+
max: Z([String, Number]),
|
|
344
|
+
step: Z([String, Number], 1),
|
|
345
345
|
tabindex: Number,
|
|
346
|
-
controls:
|
|
347
|
-
readonly:
|
|
348
|
-
disabled:
|
|
349
|
-
autofocus:
|
|
350
|
-
keyboard:
|
|
346
|
+
controls: F(!0),
|
|
347
|
+
readonly: F(),
|
|
348
|
+
disabled: F(),
|
|
349
|
+
autofocus: F(),
|
|
350
|
+
keyboard: F(!0),
|
|
351
351
|
parser: A(),
|
|
352
352
|
formatter: A(),
|
|
353
353
|
precision: Number,
|
|
@@ -358,7 +358,7 @@ const Fe = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Be = (e) =>
|
|
|
358
358
|
onStep: A(),
|
|
359
359
|
onBlur: A(),
|
|
360
360
|
onFocus: A()
|
|
361
|
-
}), Et =
|
|
361
|
+
}), Et = Ee({
|
|
362
362
|
compatConfig: {
|
|
363
363
|
MODE: 3
|
|
364
364
|
},
|
|
@@ -372,117 +372,119 @@ const Fe = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Be = (e) =>
|
|
|
372
372
|
let {
|
|
373
373
|
attrs: n,
|
|
374
374
|
slots: r,
|
|
375
|
-
emit:
|
|
376
|
-
expose:
|
|
375
|
+
emit: o,
|
|
376
|
+
expose: l
|
|
377
377
|
} = t;
|
|
378
|
-
const d = M(), c = M(!1),
|
|
379
|
-
function
|
|
380
|
-
e.value === void 0 && (
|
|
378
|
+
const d = M(), c = M(!1), f = M(!1), p = M(!1), s = M(_(e.value));
|
|
379
|
+
function x(a) {
|
|
380
|
+
e.value === void 0 && (s.value = a);
|
|
381
381
|
}
|
|
382
|
-
const S = (a,
|
|
383
|
-
if (!
|
|
384
|
-
return e.precision >= 0 ? e.precision : Math.max(
|
|
382
|
+
const S = (a, i) => {
|
|
383
|
+
if (!i)
|
|
384
|
+
return e.precision >= 0 ? e.precision : Math.max(ne(a), ne(e.step));
|
|
385
385
|
}, I = (a) => {
|
|
386
|
-
const
|
|
386
|
+
const i = String(a);
|
|
387
387
|
if (e.parser)
|
|
388
|
-
return e.parser(
|
|
389
|
-
let u =
|
|
388
|
+
return e.parser(i);
|
|
389
|
+
let u = i;
|
|
390
390
|
return e.decimalSeparator && (u = u.replace(e.decimalSeparator, ".")), u.replace(/[^\w.-]+/g, "");
|
|
391
|
-
}, $ = M(""), E = (a,
|
|
391
|
+
}, $ = M(""), E = (a, i) => {
|
|
392
392
|
if (e.formatter)
|
|
393
393
|
return e.formatter(a, {
|
|
394
|
-
userTyping:
|
|
394
|
+
userTyping: i,
|
|
395
395
|
input: String($.value)
|
|
396
396
|
});
|
|
397
|
-
let u = typeof a == "number" ?
|
|
398
|
-
if (!
|
|
399
|
-
const
|
|
400
|
-
if (
|
|
397
|
+
let u = typeof a == "number" ? De(a) : a;
|
|
398
|
+
if (!i) {
|
|
399
|
+
const m = S(u, i);
|
|
400
|
+
if (_e(u) && (e.decimalSeparator || m >= 0)) {
|
|
401
401
|
const y = e.decimalSeparator || ".";
|
|
402
|
-
u =
|
|
402
|
+
u = Ie(u, y, m);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return u;
|
|
406
406
|
}, P = (() => {
|
|
407
407
|
const a = e.value;
|
|
408
|
-
return
|
|
408
|
+
return s.value.isInvalidate() && ["string", "number"].includes(typeof a) ? Number.isNaN(a) ? "" : a : E(s.value.toString(), !1);
|
|
409
409
|
})();
|
|
410
410
|
$.value = P;
|
|
411
|
-
function C(a,
|
|
411
|
+
function C(a, i) {
|
|
412
412
|
$.value = E(
|
|
413
|
-
a.isInvalidate() ? a.toString(!1) : a.toString(!
|
|
414
|
-
|
|
413
|
+
a.isInvalidate() ? a.toString(!1) : a.toString(!i),
|
|
414
|
+
i
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
|
-
const D = W(() =>
|
|
417
|
+
const D = W(() => Fe(e.max)), N = W(() => Fe(e.min)), w = W(() => !D.value || !s.value || s.value.isInvalidate() ? !1 : D.value.lessEquals(s.value)), V = W(() => !N.value || !s.value || s.value.isInvalidate() ? !1 : s.value.lessEquals(N.value)), [k, K] = xt(d, c), X = (a) => D.value && !a.lessEquals(D.value) ? D.value : N.value && !N.value.lessEquals(a) ? N.value : null, oe = (a) => !X(a), Y = (a, i) => {
|
|
418
418
|
var u;
|
|
419
|
-
let
|
|
420
|
-
if (!
|
|
421
|
-
const R =
|
|
422
|
-
return
|
|
419
|
+
let m = a, y = oe(m) || m.isEmpty();
|
|
420
|
+
if (!m.isEmpty() && !i && (m = X(m) || m, y = !0), !e.readonly && !e.disabled && y) {
|
|
421
|
+
const R = m.toString(), q = S(R, i);
|
|
422
|
+
return q >= 0 && (m = _(Ie(R, ".", q))), m.equals(s.value) || (x(m), (u = e.onChange) === null || u === void 0 || u.call(e, m.isEmpty() ? null : Be(e.stringMode, m)), e.value === void 0 && C(m, i)), m;
|
|
423
423
|
}
|
|
424
|
-
return
|
|
425
|
-
}, se =
|
|
426
|
-
var
|
|
427
|
-
if (k(), $.value = a, !
|
|
428
|
-
const u = I(a),
|
|
429
|
-
|
|
424
|
+
return s.value;
|
|
425
|
+
}, se = wt(), J = (a) => {
|
|
426
|
+
var i;
|
|
427
|
+
if (k(), $.value = a, !p.value) {
|
|
428
|
+
const u = I(a), m = _(u);
|
|
429
|
+
m.isNaN() || Y(m, !0);
|
|
430
430
|
}
|
|
431
|
-
(
|
|
431
|
+
(i = e.onInput) === null || i === void 0 || i.call(e, a), se(() => {
|
|
432
432
|
let u = a;
|
|
433
|
-
e.parser || (u = a.replace(/。/g, ".")), u !== a &&
|
|
433
|
+
e.parser || (u = a.replace(/。/g, ".")), u !== a && J(u);
|
|
434
434
|
});
|
|
435
435
|
}, h = () => {
|
|
436
|
-
|
|
437
|
-
},
|
|
438
|
-
|
|
436
|
+
p.value = !0;
|
|
437
|
+
}, Q = () => {
|
|
438
|
+
p.value = !1, J(d.value.value);
|
|
439
439
|
}, H = (a) => {
|
|
440
|
-
|
|
440
|
+
J(a.target.value);
|
|
441
441
|
}, G = (a) => {
|
|
442
|
-
var
|
|
443
|
-
if (a &&
|
|
442
|
+
var i, u;
|
|
443
|
+
if (a && w.value || !a && V.value)
|
|
444
444
|
return;
|
|
445
|
-
|
|
446
|
-
let
|
|
447
|
-
a || (
|
|
448
|
-
const y = (
|
|
449
|
-
(
|
|
445
|
+
f.value = !1;
|
|
446
|
+
let m = _(e.step);
|
|
447
|
+
a || (m = m.negate());
|
|
448
|
+
const y = (s.value || _(0)).add(m.toString()), R = Y(y, !1);
|
|
449
|
+
(i = e.onStep) === null || i === void 0 || i.call(e, Be(e.stringMode, R), {
|
|
450
450
|
offset: e.step,
|
|
451
451
|
type: a ? "up" : "down"
|
|
452
452
|
}), (u = d.value) === null || u === void 0 || u.focus();
|
|
453
453
|
}, O = (a) => {
|
|
454
|
-
const
|
|
455
|
-
let u =
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
|
|
454
|
+
const i = _(I($.value));
|
|
455
|
+
let u = i;
|
|
456
|
+
i.isNaN() ? u = s.value : u = Y(i, a), e.value !== void 0 ? C(s.value, !1) : u.isNaN() || C(u, !1);
|
|
457
|
+
}, ue = () => {
|
|
458
|
+
f.value = !0;
|
|
459
|
+
}, de = (a) => {
|
|
460
|
+
var i;
|
|
459
461
|
const {
|
|
460
462
|
which: u
|
|
461
463
|
} = a;
|
|
462
|
-
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
O(!1), c.value = !1,
|
|
464
|
+
f.value = !0, u === ie.ENTER && (p.value || (f.value = !1), O(!1), (i = e.onPressEnter) === null || i === void 0 || i.call(e, a)), e.keyboard !== !1 && !p.value && [ie.UP, ie.DOWN].includes(u) && (G(ie.UP === u), a.preventDefault());
|
|
465
|
+
}, ce = () => {
|
|
466
|
+
f.value = !1;
|
|
467
|
+
}, ae = (a) => {
|
|
468
|
+
O(!1), c.value = !1, f.value = !1, o("blur", a);
|
|
467
469
|
};
|
|
468
|
-
return
|
|
469
|
-
|
|
470
|
+
return ee(() => e.precision, () => {
|
|
471
|
+
s.value.isInvalidate() || C(s.value, !1);
|
|
470
472
|
}, {
|
|
471
473
|
flush: "post"
|
|
472
|
-
}),
|
|
474
|
+
}), ee(() => e.value, () => {
|
|
473
475
|
const a = _(e.value);
|
|
474
|
-
|
|
475
|
-
const
|
|
476
|
-
(!a.equals(
|
|
476
|
+
s.value = a;
|
|
477
|
+
const i = _(I($.value));
|
|
478
|
+
(!a.equals(i) || !f.value || e.formatter) && C(a, f.value);
|
|
477
479
|
}, {
|
|
478
480
|
flush: "post"
|
|
479
|
-
}),
|
|
481
|
+
}), ee($, () => {
|
|
480
482
|
e.formatter && K();
|
|
481
483
|
}, {
|
|
482
484
|
flush: "post"
|
|
483
|
-
}),
|
|
485
|
+
}), ee(() => e.disabled, (a) => {
|
|
484
486
|
a && (c.value = !1);
|
|
485
|
-
}),
|
|
487
|
+
}), l({
|
|
486
488
|
focus: () => {
|
|
487
489
|
var a;
|
|
488
490
|
(a = d.value) === null || a === void 0 || a.focus();
|
|
@@ -493,80 +495,81 @@ const Fe = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Be = (e) =>
|
|
|
493
495
|
}
|
|
494
496
|
}), () => {
|
|
495
497
|
const a = v(v({}, n), e), {
|
|
496
|
-
prefixCls:
|
|
498
|
+
prefixCls: i = "rc-input-number",
|
|
497
499
|
min: u,
|
|
498
|
-
max:
|
|
500
|
+
max: m,
|
|
499
501
|
step: y = 1,
|
|
500
502
|
defaultValue: R,
|
|
501
|
-
value:
|
|
502
|
-
disabled:
|
|
503
|
-
readonly:
|
|
504
|
-
keyboard:
|
|
505
|
-
controls:
|
|
506
|
-
autofocus:
|
|
507
|
-
stringMode:
|
|
508
|
-
parser:
|
|
509
|
-
formatter:
|
|
510
|
-
precision:
|
|
511
|
-
decimalSeparator:
|
|
512
|
-
onChange:
|
|
513
|
-
onInput:
|
|
514
|
-
onPressEnter:
|
|
515
|
-
onStep:
|
|
503
|
+
value: q,
|
|
504
|
+
disabled: re,
|
|
505
|
+
readonly: le,
|
|
506
|
+
keyboard: g,
|
|
507
|
+
controls: fe = !0,
|
|
508
|
+
autofocus: B,
|
|
509
|
+
stringMode: pe,
|
|
510
|
+
parser: me,
|
|
511
|
+
formatter: L,
|
|
512
|
+
precision: ge,
|
|
513
|
+
decimalSeparator: ve,
|
|
514
|
+
onChange: he,
|
|
515
|
+
onInput: Me,
|
|
516
|
+
onPressEnter: Pe,
|
|
517
|
+
onStep: Rt,
|
|
516
518
|
lazy: ke,
|
|
517
519
|
class: Ke,
|
|
518
520
|
style: Xe
|
|
519
521
|
} = a, Ye = It(a, ["prefixCls", "min", "max", "step", "defaultValue", "value", "disabled", "readonly", "keyboard", "controls", "autofocus", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "lazy", "class", "style"]), {
|
|
520
|
-
upHandler:
|
|
521
|
-
downHandler:
|
|
522
|
-
} = r, Re = `${
|
|
523
|
-
return ke ?
|
|
524
|
-
class: j(
|
|
525
|
-
[`${
|
|
526
|
-
[`${
|
|
527
|
-
[`${
|
|
528
|
-
[`${
|
|
529
|
-
[`${
|
|
522
|
+
upHandler: Je,
|
|
523
|
+
downHandler: Qe
|
|
524
|
+
} = r, Re = `${i}-input`, be = {};
|
|
525
|
+
return ke ? be.onChange = H : be.onInput = H, b("div", {
|
|
526
|
+
class: j(i, Ke, {
|
|
527
|
+
[`${i}-focused`]: c.value,
|
|
528
|
+
[`${i}-disabled`]: re,
|
|
529
|
+
[`${i}-readonly`]: le,
|
|
530
|
+
[`${i}-not-a-number`]: s.value.isNaN(),
|
|
531
|
+
[`${i}-out-of-range`]: !s.value.isInvalidate() && !oe(s.value)
|
|
530
532
|
}),
|
|
531
533
|
style: Xe,
|
|
532
|
-
onKeydown:
|
|
533
|
-
onKeyup:
|
|
534
|
-
}, [
|
|
535
|
-
prefixCls:
|
|
536
|
-
upDisabled:
|
|
534
|
+
onKeydown: de,
|
|
535
|
+
onKeyup: ce
|
|
536
|
+
}, [fe && b(yt, {
|
|
537
|
+
prefixCls: i,
|
|
538
|
+
upDisabled: w.value,
|
|
537
539
|
downDisabled: V.value,
|
|
538
540
|
onStep: G
|
|
539
541
|
}, {
|
|
540
|
-
upNode:
|
|
541
|
-
downNode:
|
|
542
|
+
upNode: Je,
|
|
543
|
+
downNode: Qe
|
|
542
544
|
}), b("div", {
|
|
543
545
|
class: `${Re}-wrap`
|
|
544
546
|
}, [b("input", T(T(T({
|
|
545
|
-
autofocus:
|
|
547
|
+
autofocus: B,
|
|
546
548
|
autocomplete: "off",
|
|
547
549
|
role: "spinbutton",
|
|
548
550
|
"aria-valuemin": u,
|
|
549
|
-
"aria-valuemax":
|
|
550
|
-
"aria-valuenow":
|
|
551
|
+
"aria-valuemax": m,
|
|
552
|
+
"aria-valuenow": s.value.isInvalidate() ? null : s.value.toString(),
|
|
551
553
|
step: y
|
|
552
554
|
}, Ye), {}, {
|
|
553
555
|
ref: d,
|
|
554
556
|
class: Re,
|
|
555
557
|
value: $.value,
|
|
556
|
-
disabled:
|
|
557
|
-
readonly:
|
|
558
|
-
onFocus: (
|
|
559
|
-
c.value = !0,
|
|
558
|
+
disabled: re,
|
|
559
|
+
readonly: le,
|
|
560
|
+
onFocus: (Ze) => {
|
|
561
|
+
c.value = !0, o("focus", Ze);
|
|
560
562
|
}
|
|
561
|
-
},
|
|
562
|
-
onBlur:
|
|
563
|
+
}, be), {}, {
|
|
564
|
+
onBlur: ae,
|
|
563
565
|
onCompositionstart: h,
|
|
564
|
-
onCompositionend:
|
|
566
|
+
onCompositionend: Q,
|
|
567
|
+
onBeforeinput: ue
|
|
565
568
|
}), null)])]);
|
|
566
569
|
};
|
|
567
570
|
}
|
|
568
571
|
});
|
|
569
|
-
function
|
|
572
|
+
function Ne(e) {
|
|
570
573
|
return e != null;
|
|
571
574
|
}
|
|
572
575
|
const Ct = (e) => {
|
|
@@ -574,14 +577,14 @@ const Ct = (e) => {
|
|
|
574
577
|
componentCls: t,
|
|
575
578
|
lineWidth: n,
|
|
576
579
|
lineType: r,
|
|
577
|
-
colorBorder:
|
|
578
|
-
borderRadius:
|
|
580
|
+
colorBorder: o,
|
|
581
|
+
borderRadius: l,
|
|
579
582
|
fontSizeLG: d,
|
|
580
583
|
controlHeightLG: c,
|
|
581
|
-
controlHeightSM:
|
|
582
|
-
colorError:
|
|
583
|
-
inputPaddingHorizontalSM:
|
|
584
|
-
colorTextDescription:
|
|
584
|
+
controlHeightSM: f,
|
|
585
|
+
colorError: p,
|
|
586
|
+
inputPaddingHorizontalSM: s,
|
|
587
|
+
colorTextDescription: x,
|
|
585
588
|
motionDurationMid: S,
|
|
586
589
|
colorPrimary: I,
|
|
587
590
|
controlHeight: $,
|
|
@@ -590,18 +593,18 @@ const Ct = (e) => {
|
|
|
590
593
|
colorTextDisabled: C,
|
|
591
594
|
borderRadiusSM: D,
|
|
592
595
|
borderRadiusLG: N,
|
|
593
|
-
controlWidth:
|
|
596
|
+
controlWidth: w,
|
|
594
597
|
handleVisible: V
|
|
595
598
|
} = e;
|
|
596
599
|
return [
|
|
597
600
|
{
|
|
598
601
|
[t]: v(v(v(v({}, Te(e)), je(e)), We(e, t)), {
|
|
599
602
|
display: "inline-block",
|
|
600
|
-
width:
|
|
603
|
+
width: w,
|
|
601
604
|
margin: 0,
|
|
602
605
|
padding: 0,
|
|
603
|
-
border: `${n}px ${r} ${
|
|
604
|
-
borderRadius:
|
|
606
|
+
border: `${n}px ${r} ${o}`,
|
|
607
|
+
borderRadius: l,
|
|
605
608
|
"&-rtl": {
|
|
606
609
|
direction: "rtl",
|
|
607
610
|
[`${t}-input`]: {
|
|
@@ -620,8 +623,8 @@ const Ct = (e) => {
|
|
|
620
623
|
padding: 0,
|
|
621
624
|
borderRadius: D,
|
|
622
625
|
[`input${t}-input`]: {
|
|
623
|
-
height:
|
|
624
|
-
padding: `0 ${
|
|
626
|
+
height: f - 2 * n,
|
|
627
|
+
padding: `0 ${s}px`
|
|
625
628
|
}
|
|
626
629
|
},
|
|
627
630
|
"&:hover": v({}, He(e)),
|
|
@@ -633,10 +636,10 @@ const Ct = (e) => {
|
|
|
633
636
|
}),
|
|
634
637
|
"&-out-of-range": {
|
|
635
638
|
input: {
|
|
636
|
-
color:
|
|
639
|
+
color: p
|
|
637
640
|
}
|
|
638
641
|
},
|
|
639
|
-
"&-group": v(v(v({}, Te(e)),
|
|
642
|
+
"&-group": v(v(v({}, Te(e)), ot(e)), {
|
|
640
643
|
"&-wrapper": {
|
|
641
644
|
display: "inline-block",
|
|
642
645
|
textAlign: "start",
|
|
@@ -664,14 +667,14 @@ const Ct = (e) => {
|
|
|
664
667
|
textAlign: "start",
|
|
665
668
|
backgroundColor: "transparent",
|
|
666
669
|
border: 0,
|
|
667
|
-
borderRadius:
|
|
670
|
+
borderRadius: l,
|
|
668
671
|
outline: 0,
|
|
669
672
|
transition: `all ${S} linear`,
|
|
670
673
|
appearance: "textfield",
|
|
671
674
|
color: e.colorText,
|
|
672
675
|
fontSize: "inherit",
|
|
673
676
|
verticalAlign: "top"
|
|
674
|
-
},
|
|
677
|
+
}, st(e.colorTextPlaceholder)), {
|
|
675
678
|
'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button': {
|
|
676
679
|
margin: 0,
|
|
677
680
|
webkitAppearance: "none",
|
|
@@ -694,8 +697,8 @@ const Ct = (e) => {
|
|
|
694
697
|
height: "100%",
|
|
695
698
|
background: P,
|
|
696
699
|
borderStartStartRadius: 0,
|
|
697
|
-
borderStartEndRadius:
|
|
698
|
-
borderEndEndRadius:
|
|
700
|
+
borderStartEndRadius: l,
|
|
701
|
+
borderEndEndRadius: l,
|
|
699
702
|
borderEndStartRadius: 0,
|
|
700
703
|
opacity: V === !0 ? 1 : 0,
|
|
701
704
|
display: "flex",
|
|
@@ -720,12 +723,12 @@ const Ct = (e) => {
|
|
|
720
723
|
[`${t}-handler`]: {
|
|
721
724
|
height: "50%",
|
|
722
725
|
overflow: "hidden",
|
|
723
|
-
color:
|
|
726
|
+
color: x,
|
|
724
727
|
fontWeight: "bold",
|
|
725
728
|
lineHeight: 0,
|
|
726
729
|
textAlign: "center",
|
|
727
730
|
cursor: "pointer",
|
|
728
|
-
borderInlineStart: `${n}px ${r} ${
|
|
731
|
+
borderInlineStart: `${n}px ${r} ${o}`,
|
|
729
732
|
transition: `all ${S} linear`,
|
|
730
733
|
"&:active": {
|
|
731
734
|
background: e.colorFillAlter
|
|
@@ -740,21 +743,24 @@ const Ct = (e) => {
|
|
|
740
743
|
}
|
|
741
744
|
},
|
|
742
745
|
"&-up-inner, &-down-inner": v(v({}, ut()), {
|
|
743
|
-
color:
|
|
746
|
+
color: x,
|
|
744
747
|
transition: `all ${S} linear`,
|
|
745
748
|
userSelect: "none"
|
|
746
749
|
})
|
|
747
750
|
},
|
|
748
751
|
[`${t}-handler-up`]: {
|
|
749
|
-
borderStartEndRadius:
|
|
752
|
+
borderStartEndRadius: l
|
|
750
753
|
},
|
|
751
754
|
[`${t}-handler-down`]: {
|
|
752
|
-
borderBlockStart: `${n}px ${r} ${
|
|
753
|
-
borderEndEndRadius:
|
|
755
|
+
borderBlockStart: `${n}px ${r} ${o}`,
|
|
756
|
+
borderEndEndRadius: l
|
|
754
757
|
},
|
|
755
758
|
"&-disabled, &-readonly": {
|
|
756
759
|
[`${t}-handler-wrap`]: {
|
|
757
760
|
display: "none"
|
|
761
|
+
},
|
|
762
|
+
[`${t}-input`]: {
|
|
763
|
+
color: "inherit"
|
|
758
764
|
}
|
|
759
765
|
},
|
|
760
766
|
[`
|
|
@@ -786,19 +792,19 @@ const Ct = (e) => {
|
|
|
786
792
|
componentCls: t,
|
|
787
793
|
inputPaddingHorizontal: n,
|
|
788
794
|
inputAffixPadding: r,
|
|
789
|
-
controlWidth:
|
|
790
|
-
borderRadiusLG:
|
|
795
|
+
controlWidth: o,
|
|
796
|
+
borderRadiusLG: l,
|
|
791
797
|
borderRadiusSM: d
|
|
792
798
|
} = e;
|
|
793
799
|
return {
|
|
794
800
|
[`${t}-affix-wrapper`]: v(v(v({}, je(e)), We(e, `${t}-affix-wrapper`)), {
|
|
795
801
|
position: "relative",
|
|
796
802
|
display: "inline-flex",
|
|
797
|
-
width:
|
|
803
|
+
width: o,
|
|
798
804
|
padding: 0,
|
|
799
805
|
paddingInlineStart: n,
|
|
800
806
|
"&-lg": {
|
|
801
|
-
borderRadius:
|
|
807
|
+
borderRadius: l
|
|
802
808
|
},
|
|
803
809
|
"&-sm": {
|
|
804
810
|
borderRadius: d
|
|
@@ -873,24 +879,24 @@ var Mt = globalThis && globalThis.__rest || function(e, t) {
|
|
|
873
879
|
for (var r in e)
|
|
874
880
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
875
881
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
876
|
-
for (var
|
|
877
|
-
t.indexOf(r[
|
|
882
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
883
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
878
884
|
return n;
|
|
879
885
|
};
|
|
880
886
|
const ze = Ue(), Pt = () => v(v({}, ze), {
|
|
881
|
-
size:
|
|
882
|
-
bordered:
|
|
887
|
+
size: xe(),
|
|
888
|
+
bordered: F(!0),
|
|
883
889
|
placeholder: String,
|
|
884
890
|
name: String,
|
|
885
891
|
id: String,
|
|
886
892
|
type: String,
|
|
887
|
-
addonBefore:
|
|
888
|
-
addonAfter:
|
|
889
|
-
prefix:
|
|
893
|
+
addonBefore: $e.any,
|
|
894
|
+
addonAfter: $e.any,
|
|
895
|
+
prefix: $e.any,
|
|
890
896
|
"onUpdate:value": ze.onChange,
|
|
891
897
|
valueModifiers: Object,
|
|
892
|
-
status:
|
|
893
|
-
}),
|
|
898
|
+
status: xe()
|
|
899
|
+
}), ye = Ee({
|
|
894
900
|
compatConfig: {
|
|
895
901
|
MODE: 3
|
|
896
902
|
},
|
|
@@ -902,23 +908,23 @@ const ze = Ue(), Pt = () => v(v({}, ze), {
|
|
|
902
908
|
let {
|
|
903
909
|
emit: n,
|
|
904
910
|
expose: r,
|
|
905
|
-
attrs:
|
|
906
|
-
slots:
|
|
911
|
+
attrs: o,
|
|
912
|
+
slots: l
|
|
907
913
|
} = t;
|
|
908
914
|
var d;
|
|
909
|
-
const c = dt(),
|
|
910
|
-
prefixCls:
|
|
911
|
-
size:
|
|
915
|
+
const c = dt(), f = ct.useInject(), p = W(() => ft(f.status, e.status)), {
|
|
916
|
+
prefixCls: s,
|
|
917
|
+
size: x,
|
|
912
918
|
direction: S,
|
|
913
919
|
disabled: I
|
|
914
920
|
} = pt("input-number", e), {
|
|
915
921
|
compactSize: $,
|
|
916
922
|
compactItemClassnames: E
|
|
917
|
-
} = mt(
|
|
923
|
+
} = mt(s, S), P = gt(), C = W(() => {
|
|
918
924
|
var h;
|
|
919
925
|
return (h = I.value) !== null && h !== void 0 ? h : P.value;
|
|
920
|
-
}), [D, N] = _t(
|
|
921
|
-
|
|
926
|
+
}), [D, N] = _t(s), w = W(() => $.value || x.value), V = M((d = e.value) !== null && d !== void 0 ? d : e.defaultValue), k = M(!1);
|
|
927
|
+
ee(() => e.value, () => {
|
|
922
928
|
V.value = e.value;
|
|
923
929
|
});
|
|
924
930
|
const K = M(null), X = () => {
|
|
@@ -936,114 +942,114 @@ const ze = Ue(), Pt = () => v(v({}, ze), {
|
|
|
936
942
|
e.value === void 0 && (V.value = h), n("update:value", h), n("change", h), c.onFieldChange();
|
|
937
943
|
}, se = (h) => {
|
|
938
944
|
k.value = !1, n("blur", h), c.onFieldBlur();
|
|
939
|
-
},
|
|
945
|
+
}, J = (h) => {
|
|
940
946
|
k.value = !0, n("focus", h);
|
|
941
947
|
};
|
|
942
948
|
return () => {
|
|
943
|
-
var h,
|
|
949
|
+
var h, Q, H, G;
|
|
944
950
|
const {
|
|
945
951
|
hasFeedback: O,
|
|
946
|
-
isFormItemInput:
|
|
947
|
-
feedbackIcon:
|
|
948
|
-
} =
|
|
949
|
-
id:
|
|
952
|
+
isFormItemInput: ue,
|
|
953
|
+
feedbackIcon: de
|
|
954
|
+
} = f, ce = (h = e.id) !== null && h !== void 0 ? h : c.id.value, ae = v(v(v({}, o), e), {
|
|
955
|
+
id: ce,
|
|
950
956
|
disabled: C.value
|
|
951
957
|
}), {
|
|
952
|
-
class:
|
|
953
|
-
bordered:
|
|
954
|
-
readonly:
|
|
955
|
-
style:
|
|
956
|
-
addonBefore:
|
|
957
|
-
addonAfter:
|
|
958
|
-
prefix:
|
|
958
|
+
class: a,
|
|
959
|
+
bordered: i,
|
|
960
|
+
readonly: u,
|
|
961
|
+
style: m,
|
|
962
|
+
addonBefore: y = (Q = l.addonBefore) === null || Q === void 0 ? void 0 : Q.call(l),
|
|
963
|
+
addonAfter: R = (H = l.addonAfter) === null || H === void 0 ? void 0 : H.call(l),
|
|
964
|
+
prefix: q = (G = l.prefix) === null || G === void 0 ? void 0 : G.call(l),
|
|
959
965
|
valueModifiers: re = {}
|
|
960
|
-
} =
|
|
961
|
-
[`${
|
|
962
|
-
[`${
|
|
963
|
-
[`${
|
|
964
|
-
[`${
|
|
965
|
-
[`${
|
|
966
|
-
[`${
|
|
967
|
-
},
|
|
968
|
-
let
|
|
966
|
+
} = ae, le = Mt(ae, ["class", "bordered", "readonly", "style", "addonBefore", "addonAfter", "prefix", "valueModifiers"]), g = s.value, fe = j({
|
|
967
|
+
[`${g}-lg`]: w.value === "large",
|
|
968
|
+
[`${g}-sm`]: w.value === "small",
|
|
969
|
+
[`${g}-rtl`]: S.value === "rtl",
|
|
970
|
+
[`${g}-readonly`]: u,
|
|
971
|
+
[`${g}-borderless`]: !i,
|
|
972
|
+
[`${g}-in-form-item`]: ue
|
|
973
|
+
}, Se(g, p.value), a, E.value, N.value);
|
|
974
|
+
let B = b(Et, T(T({}, vt(le, ["size", "defaultValue"])), {}, {
|
|
969
975
|
ref: K,
|
|
970
976
|
lazy: !!re.lazy,
|
|
971
977
|
value: V.value,
|
|
972
|
-
class:
|
|
973
|
-
prefixCls:
|
|
974
|
-
readonly:
|
|
978
|
+
class: fe,
|
|
979
|
+
prefixCls: g,
|
|
980
|
+
readonly: u,
|
|
975
981
|
onChange: Y,
|
|
976
982
|
onBlur: se,
|
|
977
|
-
onFocus:
|
|
983
|
+
onFocus: J
|
|
978
984
|
}), {
|
|
979
|
-
upHandler:
|
|
980
|
-
class: `${
|
|
981
|
-
}, [
|
|
982
|
-
class: `${
|
|
985
|
+
upHandler: l.upIcon ? () => b("span", {
|
|
986
|
+
class: `${g}-handler-up-inner`
|
|
987
|
+
}, [l.upIcon()]) : () => b(St, {
|
|
988
|
+
class: `${g}-handler-up-inner`
|
|
983
989
|
}, null),
|
|
984
|
-
downHandler:
|
|
985
|
-
class: `${
|
|
986
|
-
}, [
|
|
987
|
-
class: `${
|
|
990
|
+
downHandler: l.downIcon ? () => b("span", {
|
|
991
|
+
class: `${g}-handler-down-inner`
|
|
992
|
+
}, [l.downIcon()]) : () => b(ht, {
|
|
993
|
+
class: `${g}-handler-down-inner`
|
|
988
994
|
}, null)
|
|
989
995
|
});
|
|
990
|
-
const
|
|
991
|
-
if (
|
|
992
|
-
const L = j(`${
|
|
993
|
-
[`${
|
|
994
|
-
[`${
|
|
995
|
-
[`${
|
|
996
|
-
[`${
|
|
997
|
-
[`${
|
|
998
|
-
[`${
|
|
999
|
-
[`${
|
|
1000
|
-
[`${
|
|
996
|
+
const pe = Ne(y) || Ne(R), me = Ne(q);
|
|
997
|
+
if (me || O) {
|
|
998
|
+
const L = j(`${g}-affix-wrapper`, Se(`${g}-affix-wrapper`, p.value, O), {
|
|
999
|
+
[`${g}-affix-wrapper-focused`]: k.value,
|
|
1000
|
+
[`${g}-affix-wrapper-disabled`]: C.value,
|
|
1001
|
+
[`${g}-affix-wrapper-sm`]: w.value === "small",
|
|
1002
|
+
[`${g}-affix-wrapper-lg`]: w.value === "large",
|
|
1003
|
+
[`${g}-affix-wrapper-rtl`]: S.value === "rtl",
|
|
1004
|
+
[`${g}-affix-wrapper-readonly`]: u,
|
|
1005
|
+
[`${g}-affix-wrapper-borderless`]: !i,
|
|
1006
|
+
[`${a}`]: !pe && a
|
|
1001
1007
|
}, N.value);
|
|
1002
|
-
|
|
1008
|
+
B = b("div", {
|
|
1003
1009
|
class: L,
|
|
1004
|
-
style:
|
|
1010
|
+
style: m,
|
|
1005
1011
|
onClick: X
|
|
1006
|
-
}, [
|
|
1007
|
-
class: `${
|
|
1008
|
-
}, [
|
|
1009
|
-
class: `${
|
|
1010
|
-
}, [
|
|
1012
|
+
}, [me && b("span", {
|
|
1013
|
+
class: `${g}-prefix`
|
|
1014
|
+
}, [q]), B, O && b("span", {
|
|
1015
|
+
class: `${g}-suffix`
|
|
1016
|
+
}, [de])]);
|
|
1011
1017
|
}
|
|
1012
|
-
if (
|
|
1013
|
-
const L = `${
|
|
1014
|
-
class:
|
|
1015
|
-
}, [
|
|
1016
|
-
class:
|
|
1017
|
-
}, [
|
|
1018
|
+
if (pe) {
|
|
1019
|
+
const L = `${g}-group`, ge = `${L}-addon`, ve = y ? b("div", {
|
|
1020
|
+
class: ge
|
|
1021
|
+
}, [y]) : null, he = R ? b("div", {
|
|
1022
|
+
class: ge
|
|
1023
|
+
}, [R]) : null, Me = j(`${g}-wrapper`, L, {
|
|
1018
1024
|
[`${L}-rtl`]: S.value === "rtl"
|
|
1019
|
-
}, N.value), Pe = j(`${
|
|
1020
|
-
[`${
|
|
1021
|
-
[`${
|
|
1022
|
-
[`${
|
|
1023
|
-
},
|
|
1024
|
-
|
|
1025
|
+
}, N.value), Pe = j(`${g}-group-wrapper`, {
|
|
1026
|
+
[`${g}-group-wrapper-sm`]: w.value === "small",
|
|
1027
|
+
[`${g}-group-wrapper-lg`]: w.value === "large",
|
|
1028
|
+
[`${g}-group-wrapper-rtl`]: S.value === "rtl"
|
|
1029
|
+
}, Se(`${s}-group-wrapper`, p.value, O), a, N.value);
|
|
1030
|
+
B = b("div", {
|
|
1025
1031
|
class: Pe,
|
|
1026
|
-
style:
|
|
1032
|
+
style: m
|
|
1027
1033
|
}, [b("div", {
|
|
1028
1034
|
class: Me
|
|
1029
|
-
}, [
|
|
1035
|
+
}, [ve && b(Ve, null, {
|
|
1030
1036
|
default: () => [b(Oe, null, {
|
|
1031
|
-
default: () => [
|
|
1037
|
+
default: () => [ve]
|
|
1032
1038
|
})]
|
|
1033
|
-
}),
|
|
1039
|
+
}), B, he && b(Ve, null, {
|
|
1034
1040
|
default: () => [b(Oe, null, {
|
|
1035
|
-
default: () => [
|
|
1041
|
+
default: () => [he]
|
|
1036
1042
|
})]
|
|
1037
1043
|
})])]);
|
|
1038
1044
|
}
|
|
1039
|
-
return D(bt(
|
|
1040
|
-
style:
|
|
1045
|
+
return D(bt(B, {
|
|
1046
|
+
style: m
|
|
1041
1047
|
}));
|
|
1042
1048
|
};
|
|
1043
1049
|
}
|
|
1044
|
-
}),
|
|
1045
|
-
install: (e) => (e.component(
|
|
1050
|
+
}), Ot = v(ye, {
|
|
1051
|
+
install: (e) => (e.component(ye.name, ye), e)
|
|
1046
1052
|
});
|
|
1047
1053
|
export {
|
|
1048
|
-
|
|
1054
|
+
Ot as _
|
|
1049
1055
|
};
|