【发布时间】:2019-10-06 15:01:01
【问题描述】:
我想添加一个像这两个这样的自定义属性并触发其他事件。但我不知道它们是如何工作的。
例如:
<b-button v-b-modal.modal-1>Launch demo modal</b-button>
// Generated html5 tag
<button type="button" class="btn btn-secondary">Launch demo modal</button>
生成的 html5 目标上没有使用额外的属性以供参考,也没有显式注册事件侦听器。
幕后发生了什么? v-b-modal 是如何使用的?
【问题讨论】:
标签: vue.js bootstrap-vue