wffranco / vue-strap

Bootstrap components built with Vue.js
http://wffranco.github.io/vue-strap/
MIT License
338 stars 133 forks source link

the modal cannot be closed when click two times quickly in vue projects. #152

Open tyhyly opened 7 years ago

tyhyly commented 7 years ago

<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(); },

tyhyly commented 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 ?

dbarrington commented 7 years ago

I'd recommend you check out https://github.com/bootstrap-vue/bootstrap-vue This repo seems to be dead for awhile now.