fix(styles): providers access token

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent 26e3a1944b
commit 497813eced
29 changed files with 294 additions and 106 deletions
+30
View File
@@ -0,0 +1,30 @@
import SealSelect from '@/components/seal-form/seal-select';
import React from 'react';
import { categoryConfig } from './model-tag';
const CategorySelect = (props: any) => {
const { options, ...rest } = props;
const optionRenderer = (option: any) => {
const config = categoryConfig[option.value] || {};
console.log('option:', option, 'config:', config);
return (
<span className="flex-center">
<span style={{ color: config.color }}>
{React.cloneElement(config.icon)}
</span>
<span style={{ marginLeft: 8 }}>{option.label}</span>
</span>
);
};
return (
<SealSelect
options={options}
optionRenderer={optionRenderer}
labelRender={optionRenderer}
{...rest}
/>
);
};
export default CategorySelect;