Skip to content

Commit

Permalink
refactor(short-vmodel): change default prefix to $
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 23, 2022
1 parent 05c9812 commit 2438e48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-feet-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vue-macros/short-vmodel': minor
---

change default prefix to `$`
6 changes: 2 additions & 4 deletions packages/short-vmodel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import type {
export type Prefix = '::' | '$' | '*'
export interface Options {
/**
* Support :: only currently.
*
* @default '::'
* @default '$'
*/
prefix?: Prefix
}
Expand All @@ -25,7 +23,7 @@ type NodeElement =
| TemplateNode

export const transformShortVmodel = ({
prefix = '::',
prefix = '$',
}: Options = {}): NodeTransform => {
return (node, context) => {
if (node.type !== 1 /* NodeTypes.ELEMENT */) return
Expand Down

0 comments on commit 2438e48

Please sign in to comment.