This commit is contained in:
2024-03-01 17:47:44 +08:00
parent 2eb92c14f9
commit 73a486c2c6
12 changed files with 307 additions and 148 deletions

View File

@@ -5,14 +5,15 @@
<view class="uni-date-editor--x"
:class="{'uni-date-editor--x__disabled': disabled,'uni-date-x--border': border}">
<view v-if="!isRange" class="uni-date-x uni-date-single">
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22"
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22" v-if="showClearIcon"
style="padding-right: 5px;"></uni-icons>
<view class="uni-date__x-input">{{ displayValue || singlePlaceholderText }}</view>
<view class="uni-date__x-input" v-if="showClearIcon" >{{ displayValue || singlePlaceholderText }}</view>
<view class="uni-date__x-input" style="text-align: right;color: #FF9900; font-size: 14px;" v-if="!showClearIcon" >{{ displayValue || singlePlaceholderText }}</view>
</view>
<view v-else class="uni-date-x uni-date-range">
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22"></uni-icons>
<view class="uni-date__x-input text-center">
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22" ></uni-icons>
<view class="uni-date__x-input text-center" >
{{ displayRangeValue.startDate || startPlaceholderText }}
</view>