This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vbenComponents): add Spin(Loading) (#282)
Co-authored-by: jackhoo_98 <[email protected]>
- Loading branch information
1 parent
b6818f4
commit b376026
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts" setup name="VbenSpin"> | ||
import { maps } from '#/index' | ||
const Spin = maps.get('Spin') | ||
</script> | ||
<template> | ||
<Spin v-bind="$attrs"> | ||
<template #[item]="data" v-for="item in Object.keys($slots)" :key="item"> | ||
<slot :name="item" v-bind="data || {}"></slot> </template | ||
></Spin> | ||
</template> | ||
|
||
<style scoped></style> |