wangjiahai 2 years ago
parent
commit
d67d03382e
  1. 7
      uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue

7
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue

@ -1,5 +1,5 @@
<template>
<cover-view class="uni-date">
<view class="uni-date">
<view class="uni-date-editor" @click="show">
<slot>
<view class="uni-date-editor--x"
@ -109,7 +109,7 @@
:startPlaceholder="startPlaceholder" :endPlaceholder="endPlaceholder" :default-value="defaultValue"
:pleStatus="endMultipleStatus" :showMonth="false" :range="isRange" :hasTime="hasTime" :insert="false"
:hideSecond="hideSecond" @confirm="mobileChange" @maskClose="close" />
</cover-view>
</view>
</template>
<script>
/**
@ -482,6 +482,7 @@
if (this.isPhone) {
setTimeout(() => {
this.$refs.mobile.open()
this.$emit('showing', true)
}, 0);
return
}
@ -496,7 +497,6 @@
}).exec()
setTimeout(() => {
this.pickerVisible = !this.pickerVisible
this.$emit('showing', this.pickerVisible)
if (!this.isPhone && this.isRange && this.isFirstShow) {
this.isFirstShow = false
const {
@ -843,7 +843,6 @@
.uni-date {
width: 100%;
flex: 1;
z-index: 999;
}
.uni-date-x {

Loading…
Cancel
Save