chore: 规范 module 名称

This commit is contained in:
就眠儀式
2022-04-05 19:09:04 +08:00
parent 5a3482568a
commit 5f87bc67c7
215 changed files with 8 additions and 8 deletions

View File

View File

@@ -0,0 +1,3 @@
import Component from "./index.vue";
export default Component;

View File

@@ -0,0 +1,38 @@
<script lang="ts">
export default {
name: "LayIcon",
};
</script>
<script setup lang="ts">
import { computed } from "vue";
export interface LayIconProps {
size?: string;
type?: string;
color?: string;
prefix?: string;
}
const props = withDefaults(defineProps<LayIconProps>(), {
prefix: "layui-icon",
});
const styles = computed(() => {
return {
color: props.color,
fontSize: props.size,
};
});
const classes = computed(() => {
return {
type: props.type,
prefix: props.prefix,
};
});
</script>
<template>
<i :class="[prefix, type]" :style="styles" />
</template>