chore: fui-date-picker 增加top配置
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
:style="maskStyl" ref="fui_dpkm_ani" @tap.stop="maskClick"></view>
|
:style="maskStyl" ref="fui_dpkm_ani" @tap.stop="maskClick"></view>
|
||||||
<!-- fix:此处key值可解决Nvue端动态切换背景不生效的问题 -->
|
<!-- fix:此处key值可解决Nvue端动态切换背景不生效的问题 -->
|
||||||
<view :style="topBottom" :key="theme"
|
<view :style="topBottom" :key="theme"
|
||||||
:class="{ 'fui-dpk__content-dark': theme === 'dark', 'fui-dpk__content-light': theme !== 'dark', 'fui-dpk__content-show': isShow, 'fui-date__picker-radius': radius,'fui-date__picker-content_top':top || top===0, 'fui-date__picker-content':!top && top!==0}"
|
:class="{ 'fui-dpk__content-dark': theme === 'dark', 'fui-dpk__content-light': theme !== 'dark', 'fui-dpk__content-show': isShow&&(!top && top!==0), 'fui-dpk__content-show_top': isShow&&(top || top===0),'fui-date__picker-radius': radius,'fui-date__picker-content_top':top || top===0, 'fui-date__picker-content':!top && top!==0}"
|
||||||
ref="fui_dpk_ani">
|
ref="fui_dpk_ani">
|
||||||
<view class="fui-date__picker-header"
|
<view class="fui-date__picker-header"
|
||||||
:class="{ 'fui-dpk__header-dark': theme === 'dark', 'fui-date__picker-radius': radius }" :style="headerStyl">
|
:class="{ 'fui-dpk__header-dark': theme === 'dark', 'fui-date__picker-radius': radius }" :style="headerStyl">
|
||||||
@ -1190,14 +1190,15 @@ export default {
|
|||||||
.fui-date__picker-content_top {
|
.fui-date__picker-content_top {
|
||||||
/* #ifndef APP-NVUE */
|
/* #ifndef APP-NVUE */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
visibility: hidden;
|
|
||||||
/* #endif */
|
/* #endif */
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
||||||
/* #ifndef APP-NVUE */
|
/* #ifndef APP-NVUE */
|
||||||
transform: translate3d(0, -100%, 0);
|
/* transform: translate3d(0, -100%, 0); */
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
transition: all 0.25s ease-in-out;
|
transition: all 0.25s ease-in-out;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
|
|
||||||
@ -1220,6 +1221,14 @@ export default {
|
|||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
|
.fui-dpk__content-show_top {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
height: 608rpx;
|
||||||
|
/* #endif */
|
||||||
|
/* #ifdef APP-NVUE */
|
||||||
|
transform: translateY(0);
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
.fui-dpk__content-light {
|
.fui-dpk__content-light {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
Reference in New Issue
Block a user