@tuya-miniapp/smart-ui 2.6.3-beta-0 → 2.6.3-beta-2

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.
@@ -7,7 +7,9 @@ interface DialogOptions {
7
7
  lang?: string;
8
8
  show?: boolean;
9
9
  title?: string;
10
- icon?: boolean;
10
+ icon?: boolean | string;
11
+ iconColor?: string;
12
+ iconSize?: string;
11
13
  nativeDisabled?: boolean;
12
14
  width?: string | number | null;
13
15
  zIndex?: number;
@@ -14,7 +14,12 @@ SmartComponent({
14
14
  !show && this.stopLoading();
15
15
  },
16
16
  },
17
- icon: Boolean,
17
+ icon: null,
18
+ iconColor: {
19
+ type: String,
20
+ value: '#F04C4C',
21
+ },
22
+ iconSize: String,
18
23
  title: String,
19
24
  message: String,
20
25
  theme: {
@@ -25,7 +25,7 @@
25
25
  wx:if="{{ title || useTitleSlot }}"
26
26
  class="{{ utils.bem('dialog__header', { isolated: !(message || useSlot) }) }}"
27
27
  >
28
- <smart-icon wx:if="{{ icon }}" class="smart-dialog__header-icon" custom-class="header-icon-class" name="{{ warningIcon }}" color="#F04C4C" />
28
+ <smart-icon wx:if="{{ icon }}" class="smart-dialog__header-icon" custom-class="header-icon-class" name="{{ icon === true ? warningIcon : icon }}" size="{{iconSize}}" color="{{iconColor}}" />
29
29
  <slot wx:if="{{ useTitleSlot }}" name="title" />
30
30
  <block wx:elif="{{ title }}">{{ title }}</block>
31
31
  </view>
@@ -7,7 +7,9 @@ interface DialogOptions {
7
7
  lang?: string;
8
8
  show?: boolean;
9
9
  title?: string;
10
- icon?: boolean;
10
+ icon?: boolean | string;
11
+ iconColor?: string;
12
+ iconSize?: string;
11
13
  nativeDisabled?: boolean;
12
14
  width?: string | number | null;
13
15
  zIndex?: number;
@@ -19,7 +19,12 @@ var dialog_1 = require("./dialog");
19
19
  !show && this.stopLoading();
20
20
  },
21
21
  },
22
- icon: Boolean,
22
+ icon: null,
23
+ iconColor: {
24
+ type: String,
25
+ value: '#F04C4C',
26
+ },
27
+ iconSize: String,
23
28
  title: String,
24
29
  message: String,
25
30
  theme: {
@@ -25,7 +25,7 @@
25
25
  wx:if="{{ title || useTitleSlot }}"
26
26
  class="{{ utils.bem('dialog__header', { isolated: !(message || useSlot) }) }}"
27
27
  >
28
- <smart-icon wx:if="{{ icon }}" class="smart-dialog__header-icon" custom-class="header-icon-class" name="{{ warningIcon }}" color="#F04C4C" />
28
+ <smart-icon wx:if="{{ icon }}" class="smart-dialog__header-icon" custom-class="header-icon-class" name="{{ icon === true ? warningIcon : icon }}" size="{{iconSize}}" color="{{iconColor}}" />
29
29
  <slot wx:if="{{ useTitleSlot }}" name="title" />
30
30
  <block wx:elif="{{ title }}">{{ title }}</block>
31
31
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.6.3-beta-0",
3
+ "version": "2.6.3-beta-2",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",