@mi-avalon/libs 0.0.15 → 0.0.17
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/components/MyButton/index.d.ts +1 -1
- package/dist/components/MyButton/index.js +7 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +11 -0
- package/dist/constants/date.js +11 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/pageInfo.js +1 -0
- package/dist/constants/pattern.js +46 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.es.js +185 -187
- package/dist/index.js +4 -0
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -0
- package/package.json +6 -7
- package/dist/components/MyInput/index.d.ts +0 -9
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from 'antd';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
const MyButton = ({ type = 'primary', children, onClick, custom }) => {
|
|
5
|
+
return (_jsx(Button, { type: type, onClick: onClick, className: 'my-button', children: custom || children }));
|
|
6
|
+
};
|
|
7
|
+
export default MyButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MyButton } from './MyButton';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// export { default as ItemRow } from './ItemsRow';
|
|
2
|
+
// export { default as MBreadcrumb } from './MBreadcrumb';
|
|
3
|
+
// export { default as MDescriptions } from './MDescriptions';
|
|
4
|
+
// export * from './MForm';
|
|
5
|
+
// export { default as MForm } from './MForm';
|
|
6
|
+
// export * from './MiModal';
|
|
7
|
+
// export { default as MSearch } from './MSearch';
|
|
8
|
+
// export { default as MTable } from './MTable';
|
|
9
|
+
export { default as MyButton } from './MyButton';
|
|
10
|
+
// export * from './ThemeContext';
|
|
11
|
+
// export { default as CompThemeProvider } from './ThemeContext/CompThemeProvider';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const DATE_FORMAT = {
|
|
2
|
+
YMD_Hms: 'YYYY-MM-DD HH:mm:ss',
|
|
3
|
+
YMD: 'YYYY-MM-DD',
|
|
4
|
+
YMD2: 'YYYYMMDD',
|
|
5
|
+
YMD_POINT: 'YYYY.M.DD',
|
|
6
|
+
Hms: 'HH:mm:ss',
|
|
7
|
+
Hm: 'HH:mm',
|
|
8
|
+
YMD_000: 'YYYY-MM-DD 00:00:00',
|
|
9
|
+
YMD_end: 'YYYY-MM-DD 23:59:59',
|
|
10
|
+
YMD_Hm: 'YYYYMMDD HHmm',
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PAGE_SIZE = 10;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export class PatternType {
|
|
2
|
+
// 整数
|
|
3
|
+
static integerRegex = /^-?\d+$/;
|
|
4
|
+
// 正整数
|
|
5
|
+
static positiveIntegerRegex = /^[1-9]\d*$/;
|
|
6
|
+
// 负整数
|
|
7
|
+
static negativeIntegerRegex = /^-[1-9]\d*$/;
|
|
8
|
+
// 浮点数
|
|
9
|
+
static floatRegex = /^-?\d+(\.\d+)?$/;
|
|
10
|
+
// 字母
|
|
11
|
+
static letter = /^[a-zA-Z]+$/;
|
|
12
|
+
// 汉字
|
|
13
|
+
static chinese = /^[\u4e00-\u9fa5]+$/;
|
|
14
|
+
// 数字
|
|
15
|
+
static number = /^[0-9]*$/;
|
|
16
|
+
// 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
17
|
+
static username = /^[a-zA-Z]\w{3,15}$/;
|
|
18
|
+
// 强用户名 必须包含大小写字母和数字,6-20位
|
|
19
|
+
static strongUsername = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/;
|
|
20
|
+
// 密码 至少8位,包含字母和数字
|
|
21
|
+
static password = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/;
|
|
22
|
+
// 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
23
|
+
static strongPassword = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
|
|
24
|
+
// 中国大陆的手机号
|
|
25
|
+
static phone = /^1[3-9]\d{9}$/;
|
|
26
|
+
// 带区号的手机号
|
|
27
|
+
static phoneWithAreaCode = /^\+?\d{2,3}-?\d{8,11}$/;
|
|
28
|
+
// 邮箱
|
|
29
|
+
static email = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
30
|
+
// 身份证
|
|
31
|
+
static idCard = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
|
|
32
|
+
// 银行卡
|
|
33
|
+
static bankCard = /^[1-9]\d{3,30}$/;
|
|
34
|
+
// 邮政编码
|
|
35
|
+
static zipCode = /^[1-9]\d{5}$/;
|
|
36
|
+
// IP
|
|
37
|
+
static ip = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
|
|
38
|
+
// URL
|
|
39
|
+
static url = /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/;
|
|
40
|
+
// 车牌
|
|
41
|
+
static carNumber = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/;
|
|
42
|
+
// 时间 hh:mm:ss
|
|
43
|
+
static time = /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/;
|
|
44
|
+
// 日期 YYYY-MM-DD
|
|
45
|
+
static date = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
46
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import { Button as
|
|
1
|
+
var dr = Object.defineProperty;
|
|
2
|
+
var vr = (b, v, R) => v in b ? dr(b, v, { enumerable: !0, configurable: !0, writable: !0, value: R }) : b[v] = R;
|
|
3
|
+
var s = (b, v, R) => (vr(b, typeof v != "symbol" ? v + "" : v, R), R);
|
|
4
|
+
import Ye from "react";
|
|
5
|
+
import { Button as pr } from "antd";
|
|
6
6
|
var ee = { exports: {} }, M = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
@@ -14,22 +14,22 @@ var ee = { exports: {} }, M = {};
|
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
16
|
var Se;
|
|
17
|
-
function
|
|
17
|
+
function gr() {
|
|
18
18
|
if (Se)
|
|
19
19
|
return M;
|
|
20
20
|
Se = 1;
|
|
21
|
-
var
|
|
22
|
-
function A(C, p,
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
O.call(p,
|
|
21
|
+
var b = Ye, v = Symbol.for("react.element"), R = Symbol.for("react.fragment"), O = Object.prototype.hasOwnProperty, I = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, W = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function A(C, p, Y) {
|
|
23
|
+
var h, y = {}, w = null, N = null;
|
|
24
|
+
Y !== void 0 && (w = "" + Y), p.key !== void 0 && (w = "" + p.key), p.ref !== void 0 && (N = p.ref);
|
|
25
|
+
for (h in p)
|
|
26
|
+
O.call(p, h) && !W.hasOwnProperty(h) && (y[h] = p[h]);
|
|
27
27
|
if (C && C.defaultProps)
|
|
28
|
-
for (
|
|
29
|
-
y[
|
|
30
|
-
return { $$typeof:
|
|
28
|
+
for (h in p = C.defaultProps, p)
|
|
29
|
+
y[h] === void 0 && (y[h] = p[h]);
|
|
30
|
+
return { $$typeof: v, type: C, key: w, ref: N, props: y, _owner: I.current };
|
|
31
31
|
}
|
|
32
|
-
return M.Fragment =
|
|
32
|
+
return M.Fragment = R, M.jsx = A, M.jsxs = A, M;
|
|
33
33
|
}
|
|
34
34
|
var F = {};
|
|
35
35
|
/**
|
|
@@ -41,44 +41,44 @@ var F = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
var
|
|
48
|
-
function
|
|
44
|
+
var De;
|
|
45
|
+
function mr() {
|
|
46
|
+
return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var b = Ye, v = Symbol.for("react.element"), R = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), C = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), re = Symbol.iterator, xe = "@@iterator";
|
|
48
|
+
function je(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var r = re && e[re] || e[
|
|
51
|
+
var r = re && e[re] || e[xe];
|
|
52
52
|
return typeof r == "function" ? r : null;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
54
|
+
var x = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function d(e) {
|
|
56
56
|
{
|
|
57
57
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
58
58
|
t[n - 1] = arguments[n];
|
|
59
|
-
|
|
59
|
+
Te("error", e, t);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Te(e, r, t) {
|
|
63
63
|
{
|
|
64
|
-
var n =
|
|
64
|
+
var n = x.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
65
65
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
66
|
-
var
|
|
66
|
+
var u = t.map(function(i) {
|
|
67
67
|
return String(i);
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var Ae = !1, ke = !1, $e = !1, Pe = !1, Me = !1, te;
|
|
73
73
|
te = Symbol.for("react.module.reference");
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === O || e === W ||
|
|
74
|
+
function Fe(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === O || e === W || Me || e === I || e === Y || e === h || Pe || e === N || Ae || ke || $e || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === A || e.$$typeof === C || e.$$typeof === p || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
79
|
e.$$typeof === te || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ie(e, r, t) {
|
|
82
82
|
var n = e.displayName;
|
|
83
83
|
if (n)
|
|
84
84
|
return n;
|
|
@@ -91,22 +91,22 @@ function br() {
|
|
|
91
91
|
function E(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
|
-
if (typeof e.tag == "number" &&
|
|
94
|
+
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
95
|
return e.displayName || e.name || null;
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
99
|
case O:
|
|
100
100
|
return "Fragment";
|
|
101
|
-
case
|
|
101
|
+
case R:
|
|
102
102
|
return "Portal";
|
|
103
103
|
case W:
|
|
104
104
|
return "Profiler";
|
|
105
105
|
case I:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case Y:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case h:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
@@ -118,14 +118,14 @@ function br() {
|
|
|
118
118
|
var t = e;
|
|
119
119
|
return ne(t._context) + ".Provider";
|
|
120
120
|
case p:
|
|
121
|
-
return
|
|
121
|
+
return Ie(e, e.render, "ForwardRef");
|
|
122
122
|
case y:
|
|
123
123
|
var n = e.displayName || null;
|
|
124
124
|
return n !== null ? n : E(e.type) || "Memo";
|
|
125
125
|
case w: {
|
|
126
|
-
var o = e,
|
|
126
|
+
var o = e, u = o._payload, i = o._init;
|
|
127
127
|
try {
|
|
128
|
-
return E(i(
|
|
128
|
+
return E(i(u));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -133,14 +133,14 @@ function br() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var S = Object.assign, k = 0, ae, ie, oe,
|
|
136
|
+
var S = Object.assign, k = 0, ae, ie, oe, ue, se, ce, le;
|
|
137
137
|
function fe() {
|
|
138
138
|
}
|
|
139
139
|
fe.__reactDisabledLog = !0;
|
|
140
|
-
function
|
|
140
|
+
function We() {
|
|
141
141
|
{
|
|
142
142
|
if (k === 0) {
|
|
143
|
-
ae = console.log, ie = console.info, oe = console.warn,
|
|
143
|
+
ae = console.log, ie = console.info, oe = console.warn, ue = console.error, se = console.group, ce = console.groupCollapsed, le = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
@@ -160,7 +160,7 @@ function br() {
|
|
|
160
160
|
k++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ne() {
|
|
164
164
|
{
|
|
165
165
|
if (k--, k === 0) {
|
|
166
166
|
var e = {
|
|
@@ -179,10 +179,10 @@ function br() {
|
|
|
179
179
|
value: oe
|
|
180
180
|
}),
|
|
181
181
|
error: S({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: ue
|
|
183
183
|
}),
|
|
184
184
|
group: S({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: se
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: S({}, e, {
|
|
188
188
|
value: ce
|
|
@@ -192,10 +192,10 @@ function br() {
|
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
k < 0 &&
|
|
195
|
+
k < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var V =
|
|
198
|
+
var V = x.ReactCurrentDispatcher, Z;
|
|
199
199
|
function z(e, r, t) {
|
|
200
200
|
{
|
|
201
201
|
if (Z === void 0)
|
|
@@ -211,8 +211,8 @@ function br() {
|
|
|
211
211
|
}
|
|
212
212
|
var J = !1, H;
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
H = new
|
|
214
|
+
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
H = new ze();
|
|
216
216
|
}
|
|
217
217
|
function de(e, r) {
|
|
218
218
|
if (!e || J)
|
|
@@ -226,8 +226,8 @@ function br() {
|
|
|
226
226
|
J = !0;
|
|
227
227
|
var o = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
|
-
var
|
|
230
|
-
|
|
229
|
+
var u;
|
|
230
|
+
u = V.current, V.current = null, We();
|
|
231
231
|
try {
|
|
232
232
|
if (r) {
|
|
233
233
|
var i = function() {
|
|
@@ -240,55 +240,55 @@ function br() {
|
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(i, []);
|
|
243
|
-
} catch (
|
|
244
|
-
n =
|
|
243
|
+
} catch (m) {
|
|
244
|
+
n = m;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(e, [], i);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
i.call();
|
|
250
|
-
} catch (
|
|
251
|
-
n =
|
|
250
|
+
} catch (m) {
|
|
251
|
+
n = m;
|
|
252
252
|
}
|
|
253
253
|
e.call(i.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
n =
|
|
258
|
+
} catch (m) {
|
|
259
|
+
n = m;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var a =
|
|
266
|
-
`),
|
|
267
|
-
`), l = a.length - 1, f =
|
|
263
|
+
} catch (m) {
|
|
264
|
+
if (m && n && typeof m.stack == "string") {
|
|
265
|
+
for (var a = m.stack.split(`
|
|
266
|
+
`), g = n.stack.split(`
|
|
267
|
+
`), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; )
|
|
268
268
|
f--;
|
|
269
269
|
for (; l >= 1 && f >= 0; l--, f--)
|
|
270
|
-
if (a[l] !==
|
|
270
|
+
if (a[l] !== g[f]) {
|
|
271
271
|
if (l !== 1 || f !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (l--, f--, f < 0 || a[l] !==
|
|
274
|
-
var
|
|
273
|
+
if (l--, f--, f < 0 || a[l] !== g[f]) {
|
|
274
|
+
var _ = `
|
|
275
275
|
` + a[l].replace(" at new ", " at ");
|
|
276
|
-
return e.displayName &&
|
|
276
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, _), _;
|
|
277
277
|
}
|
|
278
278
|
while (l >= 1 && f >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
J = !1, V.current =
|
|
283
|
+
J = !1, V.current = u, Ne(), Error.prepareStackTrace = o;
|
|
284
284
|
}
|
|
285
|
-
var T = e ? e.displayName || e.name : "",
|
|
286
|
-
return typeof e == "function" && H.set(e,
|
|
285
|
+
var T = e ? e.displayName || e.name : "", D = T ? z(T) : "";
|
|
286
|
+
return typeof e == "function" && H.set(e, D), D;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function He(e, r, t) {
|
|
289
289
|
return de(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Le(e) {
|
|
292
292
|
var r = e.prototype;
|
|
293
293
|
return !!(r && r.isReactComponent);
|
|
294
294
|
}
|
|
@@ -296,32 +296,32 @@ function br() {
|
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return de(e,
|
|
299
|
+
return de(e, Le(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
301
|
return z(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
303
|
+
case Y:
|
|
304
304
|
return z("Suspense");
|
|
305
|
-
case
|
|
305
|
+
case h:
|
|
306
306
|
return z("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
310
|
case p:
|
|
311
|
-
return
|
|
311
|
+
return He(e.render);
|
|
312
312
|
case y:
|
|
313
313
|
return L(e.type, r, t);
|
|
314
314
|
case w: {
|
|
315
|
-
var n = e, o = n._payload,
|
|
315
|
+
var n = e, o = n._payload, u = n._init;
|
|
316
316
|
try {
|
|
317
|
-
return L(
|
|
317
|
+
return L(u(o), r, t);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var $ = Object.prototype.hasOwnProperty, ve = {}, pe =
|
|
324
|
+
var $ = Object.prototype.hasOwnProperty, ve = {}, pe = x.ReactDebugCurrentFrame;
|
|
325
325
|
function U(e) {
|
|
326
326
|
if (e) {
|
|
327
327
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
@@ -329,57 +329,57 @@ function br() {
|
|
|
329
329
|
} else
|
|
330
330
|
pe.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ue(e, r, t, n, o) {
|
|
333
333
|
{
|
|
334
|
-
var
|
|
334
|
+
var u = Function.call.bind($);
|
|
335
335
|
for (var i in e)
|
|
336
|
-
if (
|
|
336
|
+
if (u(e, i)) {
|
|
337
337
|
var a = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof e[i] != "function") {
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
340
|
+
var g = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw g.name = "Invariant Violation", g;
|
|
342
342
|
}
|
|
343
343
|
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (l) {
|
|
345
345
|
a = l;
|
|
346
346
|
}
|
|
347
|
-
a && !(a instanceof Error) && (U(o),
|
|
347
|
+
a && !(a instanceof Error) && (U(o), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), U(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, U(o), d("Failed %s type: %s", t, a.message), U(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var Ve = Array.isArray;
|
|
352
352
|
function B(e) {
|
|
353
|
-
return
|
|
353
|
+
return Ve(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ze(e) {
|
|
356
356
|
{
|
|
357
357
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
358
|
return t;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Je(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return ge(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function ge(e) {
|
|
369
369
|
return "" + e;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
371
|
+
function me(e) {
|
|
372
|
+
if (Je(e))
|
|
373
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(e)), ge(e);
|
|
374
374
|
}
|
|
375
|
-
var P =
|
|
375
|
+
var P = x.ReactCurrentOwner, Be = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
380
|
}, he, be, q;
|
|
381
381
|
q = {};
|
|
382
|
-
function
|
|
382
|
+
function qe(e) {
|
|
383
383
|
if ($.call(e, "ref")) {
|
|
384
384
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
385
385
|
if (r && r.isReactWarning)
|
|
@@ -387,7 +387,7 @@ function br() {
|
|
|
387
387
|
}
|
|
388
388
|
return e.ref !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ke(e) {
|
|
391
391
|
if ($.call(e, "key")) {
|
|
392
392
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
393
393
|
if (r && r.isReactWarning)
|
|
@@ -395,16 +395,16 @@ function br() {
|
|
|
395
395
|
}
|
|
396
396
|
return e.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Ge(e, r) {
|
|
399
399
|
if (typeof e.ref == "string" && P.current && r && P.current.stateNode !== r) {
|
|
400
400
|
var t = E(P.current.type);
|
|
401
|
-
q[t] || (
|
|
401
|
+
q[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(P.current.type), e.ref), q[t] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Xe(e, r) {
|
|
405
405
|
{
|
|
406
406
|
var t = function() {
|
|
407
|
-
he || (he = !0,
|
|
407
|
+
he || (he = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
408
408
|
};
|
|
409
409
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
410
410
|
get: t,
|
|
@@ -412,10 +412,10 @@ function br() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Qe(e, r) {
|
|
416
416
|
{
|
|
417
417
|
var t = function() {
|
|
418
|
-
be || (be = !0,
|
|
418
|
+
be || (be = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
419
419
|
};
|
|
420
420
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
421
421
|
get: t,
|
|
@@ -423,17 +423,17 @@ function br() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var er = function(e, r, t, n, o, u, i) {
|
|
427
427
|
var a = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
|
-
$$typeof:
|
|
429
|
+
$$typeof: v,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: e,
|
|
432
432
|
key: r,
|
|
433
433
|
ref: t,
|
|
434
434
|
props: i,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
|
-
_owner:
|
|
436
|
+
_owner: u
|
|
437
437
|
};
|
|
438
438
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
@@ -452,25 +452,25 @@ function br() {
|
|
|
452
452
|
value: o
|
|
453
453
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function rr(e, r, t, n, o) {
|
|
456
456
|
{
|
|
457
|
-
var
|
|
458
|
-
t !== void 0 && (
|
|
459
|
-
for (
|
|
460
|
-
$.call(r,
|
|
457
|
+
var u, i = {}, a = null, g = null;
|
|
458
|
+
t !== void 0 && (me(t), a = "" + t), Ke(r) && (me(r.key), a = "" + r.key), qe(r) && (g = r.ref, Ge(r, o));
|
|
459
|
+
for (u in r)
|
|
460
|
+
$.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
462
462
|
var l = e.defaultProps;
|
|
463
|
-
for (
|
|
464
|
-
i[
|
|
463
|
+
for (u in l)
|
|
464
|
+
i[u] === void 0 && (i[u] = l[u]);
|
|
465
465
|
}
|
|
466
|
-
if (a ||
|
|
466
|
+
if (a || g) {
|
|
467
467
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
-
a &&
|
|
468
|
+
a && Xe(i, f), g && Qe(i, f);
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return er(e, a, g, o, n, P.current, i);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var K =
|
|
473
|
+
var K = x.ReactCurrentOwner, _e = x.ReactDebugCurrentFrame;
|
|
474
474
|
function j(e) {
|
|
475
475
|
if (e) {
|
|
476
476
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
@@ -481,7 +481,7 @@ function br() {
|
|
|
481
481
|
var G;
|
|
482
482
|
G = !1;
|
|
483
483
|
function X(e) {
|
|
484
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
484
|
+
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
485
485
|
}
|
|
486
486
|
function Re() {
|
|
487
487
|
{
|
|
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function tr(e) {
|
|
499
499
|
{
|
|
500
500
|
if (e !== void 0) {
|
|
501
501
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -507,7 +507,7 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var Ee = {};
|
|
510
|
-
function
|
|
510
|
+
function nr(e) {
|
|
511
511
|
{
|
|
512
512
|
var r = Re();
|
|
513
513
|
if (!r) {
|
|
@@ -524,12 +524,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
if (!e._store || e._store.validated || e.key != null)
|
|
525
525
|
return;
|
|
526
526
|
e._store.validated = !0;
|
|
527
|
-
var t =
|
|
527
|
+
var t = nr(r);
|
|
528
528
|
if (Ee[t])
|
|
529
529
|
return;
|
|
530
530
|
Ee[t] = !0;
|
|
531
531
|
var n = "";
|
|
532
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), j(e),
|
|
532
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), j(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function Oe(e, r) {
|
|
@@ -544,14 +544,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
544
544
|
else if (X(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var o =
|
|
547
|
+
var o = je(e);
|
|
548
548
|
if (typeof o == "function" && o !== e.entries)
|
|
549
|
-
for (var
|
|
549
|
+
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
550
550
|
X(i.value) && ye(i.value, r);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function ar(e) {
|
|
555
555
|
{
|
|
556
556
|
var r = e.type;
|
|
557
557
|
if (r == null || typeof r == "string")
|
|
@@ -567,86 +567,85 @@ Check the top-level render call using <` + t + ">.");
|
|
|
567
567
|
return;
|
|
568
568
|
if (t) {
|
|
569
569
|
var n = E(r);
|
|
570
|
-
|
|
570
|
+
Ue(t, e.props, "prop", n, e);
|
|
571
571
|
} else if (r.PropTypes !== void 0 && !G) {
|
|
572
572
|
G = !0;
|
|
573
573
|
var o = E(r);
|
|
574
|
-
|
|
574
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
575
575
|
}
|
|
576
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
576
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function ir(e) {
|
|
580
580
|
{
|
|
581
581
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
582
582
|
var n = r[t];
|
|
583
583
|
if (n !== "children" && n !== "key") {
|
|
584
|
-
j(e),
|
|
584
|
+
j(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (j(e),
|
|
588
|
+
e.ref !== null && (j(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var Ce = {};
|
|
592
|
-
function we(e, r, t, n, o,
|
|
592
|
+
function we(e, r, t, n, o, u) {
|
|
593
593
|
{
|
|
594
|
-
var i =
|
|
594
|
+
var i = Fe(e);
|
|
595
595
|
if (!i) {
|
|
596
596
|
var a = "";
|
|
597
597
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var
|
|
599
|
-
|
|
598
|
+
var g = tr(o);
|
|
599
|
+
g ? a += g : a += Re();
|
|
600
600
|
var l;
|
|
601
|
-
e === null ? l = "null" : B(e) ? l = "array" : e !== void 0 && e.$$typeof ===
|
|
601
|
+
e === null ? l = "null" : B(e) ? l = "array" : e !== void 0 && e.$$typeof === v ? (l = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
602
602
|
}
|
|
603
|
-
var f =
|
|
603
|
+
var f = rr(e, r, t, o, u);
|
|
604
604
|
if (f == null)
|
|
605
605
|
return f;
|
|
606
606
|
if (i) {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
607
|
+
var _ = r.children;
|
|
608
|
+
if (_ !== void 0)
|
|
609
609
|
if (n)
|
|
610
|
-
if (B(
|
|
611
|
-
for (var T = 0; T <
|
|
612
|
-
Oe(
|
|
613
|
-
Object.freeze && Object.freeze(
|
|
610
|
+
if (B(_)) {
|
|
611
|
+
for (var T = 0; T < _.length; T++)
|
|
612
|
+
Oe(_[T], e);
|
|
613
|
+
Object.freeze && Object.freeze(_);
|
|
614
614
|
} else
|
|
615
|
-
|
|
615
|
+
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
616
616
|
else
|
|
617
|
-
Oe(
|
|
617
|
+
Oe(_, e);
|
|
618
618
|
}
|
|
619
619
|
if ($.call(r, "key")) {
|
|
620
|
-
var
|
|
621
|
-
return
|
|
622
|
-
}), Q =
|
|
623
|
-
if (!Ce[
|
|
624
|
-
var
|
|
625
|
-
|
|
620
|
+
var D = E(e), m = Object.keys(r).filter(function(fr) {
|
|
621
|
+
return fr !== "key";
|
|
622
|
+
}), Q = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
|
+
if (!Ce[D + Q]) {
|
|
624
|
+
var lr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
|
|
625
|
+
d(`A props object containing a "key" prop is being spread into JSX:
|
|
626
626
|
let props = %s;
|
|
627
627
|
<%s {...props} />
|
|
628
628
|
React keys must be passed directly to JSX without using spread:
|
|
629
629
|
let props = %s;
|
|
630
|
-
<%s key={someKey} {...props} />`, Q,
|
|
630
|
+
<%s key={someKey} {...props} />`, Q, D, lr, D), Ce[D + Q] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return e === O ?
|
|
633
|
+
return e === O ? ir(f) : ar(f), f;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function or(e, r, t) {
|
|
637
637
|
return we(e, r, t, !0);
|
|
638
638
|
}
|
|
639
639
|
function ur(e, r, t) {
|
|
640
640
|
return we(e, r, t, !1);
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
F.Fragment = O, F.jsx =
|
|
642
|
+
var sr = ur, cr = or;
|
|
643
|
+
F.Fragment = O, F.jsx = sr, F.jsxs = cr;
|
|
644
644
|
}()), F;
|
|
645
645
|
}
|
|
646
|
-
process.env.NODE_ENV === "production" ? ee.exports =
|
|
647
|
-
var
|
|
648
|
-
const
|
|
649
|
-
const Or = ({ value: g, placeholder: d, onChange: b }) => /* @__PURE__ */ Ye.jsx(gr, { value: g, placeholder: d, onChange: b, className: "my-input" }), Cr = {
|
|
646
|
+
process.env.NODE_ENV === "production" ? ee.exports = gr() : ee.exports = mr();
|
|
647
|
+
var hr = ee.exports;
|
|
648
|
+
const Er = ({ type: b = "primary", children: v, onClick: R, custom: O }) => /* @__PURE__ */ hr.jsx(pr, { type: b, onClick: R, className: "my-button", children: O || v }), yr = {
|
|
650
649
|
YMD_Hms: "YYYY-MM-DD HH:mm:ss",
|
|
651
650
|
YMD: "YYYY-MM-DD",
|
|
652
651
|
YMD2: "YYYYMMDD",
|
|
@@ -656,36 +655,35 @@ const Or = ({ value: g, placeholder: d, onChange: b }) => /* @__PURE__ */ Ye.jsx
|
|
|
656
655
|
YMD_000: "YYYY-MM-DD 00:00:00",
|
|
657
656
|
YMD_end: "YYYY-MM-DD 23:59:59",
|
|
658
657
|
YMD_Hm: "YYYYMMDD HHmm"
|
|
659
|
-
},
|
|
658
|
+
}, Or = 10;
|
|
660
659
|
class c {
|
|
661
660
|
}
|
|
662
661
|
// 整数
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
662
|
+
s(c, "integerRegex", /^-?\d+$/), // 正整数
|
|
663
|
+
s(c, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
|
|
664
|
+
s(c, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
|
|
665
|
+
s(c, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
|
|
666
|
+
s(c, "letter", /^[a-zA-Z]+$/), // 汉字
|
|
667
|
+
s(c, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
|
|
668
|
+
s(c, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
669
|
+
s(c, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
|
|
670
|
+
s(c, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
|
|
671
|
+
s(c, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
672
|
+
s(c, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
|
|
673
|
+
s(c, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
|
|
674
|
+
s(c, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
|
|
675
|
+
s(c, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
|
|
676
|
+
s(c, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), // 银行卡
|
|
677
|
+
s(c, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
|
|
678
|
+
s(c, "zipCode", /^[1-9]\d{5}$/), // IP
|
|
679
|
+
s(c, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), // URL
|
|
680
|
+
s(c, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
|
|
681
|
+
s(c, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
|
|
682
|
+
s(c, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
|
|
683
|
+
s(c, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
|
|
685
684
|
export {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
Or as
|
|
689
|
-
wr as PAGE_SIZE,
|
|
685
|
+
yr as DATE_FORMAT,
|
|
686
|
+
Er as MyButton,
|
|
687
|
+
Or as PAGE_SIZE,
|
|
690
688
|
c as PatternType
|
|
691
689
|
};
|
package/dist/index.js
ADDED
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(d,
|
|
1
|
+
(function(d,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],_):(d=typeof globalThis<"u"?globalThis:d||self,_(d.MiAvalonLibs={},d.React,d.antd))})(this,function(d,_,S){"use strict";var Rr=Object.defineProperty;var yr=(d,_,S)=>_ in d?Rr(d,_,{enumerable:!0,configurable:!0,writable:!0,value:S}):d[_]=S;var f=(d,_,S)=>(yr(d,typeof _!="symbol"?_+"":_,S),S);const ae=(E=>E&&E.__esModule?E:{default:E})(_);var J={exports:{}},P={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ie;function xe(){if(ie)return P;ie=1;var E=ae.default,C=Symbol.for("react.element"),M=Symbol.for("react.fragment"),O=Object.prototype.hasOwnProperty,z=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function F(w,p,Y){var h,y={},D=null,H=null;Y!==void 0&&(D=""+Y),p.key!==void 0&&(D=""+p.key),p.ref!==void 0&&(H=p.ref);for(h in p)O.call(p,h)&&!L.hasOwnProperty(h)&&(y[h]=p[h]);if(w&&w.defaultProps)for(h in p=w.defaultProps,p)y[h]===void 0&&(y[h]=p[h]);return{$$typeof:C,type:w,key:D,ref:H,props:y,_owner:z.current}}return P.Fragment=M,P.jsx=F,P.jsxs=F,P}var $={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+G+e}}var K=!1,V;{var Ge=typeof WeakMap=="function"?WeakMap:Map;V=new Ge}function
|
|
17
|
+
*/var oe;function ke(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){var E=ae.default,C=Symbol.for("react.element"),M=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),w=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),ue=Symbol.iterator,Ie="@@iterator";function We(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[Ie];return typeof r=="function"?r:null}var A=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ne("error",e,t)}}function Ne(e,r,t){{var n=A.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var ze=!1,Le=!1,He=!1,Ue=!1,Ve=!1,se;se=Symbol.for("react.module.reference");function Ze(e){return!!(typeof e=="string"||typeof e=="function"||e===O||e===L||Ve||e===z||e===Y||e===h||Ue||e===H||ze||Le||He||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===y||e.$$typeof===F||e.$$typeof===w||e.$$typeof===p||e.$$typeof===se||e.getModuleId!==void 0))}function Be(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function fe(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case M:return"Portal";case L:return"Profiler";case z:return"StrictMode";case Y:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return fe(r)+".Consumer";case F:var t=e;return fe(t._context)+".Provider";case p:return Be(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case D:{var o=e,u=o._payload,i=o._init;try{return R(i(u))}catch{return null}}}return null}var T=Object.assign,I=0,ce,le,de,ve,pe,ge,me;function _e(){}_e.__reactDisabledLog=!0;function Je(){{if(I===0){ce=console.log,le=console.info,de=console.warn,ve=console.error,pe=console.group,ge=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function qe(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:ce}),info:T({},e,{value:le}),warn:T({},e,{value:de}),error:T({},e,{value:ve}),group:T({},e,{value:pe}),groupCollapsed:T({},e,{value:ge}),groupEnd:T({},e,{value:me})})}I<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=A.ReactCurrentDispatcher,G;function U(e,r,t){{if(G===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
|
|
18
|
+
`+G+e}}var K=!1,V;{var Ge=typeof WeakMap=="function"?WeakMap:Map;V=new Ge}function he(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Je();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(m){n=m}Reflect.construct(e,[],i)}else{try{i.call()}catch(m){n=m}e.call(i.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var a=m.stack.split(`
|
|
19
19
|
`),g=n.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+a[
|
|
20
|
+
`),c=a.length-1,l=g.length-1;c>=1&&l>=0&&a[c]!==g[l];)l--;for(;c>=1&&l>=0;c--,l--)if(a[c]!==g[l]){if(c!==1||l!==1)do if(c--,l--,l<0||a[c]!==g[l]){var b=`
|
|
21
|
+
`+a[c].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,b),b}while(c>=1&&l>=0);break}}}finally{K=!1,q.current=u,qe(),Error.prepareStackTrace=o}var k=e?e.displayName||e.name:"",j=k?U(k):"";return typeof e=="function"&&V.set(e,j),j}function Ke(e,r,t){return he(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Z(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,Xe(e));if(typeof e=="string")return U(e);switch(e){case Y:return U("Suspense");case h:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Ke(e.render);case y:return Z(e.type,r,t);case D:{var n=e,o=n._payload,u=n._init;try{return Z(u(o),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,be={},Ee=A.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=Z(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function Qe(e,r,t,n,o){{var u=Function.call.bind(W);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var g=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(B(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in be)&&(be[a.message]=!0,B(o),v("Failed %s type: %s",t,a.message),B(null))}}}var er=Array.isArray;function X(e){return er(e)}function rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function tr(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function ye(e){if(tr(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(e)),Re(e)}var N=A.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,Q;Q={};function ar(e){if(W.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ir(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&N.current&&r&&N.current.stateNode!==r){var t=R(N.current.type);Q[t]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(N.current.type),e.ref),Q[t]=!0)}}function ur(e,r){{var t=function(){Oe||(Oe=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Se||(Se=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var fr=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function cr(e,r,t,n,o){{var u,i={},a=null,g=null;t!==void 0&&(ye(t),a=""+t),ir(r)&&(ye(r.key),a=""+r.key),ar(r)&&(g=r.ref,or(r,o));for(u in r)W.call(r,u)&&!nr.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var c=e.defaultProps;for(u in c)i[u]===void 0&&(i[u]=c[u])}if(a||g){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ur(i,l),g&&sr(i,l)}return fr(e,a,g,o,n,N.current,i)}}var ee=A.ReactCurrentOwner,Ce=A.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=Z(e.type,e._source,r?r.type:null);Ce.setExtraStackFrame(t)}else Ce.setExtraStackFrame(null)}var re;re=!1;function te(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function we(){{if(ee.current){var e=R(ee.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function lr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var De={};function dr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=dr(r);if(De[t])return;De[t]=!0;var n="";e&&e._owner&&e._owner!==ee.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),x(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),x(null)}}function je(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];te(n)&&Te(n,r)}else if(te(e))e._store&&(e._store.validated=!0);else if(e){var o=We(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)te(i.value)&&Te(i.value,r)}}}function vr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=R(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!re){re=!0;var o=R(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){x(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),x(null);break}}e.ref!==null&&(x(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}var Ye={};function Ae(e,r,t,n,o,u){{var i=Ze(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=lr(o);g?a+=g:a+=we();var c;e===null?c="null":X(e)?c="array":e!==void 0&&e.$$typeof===C?(c="<"+(R(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,a)}var l=cr(e,r,t,o,u);if(l==null)return l;if(i){var b=r.children;if(b!==void 0)if(n)if(X(b)){for(var k=0;k<b.length;k++)je(b[k],e);Object.freeze&&Object.freeze(b)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else je(b,e)}if(W.call(r,"key")){var j=R(e),m=Object.keys(r).filter(function(Er){return Er!=="key"}),ne=m.length>0?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}";if(!Ye[j+ne]){var br=m.length>0?"{"+m.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
28
28
|
let props = %s;
|
|
29
29
|
<%s {...props} />
|
|
30
30
|
React keys must be passed directly to JSX without using spread:
|
|
31
31
|
let props = %s;
|
|
32
|
-
<%s key={someKey} {...props} />`,ne,
|
|
32
|
+
<%s key={someKey} {...props} />`,ne,j,br,j),Ye[j+ne]=!0}}return e===O?pr(l):vr(l),l}}function gr(e,r,t){return Ae(e,r,t,!0)}function mr(e,r,t){return Ae(e,r,t,!1)}var _r=mr,hr=gr;$.Fragment=O,$.jsx=_r,$.jsxs=hr}()),$}process.env.NODE_ENV==="production"?J.exports=xe():J.exports=ke();var Pe=J.exports;const Sr="",$e=({type:E="primary",children:C,onClick:M,custom:O})=>Pe.jsx(S.Button,{type:E,onClick:M,className:"my-button",children:O||C}),Me={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm"},Fe=10;class s{}f(s,"integerRegex",/^-?\d+$/),f(s,"positiveIntegerRegex",/^[1-9]\d*$/),f(s,"negativeIntegerRegex",/^-[1-9]\d*$/),f(s,"floatRegex",/^-?\d+(\.\d+)?$/),f(s,"letter",/^[a-zA-Z]+$/),f(s,"chinese",/^[\u4e00-\u9fa5]+$/),f(s,"number",/^[0-9]*$/),f(s,"username",/^[a-zA-Z]\w{3,15}$/),f(s,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),f(s,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),f(s,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),f(s,"phone",/^1[3-9]\d{9}$/),f(s,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),f(s,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),f(s,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),f(s,"bankCard",/^[1-9]\d{3,30}$/),f(s,"zipCode",/^[1-9]\d{5}$/),f(s,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),f(s,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),f(s,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),f(s,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),f(s,"date",/^(\d{4})-(\d{2})-(\d{2})$/),d.DATE_FORMAT=Me,d.MyButton=$e,d.PAGE_SIZE=Fe,d.PatternType=s,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.my-button{font-weight:700}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mi-avalon/libs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -11,19 +11,18 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"dev": "vite",
|
|
14
|
-
"build": "vite build && tsc
|
|
14
|
+
"build": "vite build && tsc",
|
|
15
15
|
"preview": "vite preview"
|
|
16
16
|
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"antd": "^4.0.0 || ^5.0.0",
|
|
19
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
20
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
21
|
-
},
|
|
22
17
|
"devDependencies": {
|
|
23
18
|
"@types/node": "^20.0.0",
|
|
24
19
|
"@types/react": "^18.0.0",
|
|
25
20
|
"@types/react-dom": "^18.0.0",
|
|
26
21
|
"@vitejs/plugin-react": "^4.7.0",
|
|
22
|
+
"antd": "^5.0.0",
|
|
23
|
+
"react": "^18.0.0",
|
|
24
|
+
"react-dom": "^18.0.0",
|
|
25
|
+
"sass": "^1.89.2",
|
|
27
26
|
"typescript": "^5.0.0",
|
|
28
27
|
"vite": "^4.5.14"
|
|
29
28
|
},
|