Skip to content

Commit eacdc70

Browse files
author
Hui
committed
feat: [inputTag] 修改样式及替换icon
1 parent a87e202 commit eacdc70

3 files changed

Lines changed: 24 additions & 12 deletions

File tree

src/components/input-tag/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,17 @@ export default class InputTag extends Component {
267267
)}
268268
</div>
269269
<div className={`${selector}-operate`}>
270-
<span style={{ color: 'red' }}>
270+
<span className={`${selector}-text`}>
271271
{this.count}
272272
/
273273
{max}
274274
</span>
275275
<Tooltip content="一键复制,以指定分隔符拼接,默认为英文分号">
276-
<Icon type="remark" onClick={this.handleCopy} />
276+
<Icon type="copy" onClick={this.handleCopy} />
277277
</Tooltip>
278278
{!disabled && (
279279
<Tooltip content="一键清空所有内容">
280-
<Icon type="close-circle-solid" onClick={this.handleClear} />
280+
<Icon type="close-line" onClick={this.handleClear} />
281281
</Tooltip>
282282
)}
283283
</div>

src/components/input-tag/index.less

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
height: auto;
1414
padding: 7px 10px;
1515
overflow: auto;
16-
border: 1px solid #e8e8e8;
16+
border: 1px solid @gray-4;
17+
border-radius: 3px;
1718

1819
&-config {
1920
height: 30px;
@@ -32,8 +33,10 @@
3233
min-width: 100px;
3334
height: 24px;
3435
outline: none;
36+
color: @gray-9;
37+
3538
&::placeholder {
36-
color: #c9c9c9;
39+
color: @gray-6;
3740
font-size: 12px;
3841
}
3942
}
@@ -49,31 +52,40 @@
4952
height: 24px;
5053
font-size: 12px;
5154
box-sizing: border-box;
52-
background: #eff7ff;
53-
border: 1px solid #ccdceb;
54-
border-radius: 2px;
55+
color: @gray-8;
56+
background: @gray-3;
57+
border-radius: 3px;
5558

5659
.text {
5760
.text-overflow-ellipsis();
5861
}
5962
}
6063

6164
.icon-close {
62-
font-size: 8px;
65+
font-size: 12px;
6366
cursor: pointer;
67+
color: @gray-6;
68+
69+
&:hover {
70+
color: @gray-7;
71+
}
6472
}
6573

6674
&-operate {
6775
display: flex;
6876
justify-content: flex-end;
6977
align-items: center;
7078
gap: 5px;
71-
color: #666;
79+
color: @color-gray2;
7280
font-size: 12px;
7381

7482
i {
75-
color: #00aaf1;
83+
color: @gray-7;
7684
cursor: pointer;
7785
}
7886
}
87+
88+
&-text {
89+
color: @gray-7;
90+
}
7991
}

src/components/tooltip/demos/showArrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ToolTipDemo extends React.Component {
3535
config {showArrow ? 'no arrow' : 'has arrow'} tooltip
3636
</Button>
3737
<Tooltip content={content} placement="top" visible={show} showArrow={showArrow} alwaysShow>
38-
<span>Click button to config {showArrow ? 'has' : 'no'} arrow toolTip.</span>
38+
<span>Click button to config {showArrow ? 'no' : 'has'} arrow toolTip.</span>
3939
</Tooltip>
4040
</div>
4141
);

0 commit comments

Comments
 (0)