Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/features/export-expose.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ export default a
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/export-expose"
"@vue-macros/volar/export-expose",
// ...more feature
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/features/export-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export const bar: number = 1 // with default value
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/export-props"
"@vue-macros/volar/export-props",
// ...more feature
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/features/export-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default () => <div>ok</div>
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/export-render"
"@vue-macros/volar/export-render",
// ...more feature
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/features/jsx-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ defineRender(() => (
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/jsx-directive"
"@vue-macros/volar/jsx-directive",
// ...more feature
]
}
],
},
}
```
20 changes: 10 additions & 10 deletions docs/guide/bundler-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ npm i -D @vue-macros/volar
"@vue-macros/volar/short-vmodel",
"@vue-macros/volar/define-slots",
"@vue-macros/volar/jsx-directive",
"@vue-macros/volar/setup-jsdoc"
"@vue-macros/volar/setup-jsdoc",

// Choose only one of the following
// "@vue-macros/volar/export-expose",
// "@vue-macros/volar/export-props",
// "@vue-macros/volar/export-render",
]
],
// ...
}
},
}
```

Expand All @@ -165,20 +165,20 @@ npm i -D @vue-macros/volar
"plugins": [
"@vue-macros/volar/export-render",
"@vue-macros/volar/export-expose",
"@vue-macros/volar/export-props"
"@vue-macros/volar/export-props",
],
"vueMacros": {
"exportExpose": {
"include": ["**/export-expose/**"]
"include": ["**/export-expose/**"],
},
"exportProps": {
"include": ["**/export-props/**"]
"include": ["**/export-props/**"],
},
"exportRender": {
"include": ["**/export-render/**"]
}
}
}
"include": ["**/export-render/**"],
},
},
},
}
```

Expand Down
10 changes: 5 additions & 5 deletions docs/macros/define-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ emit('update:count', count + 1)
"vueCompilerOptions": {
"target": 3, // or 2.7 for Vue 2
"plugins": [
"@vue-macros/volar/define-models"
"@vue-macros/volar/define-models",
// ...more feature
],
"vueMacros": {
"defineModels": {
// Only works when target is 2.7.
"unified": true
}
}
}
"unified": true,
},
},
},
}
```
6 changes: 3 additions & 3 deletions docs/macros/define-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ export default {
"vueCompilerOptions": {
"target": 3, // or 2.7 for Vue 2
"plugins": [
"@vue-macros/volar/define-options"
"@vue-macros/volar/define-options",
// ...more feature
]
}
],
},
}
```
4 changes: 2 additions & 2 deletions docs/macros/define-prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ VueMacros({
// ...
"vueCompilerOptions": {
// "kevinEdition" | "johnsonEdition" | false
"experimentalDefinePropProposal": "kevinEdition"
}
"experimentalDefinePropProposal": "kevinEdition",
},
}
```

Expand Down
6 changes: 3 additions & 3 deletions docs/macros/define-props-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ console.log(foo.value)
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/define-props-refs"
"@vue-macros/volar/define-props-refs",
// ...more feature
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/macros/define-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const fooRef = $$(foo)
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/define-props"
"@vue-macros/volar/define-props",
// ...more feature
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/macros/define-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ defineSlots<{
"vueCompilerOptions": {
"target": 3, // or 2.7 for Vue 2
"plugins": [
"@vue-macros/volar/define-slots"
"@vue-macros/volar/define-slots",
// ...more feature
]
}
],
},
}
```
10 changes: 5 additions & 5 deletions docs/macros/short-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ If you have any questions about this feature, you can comment on [RFC Discussion
{
"vueCompilerOptions": {
"plugins": [
"@vue-macros/volar/short-bind"
"@vue-macros/volar/short-bind",
// ...
]
}
],
},
}
```

Expand All @@ -61,7 +61,7 @@ If you have any questions about this feature, you can comment on [RFC Discussion
// .eslintrc
{
"rules": {
"vue/valid-v-bind": "off"
}
"vue/valid-v-bind": "off",
},
}
```
10 changes: 5 additions & 5 deletions docs/macros/short-vmodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ interface Options {
{
"vueCompilerOptions": {
"plugins": [
"@vue-macros/volar/short-vmodel"
"@vue-macros/volar/short-vmodel",
// ...
],
"vueMacros": {
"shortVmodel": {
"prefix": "$"
}
}
}
"prefix": "$",
},
},
},
}
```

Expand Down
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"preview": "vitepress preview"
},
"dependencies": {
"prettier": "^3.1.1",
"shikiji": "^0.9.17"
"prettier": "^3.2.2",
"shikiji": "^0.9.19"
},
"devDependencies": {
"@vite-pwa/vitepress": "^0.3.1",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"vite-plugin-pwa": "^0.17.4",
"vite-plugin-vue-devtools": "^7.0.6",
"vitepress": "1.0.0-rc.35",
"vue": "^3.4.5"
"vite-plugin-vue-devtools": "^7.0.10",
"vitepress": "1.0.0-rc.36",
"vue": "^3.4.13"
}
}
6 changes: 3 additions & 3 deletions docs/zh-CN/features/export-expose.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ export default a
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/export-expose"
"@vue-macros/volar/export-expose",
// ...更多功能
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/zh-CN/features/export-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export const bar: number = 1 // 带有默认值
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/export-props"
"@vue-macros/volar/export-props",
// ...更多功能
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/zh-CN/features/export-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default () => <div>ok</div>
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/export-render"
"@vue-macros/volar/export-render",
// ...更多功能
]
}
],
},
}
```
6 changes: 3 additions & 3 deletions docs/zh-CN/features/jsx-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ defineRender(() => (
"vueCompilerOptions": {
"target": 3,
"plugins": [
"@vue-macros/volar/jsx-directive"
"@vue-macros/volar/jsx-directive",
// ...更多功能
]
}
],
},
}
```
20 changes: 10 additions & 10 deletions docs/zh-CN/guide/bundler-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ npm i -D @vue-macros/volar
"@vue-macros/volar/short-vmodel",
"@vue-macros/volar/define-slots",
"@vue-macros/volar/jsx-directive",
"@vue-macros/volar/setup-jsdoc"
"@vue-macros/volar/setup-jsdoc",

// 选择以下其中一个
// "@vue-macros/volar/export-expose",
// "@vue-macros/volar/export-props",
// "@vue-macros/volar/export-render",
]
],
// ...
}
},
}
```

Expand All @@ -165,20 +165,20 @@ npm i -D @vue-macros/volar
"plugins": [
"@vue-macros/volar/export-render",
"@vue-macros/volar/export-expose",
"@vue-macros/volar/export-props"
"@vue-macros/volar/export-props",
],
"vueMacros": {
"exportExpose": {
"include": ["**/export-expose/**"]
"include": ["**/export-expose/**"],
},
"exportProps": {
"include": ["**/export-props/**"]
"include": ["**/export-props/**"],
},
"exportRender": {
"include": ["**/export-render/**"]
}
}
}
"include": ["**/export-render/**"],
},
},
},
}
```

Expand Down
10 changes: 5 additions & 5 deletions docs/zh-CN/macros/define-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ emit('update:count', count + 1)
"vueCompilerOptions": {
"target": 3, // 或 2.7 用于 Vue 2
"plugins": [
"@vue-macros/volar/define-models"
"@vue-macros/volar/define-models",
// ...更多功能
],
"vueMacros": {
"defineModels": {
// 仅在 target 是 2.7 时有效
"unified": true
}
}
}
"unified": true,
},
},
},
}
```
6 changes: 3 additions & 3 deletions docs/zh-CN/macros/define-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ export default {
"vueCompilerOptions": {
"target": 3, // 或 2.7 用于 Vue 2
"plugins": [
"@vue-macros/volar/define-options"
"@vue-macros/volar/define-options",
// ...更多功能
]
}
],
},
}
```
4 changes: 2 additions & 2 deletions docs/zh-CN/macros/define-prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const disabled = defineProp<boolean>(true)
// ...
"vueCompilerOptions": {
// "kevinEdition" | "johnsonEdition" | false
"experimentalDefinePropProposal": "kevinEdition"
}
"experimentalDefinePropProposal": "kevinEdition",
},
}
```
Loading