@tuya-miniapp/smart-ui 2.13.1-beta-0 → 2.13.1-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.
@@ -22,8 +22,12 @@
22
22
  bind:after-leave="onAfterLeave"
23
23
  >
24
24
  <view wx:if="{{ title || useTitleSlot }}" class="smart-action-sheet__header">
25
- <block wx:if="{{ title }}">{{ title }}</block>
26
- <slot wx:else name="title" />
25
+ <view wx:if="{{ title }}">
26
+ {{ title }}
27
+ </view>
28
+ <view wx:else>
29
+ <slot name="title" />
30
+ </view>
27
31
  </view>
28
32
  <view wx:if="{{ description }}" class="smart-action-sheet__description smart-hairline--bottom">
29
33
  {{ description }}
@@ -61,7 +65,9 @@
61
65
  <smart-loading wx:else custom-class="smart-action-sheet__loading" size="22px" />
62
66
  </button>
63
67
  </scroll-view>
64
- <slot />
68
+ <view>
69
+ <slot />
70
+ </view>
65
71
  <block wx:if="{{ cancelText || confirmText }}">
66
72
  <view class="smart-action-sheet__gap" />
67
73
  <view class="smart-action-sheet__footer">
@@ -43,6 +43,10 @@ SmartComponent({
43
43
  type: String,
44
44
  value: '',
45
45
  },
46
+ overlayStyle: {
47
+ type: String,
48
+ value: '',
49
+ },
46
50
  trigger: {
47
51
  type: String,
48
52
  // tap | longpress
@@ -3,11 +3,11 @@
3
3
  <smart-overlay
4
4
  show="{{ currentShow }}"
5
5
  z-index="{{ zIndex }}"
6
+ custom-style="{{ overlayStyle }}"
6
7
  bind:click="onClose"
7
8
  duration="{{ 1 }}"
8
9
  close-on-click-overlay
9
10
  bind:close="onClose"
10
- z-index="{{zIndex}}"
11
11
  >
12
12
 
13
13
  </smart-overlay>
@@ -22,8 +22,12 @@
22
22
  bind:after-leave="onAfterLeave"
23
23
  >
24
24
  <view wx:if="{{ title || useTitleSlot }}" class="smart-action-sheet__header">
25
- <block wx:if="{{ title }}">{{ title }}</block>
26
- <slot wx:else name="title" />
25
+ <view wx:if="{{ title }}">
26
+ {{ title }}
27
+ </view>
28
+ <view wx:else>
29
+ <slot name="title" />
30
+ </view>
27
31
  </view>
28
32
  <view wx:if="{{ description }}" class="smart-action-sheet__description smart-hairline--bottom">
29
33
  {{ description }}
@@ -61,7 +65,9 @@
61
65
  <smart-loading wx:else custom-class="smart-action-sheet__loading" size="22px" />
62
66
  </button>
63
67
  </scroll-view>
64
- <slot />
68
+ <view>
69
+ <slot />
70
+ </view>
65
71
  <block wx:if="{{ cancelText || confirmText }}">
66
72
  <view class="smart-action-sheet__gap" />
67
73
  <view class="smart-action-sheet__footer">
@@ -56,6 +56,10 @@ function createSvgIcon(svg) {
56
56
  type: String,
57
57
  value: '',
58
58
  },
59
+ overlayStyle: {
60
+ type: String,
61
+ value: '',
62
+ },
59
63
  trigger: {
60
64
  type: String,
61
65
  // tap | longpress
@@ -3,11 +3,11 @@
3
3
  <smart-overlay
4
4
  show="{{ currentShow }}"
5
5
  z-index="{{ zIndex }}"
6
+ custom-style="{{ overlayStyle }}"
6
7
  bind:click="onClose"
7
8
  duration="{{ 1 }}"
8
9
  close-on-click-overlay
9
10
  bind:close="onClose"
10
- z-index="{{zIndex}}"
11
11
  >
12
12
 
13
13
  </smart-overlay>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.13.1-beta-0",
3
+ "version": "2.13.1-beta-2",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",