Skip to content

[Style] unocss的样式无法直接应用到组件上的问题,几乎所有组件都不行 #17392

@ying-tch

Description

@ying-tch

Bug Type: Style

Environment

  • Vue Version: 3.4.29
  • Element Plus Version: 2.7.6
  • Browser / OS: Chrome
  • Build Tool: Vite

Reproduction

Related Component

  • el-button
  • el-select
  • el-input
  • el-input-number

Reproduction Link

Element Plus Playground

Steps to reproduce

可以查看playground地址,w-200 在el-input中和el-select中都不生效,el-button只生效了w-120,但是h-80就会被覆盖掉

What is Expected?

跟其它UI框架(ant,arco,navie)一样,unocss效果可直接作用于组件上

What is actually happening?

unocss效果无法作用于组件上

Additional comments

为啥select不能提供一个options的属性,非要再写一个el-option的,然后又在里面写循环

1719980031852

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions