fix: info颜色问题 https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IAIR1X
This commit is contained in:
@@ -16,10 +16,7 @@ export const tagTypes: TagType = {
|
|||||||
orange: { color: 'orange', label: 'orange' },
|
orange: { color: 'orange', label: 'orange' },
|
||||||
/** 自定义预设 color可以为16进制颜色 */
|
/** 自定义预设 color可以为16进制颜色 */
|
||||||
pink: { color: 'pink', label: 'pink' },
|
pink: { color: 'pink', label: 'pink' },
|
||||||
/**
|
primary: { color: 'processing', label: '主要(primary)' },
|
||||||
* 新版processing参数有问题 暂时用blue代替
|
|
||||||
*/
|
|
||||||
primary: { color: 'blue', label: '主要(primary)' },
|
|
||||||
purple: { color: 'purple', label: 'purple' },
|
purple: { color: 'purple', label: 'purple' },
|
||||||
red: { color: 'red', label: 'red' },
|
red: { color: 'red', label: 'red' },
|
||||||
success: { color: 'success', label: '成功(success)' },
|
success: { color: 'success', label: '成功(success)' },
|
||||||
|
@@ -64,7 +64,7 @@ const deviceOptions = getDictOptions('sys_device_type');
|
|||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="tag测试: (processing有问题)">
|
<Card title="tag测试">
|
||||||
<ATag :bordered="false" color="processing">processing</ATag>
|
<ATag :bordered="false" color="processing">processing</ATag>
|
||||||
<ATag :bordered="false" color="success">success</ATag>
|
<ATag :bordered="false" color="success">success</ATag>
|
||||||
<ATag :bordered="false" color="error">error</ATag>
|
<ATag :bordered="false" color="error">error</ATag>
|
||||||
|
@@ -36,6 +36,8 @@ export function useAntdDesignTokens() {
|
|||||||
() => {
|
() => {
|
||||||
tokens.colorPrimary = getCssVariableValue('--primary');
|
tokens.colorPrimary = getCssVariableValue('--primary');
|
||||||
|
|
||||||
|
tokens.colorInfo = getCssVariableValue('--primary');
|
||||||
|
|
||||||
tokens.colorError = getCssVariableValue('--destructive');
|
tokens.colorError = getCssVariableValue('--destructive');
|
||||||
|
|
||||||
tokens.colorWarning = getCssVariableValue('--warning');
|
tokens.colorWarning = getCssVariableValue('--warning');
|
||||||
|
Reference in New Issue
Block a user