Commit 6efe7fdfee56e86efacab1742cebca4c2d1583cc
Merge branch 'feature/dataflow' of http://gitlab.qgutech.com/tianqiang/qx-common…
… into feature/dataflow
Showing
3 changed files
with
49 additions
and
4 deletions
@@ -347,7 +347,7 @@ export const QxAppSelector: React.FC<QxAppSelectProps> = ({ | @@ -347,7 +347,7 @@ export const QxAppSelector: React.FC<QxAppSelectProps> = ({ | ||
347 | closeIcon={ | 347 | closeIcon={ |
348 | <QxBaseIcon | 348 | <QxBaseIcon |
349 | className={'qx-common__modal--close'} | 349 | className={'qx-common__modal--close'} |
350 | - type={'icon-close'} | 350 | + type={'qx-icon-close'} |
351 | /> | 351 | /> |
352 | } | 352 | } |
353 | keyboard={false} | 353 | keyboard={false} |
@@ -40,6 +40,8 @@ import { QxBaseIcon } from '@qx/common'; | @@ -40,6 +40,8 @@ import { QxBaseIcon } from '@qx/common'; | ||
40 | import Icon from '@ant-design/icons'; | 40 | import Icon from '@ant-design/icons'; |
41 | import { SubNodeIcon } from './sub-node-icon'; | 41 | import { SubNodeIcon } from './sub-node-icon'; |
42 | 42 | ||
43 | +import '../style/reset.less'; | ||
44 | + | ||
43 | type ValueOptionProps = { | 45 | type ValueOptionProps = { |
44 | key: number | string; | 46 | key: number | string; |
45 | value: string; | 47 | value: string; |
@@ -724,6 +726,13 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { | @@ -724,6 +726,13 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { | ||
724 | // onOk={handleCancel} | 726 | // onOk={handleCancel} |
725 | onCancel={onCancel} | 727 | onCancel={onCancel} |
726 | width={960} | 728 | width={960} |
729 | + wrapClassName={'qx-common__modal'} | ||
730 | + closeIcon={ | ||
731 | + <QxBaseIcon | ||
732 | + className={'qx-common__modal--close'} | ||
733 | + type={'qx-icon-close'} | ||
734 | + /> | ||
735 | + } | ||
727 | > | 736 | > |
728 | {isShowJson ? ( | 737 | {isShowJson ? ( |
729 | <Row> | 738 | <Row> |
1 | @import '~@qx/ui/src/style/variable.less'; | 1 | @import '~@qx/ui/src/style/variable.less'; |
2 | 2 | ||
3 | +* { | ||
4 | + scrollbar-width: thin; | ||
5 | + font-variant-numeric: tabular-nums; // tabular-nums 可以达到数字等宽的效果 | ||
6 | + box-sizing: border-box; | ||
7 | + outline: none; | ||
8 | + // 覆盖 antd+CSS3 样式 | ||
9 | + // 当用户使用鼠标点击焦点元素或使用键盘的 Tab 键(或快捷键)触发焦点元素焦点环的样式 | ||
10 | + &.focus-visible { | ||
11 | + outline: none; | ||
12 | + } | ||
13 | +} | ||
14 | + | ||
15 | +// 全局滚动条样式重设 | ||
16 | +::-webkit-scrollbar { | ||
17 | + width: 9px; | ||
18 | + height: 12px; | ||
19 | + padding: 2px 0; | ||
20 | + background-color: #fafafa; | ||
21 | +} | ||
22 | + | ||
23 | +::-webkit-scrollbar-button, | ||
24 | +::-webkit-scrollbar-corner { | ||
25 | + display: none; | ||
26 | + width: 0; | ||
27 | + height: 0; | ||
28 | +} | ||
29 | + | ||
30 | +::-webkit-scrollbar-thumb { | ||
31 | + width: 6px; | ||
32 | + height: 8px; | ||
33 | + background: rgba(0, 0, 0, 0.1); | ||
34 | + background-clip: padding-box; | ||
35 | + border: 2px solid transparent; | ||
36 | + border-radius: 6px; | ||
37 | +} | ||
38 | + | ||
3 | .qx-common__modal { | 39 | .qx-common__modal { |
4 | .ant-modal-content { | 40 | .ant-modal-content { |
5 | padding: 0; | 41 | padding: 0; |
@@ -28,7 +64,7 @@ | @@ -28,7 +64,7 @@ | ||
28 | align-items: center; | 64 | align-items: center; |
29 | justify-content: center; | 65 | justify-content: center; |
30 | width: 20px; | 66 | width: 20px; |
31 | - height: 24px; | 67 | + height: 20px; |
32 | padding: 0; | 68 | padding: 0; |
33 | 69 | ||
34 | .qx-common__modal--close { | 70 | .qx-common__modal--close { |
@@ -36,9 +72,9 @@ | @@ -36,9 +72,9 @@ | ||
36 | align-items: center; | 72 | align-items: center; |
37 | justify-content: center; | 73 | justify-content: center; |
38 | width: 20px; | 74 | width: 20px; |
39 | - height: 24px; | 75 | + height: 20px; |
40 | color: @N7; | 76 | color: @N7; |
41 | - font-size: 12px !important; | 77 | + font-size: 16px; |
42 | 78 | ||
43 | &:hover { | 79 | &:hover { |
44 | color: @N9; | 80 | color: @N9; |