我有一个用于Select2组件的Vue包装器,这是我不久前编写的。包装器能够访问bind:class和bind:style属性以传递给Select2库,如下所示: this.$vnode.data.staticClass // a string value of class="" attribut
this.$vnode.data.class //
如果我能找到一种方法,用一些Vue变量改变我的Vue组件中的<style>块的内容,那就太好了。围绕这个问题的常见问题和答案涉及使用内联样式,或者使用javascript访问.style属性,但是我希望更改滑块轨迹和伪元素,就像这里的问题一样:.slider::-webkit-slider-thumbneeded i