Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(['一片一片又一片', '两片三片四五片', '六片七片八九片', '飞入芦花都不见'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(['一片一片又一片', '两片三片四五片', '六片七片八九片', '飞入芦花都不见'])
Expand Down
Loading