@nutui/nutui-react-taro 2.0.5 → 2.0.6

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/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.5 Wed Jul 19 2023 14:22:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.6 Fri Jul 21 2023 16:46:22 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,12 +1,21 @@
1
- import React, { FunctionComponent } from 'react';
1
+ import React from 'react';
2
2
  import { AddressList } from './type';
3
3
  import { CascaderOption, CascaderOptionKey, CascaderProps, CascaderValue } from '../../packages/cascader/index.taro';
4
+ type AddressRef = {
5
+ open: () => void;
6
+ close: () => void;
7
+ };
4
8
  export interface AddressProps extends CascaderProps {
5
9
  /**
6
10
  * 是否打开地址选择
7
11
  * @default -
8
12
  */
9
13
  visible: boolean
14
+ /**
15
+ * 初始地址选择打开/关闭状态
16
+ * @default -
17
+ */
18
+ defaultVisible: boolean
10
19
  value?: CascaderValue;
11
20
  defaultValue?: CascaderValue;
12
21
  /**
@@ -56,4 +65,5 @@ export interface AddressProps extends CascaderProps {
56
65
  */
57
66
  onExistSelect?: (data: AddressList) => void
58
67
  }
59
- export declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'onLoad' | 'title' | 'onClick'>>;
68
+ export declare const Address: React.ForwardRefExoticComponent<Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "title" | "defaultValue" | "onChange" | "onLoad"> & React.RefAttributes<AddressRef>>;
69
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",