♻️(plugin): 重命名 document plugin, 移动 usePlayground 到 composable
更新文档
This commit is contained in:
parent
e4bd0aa5a3
commit
3016915455
@ -39,4 +39,4 @@ const plugins = [
|
||||
}),
|
||||
] as any;
|
||||
|
||||
export default plugins;
|
||||
export default plugins;
|
||||
|
@ -7,9 +7,7 @@ type ContainerArgs = [
|
||||
{ render(tokens: Token[], idx: number): string }
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
|
@ -9,9 +9,7 @@ type ContainerArgs = [
|
||||
}
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
@ -27,4 +25,4 @@ export default function createContainer(
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -7,9 +7,7 @@ type ContainerArgs = [
|
||||
{ render(tokens: Token[], idx: number): string }
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
|
@ -9,9 +9,7 @@ type ContainerArgs = [
|
||||
}
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
|
@ -7,9 +7,7 @@ type ContainerArgs = [
|
||||
{ render(tokens: Token[], idx: number): string }
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
|
@ -7,9 +7,7 @@ type ContainerArgs = [
|
||||
{ render(tokens: Token[], idx: number): string }
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
|
@ -7,9 +7,7 @@ type ContainerArgs = [
|
||||
{ render(tokens: Token[], idx: number): string }
|
||||
];
|
||||
|
||||
export default function createContainer(
|
||||
klass: string
|
||||
): ContainerArgs {
|
||||
export default function createContainer(klass: string): ContainerArgs {
|
||||
return [
|
||||
container,
|
||||
klass,
|
||||
@ -18,9 +16,7 @@ export default function createContainer(
|
||||
const token = tokens[idx];
|
||||
const info = token.info.trim().slice(klass.length).trim();
|
||||
if (token.nesting === 1) {
|
||||
return `<lay-field id="${info}" title="${
|
||||
info
|
||||
}" style="margin-top:21px;margin-bottom: 20px;">`;
|
||||
return `<lay-field id="${info}" title="${info}" style="margin-top:21px;margin-bottom: 20px;">`;
|
||||
} else {
|
||||
return "</lay-field>\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user