fix: close ColorPicker review findings and record acceptance

This commit is contained in:
maoyingjie
2026-10-27 17:56:32 +08:00
parent 63606399e3
commit 74cd597b81
5 changed files with 25 additions and 9 deletions
+2 -2
View File
@@ -194,8 +194,8 @@ ColorPicker 组件使用以下 CSS 类([查看源码样式](https://github.com
| 事件 | 参数 | 时机 |
| --------------------- | ------- | -------------------------------------------------------------------- |
| `update:modelValue` / `change` | `Color` | 子控件提案被接受时一起触发(`v-model` 使用前者) |
| `changeEnd` | `Color` | 一次手势(拖动/按键/文本提交)结束并被接受时触发 |
| `update:modelValue` / `change` | `Color` | 子控件提出不同颜色时一起触发(`v-model` 使用前者);受控父组件可拒绝提案 |
| `changeEnd` | `Color` | 有颜色提案的手势正常结束时传出最后提案;不表示父组件已接受,取消时不触发 |
| `update:open` / `update:isOpen` / `openChange` | `boolean` | 展开状态提案;受控拒绝时保持提案事件,不改变实际展开 |
受控拒绝、相同提案重试、外部替换与事务取消的行为与共享颜色 owner 一致:父组件不接受提案时坐标、滑块、字段文本、预览与表单值保持接受值,提案不会冒充已接受颜色,也不会经 hex 往返量化。