feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -32,7 +32,7 @@ import {
|
||||
Typography,
|
||||
Input,
|
||||
Modal,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
timestamp2string,
|
||||
renderGroup,
|
||||
@@ -45,13 +45,13 @@ import {
|
||||
IconCopy,
|
||||
IconEyeOpened,
|
||||
IconEyeClosed,
|
||||
} from '@douyinfe/semi-icons';
|
||||
} from '@/components/ui/icons';
|
||||
|
||||
// progress color helper
|
||||
const getProgressColor = (pct) => {
|
||||
if (pct === 100) return 'var(--semi-color-success)';
|
||||
if (pct <= 10) return 'var(--semi-color-danger)';
|
||||
if (pct <= 30) return 'var(--semi-color-warning)';
|
||||
if (pct === 100) return 'var(--ui-color-success)';
|
||||
if (pct <= 10) return 'var(--ui-color-danger)';
|
||||
if (pct <= 30) return 'var(--ui-color-warning)';
|
||||
return undefined;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user