@linkdesk/plugin-docs 0.1.15 → 0.1.16
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/docs/zh/05-/346/217/222/344/273/266UI/345/206/231/346/263/225/350/247/204/347/272/246.md
CHANGED
|
@@ -560,6 +560,14 @@ monaco 当前背景不透明、只二态跟随(亮/暗)是**过渡态绕开
|
|
|
560
560
|
| `ldk-notif-icon-spin` | 通知图标的旋转 |
|
|
561
561
|
| `ldk-notif-progress-scan` | 通知的进度扫描 |
|
|
562
562
|
|
|
563
|
+
**引用的名字必须在架子上**——纪律 2 说的是「改名时同笔改引用」;这条是它的另一半,而且**机器会查**:
|
|
564
|
+
你 `animation` / `animation-name` 里写的名字,要么是**本仓 CSS 里 `@keyframes` 定义过的**,要么是
|
|
565
|
+
**上面那张保留表里的**(引用宿主的动画是**合法消费**,不会判你)。引一个**谁都没定义**的名字,
|
|
566
|
+
动画**不报错、不警告,只是不动**——症状是「我的动画怎么没生效」,而控制台一片安静(同一个窗口里
|
|
567
|
+
还有别的插件和宿主在跑,你很难一眼看出是这一条)。`@linkdesk/plugin-sdk` **≥ 0.1.37** 起,插件的
|
|
568
|
+
lint 会把这种**悬空引用**逐条报出来(**文件名 + 行号 + 名字**);确需引用一个门禁看不见的名字
|
|
569
|
+
(例如动画由运行时注入),用标准 `eslint-disable` 注释写明理由。
|
|
570
|
+
|
|
563
571
|
> 🔧 **维护者注(作者可跳过)**:上面两张表的「**保留名**」「**保留的关键帧名**」两列都是**机器读的**——`npm run check` 里的门禁
|
|
564
572
|
> (`scripts/check-reserved-names-doc-sync.mjs`)把它们与登记表
|
|
565
573
|
> `packages/plugin-sdk/schemas/reserved-class-names.json` **双向核对**:登记表里的名字必须在这里出现,
|