@nutui/nutui-react 2.0.5-beta.0 → 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/CHANGELOG.md +7 -0
- package/dist/esm/Address.js +30 -17
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/types/src/packages/address/address.d.ts +9 -2
- package/dist/esm/types/src/packages/address/address.taro.d.ts +8 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +28 -14
- package/dist/nutui.react.umd.js +28 -14
- package/dist/packages/button/button.scss +6 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/address/address.d.ts +13 -2
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ForwardRefRenderFunction } from 'react';
|
|
2
2
|
import { AddressList } from './type';
|
|
3
3
|
import { CascaderOption, CascaderOptionKey, CascaderProps, CascaderValue } from '../../packages/cascader/index';
|
|
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,6 @@ export interface AddressProps extends CascaderProps {
|
|
|
56
65
|
*/
|
|
57
66
|
onExistSelect?: (data: AddressList) => void
|
|
58
67
|
}
|
|
59
|
-
export declare const
|
|
68
|
+
export declare const InternalAddress: ForwardRefRenderFunction<AddressRef, Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'onLoad' | 'title'>>;
|
|
69
|
+
export declare const Address: React.ForwardRefExoticComponent<Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "defaultValue" | "onChange" | "onLoad"> & React.RefAttributes<AddressRef>>;
|
|
70
|
+
export {};
|