docs: remove remaining yaml/tag legacy references
This commit is contained in:
@@ -42,7 +42,7 @@ export interface DeckState {
|
||||
cornerRadius: number;
|
||||
shape: CardShape;
|
||||
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;
|
||||
src: string;
|
||||
rawSrc: string;
|
||||
|
||||
@@ -69,7 +69,7 @@ customElement<DeckProps>(
|
||||
const deckId = `deck-${uuidv4()}`;
|
||||
registerDeck(deckId, store, resolvedSrc, csvPath);
|
||||
|
||||
// 读取 data-config(yaml/tag 代码块方式):结构化配置优先
|
||||
// 读取 data-config(yaml role=tag 代码块方式):结构化配置优先
|
||||
let config:
|
||||
| ReturnType<typeof normalizeDeckConfig>
|
||||
| undefined;
|
||||
@@ -77,7 +77,7 @@ customElement<DeckProps>(
|
||||
if (dataConfigAttr) {
|
||||
try {
|
||||
config = normalizeDeckConfig(JSON.parse(dataConfigAttr));
|
||||
// 记录来源,复制代码时输出 yaml/tag 代码块
|
||||
// 记录来源,复制代码时输出 yaml role=tag 代码块
|
||||
store.actions.setIsYamlBlock(true);
|
||||
} catch (e) {
|
||||
console.error("Invalid data-config on md-deck:", e);
|
||||
|
||||
@@ -40,7 +40,7 @@ data-config:
|
||||
```
|
||||
````
|
||||
|
||||
`pos` 为网格位置 `x1,y1-x2,y2`(1-based,与紧凑 layers 字符串同格式)。也支持旧写法 ```yaml/tag。
|
||||
`pos` 为网格位置 `x1,y1-x2,y2`(1-based,与紧凑 layers 字符串同格式)。
|
||||
|
||||
## 图层格式
|
||||
|
||||
|
||||
Reference in New Issue
Block a user