docs: 更新日志

This commit is contained in:
就眠儀式 2022-03-29 05:36:08 +08:00
parent 65031d2507
commit 45ed7c8703
3 changed files with 9 additions and 8 deletions

View File

@ -18,6 +18,7 @@
<ul>
<li>[新增] button 组件 prefix-icon 属性。</li>
<li>[新增] button 组件 suffix-icon 属性。</li>
<li>[新增] card 组件 shadow 属性, 可选值 hover, always, never。</li>
<li>[新增] table 组件 row 和 row-double 时间的 event 参数。</li>
<li>[新增] table 组件 contextmenu 行右键事件。</li>
<li>[支持] Cdn 直接导入。</li>

View File

@ -7,8 +7,8 @@ export default {
<script setup lang="ts">
import { computed, useSlots } from "vue";
import "./index.less";
import { String } from 'src/types';
import { CardShadow } from './interface';
import { String } from "src/types";
import { CardShadow } from "./interface";
const slot = useSlots();
@ -18,15 +18,15 @@ export interface LayCardProps {
}
const props = withDefaults(defineProps<LayCardProps>(), {
shadow:'always'
shadow: "always",
});
const classes = computed(() => {
return {
'shadow': props.shadow === 'always',
'is-hover-shadow': props.shadow === 'hover'
}
})
shadow: props.shadow === "always",
"is-hover-shadow": props.shadow === "hover",
};
});
</script>
<template>

View File

@ -1 +1 @@
export type CardShadow = 'always' | 'hover' | 'never'
export type CardShadow = "always" | "hover" | "never";