完成账单用电初始版本(未联调)
This commit is contained in:
44
components/timePicker/index.wxml
Normal file
44
components/timePicker/index.wxml
Normal file
@@ -0,0 +1,44 @@
|
||||
<!--components/timePicker/index.wxml-->
|
||||
<van-popup
|
||||
show="{{ show }}"
|
||||
position="bottom"
|
||||
bind:close="onClose"
|
||||
>
|
||||
|
||||
<van-datetime-picker
|
||||
bind:confirm="onConfirm"
|
||||
bind:cancel="onCancel"
|
||||
wx:if="{{ type === 'day' }}"
|
||||
type="date"
|
||||
value="{{ day }}"
|
||||
min-date="{{ minDate }}"
|
||||
max-date="{{ maxDate }}"
|
||||
bind:input="onInput"
|
||||
formatter="{{formatter}}"
|
||||
title="日期"
|
||||
/>
|
||||
<van-datetime-picker
|
||||
bind:confirm="onConfirm"
|
||||
bind:cancel="onCancel"
|
||||
wx:if="{{ type === 'month' }}"
|
||||
value="{{ month }}"
|
||||
type="year-month"
|
||||
value="{{ currentDate }}"
|
||||
min-date="{{ minDate }}"
|
||||
max-date="{{ maxDate }}"
|
||||
bind:input="onInput"
|
||||
formatter="{{formatter}}"
|
||||
title="月份"
|
||||
/>
|
||||
<van-picker
|
||||
bind:confirm="onConfirm"
|
||||
bind:cancel="onCancel"
|
||||
wx:if="{{ type === 'year' }}"
|
||||
columns="{{ years }}"
|
||||
bind:change="onChange"
|
||||
title="年份"
|
||||
show-toolbar="{{true}}"
|
||||
cancel-button-text="取消"
|
||||
confirm-button-text="确定"
|
||||
/>
|
||||
</van-popup>
|
Reference in New Issue
Block a user