init
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user