Skip to content

Commit d02d4a4

Browse files
committed
fix: #1 invalid v-loading
1 parent df6bf44 commit d02d4a4

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arco-vue-playground",
3-
"version": "1.9.0",
3+
"version": "1.0.0",
44
"description": "Arco Vue Playground",
55
"keywords": [
66
"arco-vue",

src/App.vue

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,21 @@ watchEffect(() => history.replaceState({}, '', `#${store.serialize()}`))
9191
</script>
9292

9393
<template>
94-
<div v-if="!loading" class="antialiased">
94+
<div class="antialiased">
9595
<Header :store="store" />
96-
<Repl
97-
ref="repl"
98-
:store="store"
99-
show-compile-output
100-
auto-resize
101-
:sfc-options="sfcOptions"
102-
:clear-console="false"
103-
:show-import-map="store.userOptions.value.showHidden || false"
104-
@keydown="handleKeydown"
105-
/>
96+
<a-spin :loading="loading" tip="Loading ..." class="w-full">
97+
<Repl
98+
ref="repl"
99+
:store="store"
100+
show-compile-output
101+
auto-resize
102+
:sfc-options="sfcOptions"
103+
:clear-console="false"
104+
:show-import-map="store.userOptions.value.showHidden || false"
105+
@keydown="handleKeydown"
106+
/>
107+
</a-spin>
106108
</div>
107-
<template v-else>
108-
<div v-loading="{ text: 'Loading...' }" class="loading" />
109-
</template>
110109
</template>
111110

112111
<style>

src/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare module '@vue/runtime-core' {
99
AOption: typeof import('@arco-design/web-vue')['Option']
1010
ASelect: typeof import('@arco-design/web-vue')['Select']
1111
ASpace: typeof import('@arco-design/web-vue')['Space']
12+
ASpin: typeof import('@arco-design/web-vue')['Spin']
1213
Header: typeof import('./components/Header.vue')['default']
1314
}
1415
}

0 commit comments

Comments
 (0)