This commit is contained in:
2022-12-09 16:41:41 +08:00
parent c1cce5a7c2
commit ff7aa8774f
2003 changed files with 156639 additions and 140 deletions

View File

@@ -0,0 +1,29 @@
<script lang="ts">
export default {
name: "LaySkeletonItem",
};
</script>
<script setup lang="ts">
import { withDefaults } from "vue";
import { LayIcon } from "@layui/icons-vue";
export interface SkeletonProps {
type?: string;
}
const props = withDefaults(defineProps<SkeletonProps>(), {
type: "p",
});
</script>
<template>
<div
:class="['lay-skeleton-item', `lay-skeleton-type--${type}`]"
v-bind="$attrs"
>
<div v-if="type === 'image'">
<lay-icon type="layui-icon-picture"></lay-icon>
</div>
</div>
</template>