Skip to content

Commit 305c47c

Browse files
committed
feat(style): add --vue-preview-color-loading
1 parent dd2b517 commit 305c47c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/VuePreview.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const isHover = useElementHover(vuePreviewContainerRef)
135135
</Transition>
136136
<Transition v-if="previewUpdateFlag === 'UPDATING'" name="fade">
137137
<div class="vue-preview__loading-model">
138-
<Loading />
138+
<Loading class="vue-preview__loading-icon" />
139139
</div>
140140
</Transition>
141141
</div>
@@ -222,6 +222,10 @@ const isHover = useElementHover(vuePreviewContainerRef)
222222
background-color: var(--vue-preview-color-model-bg);
223223
}
224224
225+
&__loading-icon {
226+
color: var(--vue-preview-color-loading, black);
227+
}
228+
225229
:deep(.editor) {
226230
box-sizing: border-box;
227231
overflow: hidden;
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:root {
2+
--vue-preview-color-loading: rgba(0,255,0,0.8);
3+
}

test/vitepress/.vitepress/theme/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DefaultTheme from 'vitepress/theme'
22
import { VuePreview } from '../../../../dist'
33
import '../../../../dist/style.css'
4+
import './base.css'
45

56
export default {
67
...DefaultTheme,

0 commit comments

Comments
 (0)