Open tyhyly opened 7 years ago
when i clicked span quickly ,the modal cannot be closed when click ok button or other parts in window. who can help me ?
I'd recommend you check out https://github.com/bootstrap-vue/bootstrap-vue This repo seems to be dead for awhile now.
<span @click="showPieChart()">查看图表</span>
<Modal v-model="showChart" @ok="showChart = false" effect="zoom">
<div slot="modal-footer" class="modal-footer">
<button type="button" class="btn btn-default" @click="showChart = false">OK</button>
</div>
</Modal>
data(){ return { showChart : false, } } showPieChart() { if(this.showChart) return; this.showChart = true; this.updateChartOption(); },