shineout 2.0.3-beta.4 → 2.0.3
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/css/Form/Props.d.ts +1 -1
- package/css/Pagination/Props.d.ts +2 -2
- package/css/index.js +1 -1
- package/css/utils/validate/regExp.js +1 -2
- package/dist/shineout.js +27509 -27556
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Form/Props.d.ts +1 -1
- package/es/Pagination/Props.d.ts +2 -2
- package/es/index.js +1 -1
- package/es/utils/validate/regExp.js +1 -2
- package/lib/Form/Props.d.ts +1 -1
- package/lib/Pagination/Props.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/utils/validate/regExp.js +1 -2
- package/package.json +1 -1
package/css/Form/Props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { StandardProps } from '../@types/common';
|
|
3
3
|
import { SelectProps } from '../Select/Props';
|
|
4
4
|
export interface TextParams {
|
|
@@ -39,7 +39,7 @@ export interface PaginationProps extends StandardProps {
|
|
|
39
39
|
* @cn 子组件布局,可选值为:'links': 页码;'simple': 简约页码(和links不要同时使用);'list': 每页数量选择。'jumper': 跳转页码;function({ current, total, pageSize }): 匿名函数,用来信息展示
|
|
40
40
|
* @default ['links']
|
|
41
41
|
*/
|
|
42
|
-
layout?: Array<'links' | 'simple' | 'list' | 'jumper' | ((props: PaginationProps) =>
|
|
42
|
+
layout?: Array<'links' | 'simple' | 'list' | 'jumper' | ((props: PaginationProps) => ReactNode)>;
|
|
43
43
|
/**
|
|
44
44
|
* @en The callback function when current page or pageSize is changing。current: new page number。pageSize: number of each page
|
|
45
45
|
* @cn 页码或每页显示数量改变时回调。current: 新的页码。pageSize: 每页数量
|
package/css/index.js
CHANGED
|
@@ -19,11 +19,10 @@ var _default = function _default(regExp, options) {
|
|
|
19
19
|
|
|
20
20
|
if (reg.global) reg.lastIndex = 0;
|
|
21
21
|
|
|
22
|
-
if (
|
|
22
|
+
if (reg.test(value)) {
|
|
23
23
|
callback(true);
|
|
24
24
|
} else {
|
|
25
25
|
callback(new Error(message));
|
|
26
|
-
return;
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
};
|