tiny-vue/examples/sites/demos/mobile-first/app/loading/loading-size.vue

31 lines
556 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div id="boxeight"></div>
</template>
<script>
import { Loading } from '@opentiny/vue'
export default {
data() {
return {
size: 'large'
}
},
mounted() {
Loading.service({
lock: true,
text: '加载中',
target: '#boxeight', // 可传DOM节点对应ID名或类名字符串也可以传入DOM对象例如domObjlet domObj = document.getElementById('boxeight').
size: 'mini',
tiny_mode: 'mobile-first'
})
}
}
</script>
<style scoped>
#boxeight {
height: 150px;
}
</style>