@nutui/nutui-react 2.0.8 → 2.0.9
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 +11 -0
- package/dist/esm/types/src/packages/notify/notify.taro.d.ts +11 -4
- package/dist/esm/types/src/utils/use-custom-event.d.ts +3 -0
- 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 +1 -1
- package/dist/nutui.react.umd.js +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# v2.0.9
|
|
2
|
+
`2023-08-02`
|
|
3
|
+
|
|
4
|
+
* :sparkles: feat(notify): 支持函数调用的展开和关闭 (#1271) @oasis-cloud
|
|
5
|
+
* :bug: fix: space 版本号修改为 2.0 (#1265) @oasis-cloud
|
|
6
|
+
* 🔨 chore(config): 优化 taro demo 环境配置文件 (#1266) @oasis-cloud
|
|
7
|
+
* 📖 docs: cascader 文档更新 (#1270) @vapao
|
|
8
|
+
* 📖 docs: tag 文档和 demo 同步 (#1275) @oasis-cloud
|
|
9
|
+
* 📖 docs: 升级文档更新 (#1274) @oasis-cloud
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
# v2.0.8
|
|
2
13
|
`2023-07-28`
|
|
3
14
|
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export type NotifyPosition = 'top' | 'bottom';
|
|
4
|
+
export type NotifyType = 'primary' | 'success' | 'danger' | 'waring';
|
|
3
5
|
export interface NotifyProps extends BasicComponent {
|
|
4
6
|
id?: string;
|
|
5
7
|
duration: number;
|
|
6
|
-
type:
|
|
7
|
-
position:
|
|
8
|
+
type: NotifyType;
|
|
9
|
+
position: NotifyPosition;
|
|
8
10
|
visible: boolean;
|
|
9
11
|
onClose: () => void;
|
|
10
12
|
onClick: () => void;
|
|
11
13
|
}
|
|
12
|
-
export declare const Notify: FunctionComponent<Partial<NotifyProps
|
|
14
|
+
export declare const Notify: FunctionComponent<Partial<NotifyProps>> & {
|
|
15
|
+
open: typeof open;
|
|
16
|
+
close: typeof close;
|
|
17
|
+
};
|
|
18
|
+
export declare function open(selector: string): void;
|
|
19
|
+
export declare function close(selector: string): void;
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
/*!
|
|
9
|
-
* @nutui/nutui-react v2.0.
|
|
9
|
+
* @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:36:23 GMT+0800 (China Standard Time)
|
|
10
10
|
* (c) 2023 @jdf2e.
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v2.0.
|
|
12
|
+
* @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:36:23 GMT+0800 (China Standard Time)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
package/dist/style.mjs
CHANGED
|
@@ -38,8 +38,8 @@ export interface CascaderProps extends PopupProps {
|
|
|
38
38
|
*/
|
|
39
39
|
defaultValue?: CascaderValue
|
|
40
40
|
/**
|
|
41
|
-
* 自定义options
|
|
42
|
-
* @default
|
|
41
|
+
* 自定义options中的关键字,valueKey、textKey、childrenKey
|
|
42
|
+
* @default {valueKey: 'value', textKey: 'text', childrenKey: 'children'}
|
|
43
43
|
*/
|
|
44
44
|
optionKey: CascaderOptionKey
|
|
45
45
|
/**
|