vue-styled-components
vue-styled-components copied to clipboard
A CSS tool similar to styled-components. Help you to develop your apps fastly!
**🚧 signifies that the work is in process.** The following needs to be done: **Feature** - [x] Support passing type for props. (#11) - [x] Support passing type for attributes....
以前没用过这类css in js的库,看了下文档觉得写法很新颖很酷,调用方式看起来也很清晰直观,还有就是维护某些动态样式可能会比较舒服,除此之外 有没有重度使用者讲讲这个优势或者典型应用场景是什么(比如相比于直接写css或者sass、less,或者动态绑定行内样式,是否存在某个场景,用这类写法能让代码更优雅或者更易维护)(´・_・`)
### 说明 假如我有以下的代码,这是一个vue3版本的tsx组件的写法,为了 能够将其props传递给styled,我按照了文档的语法模式进行了书写代码,但是这样会有几个问问题: 1. props的类型丢失,如果styled可以支持泛型的方式传入props类型就好了 2. 我的IconInnerLayout只能定义在函数组件内部,这样会导致一些通用的复杂的无法服复用 ```ts import { styled } from '@vvibe/vue-styled-components' import type { FunctionalComponent, HTMLAttributes } from 'vue' export const IconInner: FunctionalComponent = (props, ctx)...
### Describe the bug 生成的css样式,比如display: flex; 并没有加上浏览器的前缀 ### Reproduce link _No response_ ### To reproduce  ### Expected behavior 期望可以加上浏览器前缀,虽然浏览器如今已经比较新了,但还是需要考虑有些浏览器不兼容或者需要前缀支持的情况 ### Actual behavior _No response_ ### Package version _No response_...