chore: commit时格式整理

This commit is contained in:
dingyongya
2022-02-16 17:22:55 +08:00
parent c2b9d36868
commit 7f3674d532
95 changed files with 823 additions and 852 deletions

View File

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

View File

@@ -1,25 +1,28 @@
<script lang="ts">
export default {
name: "LaySkeletonItem"
}
name: "LaySkeletonItem",
};
</script>
<script setup lang="ts">
import { withDefaults} from "vue";
import { withDefaults } from "vue";
export interface LaySkeletonProps {
type?: string;
type?: string;
}
const props = withDefaults(defineProps<LaySkeletonProps>(), {
type: 'p',
type: "p",
});
</script>
<template>
<div :class="['lay-skeleton-item',`lay-skeleton-type--${type}`]" v-bind="$attrs">
<div v-if="type==='image'" >
<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>
</template>