forked from opentiny/tiny-vue
28 lines
532 B
Vue
28 lines
532 B
Vue
<template>
|
|
<div id="tiny-demo-loading-custom-class"></div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Loading } from '@opentiny/vue'
|
|
|
|
export default {
|
|
mounted() {
|
|
Loading.service({
|
|
text: '自定义 loading 类名',
|
|
customClass: 'new-loading',
|
|
target: document.getElementById('tiny-demo-loading-custom-class'),
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.new-loading .tiny-loading__spinner .tiny-loading__text {
|
|
color: #fff;
|
|
}
|
|
#tiny-demo-loading-custom-class {
|
|
height: 120px;
|
|
}
|
|
</style>
|