Showing
3 changed files
with
32 additions
and
7 deletions
... | ... | @@ -4,6 +4,8 @@ import React, { useEffect, useState } from 'react'; |
4 | 4 | |
5 | 5 | import { QxBaseIcon } from '../qx-base-icon/index'; |
6 | 6 | |
7 | +import './styles.less'; | |
8 | + | |
7 | 9 | const { Option } = Select; |
8 | 10 | |
9 | 11 | type SortProps = { |
... | ... | @@ -217,23 +219,21 @@ export const QxSortCondition: React.FC<QxSortConditionProps> = (props) => { |
217 | 219 | })} |
218 | 220 | </Select> |
219 | 221 | <span |
220 | - className={'qx-sort-condition-container__opt'} | |
222 | + className={'qx-sort-condition-container__operate'} | |
221 | 223 | style={{ margin: '-2px 0 0 .5em' }} |
222 | 224 | > |
223 | 225 | <Button |
226 | + className={'operate-button'} | |
224 | 227 | size="small" |
225 | - icon={ | |
226 | - <QxBaseIcon style={{ fontSize: 16 }} type={'qx-icon-minus'} /> | |
227 | - } | |
228 | + icon={<QxBaseIcon type={'qx-icon-minus'} />} | |
228 | 229 | disabled={sorts.length <= 1} |
229 | 230 | onClick={() => removeSort(k)} |
230 | 231 | /> |
231 | 232 | |
232 | 233 | <Button |
234 | + className={'operate-button'} | |
233 | 235 | size="small" |
234 | - icon={ | |
235 | - <QxBaseIcon style={{ fontSize: 16 }} type={'qx-icon-plus'} /> | |
236 | - } | |
236 | + icon={<QxBaseIcon type={'qx-icon-plus'} />} | |
237 | 237 | disabled={ |
238 | 238 | sorts.length >= |
239 | 239 | ((columns || []).length > 3 ? 3 : (columns || []).length) | ... | ... |
src/qx-sort-condition/styles.less
0 → 100644
1 | +@import '~@qx/ui/dist/src/style/variable.less'; | |
2 | + | |
3 | +.qx-sort-condition-container { | |
4 | + &__operate { | |
5 | + .operate-button { | |
6 | + color: @N7; | |
7 | + | |
8 | + &:disabled { | |
9 | + color: @N5; | |
10 | + | |
11 | + &:hover { | |
12 | + color: @N5; | |
13 | + } | |
14 | + } | |
15 | + | |
16 | + &:hover { | |
17 | + color: @B8; | |
18 | + } | |
19 | + } | |
20 | + } | |
21 | +} | ... | ... |