@tuya-miniapp/smart-ui 2.6.0-beta-1 → 2.6.0-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.
- package/dist/bottom-sheet/index.css +1 -1
- package/dist/bottom-sheet/index.js +1 -0
- package/dist/bottom-sheet/index.wxml +2 -2
- package/dist/bottom-sheet/index.wxss +1 -1
- package/dist/cascader/index.wxml +2 -2
- package/lib/bottom-sheet/index.css +1 -1
- package/lib/bottom-sheet/index.js +1 -0
- package/lib/bottom-sheet/index.wxml +2 -2
- package/lib/bottom-sheet/index.wxss +1 -1
- package/lib/cascader/index.wxml +2 -2
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
1
|
+
@import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__content_height{overflow-y:visible}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
overlay="{{ overlay }}"
|
10
10
|
custom-class="smart-bottom-sheet custom-class"
|
11
11
|
native-disabled="{{ nativeDisabled }}"
|
12
|
-
customStyle="{{contentHeight ? 'max-height: fit-content;' : ''}}"
|
12
|
+
customStyle="{{contentHeight ? 'max-height: fit-content;' : maxHeight ? 'max-height: ' + maxHeight + ';' : ''}}"
|
13
13
|
safe-area-inset-bottom="{{false}}"
|
14
14
|
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
15
15
|
root-portal="{{ rootPortal }}"
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<smart-icon bind:click="onClose" name="{{ xmarkIcon }}" class="smart-bottom-sheet__icon" size="{{ iconSize }}" color="{{ xmarkIconColor }}" />
|
27
27
|
</view>
|
28
28
|
|
29
|
-
<view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content" style="{{computed.getHeight(contentHeight)}}">
|
29
|
+
<view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content smart-bottom-sheet__content_height" style="{{computed.getHeight(contentHeight)}}">
|
30
30
|
<slot />
|
31
31
|
</view>
|
32
32
|
<scroll-view wx:else class="smart-bottom-sheet__content">
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
1
|
+
@import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__content_height{overflow-y:visible}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
package/dist/cascader/index.wxml
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
<!-- 暂不支持 -->
|
36
36
|
<!-- <slot name="options-top"></slot> -->
|
37
37
|
|
38
|
-
<view class="smart-cascader__options">
|
38
|
+
<scroll-view class="smart-cascader__options" scroll-y>
|
39
39
|
<view
|
40
40
|
wx:for="{{ tab.options }}"
|
41
41
|
wx:for-item="option"
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<text>{{ option.text }}</text>
|
50
50
|
<smart-icon wx:if="{{ utils.isSelected(tab, option) }}" name="success" size="18" />
|
51
51
|
</view>
|
52
|
-
</view>
|
52
|
+
</scroll-view>
|
53
53
|
<!-- 暂不支持 -->
|
54
54
|
<!-- <slot name="options-bottom"></slot> -->
|
55
55
|
</smart-tab>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
1
|
+
@import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__content_height{overflow-y:visible}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
overlay="{{ overlay }}"
|
10
10
|
custom-class="smart-bottom-sheet custom-class"
|
11
11
|
native-disabled="{{ nativeDisabled }}"
|
12
|
-
customStyle="{{contentHeight ? 'max-height: fit-content;' : ''}}"
|
12
|
+
customStyle="{{contentHeight ? 'max-height: fit-content;' : maxHeight ? 'max-height: ' + maxHeight + ';' : ''}}"
|
13
13
|
safe-area-inset-bottom="{{false}}"
|
14
14
|
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
15
15
|
root-portal="{{ rootPortal }}"
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<smart-icon bind:click="onClose" name="{{ xmarkIcon }}" class="smart-bottom-sheet__icon" size="{{ iconSize }}" color="{{ xmarkIconColor }}" />
|
27
27
|
</view>
|
28
28
|
|
29
|
-
<view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content" style="{{computed.getHeight(contentHeight)}}">
|
29
|
+
<view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content smart-bottom-sheet__content_height" style="{{computed.getHeight(contentHeight)}}">
|
30
30
|
<slot />
|
31
31
|
</view>
|
32
32
|
<scroll-view wx:else class="smart-bottom-sheet__content">
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
1
|
+
@import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__content_height{overflow-y:visible}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
|
package/lib/cascader/index.wxml
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
<!-- 暂不支持 -->
|
36
36
|
<!-- <slot name="options-top"></slot> -->
|
37
37
|
|
38
|
-
<view class="smart-cascader__options">
|
38
|
+
<scroll-view class="smart-cascader__options" scroll-y>
|
39
39
|
<view
|
40
40
|
wx:for="{{ tab.options }}"
|
41
41
|
wx:for-item="option"
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<text>{{ option.text }}</text>
|
50
50
|
<smart-icon wx:if="{{ utils.isSelected(tab, option) }}" name="success" size="18" />
|
51
51
|
</view>
|
52
|
-
</view>
|
52
|
+
</scroll-view>
|
53
53
|
<!-- 暂不支持 -->
|
54
54
|
<!-- <slot name="options-bottom"></slot> -->
|
55
55
|
</smart-tab>
|