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, type: Boolean,
default: false, default: false,
}, },
position: {
type: String,
default: "absolute",
},
}); });
</script> </script>
<style lang="css"> <style lang="css">
.loading-div { .loading-div {
position: fixed; position: v-bind(position);
display: flex; display: flex;
top: 25%; top: 25%;
left: 25%; left: 25%;