Using vue js with selectpicker

前端 未结 1 387
野性不改
野性不改 2021-01-27 16:31

I\'m using Vue.js to add multiple rows, each row contain two datetimepicker inputs and a bootstrap-select.

My problem is when I fill the inputs and click to add a new ro

相关标签:
1条回答
  • 2021-01-27 17:20

    You really need to write a wrapper component. Vue expects to control the DOM and not to have you making DOM-changing things like the *picker calls at arbitrary times. However, a component gives you the opportunity to tell your component how to interact with the DOM in each of its lifecycle hooks so that its behavior can be consistent. See the JavaScript tab on the wrapper component example page.

    0 讨论(0)
提交回复
热议问题