[Improvement] Actionsheet: support lazy render (#1365)

This commit is contained in:
neverland
2018-06-29 20:34:55 +08:00
committed by GitHub
parent 35a28df51f
commit 0afbd92d32
8 changed files with 27 additions and 60 deletions

View File

@@ -1,6 +1,6 @@
<template>
<transition name="van-slide-bottom">
<div v-show="value" :class="b({ 'withtitle': title })">
<div v-if="shouldRender" v-show="value" :class="b({ 'withtitle': title })">
<div v-if="title" class="van-hairline--top-bottom" :class="b('header')">
<div v-text="title" />
<icon name="close" @click="onCancel" />