@nutui/nutui-react 2.6.10 → 2.6.12

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.
@@ -0,0 +1,2 @@
1
+ import { FormInstance, NamePath } from './types';
2
+ export declare function useWatch(namePath: NamePath, form: FormInstance): undefined;
@@ -6,7 +6,7 @@ export interface FormItemRuleWithoutValidator {
6
6
  message?: string;
7
7
  }
8
8
  export interface FormItemRule extends FormItemRuleWithoutValidator {
9
- validator?: (ruleCfg: FormItemRuleWithoutValidator, value: string) => boolean | string | Promise<boolean | string>;
9
+ validator?: (ruleCfg: FormItemRuleWithoutValidator, value: any) => boolean | string | Promise<boolean | string>;
10
10
  }
11
11
  export interface BaseFormField {
12
12
  /**
@@ -49,6 +49,11 @@ export interface ImagePreviewProps extends BasicComponent {
49
49
  */
50
50
  closeOnContentClick: boolean
51
51
  /**
52
+ * 分页是否展示
53
+ * @default true
54
+ */
55
+ pagination: boolean
56
+ /**
52
57
  * 分页指示器是否展示
53
58
  * @default false
54
59
  */
@@ -20,6 +20,7 @@ export interface ImagePreviewProps extends BasicComponent {
20
20
  value?: number;
21
21
  defaultValue: number;
22
22
  closeOnContentClick: boolean;
23
+ pagination: boolean;
23
24
  indicator: boolean;
24
25
  indicatorColor: string;
25
26
  closeIcon: boolean | ReactNode;
@@ -1,3 +1,4 @@
1
1
  import { Table } from './table';
2
2
  export type { TableProps } from './table';
3
+ export type { TableColumnProps } from './types';
3
4
  export default Table;
@@ -1,3 +1,4 @@
1
1
  import { Table } from './table.taro';
2
2
  export type { TableProps } from './table.taro';
3
+ export type { TableColumnProps } from './types';
3
4
  export default Table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.6.10",
3
+ "version": "2.6.12",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",