element-plus / element-plus

🎉 A Vue.js 3 UI Library made by Element team

Home Page:https://element-plus.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Component] [color-picker] Cannot set class name of el-color-picker’s trigger

infinnie opened this issue · comments

Bug Type: Component

Environment

  • Vue Version: 3.4.27
  • Element Plus Version: 2.7.3
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
  • Build Tool: Other

Reproduction

Related Component

  • el-color-picker

Reproduction Link

Element Plus Playground

Steps to reproduce

type

<el-color-picker v-model="color" show-alpha :predefine="predefineColors" class="anything" />

in the template.

What is Expected?

the div with class el-color-picker has also the class name anything

What is actually happening?

the div with class el-color-picker has no class name anything

Additional comments

(empty)