docs: remove remaining yaml/tag legacy references

This commit is contained in:
2026-09-08 20:59:30 +08:00
parent 638e8f6526
commit 5061c4d19d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export interface DeckState {
cornerRadius: number; cornerRadius: number;
shape: CardShape; shape: CardShape;
fixed: boolean; fixed: boolean;
/** True when the deck was configured via a yaml/tag codeblock (data-config). */ /** True when the deck was configured via a yaml role=tag codeblock (data-config). */
isYamlBlock: boolean; isYamlBlock: boolean;
src: string; src: string;
rawSrc: string; rawSrc: string;
+2 -2
View File
@@ -69,7 +69,7 @@ customElement<DeckProps>(
const deckId = `deck-${uuidv4()}`; const deckId = `deck-${uuidv4()}`;
registerDeck(deckId, store, resolvedSrc, csvPath); registerDeck(deckId, store, resolvedSrc, csvPath);
// 读取 data-configyaml/tag 代码块方式):结构化配置优先 // 读取 data-configyaml role=tag 代码块方式):结构化配置优先
let config: let config:
| ReturnType<typeof normalizeDeckConfig> | ReturnType<typeof normalizeDeckConfig>
| undefined; | undefined;
@@ -77,7 +77,7 @@ customElement<DeckProps>(
if (dataConfigAttr) { if (dataConfigAttr) {
try { try {
config = normalizeDeckConfig(JSON.parse(dataConfigAttr)); config = normalizeDeckConfig(JSON.parse(dataConfigAttr));
// 记录来源,复制代码时输出 yaml/tag 代码块 // 记录来源,复制代码时输出 yaml role=tag 代码块
store.actions.setIsYamlBlock(true); store.actions.setIsYamlBlock(true);
} catch (e) { } catch (e) {
console.error("Invalid data-config on md-deck:", e); console.error("Invalid data-config on md-deck:", e);
+1 -1
View File
@@ -40,7 +40,7 @@ data-config:
``` ```
```` ````
`pos` 为网格位置 `x1,y1-x2,y2`1-based,与紧凑 layers 字符串同格式)。也支持旧写法 ```yaml/tag。 `pos` 为网格位置 `x1,y1-x2,y2`1-based,与紧凑 layers 字符串同格式)。
## 图层格式 ## 图层格式