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