vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 429 forks source link

v-bind CSS函数在vue-class-component8.0中不起作用(The 'v-bind' CSS function does not work with 'vue-class-component8.0') #575

Open xiaobaiku opened 2 years ago

xiaobaiku commented 2 years ago
// script 
export default class MenuButton extends Vue {
  color = 'red';
}

// style
div {
  width: 20px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background-color: v-bind(color);
}

// browser
// 浏览器中没有生成--hash-color:red 样式(The --hash-color:red style is not generated in the browser)
CHristopherkeith commented 1 year ago

+1...

wangfutao commented 1 year ago

+1