2021-12-21 09:51:43 +08:00

361 lines
9.4 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<main>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
选择完整时间
</wx-view>
<van-datetime-picker
data-type="datetime"
bind:input="onInput"
>
<van-picker
activeClass="active-class"
class="van-datetime-picker"
columnClass="column-class"
toolbarClass="toolbar-class"
bind:cancel="onCancel"
bind:change="onChange"
bind:confirm="onConfirm"
>
<wx-view
class="van-picker custom-class"
>
<wx-view
class="van-picker__toolbar toolbar-class"
>
<wx-view
class="van-picker__cancel"
data-type="cancel"
hoverClass="van-picker__cancel--hover"
hoverStayTime="70"
bind:tap="emit"
>
取消
</wx-view>
<wx-view
class="van-picker__confirm"
data-type="confirm"
hoverClass="van-picker__confirm--hover"
hoverStayTime="70"
bind:tap="emit"
>
确认
</wx-view>
</wx-view>
<wx-view
class="van-picker__columns"
style="height:264px"
catch:touchmove="noop"
>
<wx-view
class="van-picker__mask"
style="background-size:100% 110px"
/>
<wx-view
class="van-picker__frame van-hairline--top-bottom"
style="height:44px"
/>
</wx-view>
</wx-view>
</van-picker>
</van-datetime-picker>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
选择日期(年月日)
</wx-view>
<van-datetime-picker
data-type="date"
bind:input="onInput"
>
<van-picker
activeClass="active-class"
class="van-datetime-picker"
columnClass="column-class"
toolbarClass="toolbar-class"
bind:cancel="onCancel"
bind:change="onChange"
bind:confirm="onConfirm"
>
<wx-view
class="van-picker custom-class"
>
<wx-view
class="van-picker__toolbar toolbar-class"
>
<wx-view
class="van-picker__cancel"
data-type="cancel"
hoverClass="van-picker__cancel--hover"
hoverStayTime="70"
bind:tap="emit"
>
取消
</wx-view>
<wx-view
class="van-picker__confirm"
data-type="confirm"
hoverClass="van-picker__confirm--hover"
hoverStayTime="70"
bind:tap="emit"
>
确认
</wx-view>
</wx-view>
<wx-view
class="van-picker__columns"
style="height:264px"
catch:touchmove="noop"
>
<wx-view
class="van-picker__mask"
style="background-size:100% 110px"
/>
<wx-view
class="van-picker__frame van-hairline--top-bottom"
style="height:44px"
/>
</wx-view>
</wx-view>
</van-picker>
</van-datetime-picker>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
选择日期(年月)
</wx-view>
<van-datetime-picker
data-type="year-month"
bind:input="onInput"
>
<van-picker
activeClass="active-class"
class="van-datetime-picker"
columnClass="column-class"
toolbarClass="toolbar-class"
bind:cancel="onCancel"
bind:change="onChange"
bind:confirm="onConfirm"
>
<wx-view
class="van-picker custom-class"
>
<wx-view
class="van-picker__toolbar toolbar-class"
>
<wx-view
class="van-picker__cancel"
data-type="cancel"
hoverClass="van-picker__cancel--hover"
hoverStayTime="70"
bind:tap="emit"
>
取消
</wx-view>
<wx-view
class="van-picker__confirm"
data-type="confirm"
hoverClass="van-picker__confirm--hover"
hoverStayTime="70"
bind:tap="emit"
>
确认
</wx-view>
</wx-view>
<wx-view
class="van-picker__columns"
style="height:264px"
catch:touchmove="noop"
>
<wx-view
class="van-picker__mask"
style="background-size:100% 110px"
/>
<wx-view
class="van-picker__frame van-hairline--top-bottom"
style="height:44px"
/>
</wx-view>
</wx-view>
</van-picker>
</van-datetime-picker>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
选择时间
</wx-view>
<van-datetime-picker
data-type="time"
bind:input="onInput"
>
<van-picker
activeClass="active-class"
class="van-datetime-picker"
columnClass="column-class"
toolbarClass="toolbar-class"
bind:cancel="onCancel"
bind:change="onChange"
bind:confirm="onConfirm"
>
<wx-view
class="van-picker custom-class"
>
<wx-view
class="van-picker__toolbar toolbar-class"
>
<wx-view
class="van-picker__cancel"
data-type="cancel"
hoverClass="van-picker__cancel--hover"
hoverStayTime="70"
bind:tap="emit"
>
取消
</wx-view>
<wx-view
class="van-picker__confirm"
data-type="confirm"
hoverClass="van-picker__confirm--hover"
hoverStayTime="70"
bind:tap="emit"
>
确认
</wx-view>
</wx-view>
<wx-view
class="van-picker__columns"
style="height:264px"
catch:touchmove="noop"
>
<wx-view
class="van-picker__mask"
style="background-size:100% 110px"
/>
<wx-view
class="van-picker__frame van-hairline--top-bottom"
style="height:44px"
/>
</wx-view>
</wx-view>
</van-picker>
</van-datetime-picker>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
选项过滤器
</wx-view>
<van-datetime-picker>
<van-picker
activeClass="active-class"
class="van-datetime-picker"
columnClass="column-class"
toolbarClass="toolbar-class"
bind:cancel="onCancel"
bind:change="onChange"
bind:confirm="onConfirm"
>
<wx-view
class="van-picker custom-class"
>
<wx-view
class="van-picker__toolbar toolbar-class"
>
<wx-view
class="van-picker__cancel"
data-type="cancel"
hoverClass="van-picker__cancel--hover"
hoverStayTime="70"
bind:tap="emit"
>
取消
</wx-view>
<wx-view
class="van-picker__confirm"
data-type="confirm"
hoverClass="van-picker__confirm--hover"
hoverStayTime="70"
bind:tap="emit"
>
确认
</wx-view>
</wx-view>
<wx-view
class="van-picker__columns"
style="height:264px"
catch:touchmove="noop"
>
<wx-view
class="van-picker__mask"
style="background-size:100% 110px"
/>
<wx-view
class="van-picker__frame van-hairline--top-bottom"
style="height:44px"
/>
</wx-view>
</wx-view>
</van-picker>
</van-datetime-picker>
</wx-view>
</demo-block>
<van-toast
id="van-toast"
>
<van-transition
customClass="van-toast__container"
/>
</van-toast>
</main>
`;