You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/zh/guide/custom-blocks.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Custom Blocks
1
+
# 自定义块
2
2
3
-
You can define custom language blocks inside `*.vue`files. Loaders applied for a custom block are matched based on the `lang`attribute of the block, the block's tag name, and the rules in your webpack config.
@@ -19,15 +19,15 @@ You can also use `resourceQuery` to match a rule against a custom block with no
19
19
}
20
20
```
21
21
22
-
If a matching rule is found for a custom block, it will be processed; otherwise the custom block will be silently ignored.
22
+
如果找到了一个自定义块的匹配规则,它将会被处理,否则该自定义块会被默默忽略。
23
23
24
-
Additionally, if the custom block exports a function as the final result after being processed by all the matching loaders, that function will be called with the component of the `*.vue`file as a parameter.
0 commit comments