cv-dialog-bottom 模态弹窗-底部 ¶
简要 ¶
底部过度弹入弹出
示例 ¶
vue
<template>
<view class="content">
<view class="components-title">
<view class="components-title-t">cv-dialog-bottom</view>
<view class="components-title-d">底部弹窗</view>
</view>
<cv-dialog-bottom :show="show" @confirm="onConfirm">
<view>t弹窗内容</view>
<view>t弹窗内容</view>
<view>t弹窗内容</view>
</cv-dialog-bottom>
<button @tap="showModal">显示弹窗</button>
</view>
</template>
<script>
export default {
data() {
return {
show: false
};
},
onLoad() {},
methods: {
showModal() {
this.show = true;
},
onConfirm(e) {
this.show = false;
}
}
};
</script>
<style>
button {
font-size: 14px;
width: 260px;
}
</style>
属性 ¶
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
show | Boolean | false | 是否显示弹窗 |
事件 ¶
事件名 | 说明 | 返回值 |
---|---|---|
confirm | 监听点击确定或取消按钮 | Bollean |