|
@@ -5,18 +5,18 @@
|
|
|
|
|
|
|
|
// 上下内边距样式
|
|
// 上下内边距样式
|
|
|
// up down padding style
|
|
// up down padding style
|
|
|
- const pyObj = { '0': ' py-0', '1': ' py-1', '2': ' py-2', '4': ' py-4', '8': ' py-8' };
|
|
|
|
|
|
|
+ const pyObj = { '0': ' py-0', '1': ' py-1', '2': ' py-2', '3': ' py-3', '4': ' py-4', '8': ' py-8' };
|
|
|
|
|
|
|
|
// 阴影样式
|
|
// 阴影样式
|
|
|
// shadow style
|
|
// shadow style
|
|
|
const shadowObj = {
|
|
const shadowObj = {
|
|
|
none: ' shadow-none',
|
|
none: ' shadow-none',
|
|
|
- xs: ' shadow-xs',
|
|
|
|
|
- sm: 'shadow-sm',
|
|
|
|
|
- md: ' shadow-md',
|
|
|
|
|
- lg: ' shadow-lg',
|
|
|
|
|
- xl: ' shadow-xl',
|
|
|
|
|
- '2xl': ' shadow-2xl'
|
|
|
|
|
|
|
+ xs: ' shadow-xs dark:shadow-white/5',
|
|
|
|
|
+ sm: 'shadow-sm dark:shadow-white/10',
|
|
|
|
|
+ md: ' shadow-md dark:shadow-white/10',
|
|
|
|
|
+ lg: ' shadow-lg dark:shadow-white/10',
|
|
|
|
|
+ xl: ' shadow-xl dark:shadow-white/10',
|
|
|
|
|
+ '2xl': ' shadow-2xl dark:shadow-white/20'
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 圆角样式
|
|
// 圆角样式
|
|
@@ -49,10 +49,8 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
|
- class="flex flex-col justify-center bg-black/5 dark:bg-white/5 text-center{heightObj[height as keyof typeof heightObj] ||
|
|
|
|
|
- heightObj.full}{pyObj[py as keyof typeof pyObj] || pyObj['4']}{radiusObj[radius as keyof typeof radiusObj] || radiusObj.md}{shadowObj[
|
|
|
|
|
- shadow as keyof typeof shadowObj
|
|
|
|
|
- ] || shadowObj.none}{injClass === '' ? '' : ` ${injClass}`}"
|
|
|
|
|
|
|
+ class="flex flex-col justify-center bg-black/5 dark:bg-white/5 text-center{heightObj[height] || heightObj.full}{pyObj[py] ||
|
|
|
|
|
+ pyObj['4']}{radiusObj[radius] || radiusObj.md}{shadowObj[shadow] || shadowObj.none}{injClass === '' ? '' : ` ${injClass}`}"
|
|
|
>
|
|
>
|
|
|
{@render children?.()}
|
|
{@render children?.()}
|
|
|
</div>
|
|
</div>
|