File tree 5 files changed +7
-13
lines changed
5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { sxzz } from '@sxzz/eslint-config'
2
- export default sxzz ( )
2
+ export default sxzz ( [ ] , { vue : true } )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ console.log(jsxToString(<div className={[
18
18
'foo',
19
19
'bar',
20
20
]} style={{ color: 'red', fontSize: '20px' }} />))
21
- ` .trim ()
21
+ ` .trim (),
22
22
)
23
23
let result = $ref (' ' )
24
24
Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- defineProps <{
3
- modelValue: string
4
- }>()
5
-
6
- defineEmits <{
7
- (evt : ' update:modelValue' , value : string ): void
8
- }>()
2
+ const value = defineModel <string >()
9
3
</script >
10
4
11
5
<template >
12
6
<textarea
13
- :value = " modelValue "
7
+ v-model = " value "
14
8
p-2
15
9
w-full
16
10
max-w =" 800px"
@@ -19,8 +13,5 @@ defineEmits<{
19
13
bg =" transparent"
20
14
border =" ~ rounded gray-200 dark:gray-700"
21
15
outline =" none active:none"
22
- @input ="
23
- $emit('update:modelValue', ($event.target as HTMLTextAreaElement).value)
24
- "
25
16
/>
26
17
</template >
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ declare global {
21
21
const createGlobalState : typeof import ( '@vueuse/core' ) [ 'createGlobalState' ]
22
22
const createInjectionState : typeof import ( '@vueuse/core' ) [ 'createInjectionState' ]
23
23
const createReactiveFn : typeof import ( '@vueuse/core' ) [ 'createReactiveFn' ]
24
+ const createRef : typeof import ( '@vueuse/core' ) [ 'createRef' ]
24
25
const createReusableTemplate : typeof import ( '@vueuse/core' ) [ 'createReusableTemplate' ]
25
26
const createSharedComposable : typeof import ( '@vueuse/core' ) [ 'createSharedComposable' ]
26
27
const createTemplatePromise : typeof import ( '@vueuse/core' ) [ 'createTemplatePromise' ]
@@ -317,6 +318,7 @@ declare module 'vue' {
317
318
readonly createGlobalState : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createGlobalState' ] >
318
319
readonly createInjectionState : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createInjectionState' ] >
319
320
readonly createReactiveFn : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createReactiveFn' ] >
321
+ readonly createRef : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createRef' ] >
320
322
readonly createReusableTemplate : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createReusableTemplate' ] >
321
323
readonly createSharedComposable : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createSharedComposable' ] >
322
324
readonly createTemplatePromise : UnwrapRef < typeof import ( '@vueuse/core' ) [ 'createTemplatePromise' ] >
Original file line number Diff line number Diff line change 2
2
// @ts -nocheck
3
3
// Generated by unplugin-vue-components
4
4
// Read more: https://github.com/vuejs/core/pull/3399
5
+ // biome-ignore lint: disable
5
6
export { }
6
7
7
8
/* prettier-ignore */
You can’t perform that action at this time.
0 commit comments