mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
调整样式
This commit is contained in:
parent
a9ad7453d2
commit
6cb52b2a8c
@ -584,12 +584,12 @@ $PopOver-bg: white !default;
|
||||
$Remark-width: 1rem !default;
|
||||
$Remark-icon-fontSize: $fontSizeBase !default;
|
||||
$Remark-iconColor: $icon-color !default;
|
||||
$Remark-onHover-iconColor: $icon-onHover-color !default;
|
||||
$Remark-bg: transparent !default;
|
||||
$Remark-onHover-bg: transparent !default;
|
||||
$Remark-borderWidth: 0 !default;
|
||||
$Remark-onHover-iconColor: #fff !default;
|
||||
$Remark-bg: #fff !default;
|
||||
$Remark-onHover-bg: $primary !default;
|
||||
$Remark-borderWidth: px2rem(1px) !default;
|
||||
$Remark-borderColor: $borderColor !default;
|
||||
$Remark-onHover-borderColor: $borderColor !default;
|
||||
$Remark-onHover-borderColor: $primary !default;
|
||||
$Remark-marginLeft: $gap-sm !default;
|
||||
|
||||
// ResultBox
|
||||
|
@ -110,6 +110,9 @@ import InfoCircleIcon from '../icons/info-circle.svg';
|
||||
// @ts-ignore
|
||||
import WarningIcon from '../icons/warning.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import WarningMarkIcon from '../icons/warning-mark.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ScheduleIcon from '../icons/schedule.svg';
|
||||
|
||||
@ -196,6 +199,7 @@ registerIcon('file', FileIcon);
|
||||
registerIcon('success', SuccessIcon);
|
||||
registerIcon('fail', FailIcon);
|
||||
registerIcon('warning', WarningIcon);
|
||||
registerIcon('warning-mark', WarningMarkIcon);
|
||||
registerIcon('search', SearchIcon);
|
||||
registerIcon('back', BackIcon);
|
||||
registerIcon('move', MoveIcon);
|
||||
|
20
src/icons/warning-mark.svg
Normal file
20
src/icons/warning-mark.svg
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
|
||||
<title>
|
||||
Group 16
|
||||
</title>
|
||||
<desc>
|
||||
Created with Sketch.
|
||||
</desc>
|
||||
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="07icon/提示说明/叹号默认" stroke="currentColor">
|
||||
<g id="Group-16">
|
||||
<rect id="Rectangle-3" x="5.5" y="2.5" width="1" height="5">
|
||||
</rect>
|
||||
<rect id="Rectangle-13" x="5.5" y="9.5" width="1" height="1">
|
||||
</rect>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 637 B |
@ -129,7 +129,7 @@ class Remark extends React.Component<RemarkProps> {
|
||||
{finalIcon ? (
|
||||
<i className={cx('Remark-icon', finalIcon)} />
|
||||
) : finalIcon === false && finalLabel ? null : (
|
||||
<Icon icon="question" className={cx('Remark-icon icon')} />
|
||||
<Icon icon="warning-mark" className={cx('Remark-icon icon')} />
|
||||
)}
|
||||
</div>
|
||||
</TooltipWrapper>
|
||||
|
Loading…
Reference in New Issue
Block a user