This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac7ba52
commit 9dcd34e
Showing
5 changed files
with
157 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,34 @@ | ||
<template> | ||
<div> | ||
<FooView ref="fooView" v-foo-bar="a" v-demo:foo.a.b="message"></FooView> | ||
<FooView | ||
ref="fooView" | ||
v-foo-bar="message0" | ||
v-d0-demo:foo.a.b="message1" | ||
v-d1-modifiers.a="message2" | ||
v-d2-modifiers-no-value.b.c | ||
v-d3-arg:click="message3" | ||
v-d4-arg-no-value:click | ||
v-d5-arg-dynamic:[direction1+direction2.length].c="message4" | ||
v-d6-arg-dynamic-no-value:[direction3] | ||
v-d6-arg-dynamic-no-value:shouldNotUsed | ||
></FooView> | ||
<router-view></router-view> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from '@vue/runtime-dom' | ||
import FooView from './FooView.vue' | ||
import { vFooBar, vDemo } from './directive' | ||
import { vFooBar, vDemo as vD0Demo, vD1Modifiers, vD2ModifiersNoValue, vD3Arg, vD4ArgNoValue, vD5ArgDynamic, vD6ArgDynamicNoValue } from './directive' | ||
const fooView = ref<null | InstanceType<typeof FooView>>(null) | ||
const a = ref(1) | ||
const message = ref('hello') | ||
const message0 = ref('hello') | ||
const message1 = ref('hello') | ||
const message2 = ref('hello') | ||
const message3 = ref('hello') | ||
const message4 = ref('hello') | ||
const direction1 = ref('top') | ||
const direction2 = ref('top') | ||
const direction3 = ref('top') | ||
const shouldNotUsed = ref('') | ||
</script> |