fix(style): unify casing of system terms
This commit is contained in:
@@ -12,7 +12,6 @@ interface NoteInfoProps {
|
||||
const NoteInfo: React.FC<NoteInfoProps> = (props) => {
|
||||
const { required, description, label, labelExtra } = props || {};
|
||||
if (!label) return null;
|
||||
|
||||
return (
|
||||
<span className="label-text">
|
||||
{description ? (
|
||||
|
||||
@@ -10,6 +10,9 @@ import {
|
||||
const InputWrapper = styled.div`
|
||||
.seal-input-number {
|
||||
padding-right: 0;
|
||||
.isfoucs-has-value {
|
||||
top: 9px;
|
||||
}
|
||||
}
|
||||
.seal-input-wrapper-disabled {
|
||||
background-color: var(--ant-color-bg-container-disabled);
|
||||
@@ -82,7 +85,7 @@ const InputWrapper = styled.div`
|
||||
input.ant-input-number-input {
|
||||
flex: 1;
|
||||
height: ${INPUTHEIGHT}px !important;
|
||||
padding-block: 5px;
|
||||
padding-block: 5px 4px;
|
||||
padding-inline: ${INPUT_INNER_PADDING}px;
|
||||
}
|
||||
.ant-input-group {
|
||||
|
||||
@@ -1,6 +1,26 @@
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const UL = styled.ul`
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
li {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.title {
|
||||
font-weight: 600;
|
||||
color: var(--ant-color-text-light-solid);
|
||||
}
|
||||
.content {
|
||||
color: var(--color-white-tertiary);
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
interface TooltipListProps {
|
||||
list: { title: any; tips: string }[];
|
||||
@@ -10,36 +30,23 @@ const TooltipList: React.FC<TooltipListProps> = (props) => {
|
||||
const intl = useIntl();
|
||||
const { list } = props;
|
||||
return (
|
||||
<ul className="tips-desc-list">
|
||||
<UL>
|
||||
{list.map((item, index: number) => {
|
||||
return (
|
||||
<li className="m-b-8" key={index}>
|
||||
<Typography.Title
|
||||
level={5}
|
||||
style={{
|
||||
color: 'var(--color-white-1)',
|
||||
marginRight: 10,
|
||||
marginBottom: 0
|
||||
}}
|
||||
>
|
||||
<li key={index}>
|
||||
<span className="title">
|
||||
{item.title?.locale
|
||||
? intl.formatMessage({ id: item.title?.text || '' })
|
||||
: item.title}
|
||||
:
|
||||
</Typography.Title>
|
||||
<Typography.Text
|
||||
style={{
|
||||
color: 'var(--color-white-1)',
|
||||
display: 'inline-flex',
|
||||
lineHeight: 1.5
|
||||
}}
|
||||
>
|
||||
</span>
|
||||
<span className="content">
|
||||
{intl.formatMessage({ id: item.tips })}
|
||||
</Typography.Text>
|
||||
</span>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</UL>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user