摘要:
css变量使用起来非常方便(html, css) 带有单位的需要使用计算属性(calc) 更多用法 链接 <div class='test' style="--color: red; --font: 18"></div> <style> .test { color: var(--color); fo 阅读全文
摘要:
setup中定义变量以及在style中的使用(有单位的需要calc 计算) setup() { const rotate = ref<number>(0); const color: string = "red"; const changeStatus = (): void => { rotate. 阅读全文