mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
docs: 更新文档
This commit is contained in:
parent
35196676d2
commit
3099bbd1b6
@ -185,10 +185,11 @@ const router = new VueRouter({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
接下来我们来配置 `meta`:
|
||||||
|
|
||||||
<CodeGroup>
|
<CodeGroup>
|
||||||
<CodeGroupItem title="vue" active>
|
<CodeGroupItem title="vue" active>
|
||||||
|
|
||||||
在 Fes.js 里约定在 `.vue`单文件组件中的 `config`区块 为 `meta` 配置。如果 `pages/a.vue` 中有如下配置:
|
|
||||||
```vue
|
```vue
|
||||||
<config>
|
<config>
|
||||||
{
|
{
|
||||||
@ -199,7 +200,6 @@ const router = new VueRouter({
|
|||||||
```
|
```
|
||||||
|
|
||||||
</CodeGroupItem>
|
</CodeGroupItem>
|
||||||
|
|
||||||
<CodeGroupItem title="jsx">
|
<CodeGroupItem title="jsx">
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
|
@ -185,10 +185,11 @@ const router = new VueRouter({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
接下来我们来配置 `meta`:
|
||||||
|
|
||||||
<CodeGroup>
|
<CodeGroup>
|
||||||
<CodeGroupItem title="vue" active>
|
<CodeGroupItem title="vue" active>
|
||||||
|
|
||||||
在 Fes.js 里约定在 `.vue`单文件组件中的 `config`区块 为 `meta` 配置。如果 `pages/a.vue` 中有如下配置:
|
|
||||||
```vue
|
```vue
|
||||||
<config>
|
<config>
|
||||||
{
|
{
|
||||||
@ -199,7 +200,6 @@ const router = new VueRouter({
|
|||||||
```
|
```
|
||||||
|
|
||||||
</CodeGroupItem>
|
</CodeGroupItem>
|
||||||
|
|
||||||
<CodeGroupItem title="jsx">
|
<CodeGroupItem title="jsx">
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user