@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 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 React, { FunctionComponent } from 'react';
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: string;
7
- position: string;
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> & React.HTMLAttributes<HTMLDivElement>>;
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;
@@ -0,0 +1,3 @@
1
+ export declare const customEvents: TaroGeneral.Events;
2
+ export declare function useCustomEventsPath(selector: string): string;
3
+ export declare function useCustomEvent(selector: string, cb: any): (<T = any>(args: T) => void)[];
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:43 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:37:08 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  var _a;
8
8
  /*!
9
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:56:52 GMT+0800 (China Standard Time)
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
  */
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:56:52 GMT+0800 (China Standard Time)
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:57:22 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.9 Wed Aug 02 2023 15:36:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -38,8 +38,8 @@ export interface CascaderProps extends PopupProps {
38
38
  */
39
39
  defaultValue?: CascaderValue
40
40
  /**
41
- * 自定义options结构中,包含 textKey、valueKey、childrenKey
42
- * @default -
41
+ * 自定义options中的关键字,valueKey、textKey、childrenKey
42
+ * @default {valueKey: 'value', textKey: 'text', childrenKey: 'children'}
43
43
  */
44
44
  optionKey: CascaderOptionKey
45
45
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",