fix: preserve ColorSwatch asChild ids and merged styles
This commit is contained in:
@@ -109,6 +109,8 @@ ColorSwatch 组件使用以下 CSS 类([查看源码样式](https://github.com
|
||||
|
||||
`class` 遵循 Vue 的 class 绑定,可接收字符串、数组和对象,并与组件基础类合并;不要使用 React 的 `className`。`color` 省略或为 `undefined` 时继承最近的共享颜色 owner;`null` 与空字符串是显式清空。无效颜色字符串按本库 `parseColor` 边界抛出 `RangeError`。
|
||||
|
||||
`style` 与 `styleFn` 可同时使用,合并顺序为组件基础样式 → `style` → `styleFn`;冲突属性由 `styleFn` 覆盖,普通样式不会因函数样式存在而丢失。
|
||||
|
||||
组件通过 `defineExpose` 暴露 `element`,指向实际根 DOM 元素;普通 `ref` 仍指向组件实例。`aria-roledescription` 与透明颜色的自动名称随 `ConfigProvider` 的 `locale` 切换;默认 `en-US`。
|
||||
|
||||
### Style Render
|
||||
|
||||
Reference in New Issue
Block a user