docs: remove remaining yaml/tag legacy references
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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-config(yaml/tag 代码块方式):结构化配置优先
|
// 读取 data-config(yaml 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);
|
||||||
|
|||||||
@@ -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