@mi-avalon/libs 0.0.14 → 0.0.15
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 +10 -6
- package/dist/components/MyInput/index.d.ts +9 -0
- package/dist/constants/date.d.ts +11 -11
- package/dist/constants/index.d.ts +3 -3
- package/dist/constants/pageInfo.d.ts +1 -1
- package/dist/constants/pattern.d.ts +24 -24
- package/dist/index.d.ts +3 -4
- package/dist/index.es.js +691 -0
- package/dist/index.umd.js +32 -0
- package/package.json +33 -72
- package/README.md +0 -160
- package/dist/components/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -7
- package/dist/hooks/useFuncRequest.d.ts +0 -16
- package/dist/hooks/useInterval.d.ts +0 -8
- package/dist/hooks/usePagination.d.ts +0 -42
- package/dist/hooks/useQuery.d.ts +0 -3
- package/dist/hooks/useReactive.d.ts +0 -2
- package/dist/hooks/useTimeout.d.ts +0 -8
- package/dist/hooks/useVirtualList.d.ts +0 -74
- package/dist/index.js +0 -8
- package/dist/libs.cjs.development.js +0 -1483
- package/dist/libs.cjs.development.js.map +0 -1
- package/dist/libs.cjs.production.min.js +0 -2
- package/dist/libs.cjs.production.min.js.map +0 -1
- package/dist/libs.esm.js +0 -1455
- package/dist/libs.esm.js.map +0 -1
- package/dist/utils/calc.d.ts +0 -20
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/nextTick.d.ts +0 -14
- package/dist/utils/openModal.d.ts +0 -15
- package/dist/utils/util.d.ts +0 -6
- package/dist/utils/version.d.ts +0 -70
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
interface MyButtonProps {
|
|
4
|
+
type?: 'primary' | 'default' | 'dashed' | 'text' | 'link';
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
custom?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const MyButton: React.FC<MyButtonProps>;
|
|
10
|
+
export default MyButton;
|
package/dist/constants/date.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const DATE_FORMAT: {
|
|
2
|
-
YMD_Hms: string;
|
|
3
|
-
YMD: string;
|
|
4
|
-
YMD2: string;
|
|
5
|
-
YMD_POINT: string;
|
|
6
|
-
Hms: string;
|
|
7
|
-
Hm: string;
|
|
8
|
-
YMD_000: string;
|
|
9
|
-
YMD_end: string;
|
|
10
|
-
YMD_Hm: string;
|
|
11
|
-
};
|
|
1
|
+
export declare const DATE_FORMAT: {
|
|
2
|
+
YMD_Hms: string;
|
|
3
|
+
YMD: string;
|
|
4
|
+
YMD2: string;
|
|
5
|
+
YMD_POINT: string;
|
|
6
|
+
Hms: string;
|
|
7
|
+
Hm: string;
|
|
8
|
+
YMD_000: string;
|
|
9
|
+
YMD_end: string;
|
|
10
|
+
YMD_Hm: string;
|
|
11
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './date';
|
|
2
|
-
export * from './pageInfo';
|
|
3
|
-
export * from './pattern';
|
|
1
|
+
export * from './date';
|
|
2
|
+
export * from './pageInfo';
|
|
3
|
+
export * from './pattern';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PAGE_SIZE = 10;
|
|
1
|
+
export declare const PAGE_SIZE = 10;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export declare class PatternType {
|
|
2
|
-
static readonly integerRegex: RegExp;
|
|
3
|
-
static readonly positiveIntegerRegex: RegExp;
|
|
4
|
-
static readonly negativeIntegerRegex: RegExp;
|
|
5
|
-
static readonly floatRegex: RegExp;
|
|
6
|
-
static readonly letter: RegExp;
|
|
7
|
-
static readonly chinese: RegExp;
|
|
8
|
-
static readonly number: RegExp;
|
|
9
|
-
static readonly username: RegExp;
|
|
10
|
-
static readonly strongUsername: RegExp;
|
|
11
|
-
static readonly password: RegExp;
|
|
12
|
-
static readonly strongPassword: RegExp;
|
|
13
|
-
static readonly phone: RegExp;
|
|
14
|
-
static readonly phoneWithAreaCode: RegExp;
|
|
15
|
-
static readonly email: RegExp;
|
|
16
|
-
static readonly idCard: RegExp;
|
|
17
|
-
static readonly bankCard: RegExp;
|
|
18
|
-
static readonly zipCode: RegExp;
|
|
19
|
-
static readonly ip: RegExp;
|
|
20
|
-
static readonly url: RegExp;
|
|
21
|
-
static readonly carNumber: RegExp;
|
|
22
|
-
static readonly time: RegExp;
|
|
23
|
-
static readonly date: RegExp;
|
|
24
|
-
}
|
|
1
|
+
export declare class PatternType {
|
|
2
|
+
static readonly integerRegex: RegExp;
|
|
3
|
+
static readonly positiveIntegerRegex: RegExp;
|
|
4
|
+
static readonly negativeIntegerRegex: RegExp;
|
|
5
|
+
static readonly floatRegex: RegExp;
|
|
6
|
+
static readonly letter: RegExp;
|
|
7
|
+
static readonly chinese: RegExp;
|
|
8
|
+
static readonly number: RegExp;
|
|
9
|
+
static readonly username: RegExp;
|
|
10
|
+
static readonly strongUsername: RegExp;
|
|
11
|
+
static readonly password: RegExp;
|
|
12
|
+
static readonly strongPassword: RegExp;
|
|
13
|
+
static readonly phone: RegExp;
|
|
14
|
+
static readonly phoneWithAreaCode: RegExp;
|
|
15
|
+
static readonly email: RegExp;
|
|
16
|
+
static readonly idCard: RegExp;
|
|
17
|
+
static readonly bankCard: RegExp;
|
|
18
|
+
static readonly zipCode: RegExp;
|
|
19
|
+
static readonly ip: RegExp;
|
|
20
|
+
static readonly url: RegExp;
|
|
21
|
+
static readonly carNumber: RegExp;
|
|
22
|
+
static readonly time: RegExp;
|
|
23
|
+
static readonly date: RegExp;
|
|
24
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './utils';
|
|
1
|
+
export { default as MyButton } from './components/MyButton';
|
|
2
|
+
export { default as MyInput } from './components/MyInput';
|
|
3
|
+
export * from './constants';
|