From 602ae842645a16c8d34addbcfa72c24b697fc970 Mon Sep 17 00:00:00 2001 From: maoyingjie Date: Mon, 26 Oct 2026 23:53:02 +0800 Subject: [PATCH] docs: note ColorArea demo layout wrapper --- docs/tasks/results/COLOR-AREA.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tasks/results/COLOR-AREA.md b/docs/tasks/results/COLOR-AREA.md index 972ba49..fd0c215 100644 --- a/docs/tasks/results/COLOR-AREA.md +++ b/docs/tasks/results/COLOR-AREA.md @@ -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 合成事件限制,见上。