@tuya-miniapp/smart-ui 2.3.0-beta-8 → 2.3.0-beta-10
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/dist/circle/index.js +54 -9
- package/dist/circle/index.wxml +9 -1
- package/dist/common/appLog.js +6 -6
- package/dist/common/utils.d.ts +1 -2
- package/dist/common/utils.js +6 -3
- package/dist/datetime-picker/index.js +5 -2
- package/dist/dialog/dialog.js +1 -0
- package/dist/dialog/index.js +7 -0
- package/dist/dialog/index.wxml +2 -0
- package/dist/mixins/transition.js +79 -77
- package/dist/popover/index.css +1 -1
- package/dist/popover/index.js +24 -10
- package/dist/popover/index.json +0 -1
- package/dist/popover/index.wxml +5 -7
- package/dist/popover/index.wxss +1 -1
- package/dist/popup/popup.wxml +0 -1
- package/dist/transition/index.wxml +0 -1
- package/lib/circle/index.js +56 -9
- package/lib/circle/index.wxml +9 -1
- package/lib/common/appLog.js +6 -6
- package/lib/common/utils.d.ts +1 -2
- package/lib/common/utils.js +6 -3
- package/lib/datetime-picker/index.js +5 -2
- package/lib/dialog/dialog.js +1 -0
- package/lib/dialog/index.js +7 -0
- package/lib/dialog/index.wxml +2 -0
- package/lib/mixins/transition.js +150 -88
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.js +25 -10
- package/lib/popover/index.json +0 -1
- package/lib/popover/index.wxml +5 -7
- package/lib/popover/index.wxss +1 -1
- package/lib/popup/popup.wxml +0 -1
- package/lib/transition/index.wxml +0 -1
- package/package.json +1 -1
package/lib/popover/index.wxml
CHANGED
@@ -12,14 +12,12 @@
|
|
12
12
|
|
13
13
|
</smart-overlay>
|
14
14
|
|
15
|
-
<view class="smart-popover-button"
|
15
|
+
<view class="smart-popover-button" catch:tap="onClick">
|
16
16
|
<slot />
|
17
|
-
<smart-
|
18
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
</view>
|
22
|
-
</smart-transition>
|
17
|
+
<view wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
|
18
|
+
<slot name="overlay" />
|
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
|
+
</view>
|
23
21
|
</view>
|
24
22
|
|
25
23
|
</view>
|
package/lib/popover/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.smart-popover{--overlay-background-color:transparent;position:relative}.smart-popover,.smart-popover-button{display:inline-block}.smart-popover-overlay{background-color:var(--popover-background-color,var(--app-B4,#fff));border-radius:var(--popover-border-radius,12px);box-shadow:var(--popover-box-shadow,0 6px 12px 0 rgba(0,0,0,.1));padding:var(--popover-padding,12px);position:absolute;z-index:102}.smart-popover-overlay-arrow{background-position:50%;background-repeat:no-repeat;position:absolute}
|
1
|
+
@import '../common/index.wxss';.smart-popover{--overlay-background-color:transparent;position:relative}.smart-popover,.smart-popover-button{display:inline-block}.smart-popover-overlay{background-color:var(--popover-background-color,var(--app-B4,#fff));border-radius:var(--popover-border-radius,12px);box-shadow:var(--popover-box-shadow,0 6px 12px 0 rgba(0,0,0,.1));opacity:0;padding:var(--popover-padding,12px);position:absolute;transition:opacity .3s ease-in-out;z-index:102}.smart-popover-overlay-arrow{background-position:50%;background-repeat:no-repeat;position:absolute}
|
package/lib/popup/popup.wxml
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
wx:if="{{ inited }}"
|
5
5
|
class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safeTop: safeAreaInsetTop, safeTabBar: safeAreaTabBar }]) }}"
|
6
6
|
style="{{ computed.popupStyle({ zIndex, currentDuration, display, customStyle, bottomSafeHeight }) }}"
|
7
|
-
bind:transitionend="onTransitionEnd"
|
8
7
|
catch:touchmove="{{ lockScroll ? 'noop' : ''}}"
|
9
8
|
>
|
10
9
|
<slot />
|