docs(directives): fix directives error in script-setup with typescript (#2089)

This commit is contained in:
ajaxzheng 2024-09-09 19:41:38 +08:00 committed by GitHub
parent 03cdca0e8c
commit 2dcbfdbb82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 4 deletions

View File

@ -16,7 +16,9 @@
</template>
<script setup>
import { AutoTip as VAutoTip } from '@opentiny/vue-directive'
import { AutoTip } from '@opentiny/vue-directive'
const VAutoTip = AutoTip
const options = [
{ text: '去游泳馆游泳', disabled: false },

View File

@ -3,7 +3,9 @@
</template>
<script setup>
import { AutoTip as VAutoTip } from '@opentiny/vue-directive'
import { AutoTip } from '@opentiny/vue-directive'
const VAutoTip = AutoTip
</script>
<style scoped>

View File

@ -32,7 +32,9 @@
<script setup>
import { ref } from 'vue'
import { Input as TinyInput, Button as TinyButton } from '@opentiny/vue'
import { HighlightQuery as vHighlightQuery } from '@opentiny/vue-directive'
import { HighlightQuery } from '@opentiny/vue-directive'
const vHighlightQuery = HighlightQuery
const query = ref('一片')
const list = ref(['一片一片又一片', '两片三片四五片', '六片七片八九片', '飞入芦花都不见'])

View File

@ -14,7 +14,9 @@
<script setup>
import { ref } from 'vue'
import { Input as TinyInput } from '@opentiny/vue'
import { HighlightQuery as vHighlightQuery } from '@opentiny/vue-directive'
import { HighlightQuery } from '@opentiny/vue-directive'
const vHighlightQuery = HighlightQuery
const query = ref('')
const list = ref(['一片一片又一片', '两片三片四五片', '六片七片八九片', '飞入芦花都不见'])