feat: 优化界面显示,对deck添加编辑功能
This commit is contained in:
17
src/components/card/CardBlank.tsx
Normal file
17
src/components/card/CardBlank.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import clsx from 'clsx';
|
||||
import twMerge from 'tailwind-merge';
|
||||
|
||||
type CardBlankProps = {
|
||||
number?: number;
|
||||
className?: string;
|
||||
};
|
||||
export const CardBlank = (props: CardBlankProps) => {
|
||||
const { number = 4, className } = props;
|
||||
return (
|
||||
<>
|
||||
{new Array(number).fill(0).map((_, index) => {
|
||||
return <div key={index} className={clsx('w-[300px] flex-shrink-0', className)}></div>;
|
||||
})}
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user