panchao.co

Results 5 issues of panchao.co

### 说明 假如我有以下的代码,这是一个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)...

feature request
inactive

### Describe the bug 生成的css样式,比如display: flex; 并没有加上浏览器的前缀 ### Reproduce link _No response_ ### To reproduce ![image](https://github.com/user-attachments/assets/7522576c-e0ec-4d48-b5ee-1ad29a6324d1) ### Expected behavior 期望可以加上浏览器前缀,虽然浏览器如今已经比较新了,但还是需要考虑有些浏览器不兼容或者需要前缀支持的情况 ### Actual behavior _No response_ ### Package version _No response_...

feature request

### Describe the bug 当我复用了一些css后,我的主题丢失了TS的类型 ### Reproduce link _No response_ ### To reproduce ![Image](https://github.com/user-attachments/assets/abb81ac4-e366-4cfc-8f8c-9181bd0d618f) ### Expected behavior _No response_ ### Actual behavior _No response_ ### Package version _No response_ ###...

bug report

### Is your feature request related to a problem? Please describe 因为是运行时框架,有时候大量的样式重算会阻塞浏览器渲染主线程,是否考虑引入Web worker的方案开启子线程来处理样式呢 ### Describe the solution you'd like _No response_ ### Additional context _No response_

feature request
confirmed

### Describe the bug @vue-styled-components_core.js?v=333aefc9:1175 Uncaught (in promise) TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. ### Reproduce link _No response_ ### To reproduce...

bug report