add alpha branch

This commit is contained in:
就眠儀式
2022-01-27 16:18:16 +08:00
parent 5c79b2b9ba
commit 5ea8b7bf7c
103 changed files with 577 additions and 474 deletions

View File

@@ -1,9 +1,8 @@
import type { App } from 'vue'
import Component from './index.vue'
import type { IDefineComponent } from '../type/index'
Component.install = (app: App) => {
app.component(Component.name || 'LaySkeletonItem', Component)
app.component(Component.name, Component)
}
export default Component as IDefineComponent
export default Component;

View File

@@ -1,12 +1,10 @@
<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>
<script lang="ts">
export default {
name: "LaySkeletonItem"
}
</script>
<script setup name="LaySkeletonItem" lang="ts">
<script setup lang="ts">
import { defineProps, withDefaults} from "vue";
export interface LaySkeletonProps {
@@ -16,4 +14,12 @@ export interface LaySkeletonProps {
const props = withDefaults(defineProps<LaySkeletonProps>(), {
type: 'p',
});
</script>-
</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>