@wisdomgarden/torque-knowledge 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.meta.json +3 -3
- package/dist/components.db +0 -0
- package/dist/torque-components.md +6 -1
- package/package.json +1 -1
package/dist/.meta.json
CHANGED
package/dist/components.db
CHANGED
|
Binary file
|
|
@@ -6,7 +6,7 @@ keywords: torque, component, ui, mantine, layout, button, icon-button, link-butt
|
|
|
6
6
|
|
|
7
7
|
# Torque UI 组件库
|
|
8
8
|
|
|
9
|
-
> 由 `@wisdomgarden/torque-knowledge@1.0.
|
|
9
|
+
> 由 `@wisdomgarden/torque-knowledge@1.0.6` 生成,对应 `@wisdomgarden/torque@0.2.1`。
|
|
10
10
|
> 不要手改 —— 它是 npm 包解包出来的,下次装依赖就被覆盖。
|
|
11
11
|
|
|
12
12
|
## 导入方式
|
|
@@ -162,6 +162,9 @@ Component 里用(函数跨 Server/Client 边界无法序列化)。
|
|
|
162
162
|
再放交互元素会触发 a11y 的 `nested-interactive` 违规。
|
|
163
163
|
- **不要给 `Filter` / `IconFilter` 的 `buttonProps` / `iconButtonProps` 传 `onClick`**,
|
|
164
164
|
会覆盖内置的弹层开关,导致弹不出来。
|
|
165
|
+
- **`Popover` 的 `closeDelay`(仅 `trigger="hover"` 生效)浮层内有可交互内容时不要设为
|
|
166
|
+
`0`** —— 默认 `100`ms 是留给鼠标从触发元素滑进浮层的缓冲,设成 0 会导致内容还没点到
|
|
167
|
+
就先关闭了。
|
|
165
168
|
|
|
166
169
|
### 文本与截断
|
|
167
170
|
|
|
@@ -181,6 +184,8 @@ Component 里用(函数跨 Server/Client 边界无法序列化)。
|
|
|
181
184
|
- **`Tabs` 切换默认卸载其他 Panel**,Panel 里有表单或音视频时必须设
|
|
182
185
|
`keepMounted={true}`。吸顶时 `sticky` 加在 `Tabs.List` 的**外层** `div` 上
|
|
183
186
|
(`overflow="scroll"` 时内部有独立滚动容器)。
|
|
187
|
+
- **`Tabs` 的 `underline` 变体不支持 `layout` 和 `bgType`**;这两个 prop 只用于
|
|
188
|
+
`outline` / `filled`。需要标签自动换行时使用 `overflow="wrap"`。
|
|
184
189
|
- **`Select` 的搜索是自动的** —— 选项数超阈值会自动开启,不要手写 `searchable`,
|
|
185
190
|
只有要违背默认行为时才显式传值。
|
|
186
191
|
- **`Tree` 的 `defaultExpandedIds` 只放真正需要默认可见的节点**,不要递归收集全部。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisdomgarden/torque-knowledge",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Machine-readable knowledge artifact for @wisdomgarden/torque — component catalog (SQLite) and AI coding rules (Markdown). Consumed by CI code review and local AI tooling, not by application runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|