Skip to content

Commit

Permalink
fix: bump vue and fix syntax highlighting for interpolations
Browse files Browse the repository at this point in the history
close #2586
  • Loading branch information
yyx990803 committed Dec 4, 2023
1 parent 48ea900 commit e88e878
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 60 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dynamics.js": "^1.1.5",
"gsap": "^3.9.0",
"vitepress": "1.0.0-rc.31",
"vue": "^3.4.0-alpha.3"
"vue": "^3.4.0-alpha.4"
},
"devDependencies": {
"@types/markdown-it": "^12.2.3",
Expand Down
127 changes: 71 additions & 56 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/guide/essentials/template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ You can bind them to a single element by using `v-bind` without an argument:

So far we've only been binding to simple property keys in our templates. But Vue actually supports the full power of JavaScript expressions inside all data bindings:

```html
```vue-html
{{ number + 1 }}
{{ ok ? 'YES' : 'NO' }}
Expand All @@ -138,7 +138,7 @@ Each binding can only contain **one single expression**. An expression is a piec

Therefore, the following will **NOT** work:

```html
```vue-html
<!-- this is a statement, not an expression: -->
{{ var a = 1 }}
Expand All @@ -150,7 +150,7 @@ Therefore, the following will **NOT** work:

It is possible to call a component-exposed method inside a binding expression:

```html
```vue-html
<time :title="toTitleDate(date)" :datetime="date">
{{ formatDate(date) }}
</time>
Expand Down

0 comments on commit e88e878

Please sign in to comment.