@autobest-ui/components 1.1.1 → 1.2.0
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/README.md +10 -10
- package/esm/accordion/__stories__/style.scss +58 -58
- package/esm/affix/__stories__/style.scss +13 -13
- package/esm/affix/style/index.scss +34 -34
- package/esm/base.scss +42 -42
- package/esm/carousel/__stories__/style.scss +41 -41
- package/esm/carousel/index.d.ts +21 -13
- package/esm/carousel/index.js +77 -44
- package/esm/carousel/style/index.css +1 -1
- package/esm/carousel/style/index.scss +43 -37
- package/esm/checkbox/style/index.scss +117 -117
- package/esm/collapse/__stories__/style.scss +18 -18
- package/esm/collapse/style/index.scss +42 -42
- package/esm/confirm/style/index.scss +44 -44
- package/esm/date-picker/calendar/grid/index.scss +85 -85
- package/esm/date-picker/calendar/index.scss +57 -57
- package/esm/date-picker/style/index.scss +18 -18
- package/esm/drawer/style/index.scss +44 -44
- package/esm/ellipsis/style/index.scss +35 -35
- package/esm/guide/__stories__/style.scss +13 -13
- package/esm/guide/style/index.scss +17 -17
- package/esm/icon/__stories__/style.scss +39 -39
- package/esm/icon/style/index.scss +6 -6
- package/esm/index.d.ts +1 -1
- package/esm/input-number/style/index.scss +86 -86
- package/esm/lazy-image/__stories__/style.scss +9 -9
- package/esm/lazy-image/style/index.scss +24 -24
- package/esm/link-list/style/index.scss +125 -125
- package/esm/loading/style/index.scss +30 -30
- package/esm/loading-bar/style/index.scss +62 -62
- package/esm/loading-container/__stories__/style.scss +5 -5
- package/esm/loading-container/style/index.scss +27 -27
- package/esm/loading-icon/style/index.scss +23 -23
- package/esm/mask/style/index.scss +34 -34
- package/esm/message/style/index.scss +70 -70
- package/esm/modal/style/index.scss +112 -112
- package/esm/move/__stories__/style.scss +6 -6
- package/esm/move/style/index.scss +7 -7
- package/esm/popover/__stories__/style.scss +15 -15
- package/esm/popover/style/index.scss +59 -59
- package/esm/select/__stories__/style.scss +8 -8
- package/esm/select/style/index.scss +126 -126
- package/esm/show-more/style/index.scss +22 -22
- package/esm/skeleton/__stories__/style.scss +2 -2
- package/esm/skeleton/style/index.scss +26 -26
- package/esm/style.css +15 -15
- package/esm/table/__stories__/style.css +1 -1
- package/esm/table/__stories__/style.scss +33 -2
- package/esm/table/body/BodyRow.d.ts +13 -0
- package/esm/table/body/BodyRow.js +94 -0
- package/esm/table/body/CheckIcon.d.ts +16 -0
- package/esm/table/body/CheckIcon.js +35 -0
- package/esm/table/body/index.d.ts +24 -0
- package/esm/table/body/index.js +61 -0
- package/esm/table/header/CheckIcon.d.ts +13 -0
- package/esm/table/header/CheckIcon.js +37 -0
- package/esm/table/header/HeaderCell.d.ts +18 -0
- package/esm/table/{HeaderCell.js → header/HeaderCell.js} +11 -4
- package/esm/table/header/HeaderRow.d.ts +16 -0
- package/esm/table/header/HeaderRow.js +76 -0
- package/esm/table/index.d.ts +52 -27
- package/esm/table/index.js +178 -155
- package/esm/table/interface.d.ts +16 -3
- package/esm/table/style/index.css +1 -1
- package/esm/table/style/index.scss +51 -70
- package/esm/tabs/__stories__/style.scss +8 -8
- package/esm/tabs/style/index.css +1 -1
- package/esm/tabs/style/index.scss +62 -62
- package/esm/tooltip/style/index.scss +61 -61
- package/esm/trigger/style/index.scss +79 -79
- package/lib/accordion/__stories__/style.scss +58 -58
- package/lib/affix/__stories__/style.scss +13 -13
- package/lib/affix/style/index.scss +34 -34
- package/lib/base.scss +42 -42
- package/lib/carousel/__stories__/style.scss +41 -41
- package/lib/carousel/index.d.ts +21 -13
- package/lib/carousel/index.js +80 -45
- package/lib/carousel/style/index.css +1 -1
- package/lib/carousel/style/index.scss +43 -37
- package/lib/checkbox/style/index.scss +117 -117
- package/lib/collapse/__stories__/style.scss +18 -18
- package/lib/collapse/style/index.scss +42 -42
- package/lib/confirm/style/index.scss +44 -44
- package/lib/date-picker/calendar/grid/index.scss +85 -85
- package/lib/date-picker/calendar/index.scss +57 -57
- package/lib/date-picker/style/index.scss +18 -18
- package/lib/drawer/style/index.scss +44 -44
- package/lib/ellipsis/style/index.scss +35 -35
- package/lib/guide/__stories__/style.scss +13 -13
- package/lib/guide/style/index.scss +17 -17
- package/lib/icon/__stories__/style.scss +39 -39
- package/lib/icon/style/index.scss +6 -6
- package/lib/index.d.ts +1 -1
- package/lib/input-number/style/index.scss +86 -86
- package/lib/lazy-image/__stories__/style.scss +9 -9
- package/lib/lazy-image/style/index.scss +24 -24
- package/lib/link-list/style/index.scss +125 -125
- package/lib/loading/style/index.scss +30 -30
- package/lib/loading-bar/style/index.scss +62 -62
- package/lib/loading-container/__stories__/style.scss +5 -5
- package/lib/loading-container/style/index.scss +27 -27
- package/lib/loading-icon/style/index.scss +23 -23
- package/lib/mask/style/index.scss +34 -34
- package/lib/message/style/index.scss +70 -70
- package/lib/modal/style/index.scss +112 -112
- package/lib/move/__stories__/style.scss +6 -6
- package/lib/move/style/index.scss +7 -7
- package/lib/popover/__stories__/style.scss +15 -15
- package/lib/popover/style/index.scss +59 -59
- package/lib/select/__stories__/style.scss +8 -8
- package/lib/select/style/index.scss +126 -126
- package/lib/show-more/style/index.scss +22 -22
- package/lib/skeleton/__stories__/style.scss +2 -2
- package/lib/skeleton/style/index.scss +26 -26
- package/lib/style.css +15 -15
- package/lib/table/__stories__/style.css +1 -1
- package/lib/table/__stories__/style.scss +33 -2
- package/lib/table/body/BodyRow.d.ts +13 -0
- package/lib/table/body/BodyRow.js +108 -0
- package/lib/table/body/CheckIcon.d.ts +16 -0
- package/lib/table/body/CheckIcon.js +47 -0
- package/lib/table/body/index.d.ts +24 -0
- package/lib/table/body/index.js +73 -0
- package/lib/table/header/CheckIcon.d.ts +13 -0
- package/lib/table/header/CheckIcon.js +49 -0
- package/lib/table/header/HeaderCell.d.ts +18 -0
- package/lib/table/{HeaderCell.js → header/HeaderCell.js} +11 -4
- package/lib/table/header/HeaderRow.d.ts +16 -0
- package/lib/table/header/HeaderRow.js +89 -0
- package/lib/table/index.d.ts +52 -27
- package/lib/table/index.js +177 -155
- package/lib/table/interface.d.ts +16 -3
- package/lib/table/style/index.css +1 -1
- package/lib/table/style/index.scss +51 -70
- package/lib/tabs/__stories__/style.scss +8 -8
- package/lib/tabs/style/index.css +1 -1
- package/lib/tabs/style/index.scss +62 -62
- package/lib/tooltip/style/index.scss +61 -61
- package/lib/trigger/style/index.scss +79 -79
- package/package.json +2 -2
- package/esm/table/BodyCell.d.ts +0 -6
- package/esm/table/BodyCell.js +0 -12
- package/esm/table/HeaderCell.d.ts +0 -13
- package/lib/table/BodyCell.d.ts +0 -6
- package/lib/table/BodyCell.js +0 -22
- package/lib/table/HeaderCell.d.ts +0 -13
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
$namespace: ab-message;
|
|
2
|
-
$contentFade: #{$namespace}-fade;
|
|
3
|
-
|
|
4
|
-
.#{$namespace} {
|
|
5
|
-
&-container {
|
|
6
|
-
position: fixed;
|
|
7
|
-
left: 0;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&-content {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
max-width: calc(100vw - .3rem);
|
|
16
|
-
border-radius: .02rem;
|
|
17
|
-
margin: .08rem .15rem;
|
|
18
|
-
padding: .08rem;
|
|
19
|
-
background-color: #333;
|
|
20
|
-
color: #fff;
|
|
21
|
-
box-shadow: 0 .04rem .08rem #00000059;
|
|
22
|
-
transition: opacity 300ms;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-close {
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
width: .2rem;
|
|
31
|
-
height: .2rem;
|
|
32
|
-
font-size: .2rem;
|
|
33
|
-
margin-left: .08rem;
|
|
34
|
-
color: #b0b0b0;
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
color: #fff;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.#{$contentFade} {
|
|
43
|
-
&-enter, &-appear {
|
|
44
|
-
opacity: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-enter-active, &-appear-active, &-enter-done {
|
|
48
|
-
opacity: 1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-exit {
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-exit-active {
|
|
56
|
-
opacity: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-exit-done {
|
|
60
|
-
display: none;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@media only screen and (max-width: 767px) {
|
|
65
|
-
.#{$namespace} {
|
|
66
|
-
&-content {
|
|
67
|
-
width: calc(100vw - .3rem);
|
|
68
|
-
margin: .08rem .15rem;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
$namespace: ab-message;
|
|
2
|
+
$contentFade: #{$namespace}-fade;
|
|
3
|
+
|
|
4
|
+
.#{$namespace} {
|
|
5
|
+
&-container {
|
|
6
|
+
position: fixed;
|
|
7
|
+
left: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-content {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
max-width: calc(100vw - .3rem);
|
|
16
|
+
border-radius: .02rem;
|
|
17
|
+
margin: .08rem .15rem;
|
|
18
|
+
padding: .08rem;
|
|
19
|
+
background-color: #333;
|
|
20
|
+
color: #fff;
|
|
21
|
+
box-shadow: 0 .04rem .08rem #00000059;
|
|
22
|
+
transition: opacity 300ms;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-close {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
width: .2rem;
|
|
31
|
+
height: .2rem;
|
|
32
|
+
font-size: .2rem;
|
|
33
|
+
margin-left: .08rem;
|
|
34
|
+
color: #b0b0b0;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
color: #fff;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$contentFade} {
|
|
43
|
+
&-enter, &-appear {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-enter-active, &-appear-active, &-enter-done {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-exit {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-exit-active {
|
|
56
|
+
opacity: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-exit-done {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media only screen and (max-width: 767px) {
|
|
65
|
+
.#{$namespace} {
|
|
66
|
+
&-content {
|
|
67
|
+
width: calc(100vw - .3rem);
|
|
68
|
+
margin: .08rem .15rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
71
|
}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
$namespace: ab-modal;
|
|
2
|
-
$modalFade: #{$namespace}-fade;
|
|
3
|
-
|
|
4
|
-
.#{$namespace} {
|
|
5
|
-
position: fixed;
|
|
6
|
-
top: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
z-index: 101;
|
|
11
|
-
overflow: auto;
|
|
12
|
-
outline: 0;
|
|
13
|
-
|
|
14
|
-
&.#{$namespace}-center {
|
|
15
|
-
text-align: center;
|
|
16
|
-
|
|
17
|
-
&:before {
|
|
18
|
-
display: inline-block;
|
|
19
|
-
width: 0;
|
|
20
|
-
height: 100%;
|
|
21
|
-
vertical-align: middle;
|
|
22
|
-
content: '';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.#{$namespace}-content {
|
|
26
|
-
top: 0;
|
|
27
|
-
text-align: left;
|
|
28
|
-
display: inline-block;
|
|
29
|
-
vertical-align: middle;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-content {
|
|
34
|
-
position: relative;
|
|
35
|
-
background-color: #fff;
|
|
36
|
-
max-width: calc(100vw - .3rem);
|
|
37
|
-
margin-left: auto;
|
|
38
|
-
margin-right: auto;
|
|
39
|
-
overflow: auto;
|
|
40
|
-
-webkit-overflow-scrolling: touch;
|
|
41
|
-
transition: transform 300ms, opacity 300ms cubic-bezier(.7, .3, .1, 1);
|
|
42
|
-
z-index: 101;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&-title {
|
|
46
|
-
position: relative;
|
|
47
|
-
width: 100%;
|
|
48
|
-
|
|
49
|
-
.#{$namespace}-times {
|
|
50
|
-
top: 50%;
|
|
51
|
-
transform: translateY(-50%);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-times {
|
|
56
|
-
position: absolute;
|
|
57
|
-
top: .12rem;
|
|
58
|
-
right: .12rem;
|
|
59
|
-
font-size: .15rem;
|
|
60
|
-
color: #b0b0b0;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
|
|
63
|
-
svg {
|
|
64
|
-
display: block;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:hover {
|
|
68
|
-
color: #333;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
&-hidden {
|
|
72
|
-
display: none;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@media only screen and (max-width: 767px) {
|
|
77
|
-
.#{$namespace}-content {
|
|
78
|
-
width: calc(100vw - .3rem);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
.#{$modalFade} {
|
|
84
|
-
&-enter, &-appear {
|
|
85
|
-
transform: translate3d(0, -30px, 0);
|
|
86
|
-
opacity: 0
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&-enter-active, &-appear-active {
|
|
90
|
-
transform: translateZ(0);
|
|
91
|
-
opacity: 1
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&-enter-done {
|
|
95
|
-
transform: translateZ(0);
|
|
96
|
-
opacity: 1
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&-exit {
|
|
100
|
-
transform: translateZ(0);
|
|
101
|
-
opacity: 1
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&-exit-active {
|
|
105
|
-
transform: translate3d(0, -30px, 0);
|
|
106
|
-
opacity: 0
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-exit-done {
|
|
110
|
-
display: none;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
$namespace: ab-modal;
|
|
2
|
+
$modalFade: #{$namespace}-fade;
|
|
3
|
+
|
|
4
|
+
.#{$namespace} {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
z-index: 101;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
outline: 0;
|
|
13
|
+
|
|
14
|
+
&.#{$namespace}-center {
|
|
15
|
+
text-align: center;
|
|
16
|
+
|
|
17
|
+
&:before {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
width: 0;
|
|
20
|
+
height: 100%;
|
|
21
|
+
vertical-align: middle;
|
|
22
|
+
content: '';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.#{$namespace}-content {
|
|
26
|
+
top: 0;
|
|
27
|
+
text-align: left;
|
|
28
|
+
display: inline-block;
|
|
29
|
+
vertical-align: middle;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-content {
|
|
34
|
+
position: relative;
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
max-width: calc(100vw - .3rem);
|
|
37
|
+
margin-left: auto;
|
|
38
|
+
margin-right: auto;
|
|
39
|
+
overflow: auto;
|
|
40
|
+
-webkit-overflow-scrolling: touch;
|
|
41
|
+
transition: transform 300ms, opacity 300ms cubic-bezier(.7, .3, .1, 1);
|
|
42
|
+
z-index: 101;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-title {
|
|
46
|
+
position: relative;
|
|
47
|
+
width: 100%;
|
|
48
|
+
|
|
49
|
+
.#{$namespace}-times {
|
|
50
|
+
top: 50%;
|
|
51
|
+
transform: translateY(-50%);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-times {
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: .12rem;
|
|
58
|
+
right: .12rem;
|
|
59
|
+
font-size: .15rem;
|
|
60
|
+
color: #b0b0b0;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
|
|
63
|
+
svg {
|
|
64
|
+
display: block;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
color: #333;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&-hidden {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media only screen and (max-width: 767px) {
|
|
77
|
+
.#{$namespace}-content {
|
|
78
|
+
width: calc(100vw - .3rem);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
.#{$modalFade} {
|
|
84
|
+
&-enter, &-appear {
|
|
85
|
+
transform: translate3d(0, -30px, 0);
|
|
86
|
+
opacity: 0
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-enter-active, &-appear-active {
|
|
90
|
+
transform: translateZ(0);
|
|
91
|
+
opacity: 1
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-enter-done {
|
|
95
|
+
transform: translateZ(0);
|
|
96
|
+
opacity: 1
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&-exit {
|
|
100
|
+
transform: translateZ(0);
|
|
101
|
+
opacity: 1
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-exit-active {
|
|
105
|
+
transform: translate3d(0, -30px, 0);
|
|
106
|
+
opacity: 0
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-exit-done {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.demo-move{
|
|
2
|
-
margin: 0.2rem auto;
|
|
3
|
-
width: 500px;
|
|
4
|
-
height: 500px;
|
|
5
|
-
border: 5px solid #ccc;
|
|
6
|
-
}
|
|
1
|
+
.demo-move{
|
|
2
|
+
margin: 0.2rem auto;
|
|
3
|
+
width: 500px;
|
|
4
|
+
height: 500px;
|
|
5
|
+
border: 5px solid #ccc;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
$namespace: ab-move;
|
|
2
|
-
|
|
3
|
-
.#{$namespace} {
|
|
4
|
-
cursor: move;
|
|
5
|
-
visibility: hidden;
|
|
6
|
-
transform-origin: center center;
|
|
7
|
-
}
|
|
1
|
+
$namespace: ab-move;
|
|
2
|
+
|
|
3
|
+
.#{$namespace} {
|
|
4
|
+
cursor: move;
|
|
5
|
+
visibility: hidden;
|
|
6
|
+
transform-origin: center center;
|
|
7
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.popover-demo{
|
|
2
|
-
padding: 80px 60px;
|
|
3
|
-
width: 465px;
|
|
4
|
-
height: 400px;
|
|
5
|
-
margin: auto;
|
|
6
|
-
position: relative;
|
|
7
|
-
|
|
8
|
-
button {
|
|
9
|
-
width: 100px;
|
|
10
|
-
display: inline-block;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.popover-demo-tip {
|
|
14
|
-
height: 60px;
|
|
15
|
-
width: 100px;
|
|
1
|
+
.popover-demo{
|
|
2
|
+
padding: 80px 60px;
|
|
3
|
+
width: 465px;
|
|
4
|
+
height: 400px;
|
|
5
|
+
margin: auto;
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
button {
|
|
9
|
+
width: 100px;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.popover-demo-tip {
|
|
14
|
+
height: 60px;
|
|
15
|
+
width: 100px;
|
|
16
16
|
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
$namespace: ab-popover;
|
|
2
|
-
|
|
3
|
-
.#{$namespace} {
|
|
4
|
-
&-wrap {
|
|
5
|
-
background-color: #fff;
|
|
6
|
-
background-clip: padding-box;
|
|
7
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
8
|
-
padding: .08rem .11rem .05rem;
|
|
9
|
-
min-width: 210px;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&-inner {
|
|
14
|
-
position: relative;
|
|
15
|
-
width: 100%;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
font-size: .12rem;
|
|
18
|
-
|
|
19
|
-
&-expand {
|
|
20
|
-
padding-right: .1rem;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&-arrow {
|
|
25
|
-
position: absolute;
|
|
26
|
-
display: block;
|
|
27
|
-
width: 8px;
|
|
28
|
-
height: 8px;
|
|
29
|
-
border-top-color: transparent;
|
|
30
|
-
border-left-color: transparent;
|
|
31
|
-
border-style: solid;
|
|
32
|
-
background-color: #fff;
|
|
33
|
-
border-right-color: #fff;
|
|
34
|
-
border-bottom-color: #fff;
|
|
35
|
-
border-width: 4px;
|
|
36
|
-
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&-close {
|
|
40
|
-
position: absolute;
|
|
41
|
-
right: .02rem;
|
|
42
|
-
top: .05rem;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
padding: 0 .05rem;
|
|
45
|
-
color: #bfbfbf;
|
|
46
|
-
font-size: 0.2rem;
|
|
47
|
-
line-height: 1;
|
|
48
|
-
z-index: 2;
|
|
49
|
-
|
|
50
|
-
&:hover {
|
|
51
|
-
color: #4A4A4A;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media only screen and (max-width: 767px) {
|
|
57
|
-
.#{$namespace}-wrap {
|
|
58
|
-
width: calc(100% - .3rem);
|
|
59
|
-
}
|
|
1
|
+
$namespace: ab-popover;
|
|
2
|
+
|
|
3
|
+
.#{$namespace} {
|
|
4
|
+
&-wrap {
|
|
5
|
+
background-color: #fff;
|
|
6
|
+
background-clip: padding-box;
|
|
7
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
8
|
+
padding: .08rem .11rem .05rem;
|
|
9
|
+
min-width: 210px;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-inner {
|
|
14
|
+
position: relative;
|
|
15
|
+
width: 100%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
font-size: .12rem;
|
|
18
|
+
|
|
19
|
+
&-expand {
|
|
20
|
+
padding-right: .1rem;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-arrow {
|
|
25
|
+
position: absolute;
|
|
26
|
+
display: block;
|
|
27
|
+
width: 8px;
|
|
28
|
+
height: 8px;
|
|
29
|
+
border-top-color: transparent;
|
|
30
|
+
border-left-color: transparent;
|
|
31
|
+
border-style: solid;
|
|
32
|
+
background-color: #fff;
|
|
33
|
+
border-right-color: #fff;
|
|
34
|
+
border-bottom-color: #fff;
|
|
35
|
+
border-width: 4px;
|
|
36
|
+
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-close {
|
|
40
|
+
position: absolute;
|
|
41
|
+
right: .02rem;
|
|
42
|
+
top: .05rem;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
padding: 0 .05rem;
|
|
45
|
+
color: #bfbfbf;
|
|
46
|
+
font-size: 0.2rem;
|
|
47
|
+
line-height: 1;
|
|
48
|
+
z-index: 2;
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
color: #4A4A4A;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media only screen and (max-width: 767px) {
|
|
57
|
+
.#{$namespace}-wrap {
|
|
58
|
+
width: calc(100% - .3rem);
|
|
59
|
+
}
|
|
60
60
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.select-demo{
|
|
2
|
-
margin: 10px auto;
|
|
3
|
-
width: 200px;
|
|
4
|
-
|
|
5
|
-
.select-group {
|
|
6
|
-
width: 1rem;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
.select-demo{
|
|
2
|
+
margin: 10px auto;
|
|
3
|
+
width: 200px;
|
|
4
|
+
|
|
5
|
+
.select-group {
|
|
6
|
+
width: 1rem;
|
|
7
|
+
}
|
|
8
|
+
}
|