feat: model usage

This commit is contained in:
jialin
2025-06-24 16:54:03 +08:00
parent 645801fe86
commit 34af730934
22 changed files with 750 additions and 385 deletions
@@ -0,0 +1,25 @@
import AutoTooltip from '@/components/auto-tooltip';
interface SelectRenderProps {
maxTagWidth?: number;
}
export default function useSelectRender(config?: SelectRenderProps) {
const { maxTagWidth = 100 } = config || {};
const TagRender = (props: any) => {
const { label } = props;
return (
<AutoTooltip
maxWidth={maxTagWidth}
closable={props.closable}
onClose={props.onClose}
>
{label}
</AutoTooltip>
);
};
return {
TagRender
};
}