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.
@@ -14,7 +14,7 @@ export interface FieldSetChildrenFunc<Value = any> {
14
14
  (params: {
15
15
  list: any;
16
16
  value: Value;
17
- onChange: (value: Value) => void;
17
+ onChange: (value: Value[]) => void;
18
18
  onRemove: () => void;
19
19
  index: number;
20
20
  onInsert: (value: Value) => void;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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) => string)>;
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
@@ -220,6 +220,6 @@ exports.Upload = _Upload.default;
220
220
  // Created by scripts/src-index.js.
221
221
  var _default = {
222
222
  utils: utils,
223
- version: '2.0.3-beta.4'
223
+ version: '2.0.3'
224
224
  };
225
225
  exports.default = _default;
@@ -19,11 +19,10 @@ var _default = function _default(regExp, options) {
19
19
 
20
20
  if (reg.global) reg.lastIndex = 0;
21
21
 
22
- if (typeof value === 'string' && reg.test(value)) {
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
  };