This commit is contained in:
dap
2024-08-09 14:00:07 +08:00
parent 6ef9dba129
commit 3648854909
3 changed files with 4 additions and 5 deletions

View File

@@ -16,10 +16,7 @@ export const tagTypes: TagType = {
orange: { color: 'orange', label: 'orange' },
/** 自定义预设 color可以为16进制颜色 */
pink: { color: 'pink', label: 'pink' },
/**
* 新版processing参数有问题 暂时用blue代替
*/
primary: { color: 'blue', label: '主要(primary)' },
primary: { color: 'processing', label: '主要(primary)' },
purple: { color: 'purple', label: 'purple' },
red: { color: 'red', label: 'red' },
success: { color: 'success', label: '成功(success)' },

View File

@@ -64,7 +64,7 @@ const deviceOptions = getDictOptions('sys_device_type');
</RadioGroup>
</div>
</Card>
<Card title="tag测试: (processing有问题)">
<Card title="tag测试">
<ATag :bordered="false" color="processing">processing</ATag>
<ATag :bordered="false" color="success">success</ATag>
<ATag :bordered="false" color="error">error</ATag>

View File

@@ -36,6 +36,8 @@ export function useAntdDesignTokens() {
() => {
tokens.colorPrimary = getCssVariableValue('--primary');
tokens.colorInfo = getCssVariableValue('--primary');
tokens.colorError = getCssVariableValue('--destructive');
tokens.colorWarning = getCssVariableValue('--warning');