@x-ui-vue3/skeleton
SKELETON 骨架屏
478
| Install | |
|---|---|
npm install @x-ui-vue3/skeleton |
|
| Latest Version: | 1.0.2 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jun 27, 2022 |
| Links: | Gitee · npm |
Maintainer: huodoushigemi
SKELETON
骨架屏
文档
安装
使用 npm 安装
npm i -S @x-ui-vue3/skeleton
使用 yarn 安装
yarn add -S @x-ui-vue3/skeleton
示例
main.js
import { createApp } from 'vue'
import Skeleton from '@x-ui-vue3/skeleton'
import App from './App.vue'
createApp(App).use(Skeleton).mount('#app')
App.vue
<script setup>
import { ref } from 'vue'
const loading = ref(false)
</script>
<template>
<label for="loading">点击切换</label>
<input v-model="loading" id="loading" type="checkbox" />
<br /><br />
<div v-skeleton="loading">
<span v-skeleton-item>超文本标记语言是一种用于创建网页的标准标记语言。</span>
<br /><br />
<span v-skeleton-item>www.runoob.com</span>
<br /><br />
<span v-skeleton-item>Good good study, day day up!</span>
</div>
</template>
快速入门 DEMO
# clone the project
git clone https://github.com/huodoushigemi/example-skeleton.git
# enter the project directory
cd example-skeleton
# install dependency
npm install
# develop
npm run dev
效果图
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.2 | ^3.2.8 | MIT | |
| 1.0.1 | ^3.2.8 | MIT |