File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- <script setup>
2
- import { ref } from ' vue'
1
+ <script setup lang="ts">
3
2
import Comp from ' ./components/Comp.vue'
4
3
5
4
const list = [{ id: 1 }]
6
5
const bind = { }
7
6
const on = { submit : () => {} }
8
- const select = $ref ()
7
+ const select = $ref <{ id : number }> ()
9
8
</script >
10
9
11
10
<template >
@@ -16,7 +15,7 @@ const select = $ref()
16
15
v-bind =" bind"
17
16
v-model:id =" i.id"
18
17
v-loading.fullscreen.lock =" true"
19
- v-memo =" [select.id === i.id]"
18
+ v-memo =" [select? .id === i.id]"
20
19
v-on =" on"
21
20
@click.once =" select = i"
22
21
@submit =" alert"
Original file line number Diff line number Diff line change @@ -36,17 +36,17 @@ fix: |-
36
36
37
37
---
38
38
39
- id : v-on transform to on
40
- language : vue
39
+ id : v-on to on
40
+ language : vueTsx
41
41
rule :
42
- kind : attribute_name
42
+ kind : property_identifier
43
43
regex : ^v-on$
44
44
fix :
45
45
on
46
46
47
47
---
48
48
49
- id : tsx v-on
49
+ id : v-on
50
50
language : vueTsx
51
51
rule :
52
52
kind : jsx_expression
You can’t perform that action at this time.
0 commit comments