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,32 @@
<script lang="ts">
export default {
name: "LayPanel",
};
</script>
<script setup lang="ts">
import "./index.less";
import { computed } from "vue";
import { PanelShadow } from "./interface";
export interface PanelProps {
shadow?: PanelShadow;
}
const props = withDefaults(defineProps<PanelProps>(), {
shadow: "always",
});
const classes = computed(() => {
return {
shadow: props.shadow === "always",
"is-hover-shadow": props.shadow === "hover",
};
});
</script>
<template>
<div class="layui-panel" :class="classes">
<slot></slot>
</div>
</template>