Skip to content

loading

加载

查看代码
html
<button class="open-btn open-btn-primary" @click="loading">加载</button>

<script setup>
	import { onMounted } from 'vue'
	import opener from '../public/opener.esm.js'
	const loading = ()=>{
		let load = opener.loading();
		setTimeout(()=>{
			load.hide();
		},3000)
	}
</script>