@ray-js/smart-ui 2.6.2 → 2.6.3-beta-1

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.
@@ -2,7 +2,7 @@
2
2
  /// <reference types="miniprogram-api-typings" />
3
3
  /// <reference types="miniprogram-api-typings" />
4
4
  import { SmartDialogProps } from './index';
5
- type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon'>;
5
+ type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon' | 'iconColor' | 'iconSize'>;
6
6
  type AnyObject = {};
7
7
  export type SmartDialogOptions = {
8
8
  /**
@@ -10,9 +10,20 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
10
10
  */
11
11
  title?: string;
12
12
  /**
13
- * 是否显示警告图标
13
+ * 是否显示警告图标 或 图标name属性
14
+ * @version 2.6.3 版本支持 string
14
15
  */
15
- icon?: boolean;
16
+ icon?: boolean | string;
17
+ /**
18
+ * 图标颜色
19
+ * @version 2.6.3
20
+ */
21
+ iconColor?: string;
22
+ /**
23
+ * 图标大小
24
+ * @version 2.6.3
25
+ */
26
+ iconSize?: string;
16
27
  /**
17
28
  * 输入框的值
18
29
  */
@@ -166,6 +177,12 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
166
177
  * @version 2.3.8
167
178
  */
168
179
  nativeDisabled?: boolean;
180
+ /**
181
+ * @description 回调自动关闭弹框
182
+ * @default false
183
+ * @version 2.6.3
184
+ */
185
+ autoClose?: boolean;
169
186
  }
170
187
  export interface SmartDialogEvents {
171
188
  /**
@@ -2,7 +2,7 @@
2
2
  /// <reference types="miniprogram-api-typings" />
3
3
  /// <reference types="miniprogram-api-typings" />
4
4
  import { SmartDialogProps } from './index';
5
- type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon'>;
5
+ type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon' | 'iconColor' | 'iconSize'>;
6
6
  type AnyObject = {};
7
7
  export type SmartDialogOptions = {
8
8
  /**
@@ -10,9 +10,20 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
10
10
  */
11
11
  title?: string;
12
12
  /**
13
- * 是否显示警告图标
13
+ * 是否显示警告图标 或 图标name属性
14
+ * @version 2.6.3 版本支持 string
14
15
  */
15
- icon?: boolean;
16
+ icon?: boolean | string;
17
+ /**
18
+ * 图标颜色
19
+ * @version 2.6.3
20
+ */
21
+ iconColor?: string;
22
+ /**
23
+ * 图标大小
24
+ * @version 2.6.3
25
+ */
26
+ iconSize?: string;
16
27
  /**
17
28
  * 输入框的值
18
29
  */
@@ -166,6 +177,12 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
166
177
  * @version 2.3.8
167
178
  */
168
179
  nativeDisabled?: boolean;
180
+ /**
181
+ * @description 回调自动关闭弹框
182
+ * @default false
183
+ * @version 2.6.3
184
+ */
185
+ autoClose?: boolean;
169
186
  }
170
187
  export interface SmartDialogEvents {
171
188
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.6.2",
3
+ "version": "2.6.3-beta-1",
4
4
  "description": "轻量、可靠的智能小程序 UI 组件库",
5
5
  "scripts": {
6
6
  "syncMiniappData": "node ./build/syncMiniappData.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@ray-js/components-ty-slider": "^0.3.4",
45
- "@tuya-miniapp/smart-ui": "^2.6.2",
45
+ "@tuya-miniapp/smart-ui": "2.6.3-beta-2",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {