From 42e52e9124c4501d4f20165ae5b0494d1c9bc677 Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2betop.cn@gmail.com> Date: Mon, 17 Aug 2020 23:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/InputBox.tsx | 1 + src/components/condition-builder/Group.tsx | 2 +- src/components/icons.tsx | 4 ++++ src/icons/plus-cicle.svg | 9 +++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/icons/plus-cicle.svg diff --git a/src/components/InputBox.tsx b/src/components/InputBox.tsx index f094deb1..54761a6f 100644 --- a/src/components/InputBox.tsx +++ b/src/components/InputBox.tsx @@ -103,6 +103,7 @@ export class InputBox extends React.Component { placeholder={placeholder} onFocus={this.handleFocus} onBlur={this.handleBlur} + size={12} /> {children} diff --git a/src/components/condition-builder/Group.tsx b/src/components/condition-builder/Group.tsx index 6c3134ef..4f21d632 100644 --- a/src/components/condition-builder/Group.tsx +++ b/src/components/condition-builder/Group.tsx @@ -162,7 +162,7 @@ export class ConditionGroup extends React.Component { size="xs" className="m-r-xs" > - + 添加条件组 diff --git a/src/components/icons.tsx b/src/components/icons.tsx index dbc0659a..bc948981 100644 --- a/src/components/icons.tsx +++ b/src/components/icons.tsx @@ -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 = ; @@ -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, diff --git a/src/icons/plus-cicle.svg b/src/icons/plus-cicle.svg new file mode 100644 index 00000000..e2eab0dc --- /dev/null +++ b/src/icons/plus-cicle.svg @@ -0,0 +1,9 @@ + + + + + + + + +