cv-dialog-share 分享弹窗 ¶
组件名:cv-dialog-share
,
示例 ¶
vue
<template>
<view class="content">
<view class="components-title">
<view class="components-title-t">cv-dialog-share</view>
<view class="components-title-d">加载中弹框</view>
</view>
<cv-dialog-share v-model="isDiaShareShow" />
<view @click="changeDiaShow">显示</view>
<cv-dialog-share :show="show" />
<button @tap="showModal">点击显示分享</button>
</view>
</template>
<script>
export default {
data() {
return {
isDiaShareShow: false,
show: false
};
},
onLoad() {},
methods: {
showModal() {
this.show = true;
setTimeout(() => {
this.show = false;
}, 3000);
},
changeDiaShow() {
this.isDiaShareShow = true;
},
clickTest(e) {}
}
};
</script>
<style>
button {
font-size: 14px;
width: 260px;
}
</style>