样式调整

This commit is contained in:
liaoxuezhi 2020-08-17 23:31:14 +08:00
parent 385bf04303
commit 42e52e9124
4 changed files with 15 additions and 1 deletions

View File

@ -103,6 +103,7 @@ export class InputBox extends React.Component<InputBoxProps, InputBoxState> {
placeholder={placeholder}
onFocus={this.handleFocus}
onBlur={this.handleBlur}
size={12}
/>
{children}

View File

@ -162,7 +162,7 @@ export class ConditionGroup extends React.Component<ConditionGroupProps> {
size="xs"
className="m-r-xs"
>
<Icon icon="plus" className="icon" />
<Icon icon="plus-cicle" className="icon" />
</Button>
</div>

View File

@ -131,6 +131,9 @@ import SortDescIcon from '../icons/sort-desc.svg';
// @ts-ignore
import SettingIcon from '../icons/setting.svg';
// @ts-ignore
import PlusCicleIcon from '../icons/plus-cicle.svg';
// 兼容原来的用法,后续不直接试用。
// @ts-ignore
export const closeIcon = <CloseIcon />;
@ -217,6 +220,7 @@ registerIcon('sort-default', SortDefaultIcon);
registerIcon('sort-asc', SortAscIcon);
registerIcon('sort-desc', SortDescIcon);
registerIcon('setting', SettingIcon);
registerIcon('plus-cicle', PlusCicleIcon);
export function Icon({
icon,

9
src/icons/plus-cicle.svg Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 163 163" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="plus-border" transform="translate(0.500000, 0.500000)" fill="#000000" fill-rule="nonzero">
<path d="M81.25,0 C36.4054066,0.0688329588 0.0688329588,36.4054066 1.11022302e-14,81.25 C0.0688329588,126.094593 36.4054066,162.431167 81.25,162.5 C126.094593,162.431167 162.431167,126.094593 162.5,81.25 C162.431167,36.4054066 126.094593,0.0688329588 81.25,0 Z M81.25,12.5 C119.2875,12.5 150,43.2125 150,81.25 C150,119.2875 119.2875,150.000056 81.25,150.000056 C63.0092456,150.02326 45.5088964,142.787447 32.6107248,129.889275 C19.7125532,116.991104 12.4767401,99.4907544 12.4999441,81.25 C12.4999441,43.2125 43.2125,12.5 81.25,12.5 Z M75,37.5 L75,75 L37.5,75 L37.5,87.5 L75,87.5 L75,125 L87.5,125 L87.5,87.5 L125,87.5 L125,75 L87.5,75 L87.5,37.5 L75,37.5 Z" id="形状">
</path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB