diff --git a/package.json b/package.json index 6da7013..096164e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@vue-macros/cli", "type": "module", - "version": "1.0.5", + "version": "1.0.6", "packageManager": "pnpm@8.10.5", "description": "Rewriting at vue macros powered by ast-grep.", "author": "zhiyuanzmj ", diff --git a/playground/src/App.vue b/playground/src/App.vue index 5b60e41..18eb10c 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -4,13 +4,13 @@ import Comp from './components/Comp.vue' const list = [{ id: 1 }] const bind = { } const on = { submit: () => {} } -const select = $ref<{ id: number }>() +const select = $ref<{ id: number }>(list[0])