docs: note ColorArea demo layout wrapper

This commit is contained in:
maoyingjie
2026-10-26 23:53:02 +08:00
parent de8aebcd93
commit 602ae84264
+1
View File
@@ -67,6 +67,7 @@
- 固定源中文 API 简表写 `xChannel=saturation`、`yChannel=brightness`,但其运行时 `getColorSpaceAxes` 实际为空间首两通道;本库按运行时行为实现并在文档明确该差异。默认值同为运行时 `#ffffff`。
- React `render` 未机械保留:Root 用 `as`/`asChild`,Thumb 用 `as`;style 函数在模板中通过 `styleFn`。Thumb 不支持 asChild(会破坏两个原生轴位于滑块内的结构)。
- 基础/定位点/禁用/render 示例增加一个仅用于文档预览宽度的布局容器,避免共享 `.demo-row > *` 的 `max-width:100%` 覆盖组件 `max-w-56`;组件、参数、文案与示例顺序不变。
- `isReadOnly`、`disabled` 别名、`data-readonly` 是保留的库扩展;未移植 React Aria 完整 attributes/state API、色名接口或二维 `aria-valuenow`。
- 显式 `null` 清空接受值并以默认白绘制;空字符串/无效色按 `parseColor` 抛 `RangeError`。
- 未开展 SSR/水合/Nuxt、逐像素对比、完整读屏和真机矩阵;鼠标准确的 pointer capture 浏览器证据受 CDP 合成事件限制,见上。