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,10 @@
<template>
<router-view />
</template>
<script lang="ts">
import Vue from "vue";
export default {
name: "App",
};
</script>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,16 @@
<script lang="ts">
export default {
name: "FontsUIcon",
};
</script>
<script setup lang="ts">
import LayIcon from "../component/icon/index";
const props = defineProps<{
color?: string;
size?: string;
}>();
</script>
<template>
<lay-icon :color="props.color" :size="props.size" type="layui-icon-fonts-u" />
</template>

View File

@@ -0,0 +1,31 @@
<script lang="ts">
export default {
name: "LaySide",
};
</script>
<script setup lang="ts">
import { computed, CSSProperties } from "vue";
import "./index.less";
export interface SideProps {
width?: string | number;
}
const props = withDefaults(defineProps<SideProps>(), {
width: "200px",
});
const styles = computed<CSSProperties>(() => {
return {
flex: `0 0 ${props.width}`,
width: `${props.width}`,
};
});
</script>
<template>
<div class="layui-side" :style="styles">
<slot></slot>
</div>
</template>