vant-weapp/dist/datetime-picker/date-picker-view.wxml
2018-06-29 10:57:04 +08:00

35 lines
1015 B
Plaintext

<import src="./picker-view-column.wxml" />
<template name="date-picker-view">
<picker-view
value="{{ selected }}"
bindchange="change"
indicator-style="height: 50px;"
class="picker-visible">
<template
is="picker-view-column"
data="{{ data: dataList[0], className: 'year-view-column', hidden: !use['years'], tip: '年' }}"
/>
<template
is="picker-view-column"
data="{{ data: dataList[1], hidden: !use['months'], tip: '月' }}"
/>
<template
is="picker-view-column"
data="{{ data: dataList[2], hidden: !use['days'], tip: '日' }}"
/>
<template
is="picker-view-column"
data="{{ data: dataList[3], hidden: !use['hours'], tip: '时' }}"
/>
<template
is="picker-view-column"
data="{{ data: dataList[4], hidden: !use['minutes'], tip: '分' }}"
/>
<template
is="picker-view-column"
data="{{ data: dataList[5], hidden: !use['seconds'], tip: '秒' }}"
/>
</picker-view>
</template>