replace date-picker font icon

This commit is contained in:
HeskeyBaozi 2018-07-23 12:06:38 +08:00
parent 87594997d2
commit ca644505be
4 changed files with 7 additions and 11 deletions

View File

@ -338,7 +338,7 @@ class RangePicker extends React.Component<any, RangePickerState> {
tabIndex={-1}
/>
{clearIcon}
<span className={`${prefixCls}-picker-icon`} />
<Icon type="calendar" className={`${prefixCls}-picker-icon`}/>
</span>
);
};

View File

@ -132,7 +132,7 @@ class WeekPicker extends React.Component<any, any> {
style={style}
/>
{clearIcon}
<span className={`${prefixCls}-picker-icon`} />
<Icon type="calendar" className={`${prefixCls}-picker-icon`}/>
</span>
);
};

View File

@ -171,7 +171,7 @@ export default function createPicker(TheCalendar: React.ComponentClass): any {
{...dataOrAriaProps}
/>
{clearIcon}
<span className={`${prefixCls}-picker-icon`} />
<Icon type="calendar" className={`${prefixCls}-picker-icon`}/>
</div>
);

View File

@ -81,15 +81,11 @@
}
&-icon {
font-family: "anticon";
font-size: @font-size-base;
color: @disabled-color;
&:after {
content: "\e6bb";
font-family: "anticon";
font-size: @font-size-base;
color: @disabled-color;
display: inline-block;
line-height: 1;
}
display: inline-block;
line-height: 1;
}
&-small &-clear,