File tree Expand file tree Collapse file tree 5 files changed +24
-21
lines changed Expand file tree Collapse file tree 5 files changed +24
-21
lines changed Original file line number Diff line number Diff line change
1
+ <script setup lang='ts'>
2
+ import { ref } from ' vue'
3
+
4
+ const tree = ref ({
5
+ label: ' Top Level' ,
6
+ children: [
7
+ { label: ' First Level' },
8
+ { label: ' First Level' , children: [{ label: ' Second Level' }] },
9
+ ],
10
+ })
11
+
12
+ const rate = ref (2.5 )
13
+ const radio = ref (' 1' )
14
+ </script >
15
+
1
16
<template >
2
17
<div class =" block" >
3
18
<h1 >Basic (4)</h1 >
54
69
</div >
55
70
</template >
56
71
57
- <script setup lang='ts'>
58
- import { ref } from ' vue'
59
-
60
- const tree = ref ({
61
- label: ' Top Level' ,
62
- children: [
63
- { label: ' First Level' },
64
- { label: ' First Level' , children: [{ label: ' Second Level' }] },
65
- ],
66
- })
67
-
68
- const rate = ref (2.5 )
69
- const radio = ref (' 1' )
70
- </script >
71
-
72
72
<style scoped>
73
73
.block {
74
74
padding : 0px 20px 10px 20px ;
Original file line number Diff line number Diff line change 1
1
import { createApp } from 'vue'
2
- import App from '/src /App.vue'
2
+ import App from '. /App.vue'
3
3
import './index.css'
4
4
import 'vant/lib/index.css'
5
5
Original file line number Diff line number Diff line change 1
- import { defineComponent } from 'vue'
1
+ /* eslint-disable import/no-duplicates */
2
2
3
3
declare module '*.vue' {
4
+ import { defineComponent } from 'vue'
4
5
const Component : ReturnType < typeof defineComponent >
5
6
export default Component
6
7
}
7
8
8
9
declare module '*.md' {
10
+ import { defineComponent } from 'vue'
9
11
const Component : ReturnType < typeof defineComponent >
10
12
export default Component
11
13
}
Original file line number Diff line number Diff line change 2
2
3
3
exports [` search should with namespace 1` ] = `
4
4
Array [
5
+ Object {
6
+ " name" : " Avatar" ,
7
+ " path" : " /src/components/global/avatar.vue" ,
8
+ } ,
5
9
Object {
6
10
" name" : " Book" ,
7
11
" path" : " /src/components/book/index.vue" ,
@@ -22,10 +26,6 @@ Array [
22
26
" name" : " ComponentD" ,
23
27
" path" : " /src/components/ComponentD.vue" ,
24
28
} ,
25
- Object {
26
- " name" : " GlobalAvatar" ,
27
- " path" : " /src/components/global/avatar.vue" ,
28
- } ,
29
29
Object {
30
30
" name" : " Recursive" ,
31
31
" path" : " /src/components/Recursive.vue" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ describe('search', () => {
19
19
it ( 'should with namespace' , async ( ) => {
20
20
const ctx = new Context ( {
21
21
directoryAsNamespace : true ,
22
+ globalNamespaces : [ 'global' ] ,
22
23
} , { root : resolve ( __dirname , '../examples/vue3' ) } as any )
23
24
ctx . searchGlob ( )
24
25
You can’t perform that action at this time.
0 commit comments