fix(loading): 定位可选

This commit is contained in:
BTMuli
2023-04-01 14:04:59 +08:00
parent 0d4138414c
commit 56d0c8e62e

View File

@@ -32,11 +32,15 @@ const props = defineProps({
type: Boolean,
default: false,
},
position: {
type: String,
default: "absolute",
},
});
</script>
<style lang="css">
.loading-div {
position: fixed;
position: v-bind(position);
display: flex;
top: 25%;
left: 25%;