@qn-pandora/pandora-component 3.1.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +24 -7
- package/CHANGELOG.md +16 -7
- package/README.md +36 -36
- package/es/components/AutoComplete/style.css +25 -29
- package/es/components/AutoComplete/style.less +8 -8
- package/es/components/Breadcrumb/style.less +9 -9
- package/es/components/Button/index.d.ts +0 -8
- package/es/components/Button/index.js +4 -4
- package/es/components/Button/style.css +100 -104
- package/es/components/Button/style.less +51 -62
- package/es/components/Card/RowExtra/style.less +8 -8
- package/es/components/Card/SearchInput/style.less +8 -8
- package/es/components/Card/style.css +28 -2
- package/es/components/Card/style.less +11 -11
- package/es/components/CheckTransformList/style.css +50 -21
- package/es/components/CheckTransformList/style.less +35 -35
- package/es/components/Checkbox/style.css +1 -1
- package/es/components/Checkbox/style.less +5 -5
- package/es/components/CheckboxList/index.d.ts +2 -0
- package/es/components/CheckboxList/index.js +2 -2
- package/es/components/CheckboxList/style.css +5 -3
- package/es/components/CheckboxList/style.less +11 -9
- package/es/components/Collapse/style.css +16 -12
- package/es/components/Collapse/style.less +57 -57
- package/es/components/CollapsiblePanel/style.css +4 -4
- package/es/components/CollapsiblePanel/style.less +63 -63
- package/es/components/DateTimePicker/Base/style.css +378 -49
- package/es/components/DateTimePicker/Base/style.less +160 -164
- package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
- package/es/components/DateTimePicker/BaseMobile/style.css +4 -4
- package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
- package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
- package/es/components/DateTimePicker/DisplayInput/style.css +47 -16
- package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
- package/es/components/DateTimePicker/constants.d.ts +1 -1
- package/es/components/DateTimePicker/constants.js +17 -6
- package/es/components/DateTimePicker/index.js +1 -1
- package/es/components/DateTimePicker/style.css +7 -7
- package/es/components/DateTimePicker/style.less +19 -17
- package/es/components/DateTimePicker/transform.d.ts +4 -0
- package/es/components/DateTimePicker/transform.js +52 -0
- package/es/components/Drawer/index.d.ts +55 -2
- package/es/components/Drawer/index.js +3 -1
- package/es/components/Drawer/style.css +45 -45
- package/es/components/Drawer/style.less +17 -17
- package/es/components/Input/index.d.ts +1 -2
- package/es/components/Input/index.js +0 -2
- package/es/components/Input/style.css +47 -16
- package/es/components/Input/style.less +12 -12
- package/es/components/InputNumber/index.d.ts +1 -8
- package/es/components/InputNumber/index.js +1 -35
- package/es/components/KeyValuePair/style.less +21 -21
- package/es/components/Menu/Option.d.ts +10 -0
- package/es/components/Menu/Option.js +18 -2
- package/es/components/Menu/index.d.ts +1 -1
- package/es/components/Menu/index.js +3 -3
- package/es/components/Menu/style.css +20 -10
- package/es/components/Menu/style.less +18 -8
- package/es/components/Modal/style.less +30 -30
- package/es/components/NameExplainTooltip/style.less +10 -10
- package/es/components/NameLimiter/style.css +2 -4
- package/es/components/NameLimiter/style.less +19 -21
- package/es/components/OptionList/InlineOptionList/style.less +16 -16
- package/es/components/OptionList/OptionItem/style.css +2 -2
- package/es/components/OptionList/OptionItem/style.less +25 -25
- package/es/components/OptionList/PopoverOptionList/style.less +30 -30
- package/es/components/OptionList/style.css +2 -2
- package/es/components/OptionList/style.less +3 -3
- package/es/components/RadioGroup/style.css +8 -8
- package/es/components/RadioGroup/style.less +32 -32
- package/es/components/RangeInput/style.css +427 -27
- package/es/components/RangeInput/style.less +37 -37
- package/es/components/RemarkName/style.css +2 -4
- package/es/components/RemarkName/style.less +2 -2
- package/es/components/Selector/style.css +25 -29
- package/es/components/Selector/style.less +99 -100
- package/es/components/Spin/style.css +0 -1
- package/es/components/Spin/style.less +26 -26
- package/es/components/Steps/ControlButton/style.less +5 -5
- package/es/components/Steps/style.css +8 -6
- package/es/components/Steps/style.less +48 -46
- package/es/components/Table/ColumnTag/style.less +40 -40
- package/es/components/Table/index.js +7 -4
- package/es/components/Table/style.css +85 -27
- package/es/components/Table/style.less +306 -313
- package/es/components/Tabs/style.css +29 -1
- package/es/components/Tabs/style.less +33 -31
- package/es/components/TagList/Tag/style.less +72 -72
- package/es/components/TagList/TagSwitch/style.less +28 -28
- package/es/components/TagList/style.css +10 -10
- package/es/components/TagList/style.less +28 -28
- package/es/components/Timeline/TimelineItem/style.less +49 -49
- package/es/components/Timeline/style.less +23 -23
- package/es/components/Transfer/List/index.js +3 -3
- package/es/components/Transfer/List/style.css +3 -0
- package/es/components/Transfer/List/style.less +19 -15
- package/es/components/Transfer/ListBody/style.less +18 -18
- package/es/components/Transfer/style.css +3 -0
- package/es/components/Transfer/style.less +14 -14
- package/es/components/TreeSelector/style.css +64 -20
- package/es/components/TreeSelector/style.less +56 -54
- package/es/hoc/popContainer.d.ts +5 -0
- package/es/hoc/popContainer.js +37 -0
- package/es/index.css +3011 -2517
- package/es/index.d.ts +1 -1
- package/es/index.less +49 -50
- package/es/style/mixin.less +45 -45
- package/es/style/theme.less +389 -379
- package/lib/components/AutoComplete/style.css +25 -29
- package/lib/components/AutoComplete/style.less +8 -8
- package/lib/components/Breadcrumb/style.less +9 -9
- package/lib/components/Button/index.d.ts +0 -8
- package/lib/components/Button/index.js +4 -4
- package/lib/components/Button/style.css +100 -104
- package/lib/components/Button/style.less +51 -62
- package/lib/components/Card/RowExtra/style.less +8 -8
- package/lib/components/Card/SearchInput/style.less +8 -8
- package/lib/components/Card/style.css +28 -2
- package/lib/components/Card/style.less +11 -11
- package/lib/components/CheckTransformList/style.css +50 -21
- package/lib/components/CheckTransformList/style.less +35 -35
- package/lib/components/Checkbox/style.css +1 -1
- package/lib/components/Checkbox/style.less +5 -5
- package/lib/components/CheckboxList/index.d.ts +2 -0
- package/lib/components/CheckboxList/index.js +2 -2
- package/lib/components/CheckboxList/style.css +5 -3
- package/lib/components/CheckboxList/style.less +11 -9
- package/lib/components/Collapse/style.css +16 -12
- package/lib/components/Collapse/style.less +57 -57
- package/lib/components/CollapsiblePanel/style.css +4 -4
- package/lib/components/CollapsiblePanel/style.less +63 -63
- package/lib/components/DateTimePicker/Base/style.css +378 -49
- package/lib/components/DateTimePicker/Base/style.less +160 -164
- package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
- package/lib/components/DateTimePicker/BaseMobile/style.css +4 -4
- package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
- package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
- package/lib/components/DateTimePicker/DisplayInput/style.css +47 -16
- package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
- package/lib/components/DateTimePicker/constants.d.ts +1 -1
- package/lib/components/DateTimePicker/constants.js +17 -6
- package/lib/components/DateTimePicker/index.js +1 -1
- package/lib/components/DateTimePicker/style.css +7 -7
- package/lib/components/DateTimePicker/style.less +19 -17
- package/lib/components/DateTimePicker/transform.d.ts +4 -0
- package/lib/components/DateTimePicker/transform.js +53 -0
- package/lib/components/Drawer/index.d.ts +55 -2
- package/lib/components/Drawer/index.js +3 -1
- package/lib/components/Drawer/style.css +45 -45
- package/lib/components/Drawer/style.less +17 -17
- package/lib/components/Input/index.d.ts +1 -2
- package/lib/components/Input/index.js +0 -2
- package/lib/components/Input/style.css +47 -16
- package/lib/components/Input/style.less +12 -12
- package/lib/components/InputNumber/index.d.ts +1 -8
- package/lib/components/InputNumber/index.js +1 -38
- package/lib/components/KeyValuePair/style.less +21 -21
- package/lib/components/Menu/Option.d.ts +10 -0
- package/lib/components/Menu/Option.js +18 -2
- package/lib/components/Menu/index.d.ts +1 -1
- package/lib/components/Menu/index.js +3 -3
- package/lib/components/Menu/style.css +20 -10
- package/lib/components/Menu/style.less +18 -8
- package/lib/components/Modal/style.less +30 -30
- package/lib/components/NameExplainTooltip/style.less +10 -10
- package/lib/components/NameLimiter/style.css +2 -4
- package/lib/components/NameLimiter/style.less +19 -21
- package/lib/components/OptionList/InlineOptionList/style.less +16 -16
- package/lib/components/OptionList/OptionItem/style.css +2 -2
- package/lib/components/OptionList/OptionItem/style.less +25 -25
- package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
- package/lib/components/OptionList/style.css +2 -2
- package/lib/components/OptionList/style.less +3 -3
- package/lib/components/RadioGroup/style.css +8 -8
- package/lib/components/RadioGroup/style.less +32 -32
- package/lib/components/RangeInput/style.css +427 -27
- package/lib/components/RangeInput/style.less +37 -37
- package/lib/components/RemarkName/style.css +2 -4
- package/lib/components/RemarkName/style.less +2 -2
- package/lib/components/Selector/style.css +25 -29
- package/lib/components/Selector/style.less +99 -100
- package/lib/components/Spin/style.css +0 -1
- package/lib/components/Spin/style.less +26 -26
- package/lib/components/Steps/ControlButton/style.less +5 -5
- package/lib/components/Steps/style.css +8 -6
- package/lib/components/Steps/style.less +48 -46
- package/lib/components/Table/ColumnTag/style.less +40 -40
- package/lib/components/Table/index.js +6 -3
- package/lib/components/Table/style.css +85 -27
- package/lib/components/Table/style.less +306 -313
- package/lib/components/Tabs/style.css +29 -1
- package/lib/components/Tabs/style.less +33 -31
- package/lib/components/TagList/Tag/style.less +72 -72
- package/lib/components/TagList/TagSwitch/style.less +28 -28
- package/lib/components/TagList/style.css +10 -10
- package/lib/components/TagList/style.less +28 -28
- package/lib/components/Timeline/TimelineItem/style.less +49 -49
- package/lib/components/Timeline/style.less +23 -23
- package/lib/components/Transfer/List/index.js +3 -3
- package/lib/components/Transfer/List/style.css +3 -0
- package/lib/components/Transfer/List/style.less +19 -15
- package/lib/components/Transfer/ListBody/style.less +18 -18
- package/lib/components/Transfer/style.css +3 -0
- package/lib/components/Transfer/style.less +14 -14
- package/lib/components/TreeSelector/style.css +64 -20
- package/lib/components/TreeSelector/style.less +56 -54
- package/lib/hoc/popContainer.d.ts +5 -0
- package/lib/hoc/popContainer.js +47 -0
- package/lib/index.css +5102 -4608
- package/lib/index.d.ts +1 -1
- package/lib/index.less +49 -50
- package/lib/style/mixin.less +45 -45
- package/lib/style/theme.less +389 -379
- package/package.json +79 -108
- package/es/components/Input/NumberInput/index.d.ts +0 -29
- package/es/components/Input/NumberInput/index.js +0 -116
- package/es/components/InputNumber/style.css +0 -400
- package/es/components/InputNumber/style.less +0 -45
- package/lib/components/Input/NumberInput/index.d.ts +0 -29
- package/lib/components/Input/NumberInput/index.js +0 -121
- package/lib/components/InputNumber/style.css +0 -400
- package/lib/components/InputNumber/style.less +0 -45
@@ -1,62 +1,51 @@
|
|
1
|
-
@import 'antd/lib/button/style/index.less';
|
2
|
-
@import '../../style/theme.less';
|
3
|
-
|
4
|
-
.@{sdk-prefix}-button {
|
5
|
-
box-shadow: none;
|
6
|
-
|
7
|
-
&.@{sdk-prefix}-button-disabled {
|
8
|
-
background: @button-disabled-bg
|
9
|
-
color: @button-disabled-color
|
10
|
-
border-color: @button-disabled-border-color
|
11
|
-
pointer-events: none;
|
12
|
-
text-shadow: none;
|
13
|
-
}
|
14
|
-
|
15
|
-
// type
|
16
|
-
&.@{sdk-prefix}-type-default {
|
17
|
-
background: @button-default-bg;
|
18
|
-
color: @button-default-color;
|
19
|
-
border: 1px solid @button-default-border-color;
|
20
|
-
&:hover,
|
21
|
-
&:focus {
|
22
|
-
background: @button-default-hover-bg;
|
23
|
-
border-color: @button-default-hover-border-color;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
53
|
-
&.@{sdk-prefix}-size-mini {
|
54
|
-
font-size: 10px;
|
55
|
-
padding: 2px 6px;
|
56
|
-
}
|
57
|
-
|
58
|
-
.anticon {
|
59
|
-
color: inherit;
|
60
|
-
vertical-align: middle;
|
61
|
-
}
|
62
|
-
}
|
1
|
+
@import 'antd/lib/button/style/index.less';
|
2
|
+
@import '../../style/theme.less';
|
3
|
+
|
4
|
+
.@{sdk-prefix}-button {
|
5
|
+
box-shadow: none;
|
6
|
+
|
7
|
+
&.@{sdk-prefix}-button-disabled {
|
8
|
+
background: @button-disabled-bg;
|
9
|
+
color: @button-disabled-color;
|
10
|
+
border-color: @button-disabled-border-color;
|
11
|
+
pointer-events: none;
|
12
|
+
text-shadow: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
// type
|
16
|
+
&.@{sdk-prefix}-type-default {
|
17
|
+
background: @button-default-bg;
|
18
|
+
color: @button-default-color;
|
19
|
+
border: 1px solid @button-default-border-color;
|
20
|
+
&:hover,
|
21
|
+
&:focus {
|
22
|
+
background: @button-default-hover-bg;
|
23
|
+
border-color: @button-default-hover-border-color;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// size
|
28
|
+
&.@{sdk-prefix}-size-large {
|
29
|
+
font-size: 16px;
|
30
|
+
padding: 0 20px;
|
31
|
+
height: 32px;
|
32
|
+
}
|
33
|
+
&.@{sdk-prefix}-size-default {
|
34
|
+
font-size: 14px;
|
35
|
+
padding: 0 16px;
|
36
|
+
height: 32px;
|
37
|
+
}
|
38
|
+
&.@{sdk-prefix}-size-small {
|
39
|
+
font-size: 12px;
|
40
|
+
padding: 4px 14px;
|
41
|
+
}
|
42
|
+
&.@{sdk-prefix}-size-mini {
|
43
|
+
font-size: 10px;
|
44
|
+
padding: 2px 6px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.anticon {
|
48
|
+
color: inherit;
|
49
|
+
vertical-align: middle;
|
50
|
+
}
|
51
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
@import 'antd/lib/grid/style/index.less';
|
2
|
-
@import '../../../style/theme.less';
|
3
|
-
|
4
|
-
.@{sdk-prefix}-card-row-extra {
|
5
|
-
button {
|
6
|
-
min-width: 80px;
|
7
|
-
}
|
8
|
-
}
|
1
|
+
@import 'antd/lib/grid/style/index.less';
|
2
|
+
@import '../../../style/theme.less';
|
3
|
+
|
4
|
+
.@{sdk-prefix}-card-row-extra {
|
5
|
+
button {
|
6
|
+
min-width: 80px;
|
7
|
+
}
|
8
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
@import '../../../style/theme.less';
|
2
|
-
|
3
|
-
.@{sdk-prefix}-card-search-input {
|
4
|
-
min-width: 200px;
|
5
|
-
i {
|
6
|
-
color: @input-placeholder-color;
|
7
|
-
}
|
8
|
-
}
|
1
|
+
@import '../../../style/theme.less';
|
2
|
+
|
3
|
+
.@{sdk-prefix}-card-search-input {
|
4
|
+
min-width: 200px;
|
5
|
+
i {
|
6
|
+
color: @input-placeholder-color;
|
7
|
+
}
|
8
|
+
}
|
@@ -80,14 +80,14 @@
|
|
80
80
|
margin-top: 0;
|
81
81
|
margin-bottom: 0;
|
82
82
|
}
|
83
|
-
.ant-card-head .ant-tabs {
|
83
|
+
.ant-card-head .ant-tabs-top {
|
84
84
|
clear: both;
|
85
85
|
margin-bottom: -17px;
|
86
86
|
color: rgba(0, 0, 0, 0.65);
|
87
87
|
font-weight: normal;
|
88
88
|
font-size: 14px;
|
89
89
|
}
|
90
|
-
.ant-card-head .ant-tabs-bar {
|
90
|
+
.ant-card-head .ant-tabs-top-bar {
|
91
91
|
border-bottom: 1px solid #e5e5e5;
|
92
92
|
}
|
93
93
|
.ant-card-extra {
|
@@ -679,6 +679,12 @@
|
|
679
679
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
680
680
|
}
|
681
681
|
.ant-tabs-dropdown-menu-item {
|
682
|
+
display: -webkit-box;
|
683
|
+
display: -ms-flexbox;
|
684
|
+
display: flex;
|
685
|
+
-webkit-box-align: center;
|
686
|
+
-ms-flex-align: center;
|
687
|
+
align-items: center;
|
682
688
|
min-width: 120px;
|
683
689
|
margin: 0;
|
684
690
|
padding: 5px 12px;
|
@@ -693,6 +699,26 @@
|
|
693
699
|
-webkit-transition: all 0.3s;
|
694
700
|
transition: all 0.3s;
|
695
701
|
}
|
702
|
+
.ant-tabs-dropdown-menu-item > span {
|
703
|
+
-webkit-box-flex: 1;
|
704
|
+
-ms-flex: 1;
|
705
|
+
flex: 1;
|
706
|
+
white-space: nowrap;
|
707
|
+
}
|
708
|
+
.ant-tabs-dropdown-menu-item-remove {
|
709
|
+
-webkit-box-flex: 0;
|
710
|
+
-ms-flex: none;
|
711
|
+
flex: none;
|
712
|
+
margin-left: 12px;
|
713
|
+
color: rgba(0, 0, 0, 0.45);
|
714
|
+
font-size: 12px;
|
715
|
+
background: transparent;
|
716
|
+
border: 0;
|
717
|
+
cursor: pointer;
|
718
|
+
}
|
719
|
+
.ant-tabs-dropdown-menu-item-remove:hover {
|
720
|
+
color: #2c6dd2;
|
721
|
+
}
|
696
722
|
.ant-tabs-dropdown-menu-item:hover {
|
697
723
|
background: rgba(44, 109, 210, 0.05);
|
698
724
|
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
@import 'antd/lib/card/style/index.less';
|
2
|
-
@import 'antd/lib/tabs/style/index.less';
|
3
|
-
@import '../../style/theme.less';
|
4
|
-
|
5
|
-
.@{sdk-prefix}-card {
|
6
|
-
.@{ant-prefix}-card-head {
|
7
|
-
.@{ant-prefix}-card-extra {
|
8
|
-
padding: 0;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
}
|
1
|
+
@import 'antd/lib/card/style/index.less';
|
2
|
+
@import 'antd/lib/tabs/style/index.less';
|
3
|
+
@import '../../style/theme.less';
|
4
|
+
|
5
|
+
.@{sdk-prefix}-card {
|
6
|
+
.@{ant-prefix}-card-head {
|
7
|
+
.@{ant-prefix}-card-extra {
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
@@ -201,7 +201,7 @@
|
|
201
201
|
.ant-checkbox-inner::after {
|
202
202
|
position: absolute;
|
203
203
|
top: 50%;
|
204
|
-
left:
|
204
|
+
left: 21.5%;
|
205
205
|
display: table;
|
206
206
|
width: 5.71428571px;
|
207
207
|
height: 9.14285714px;
|
@@ -381,6 +381,7 @@
|
|
381
381
|
border-radius: 2px;
|
382
382
|
-webkit-transition: all 0.3s;
|
383
383
|
transition: all 0.3s;
|
384
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
384
385
|
display: -webkit-inline-box;
|
385
386
|
display: -ms-inline-flexbox;
|
386
387
|
display: inline-flex;
|
@@ -390,12 +391,20 @@
|
|
390
391
|
}
|
391
392
|
.ant-input-affix-wrapper::-webkit-input-placeholder {
|
392
393
|
color: #bfbfbf;
|
394
|
+
-webkit-user-select: none;
|
395
|
+
user-select: none;
|
393
396
|
}
|
394
397
|
.ant-input-affix-wrapper::-ms-input-placeholder {
|
395
398
|
color: #bfbfbf;
|
399
|
+
-ms-user-select: none;
|
400
|
+
user-select: none;
|
396
401
|
}
|
397
402
|
.ant-input-affix-wrapper::placeholder {
|
398
403
|
color: #bfbfbf;
|
404
|
+
-webkit-user-select: none;
|
405
|
+
-moz-user-select: none;
|
406
|
+
-ms-user-select: none;
|
407
|
+
user-select: none;
|
399
408
|
}
|
400
409
|
.ant-input-affix-wrapper:placeholder-shown {
|
401
410
|
text-overflow: ellipsis;
|
@@ -410,11 +419,11 @@
|
|
410
419
|
}
|
411
420
|
.ant-input-affix-wrapper:focus,
|
412
421
|
.ant-input-affix-wrapper-focused {
|
413
|
-
border-color: #
|
422
|
+
border-color: #9ca0a6;
|
423
|
+
-webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
424
|
+
box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
414
425
|
border-right-width: 1px !important;
|
415
426
|
outline: 0;
|
416
|
-
-webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
417
|
-
box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
418
427
|
}
|
419
428
|
.ant-input-rtl .ant-input-affix-wrapper:focus,
|
420
429
|
.ant-input-rtl .ant-input-affix-wrapper-focused {
|
@@ -424,6 +433,9 @@
|
|
424
433
|
.ant-input-affix-wrapper-disabled {
|
425
434
|
color: rgba(0, 0, 0, 0.25);
|
426
435
|
background-color: #f5f5f5;
|
436
|
+
border-color: #bfbfbf;
|
437
|
+
-webkit-box-shadow: none;
|
438
|
+
box-shadow: none;
|
427
439
|
cursor: not-allowed;
|
428
440
|
opacity: 1;
|
429
441
|
}
|
@@ -434,6 +446,9 @@
|
|
434
446
|
.ant-input-affix-wrapper[disabled] {
|
435
447
|
color: rgba(0, 0, 0, 0.25);
|
436
448
|
background-color: #f5f5f5;
|
449
|
+
border-color: #bfbfbf;
|
450
|
+
-webkit-box-shadow: none;
|
451
|
+
box-shadow: none;
|
437
452
|
cursor: not-allowed;
|
438
453
|
opacity: 1;
|
439
454
|
}
|
@@ -523,7 +538,7 @@ textarea.ant-input-affix-wrapper {
|
|
523
538
|
margin-left: 4px;
|
524
539
|
}
|
525
540
|
.anticon.ant-input-clear-icon {
|
526
|
-
margin: 0
|
541
|
+
margin: 0;
|
527
542
|
color: rgba(0, 0, 0, 0.25);
|
528
543
|
font-size: 12px;
|
529
544
|
vertical-align: -1px;
|
@@ -540,8 +555,8 @@ textarea.ant-input-affix-wrapper {
|
|
540
555
|
.anticon.ant-input-clear-icon-hidden {
|
541
556
|
visibility: hidden;
|
542
557
|
}
|
543
|
-
.anticon.ant-input-clear-icon
|
544
|
-
margin
|
558
|
+
.anticon.ant-input-clear-icon-has-suffix {
|
559
|
+
margin: 0 4px;
|
545
560
|
}
|
546
561
|
.ant-input-affix-wrapper-textarea-with-clear-btn {
|
547
562
|
padding: 0 !important;
|
@@ -577,18 +592,27 @@ textarea.ant-input-affix-wrapper {
|
|
577
592
|
border-radius: 2px;
|
578
593
|
-webkit-transition: all 0.3s;
|
579
594
|
transition: all 0.3s;
|
595
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
580
596
|
}
|
581
597
|
.ant-input::-moz-placeholder {
|
582
598
|
opacity: 1;
|
583
599
|
}
|
584
600
|
.ant-input::-webkit-input-placeholder {
|
585
601
|
color: #bfbfbf;
|
602
|
+
-webkit-user-select: none;
|
603
|
+
user-select: none;
|
586
604
|
}
|
587
605
|
.ant-input::-ms-input-placeholder {
|
588
606
|
color: #bfbfbf;
|
607
|
+
-ms-user-select: none;
|
608
|
+
user-select: none;
|
589
609
|
}
|
590
610
|
.ant-input::placeholder {
|
591
611
|
color: #bfbfbf;
|
612
|
+
-webkit-user-select: none;
|
613
|
+
-moz-user-select: none;
|
614
|
+
-ms-user-select: none;
|
615
|
+
user-select: none;
|
592
616
|
}
|
593
617
|
.ant-input:placeholder-shown {
|
594
618
|
text-overflow: ellipsis;
|
@@ -603,11 +627,11 @@ textarea.ant-input-affix-wrapper {
|
|
603
627
|
}
|
604
628
|
.ant-input:focus,
|
605
629
|
.ant-input-focused {
|
606
|
-
border-color: #
|
630
|
+
border-color: #9ca0a6;
|
631
|
+
-webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
632
|
+
box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
607
633
|
border-right-width: 1px !important;
|
608
634
|
outline: 0;
|
609
|
-
-webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
610
|
-
box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
611
635
|
}
|
612
636
|
.ant-input-rtl .ant-input:focus,
|
613
637
|
.ant-input-rtl .ant-input-focused {
|
@@ -617,6 +641,9 @@ textarea.ant-input-affix-wrapper {
|
|
617
641
|
.ant-input-disabled {
|
618
642
|
color: rgba(0, 0, 0, 0.25);
|
619
643
|
background-color: #f5f5f5;
|
644
|
+
border-color: #bfbfbf;
|
645
|
+
-webkit-box-shadow: none;
|
646
|
+
box-shadow: none;
|
620
647
|
cursor: not-allowed;
|
621
648
|
opacity: 1;
|
622
649
|
}
|
@@ -627,6 +654,9 @@ textarea.ant-input-affix-wrapper {
|
|
627
654
|
.ant-input[disabled] {
|
628
655
|
color: rgba(0, 0, 0, 0.25);
|
629
656
|
background-color: #f5f5f5;
|
657
|
+
border-color: #bfbfbf;
|
658
|
+
-webkit-box-shadow: none;
|
659
|
+
box-shadow: none;
|
630
660
|
cursor: not-allowed;
|
631
661
|
opacity: 1;
|
632
662
|
}
|
@@ -814,10 +844,6 @@ textarea.ant-input {
|
|
814
844
|
.ant-input-group-sm .ant-select-single .ant-select-selector {
|
815
845
|
height: 26px;
|
816
846
|
}
|
817
|
-
.ant-input-group .ant-input-affix-wrapper:not(:first-child) {
|
818
|
-
border-top-left-radius: 0;
|
819
|
-
border-bottom-left-radius: 0;
|
820
|
-
}
|
821
847
|
.ant-input-group .ant-input-affix-wrapper:not(:last-child) {
|
822
848
|
border-top-right-radius: 0;
|
823
849
|
border-bottom-right-radius: 0;
|
@@ -826,6 +852,11 @@ textarea.ant-input {
|
|
826
852
|
border-top-left-radius: 2px;
|
827
853
|
border-bottom-left-radius: 2px;
|
828
854
|
}
|
855
|
+
.ant-input-group .ant-input-affix-wrapper:not(:first-child),
|
856
|
+
.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
|
857
|
+
border-top-left-radius: 0;
|
858
|
+
border-bottom-left-radius: 0;
|
859
|
+
}
|
829
860
|
.ant-input-group.ant-input-group-compact {
|
830
861
|
display: block;
|
831
862
|
}
|
@@ -1080,9 +1111,9 @@ textarea.ant-input {
|
|
1080
1111
|
.ant-input-textarea-rtl.ant-input-textarea-show-count::after {
|
1081
1112
|
text-align: left;
|
1082
1113
|
}
|
1083
|
-
.ant-input-affix-wrapper-rtl .ant-input-clear-icon
|
1084
|
-
margin-right:
|
1085
|
-
margin-left:
|
1114
|
+
.ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix {
|
1115
|
+
margin-right: 0;
|
1116
|
+
margin-left: 4px;
|
1086
1117
|
}
|
1087
1118
|
.ant-input-affix-wrapper-rtl .ant-input-clear-icon {
|
1088
1119
|
right: auto;
|
@@ -1390,11 +1421,9 @@ textarea.ant-input {
|
|
1390
1421
|
overflow: hidden;
|
1391
1422
|
}
|
1392
1423
|
.pandora-sdk-name-limit-tooltip .ant-tooltip-inner {
|
1393
|
-
max-width: 400px
|
1394
|
-
max-height: 200px
|
1424
|
+
max-width: 400px;
|
1425
|
+
max-height: 200px;
|
1395
1426
|
overflow: auto;
|
1396
|
-
line-height: 22px;
|
1397
|
-
font-size: 12px;
|
1398
1427
|
}
|
1399
1428
|
.ant-btn {
|
1400
1429
|
padding: 4px 15px;
|
@@ -1,35 +1,35 @@
|
|
1
|
-
@import 'antd/lib/divider/style/index.less';
|
2
|
-
@import 'antd/lib/checkbox/style/index.less';
|
3
|
-
@import 'antd/lib/input/style/index.less';
|
4
|
-
@import '../NameLimiter/style.less';
|
5
|
-
@import '../../style/theme.less';
|
6
|
-
|
7
|
-
.@{sdk-prefix}-check-transform-list {
|
8
|
-
display: flex;
|
9
|
-
margin-top: 20px;
|
10
|
-
padding-left: 5px;
|
11
|
-
padding-right: 5px;
|
12
|
-
.@{sdk-prefix}-check-transform-divider {
|
13
|
-
height: auto;
|
14
|
-
margin-left: 40px;
|
15
|
-
margin-right: 40px;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
.@{sdk-prefix}-check-transform {
|
19
|
-
flex: 1;
|
20
|
-
.@{sdk-prefix}-check-transform-header {
|
21
|
-
margin-bottom: 10px;
|
22
|
-
}
|
23
|
-
.@{sdk-prefix}-check-transform-search {
|
24
|
-
width: 100%;
|
25
|
-
height: 40px;
|
26
|
-
margin-bottom: 10px;
|
27
|
-
}
|
28
|
-
.@{sdk-prefix}-check-transform-checkBox {
|
29
|
-
line-height: 40px;
|
30
|
-
|
31
|
-
.@{sdk-prefix}-check-transform-checkbox-group {
|
32
|
-
line-height: 40px;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
1
|
+
@import 'antd/lib/divider/style/index.less';
|
2
|
+
@import 'antd/lib/checkbox/style/index.less';
|
3
|
+
@import 'antd/lib/input/style/index.less';
|
4
|
+
@import '../NameLimiter/style.less';
|
5
|
+
@import '../../style/theme.less';
|
6
|
+
|
7
|
+
.@{sdk-prefix}-check-transform-list {
|
8
|
+
display: flex;
|
9
|
+
margin-top: 20px;
|
10
|
+
padding-left: 5px;
|
11
|
+
padding-right: 5px;
|
12
|
+
.@{sdk-prefix}-check-transform-divider {
|
13
|
+
height: auto;
|
14
|
+
margin-left: 40px;
|
15
|
+
margin-right: 40px;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.@{sdk-prefix}-check-transform {
|
19
|
+
flex: 1;
|
20
|
+
.@{sdk-prefix}-check-transform-header {
|
21
|
+
margin-bottom: 10px;
|
22
|
+
}
|
23
|
+
.@{sdk-prefix}-check-transform-search {
|
24
|
+
width: 100%;
|
25
|
+
height: 40px;
|
26
|
+
margin-bottom: 10px;
|
27
|
+
}
|
28
|
+
.@{sdk-prefix}-check-transform-checkBox {
|
29
|
+
line-height: 40px;
|
30
|
+
|
31
|
+
.@{sdk-prefix}-check-transform-checkbox-group {
|
32
|
+
line-height: 40px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
@import 'antd/lib/checkbox/style/index.less';
|
2
|
-
|
3
|
-
.@{ant-prefix}-checkbox-inner::after {
|
4
|
-
left: 20%;
|
5
|
-
}
|
1
|
+
@import 'antd/lib/checkbox/style/index.less';
|
2
|
+
|
3
|
+
.@{ant-prefix}-checkbox-inner::after {
|
4
|
+
left: 20%;
|
5
|
+
}
|
@@ -7,6 +7,7 @@ export interface IOptionItem {
|
|
7
7
|
indeterminate?: boolean | ((item: IOptionItem) => boolean);
|
8
8
|
disabled?: boolean | ((item: IOptionItem) => boolean);
|
9
9
|
}
|
10
|
+
export { CheckboxValueType };
|
10
11
|
export interface ICheckboxListProps {
|
11
12
|
/**
|
12
13
|
* 选项可以是对象数组,也可以是字符串数组;
|
@@ -23,5 +24,6 @@ export interface ICheckboxListProps {
|
|
23
24
|
*/
|
24
25
|
itemClassName?: string;
|
25
26
|
onChange?: (value: CheckboxValueType[]) => void;
|
27
|
+
disabled?: boolean;
|
26
28
|
}
|
27
29
|
export default function CheckboxList(props: ICheckboxListProps): JSX.Element;
|
@@ -4,8 +4,8 @@ import classnames from 'classnames';
|
|
4
4
|
import { SDK_PREFIX } from '../../constants/style';
|
5
5
|
var CheckboxGroup = Checkbox.Group;
|
6
6
|
export default function CheckboxList(props) {
|
7
|
-
var options = props.options, itemClassName = props.itemClassName, value = props.value, onChange = props.onChange;
|
8
|
-
return (React.createElement(CheckboxGroup, { value: value, onChange: onChange }, options &&
|
7
|
+
var options = props.options, itemClassName = props.itemClassName, value = props.value, onChange = props.onChange, disabled = props.disabled;
|
8
|
+
return (React.createElement(CheckboxGroup, { value: value, onChange: onChange, disabled: disabled }, options &&
|
9
9
|
options.map(function (option) {
|
10
10
|
// 将 option string的形式进行格式化
|
11
11
|
var optionItem = typeof option === 'string' ? { value: option } : option;
|
@@ -87,7 +87,7 @@
|
|
87
87
|
.ant-checkbox-inner::after {
|
88
88
|
position: absolute;
|
89
89
|
top: 50%;
|
90
|
-
left:
|
90
|
+
left: 21.5%;
|
91
91
|
display: table;
|
92
92
|
width: 5.71428571px;
|
93
93
|
height: 9.14285714px;
|
@@ -259,8 +259,10 @@
|
|
259
259
|
padding: 0 7px;
|
260
260
|
}
|
261
261
|
.pandora-sdk-checkbox-item {
|
262
|
-
line-height: 25px !important;
|
263
262
|
white-space: nowrap;
|
264
263
|
width: 100%;
|
265
|
-
|
264
|
+
}
|
265
|
+
.pandora-sdk-checkbox-item.ant-checkbox-wrapper {
|
266
|
+
margin-left: 0;
|
267
|
+
line-height: 25px;
|
266
268
|
}
|
@@ -1,9 +1,11 @@
|
|
1
|
-
@import 'antd/lib/checkbox/style/index.less';
|
2
|
-
@import '../../style/theme.less';
|
3
|
-
|
4
|
-
.@{sdk-prefix}-checkbox-item {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
@import 'antd/lib/checkbox/style/index.less';
|
2
|
+
@import '../../style/theme.less';
|
3
|
+
|
4
|
+
.@{sdk-prefix}-checkbox-item {
|
5
|
+
white-space: nowrap;
|
6
|
+
width: 100%;
|
7
|
+
&.@{ant-prefix}-checkbox-wrapper {
|
8
|
+
margin-left: 0;
|
9
|
+
line-height: 25px;
|
10
|
+
}
|
11
|
+
}
|
@@ -27,7 +27,14 @@
|
|
27
27
|
border-radius: 0 0 2px 2px;
|
28
28
|
}
|
29
29
|
.ant-collapse > .ant-collapse-item > .ant-collapse-header {
|
30
|
-
|
30
|
+
display: -webkit-box;
|
31
|
+
display: -ms-flexbox;
|
32
|
+
display: flex;
|
33
|
+
-ms-flex-wrap: nowrap;
|
34
|
+
flex-wrap: nowrap;
|
35
|
+
-webkit-box-align: start;
|
36
|
+
-ms-flex-align: start;
|
37
|
+
align-items: flex-start;
|
31
38
|
padding: 12px 16px;
|
32
39
|
color: #333;
|
33
40
|
line-height: 1.5715;
|
@@ -35,15 +42,6 @@
|
|
35
42
|
-webkit-transition: all 0.3s, visibility 0s;
|
36
43
|
transition: all 0.3s, visibility 0s;
|
37
44
|
}
|
38
|
-
.ant-collapse > .ant-collapse-item > .ant-collapse-header::before {
|
39
|
-
display: table;
|
40
|
-
content: '';
|
41
|
-
}
|
42
|
-
.ant-collapse > .ant-collapse-item > .ant-collapse-header::after {
|
43
|
-
display: table;
|
44
|
-
clear: both;
|
45
|
-
content: '';
|
46
|
-
}
|
47
45
|
.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
|
48
46
|
display: inline-block;
|
49
47
|
margin-right: 12px;
|
@@ -57,7 +55,7 @@
|
|
57
55
|
transition: transform 0.24s, -webkit-transform 0.24s;
|
58
56
|
}
|
59
57
|
.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {
|
60
|
-
|
58
|
+
margin-left: auto;
|
61
59
|
}
|
62
60
|
.ant-collapse > .ant-collapse-item > .ant-collapse-header:focus {
|
63
61
|
outline: none;
|
@@ -72,6 +70,7 @@
|
|
72
70
|
padding-left: 12px;
|
73
71
|
}
|
74
72
|
.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header {
|
73
|
+
position: relative;
|
75
74
|
padding: 12px 16px;
|
76
75
|
padding-right: 40px;
|
77
76
|
}
|
@@ -143,12 +142,17 @@
|
|
143
142
|
padding: 12px 16px;
|
144
143
|
padding-right: 40px;
|
145
144
|
}
|
145
|
+
.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
|
146
|
+
margin-right: 0;
|
147
|
+
margin-left: 12px;
|
148
|
+
}
|
146
149
|
.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {
|
147
150
|
-webkit-transform: rotate(180deg);
|
148
151
|
transform: rotate(180deg);
|
149
152
|
}
|
150
153
|
.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {
|
151
|
-
|
154
|
+
margin-right: auto;
|
155
|
+
margin-left: 0;
|
152
156
|
}
|
153
157
|
.ant-collapse-rtl.ant-collapse > .ant-collapse-item.ant-collapse-no-arrow > .ant-collapse-header {
|
154
158
|
padding-right: 12px;
|