@tuya-miniapp/smart-ui 2.3.4-beta-2 → 2.3.4-beta-3

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.
@@ -164,6 +164,7 @@ SmartComponent({
164
164
  onClick() {
165
165
  this.onOpen();
166
166
  },
167
+ noop() { },
167
168
  onOpen() {
168
169
  this.getButtonPosition();
169
170
  this.setData({
@@ -14,7 +14,7 @@
14
14
 
15
15
  <view class="smart-popover-button" catch:tap="onClick">
16
16
  <slot />
17
- <view wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
17
+ <view catch:tap="noop" wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
18
18
  <slot name="overlay" />
19
19
  <view class="smart-popover-overlay-arrow" style="background-image: url('{{iconSrc}}'); transform: {{iconTransform}}; {{iconPos}}: {{iconPosVal}}px;width: {{iconWidth}};height:{{iconHeight}};background-size: {{iconWidth}} {{iconHeight}};{{iconStyle}}"></view>
20
20
  </view>
@@ -179,6 +179,7 @@ function createSvgIcon(svg) {
179
179
  onClick: function () {
180
180
  this.onOpen();
181
181
  },
182
+ noop: function () { },
182
183
  onOpen: function () {
183
184
  var _this = this;
184
185
  this.getButtonPosition();
@@ -14,7 +14,7 @@
14
14
 
15
15
  <view class="smart-popover-button" catch:tap="onClick">
16
16
  <slot />
17
- <view wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
17
+ <view catch:tap="noop" wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
18
18
  <slot name="overlay" />
19
19
  <view class="smart-popover-overlay-arrow" style="background-image: url('{{iconSrc}}'); transform: {{iconTransform}}; {{iconPos}}: {{iconPosVal}}px;width: {{iconWidth}};height:{{iconHeight}};background-size: {{iconWidth}} {{iconHeight}};{{iconStyle}}"></view>
20
20
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.3.4-beta-2",
3
+ "version": "2.3.4-beta-3",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",