mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
35 lines
1015 B
Plaintext
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> |