docs: 更新日志
This commit is contained in:
parent
65031d2507
commit
45ed7c8703
@ -18,6 +18,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>[新增] button 组件 prefix-icon 属性。</li>
|
<li>[新增] button 组件 prefix-icon 属性。</li>
|
||||||
<li>[新增] button 组件 suffix-icon 属性。</li>
|
<li>[新增] button 组件 suffix-icon 属性。</li>
|
||||||
|
<li>[新增] card 组件 shadow 属性, 可选值 hover, always, never。</li>
|
||||||
<li>[新增] table 组件 row 和 row-double 时间的 event 参数。</li>
|
<li>[新增] table 组件 row 和 row-double 时间的 event 参数。</li>
|
||||||
<li>[新增] table 组件 contextmenu 行右键事件。</li>
|
<li>[新增] table 组件 contextmenu 行右键事件。</li>
|
||||||
<li>[支持] Cdn 直接导入。</li>
|
<li>[支持] Cdn 直接导入。</li>
|
||||||
|
@ -7,8 +7,8 @@ export default {
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, useSlots } from "vue";
|
import { computed, useSlots } from "vue";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
import { String } from 'src/types';
|
import { String } from "src/types";
|
||||||
import { CardShadow } from './interface';
|
import { CardShadow } from "./interface";
|
||||||
|
|
||||||
const slot = useSlots();
|
const slot = useSlots();
|
||||||
|
|
||||||
@ -18,15 +18,15 @@ export interface LayCardProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<LayCardProps>(), {
|
const props = withDefaults(defineProps<LayCardProps>(), {
|
||||||
shadow:'always'
|
shadow: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
const classes = computed(() => {
|
const classes = computed(() => {
|
||||||
return {
|
return {
|
||||||
'shadow': props.shadow === 'always',
|
shadow: props.shadow === "always",
|
||||||
'is-hover-shadow': props.shadow === 'hover'
|
"is-hover-shadow": props.shadow === "hover",
|
||||||
}
|
};
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -1 +1 @@
|
|||||||
export type CardShadow = 'always' | 'hover' | 'never'
|
export type CardShadow = "always" | "hover" | "never";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user