vdesign-ui 0.2.1 → 0.2.2
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/dist/components/actionbar/style.less +8 -12
- package/dist/components/actionbar-cell/index.js +7 -0
- package/dist/components/{actionbar/actionbar-cell → actionbar-cell}/index.vue +4 -0
- package/dist/components/{actions-cell/actions → actions}/index.vue +6 -6
- package/dist/components/{actions-cell/actions → actions}/style.less +38 -41
- package/dist/components/activityviews/index.vue +7 -1
- package/dist/components/activityviews/style.less +42 -46
- package/dist/components/badge/style.less +22 -34
- package/dist/components/button/index.vue +4 -0
- package/dist/components/button/style.less +82 -87
- package/dist/components/calendar/index.vue +1 -1
- package/dist/components/calendar/style.less +24 -53
- package/dist/components/checkbox/index.vue +5 -1
- package/dist/components/checkbox/style.less +30 -32
- package/dist/components/checkbox-group/index.js +7 -0
- package/dist/components/{checkbox/checkbox-group → checkbox-group}/index.vue +1 -2
- package/dist/components/common/state/index.vue +1 -48
- package/dist/components/common/state/style.less +48 -0
- package/dist/components/data-list/style.less +81 -82
- package/dist/components/datetime-picker/style.less +12 -12
- package/dist/components/dialog/index.vue +4 -0
- package/dist/components/dialog/style.less +27 -31
- package/dist/components/divider/style.less +1 -1
- package/dist/components/dropdown/index.vue +6 -1
- package/dist/components/dropdown/style.less +117 -125
- package/dist/components/empty/index.vue +10 -8
- package/dist/components/empty/style.less +34 -26
- package/dist/components/footer/style.less +6 -7
- package/dist/components/footnav/index.vue +1 -1
- package/dist/components/footnav/style.less +5 -5
- package/dist/components/{footnav/footnav-item → footnav-item}/index.vue +7 -1
- package/dist/components/{footnav/footnav-item → footnav-item}/style.less +2 -2
- package/dist/components/headnav/index.vue +5 -1
- package/dist/components/headnav/style.less +54 -58
- package/dist/components/icon/style.less +4 -4
- package/dist/components/input/index.vue +4 -0
- package/dist/components/input/style.less +88 -101
- package/dist/components/list/index.vue +5 -0
- package/dist/components/list/style.less +45 -52
- package/dist/components/loading/style.less +25 -27
- package/dist/components/mixins/languageMixin.js +7 -3
- package/dist/components/mixins/outlineConfigPlugin.js +1 -1
- package/dist/components/mixins/themeMixin.js +29 -15
- package/dist/components/noticebar/index.vue +7 -1
- package/dist/components/noticebar/style.less +125 -129
- package/dist/components/overlay/index.vue +34 -11
- package/dist/components/pagebreak/style.less +18 -19
- package/dist/components/popover/index.vue +2 -1
- package/dist/components/popover/style.less +39 -39
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.vue +1 -1
- package/dist/components/radio/style.less +35 -43
- package/dist/components/radio-group/index.js +6 -0
- package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
- package/dist/components/result/completed-dark.png +0 -0
- package/dist/components/result/completed.png +0 -0
- package/dist/components/result/error-dark.png +0 -0
- package/dist/components/result/error.png +0 -0
- package/dist/components/result/index.vue +1 -2
- package/dist/components/result/style.less +22 -20
- package/dist/components/result/wait-dark.png +0 -0
- package/dist/components/result/wait.png +0 -0
- package/dist/components/{input/search → search}/index.vue +4 -0
- package/dist/components/selector/index.vue +4 -0
- package/dist/components/selector/style.less +96 -100
- package/dist/components/skeleton/style.less +112 -107
- package/dist/components/slider/index.vue +1 -1
- package/dist/components/slider/style.less +41 -37
- package/dist/components/step/style.less +3 -4
- package/dist/components/step-item/index.vue +12 -3
- package/dist/components/step-item/style.less +61 -60
- package/dist/components/{input/stepper → stepper}/index.vue +5 -1
- package/dist/components/switch/style.less +8 -8
- package/dist/components/tab/index.js +7 -0
- package/dist/components/tabs/index.vue +4 -0
- package/dist/components/tabs/style.less +97 -105
- package/dist/components/tag/style.less +35 -35
- package/dist/components/title/index.vue +4 -0
- package/dist/components/title/style.less +164 -170
- package/dist/components/toast/index.js +9 -3
- package/dist/components/toast/style.less +8 -8
- package/dist/components/upload/index.vue +4 -0
- package/dist/components/upload/style.less +22 -31
- package/dist/components/utils/env.js +2 -0
- package/dist/token.css +1278 -1278
- package/dist/vdesign-ui.common.js +1112 -948
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +1112 -948
- package/dist/vdesign-ui.umd.min.js +3 -3
- package/package.json +1 -1
- package/dist/components/checkbox/checkbox-group/index.js +0 -8
- package/dist/components/radio/assist.js +0 -34
- package/dist/components/radio/style.css +0 -213
- package/dist/img/completed-dark.4183a8a8.png +0 -0
- package/dist/img/error-dark.b80857da.png +0 -0
- package/dist/img/wait-dark.6aa28731.png +0 -0
- /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
- /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
- /package/dist/components/{input/password → password}/index.js +0 -0
- /package/dist/components/{input/password → password}/index.vue +0 -0
- /package/dist/components/{input/search → search}/index.js +0 -0
- /package/dist/components/{input/stepper → stepper}/index.js +0 -0
- /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
- /package/dist/components/{checkbox → utils}/assist.js +0 -0
|
@@ -1,37 +1,33 @@
|
|
|
1
|
+
@actionbar-prefix-cls: vd-actionbar;
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
.@{actionbar-prefix-cls}{
|
|
3
|
+
.@{actionbar-prefix-cls} {
|
|
5
4
|
|
|
6
5
|
display: flex;
|
|
7
6
|
width: 100%;
|
|
8
|
-
height:
|
|
7
|
+
height: var(--height-actionbar-content);
|
|
9
8
|
background-color: var(--color-actionbar-bg);
|
|
10
|
-
padding-inline-start:
|
|
11
|
-
padding-inline-end:
|
|
9
|
+
padding-inline-start: var(--spacing-actionbar-padding_y);
|
|
10
|
+
padding-inline-end: var(--spacing-actionbar-padding_y);
|
|
12
11
|
|
|
13
|
-
&__block{
|
|
12
|
+
&__block {
|
|
14
13
|
padding-inline-start: 0;
|
|
15
14
|
padding-inline-end: 0;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
&__main{
|
|
17
|
+
&__main {
|
|
19
18
|
display: flex;
|
|
20
19
|
flex: 1;
|
|
21
20
|
justify-content: space-around;
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
24
|
.@{actionbar-prefix-cls}-cell {
|
|
29
25
|
display: flex;
|
|
30
26
|
flex: 1;
|
|
31
27
|
align-items: center;
|
|
32
28
|
cursor: pointer;
|
|
33
29
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
34
|
-
font-size:
|
|
30
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
35
31
|
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
36
32
|
|
|
37
33
|
&--left {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="wrapClasses">
|
|
3
3
|
<span class="vd-actions__text" :class="textClasses" v-if="text">{{ text }}</span>
|
|
4
|
-
<vd-icon v-if="icon && type === 'list'" class="vd-actions__icon" :class="iconClasses" :name="icon"
|
|
4
|
+
<vd-icon v-if="icon && type === 'list'" class="vd-actions__icon" :class="iconClasses" :name="icon"></vd-icon>
|
|
5
5
|
<span class="vd-actions__content" :class="contentBg" v-if="icon && type === 'card'">
|
|
6
|
-
<vd-icon class="vd-actions__icon" :class="iconClasses" :name="icon"
|
|
6
|
+
<vd-icon class="vd-actions__icon" :class="iconClasses" :name="icon"></vd-icon>
|
|
7
7
|
</span>
|
|
8
8
|
</div>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script>
|
|
12
|
+
import VdIcon from '../icon';
|
|
12
13
|
const prefixCls = 'vd-actions'
|
|
13
14
|
export default {
|
|
14
15
|
name: 'vd-actions',
|
|
16
|
+
components: {
|
|
17
|
+
VdIcon
|
|
18
|
+
},
|
|
15
19
|
props: {
|
|
16
20
|
type: {
|
|
17
21
|
type: String,
|
|
@@ -28,10 +32,6 @@ export default {
|
|
|
28
32
|
icon: {
|
|
29
33
|
type: String,
|
|
30
34
|
},
|
|
31
|
-
iconSvg: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false,
|
|
34
|
-
},
|
|
35
35
|
disabled:Boolean,
|
|
36
36
|
},
|
|
37
37
|
computed: {
|
|
@@ -1,112 +1,109 @@
|
|
|
1
|
-
@actions-prefix-cls:vd-actions;
|
|
1
|
+
@actions-prefix-cls: vd-actions;
|
|
2
2
|
|
|
3
|
-
.@{actions-prefix-cls}{
|
|
3
|
+
.@{actions-prefix-cls} {
|
|
4
4
|
height: 100%;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
|
|
9
|
-
&__list{
|
|
9
|
+
&__list {
|
|
10
10
|
width: fit-content;
|
|
11
|
-
min-width:
|
|
12
|
-
max-width:
|
|
13
|
-
padding: 0
|
|
11
|
+
min-width: var(--width-actions-form_small);
|
|
12
|
+
max-width: var(--width-actions-form_large);
|
|
13
|
+
padding: 0 var(--spacing-actions-form-padding_y);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
&__card{
|
|
17
|
-
padding: 0
|
|
16
|
+
&__card {
|
|
17
|
+
padding: 0 var(--spacing-actions-card_item-margin_y);
|
|
18
18
|
|
|
19
|
-
.@{actions-prefix-cls}__content{
|
|
19
|
+
.@{actions-prefix-cls}__content {
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
border-radius: 50%;
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
24
|
+
width: var(--width-actions-card);
|
|
25
|
+
height: var(--width-actions-card);
|
|
26
26
|
|
|
27
|
-
&--green{
|
|
27
|
+
&--green {
|
|
28
28
|
background-color: var(--color-actions-bg-green);
|
|
29
|
-
&--disabled{
|
|
29
|
+
&--disabled {
|
|
30
30
|
background-color: var(--color-actions-bg-green-disable);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
&--warning{
|
|
34
|
+
&--warning {
|
|
35
35
|
background-color: var(--color-actions-bg-warning);
|
|
36
|
-
&--disabled{
|
|
36
|
+
&--disabled {
|
|
37
37
|
background-color: var(--color-actions-bg-warning-disable);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
&--blue{
|
|
41
|
+
&--blue {
|
|
42
42
|
background-color: var(--color-actions-bg-blue);
|
|
43
|
-
&--disabled{
|
|
43
|
+
&--disabled {
|
|
44
44
|
background-color: var(--color-actions-bg-blue-disable);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
&--gray{
|
|
48
|
+
&--gray {
|
|
49
49
|
background-color: var(--color-actions-bg-gray);
|
|
50
|
-
&--disabled{
|
|
50
|
+
&--disabled {
|
|
51
51
|
background-color: var(--color-actions-bg-gray-disable);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
.@{actions-prefix-cls}__icon{
|
|
59
|
-
|
|
60
|
-
font-size:
|
|
61
|
-
&--disabled{
|
|
56
|
+
.@{actions-prefix-cls}__icon {
|
|
57
|
+
color: var(--color-actions-text);
|
|
58
|
+
font-size: var(--icon-actions-card);
|
|
59
|
+
&--disabled {
|
|
62
60
|
color: var(--color-actions-text-disable);
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
&__text{
|
|
65
|
+
&__text {
|
|
68
66
|
color: var(--color-actions-text);
|
|
69
|
-
font-size:
|
|
67
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
70
68
|
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
71
|
-
&--disabled{
|
|
69
|
+
&--disabled {
|
|
72
70
|
color: var(--color-actions-text-disable);
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
&__icon{
|
|
77
|
-
font-size:
|
|
74
|
+
&__icon {
|
|
75
|
+
font-size: var(--icon-actions-size);
|
|
78
76
|
color: var(--color-actions-text);
|
|
79
|
-
&--disabled{
|
|
77
|
+
&--disabled {
|
|
80
78
|
color: var(--color-actions-text-disable);
|
|
81
79
|
}
|
|
82
80
|
}
|
|
83
81
|
|
|
84
|
-
&__green{
|
|
82
|
+
&__green {
|
|
85
83
|
background-color: var(--color-actions-bg-green);
|
|
86
|
-
&--disabled{
|
|
84
|
+
&--disabled {
|
|
87
85
|
background-color: var(--color-actions-bg-green-disable);
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
|
|
91
|
-
&__warning{
|
|
89
|
+
&__warning {
|
|
92
90
|
background-color: var(--color-actions-bg-warning);
|
|
93
|
-
&--disabled{
|
|
91
|
+
&--disabled {
|
|
94
92
|
background-color: var(--color-actions-bg-warning-disable);
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
&__blue{
|
|
96
|
+
&__blue {
|
|
99
97
|
background-color: var(--color-actions-bg-blue);
|
|
100
|
-
&--disabled{
|
|
98
|
+
&--disabled {
|
|
101
99
|
background-color: var(--color-actions-bg-blue-disable);
|
|
102
100
|
}
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
&__gray{
|
|
103
|
+
&__gray {
|
|
106
104
|
background-color: var(--color-actions-bg-gray);
|
|
107
|
-
&--disabled{
|
|
105
|
+
&--disabled {
|
|
108
106
|
background-color: var(--color-actions-bg-gray-disable);
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
|
-
|
|
112
|
-
}
|
|
109
|
+
}
|
|
@@ -40,11 +40,17 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script>
|
|
43
|
-
import { themeMixin } from '
|
|
43
|
+
import { themeMixin } from '../mixins/themeMixin';
|
|
44
|
+
import VdIcon from '../icon';
|
|
45
|
+
import VdButton from '../button';
|
|
44
46
|
|
|
45
47
|
export default {
|
|
46
48
|
name: 'vd-activityviews',
|
|
47
49
|
mixins: [themeMixin], // 引入混入
|
|
50
|
+
components: {
|
|
51
|
+
VdIcon,
|
|
52
|
+
VdButton
|
|
53
|
+
},
|
|
48
54
|
props: {
|
|
49
55
|
value: Boolean,
|
|
50
56
|
title: String,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
1
|
@activityviews-prefix-cls: vd-activityviews;
|
|
3
2
|
|
|
4
|
-
.@{activityviews-prefix-cls}{
|
|
3
|
+
.@{activityviews-prefix-cls} {
|
|
5
4
|
|
|
6
|
-
::-webkit-scrollbar{width:3px;}
|
|
5
|
+
::-webkit-scrollbar { width: 3px; }
|
|
7
6
|
position: fixed;
|
|
8
7
|
left: 0;
|
|
9
8
|
right: 0;
|
|
@@ -15,124 +14,121 @@
|
|
|
15
14
|
max-height: 80%;
|
|
16
15
|
overflow: auto;
|
|
17
16
|
background-color: var(--color-activityviews-bg);
|
|
18
|
-
border-radius:
|
|
17
|
+
border-radius: var(--radius-activityviews-title) var(--radius-activityviews-title) 0 0;
|
|
19
18
|
|
|
20
|
-
&__close{
|
|
21
|
-
font-size:
|
|
19
|
+
&__close {
|
|
20
|
+
font-size: var(--icon-activityviews-close);
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
&__header{
|
|
23
|
+
&__header {
|
|
25
24
|
display: flex;
|
|
26
25
|
flex-direction: column;
|
|
27
|
-
|
|
28
|
-
padding-block-
|
|
29
|
-
padding-
|
|
30
|
-
padding-inline-
|
|
31
|
-
padding-inline-end: calc(var(--spacing-activityviews-padding_right) * 1px);
|
|
26
|
+
padding-block-start: var(--spacing-activityviews-head-padding_top);
|
|
27
|
+
padding-block-end: var(--spacing-activityviews-head-padding_bottom);
|
|
28
|
+
padding-inline-start: var(--spacing-activityviews-padding_left);
|
|
29
|
+
padding-inline-end: var(--spacing-activityviews-padding_right);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
&__bar{
|
|
32
|
+
&__bar {
|
|
35
33
|
position: relative;
|
|
36
34
|
width: 100%;
|
|
37
35
|
height: 16px;
|
|
38
|
-
&::after{
|
|
36
|
+
&::after {
|
|
39
37
|
content: '';
|
|
40
38
|
position: absolute;
|
|
41
39
|
left: 50%;
|
|
42
|
-
top:
|
|
40
|
+
top: var(--spacing-activityviews-title-margin_right);
|
|
43
41
|
transform: translate(-50%, 0);
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
46
|
-
border-radius:
|
|
42
|
+
width: var(--width-activityviews-bar);
|
|
43
|
+
height: var(--height-activityviews-bar);
|
|
44
|
+
border-radius: var(--radius-activityviews-bar);
|
|
47
45
|
background-color: var(--color-activityviews-bar);
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
&__wrapper{
|
|
49
|
+
&__wrapper {
|
|
52
50
|
display: flex;
|
|
53
51
|
align-items: center;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
|
-
&__title{
|
|
54
|
+
&__title {
|
|
57
55
|
text-align: center;
|
|
58
56
|
margin-inline-end: auto;
|
|
59
|
-
padding-inline-end:
|
|
60
|
-
font-size:
|
|
57
|
+
padding-inline-end: var(--spacing-activityviews-title-margin_right);
|
|
58
|
+
font-size: var(--en-single-f-e-s-fontSize);
|
|
61
59
|
font-weight: var(--en-single-f-e-s-fontWeight);
|
|
62
|
-
color:var(--color-activityviews-title);
|
|
60
|
+
color: var(--color-activityviews-title);
|
|
63
61
|
}
|
|
64
62
|
|
|
65
|
-
&__description{
|
|
63
|
+
&__description {
|
|
66
64
|
color: var(--color-activityviews-text_describe);
|
|
67
|
-
margin-block-start:
|
|
68
|
-
font-size:
|
|
65
|
+
margin-block-start: var(--spacing-activityviews-describe-margin_top);
|
|
66
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
69
67
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
70
68
|
}
|
|
71
69
|
|
|
72
|
-
&__done{
|
|
70
|
+
&__done {
|
|
73
71
|
height: 24px;
|
|
74
72
|
line-height: 24px;
|
|
75
73
|
padding-right: 0;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
|
-
&__body{
|
|
76
|
+
&__body {
|
|
79
77
|
background-color: var(--color-activityviews-bg);
|
|
80
78
|
height: 80%;
|
|
81
79
|
overflow-y: auto;
|
|
82
80
|
|
|
83
|
-
&--action{
|
|
81
|
+
&--action {
|
|
84
82
|
overflow: hidden;
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
|
|
88
|
-
&__action{
|
|
86
|
+
&__action {
|
|
89
87
|
padding: 0;
|
|
90
88
|
height: 80%;
|
|
91
89
|
overflow: hidden;
|
|
92
90
|
display: flex;
|
|
93
91
|
-webkit-box-orient: vertical;
|
|
94
|
-
|
|
92
|
+
-webkit-box-direction: normal;
|
|
95
93
|
flex-direction: column;
|
|
96
|
-
|
|
94
|
+
|
|
95
|
+
&-title {
|
|
97
96
|
flex-shrink: 0;
|
|
98
97
|
font-size: 14px;
|
|
99
98
|
text-align: center;
|
|
100
|
-
padding-block-start:
|
|
101
|
-
padding-block-end:
|
|
99
|
+
padding-block-start: var(--spacing-activityviews-actionsheet_title-padding_y);
|
|
100
|
+
padding-block-end: var(--spacing-activityviews-actionsheet_title-padding_y);
|
|
102
101
|
color: var(--color-activityviews-actionsheet_title);
|
|
103
102
|
}
|
|
104
|
-
|
|
105
103
|
}
|
|
106
104
|
|
|
107
|
-
&__actions{
|
|
105
|
+
&__actions {
|
|
108
106
|
flex: 1;
|
|
109
107
|
overflow: auto;
|
|
110
108
|
-webkit-overflow-scrolling: touch;
|
|
111
109
|
|
|
112
|
-
.vd-btn{
|
|
110
|
+
.vd-btn {
|
|
113
111
|
border-radius: 0;
|
|
114
112
|
background-color: var(--color-activityviews-bg);
|
|
115
|
-
height:
|
|
116
|
-
|
|
113
|
+
height: var(--height-activityviews-actionsheet);
|
|
117
114
|
}
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
&__gap{
|
|
117
|
+
&__gap {
|
|
121
118
|
display: block;
|
|
122
|
-
height:
|
|
119
|
+
height: var(--height-activityviews-actionsheet_divider);
|
|
123
120
|
background-color: var(--color-activityviews-actionsheet_divider);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
&__cancel{
|
|
123
|
+
&__cancel {
|
|
127
124
|
flex-shrink: 0;
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
.vd-btn{
|
|
126
|
+
.vd-btn {
|
|
131
127
|
position: relative;
|
|
132
128
|
border: none;
|
|
133
129
|
background-color: var(--color-activityviews-bg);
|
|
134
|
-
height:
|
|
130
|
+
height: var(--height-activityviews-actionsheet);
|
|
135
131
|
border-radius: 0;
|
|
136
132
|
}
|
|
137
133
|
}
|
|
138
|
-
}
|
|
134
|
+
}
|
|
@@ -1,66 +1,54 @@
|
|
|
1
1
|
@badge-prefix-cls: vd-badge;
|
|
2
2
|
|
|
3
|
-
.@{badge-prefix-cls}{
|
|
3
|
+
.@{badge-prefix-cls} {
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
line-height: 1;
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
&__content {
|
|
8
9
|
text-align: center;
|
|
9
10
|
white-space: nowrap;
|
|
10
11
|
background-color: var(--color-badge-bg);
|
|
11
|
-
border-radius:
|
|
12
|
+
border-radius: var(--radius-badge-count);
|
|
12
13
|
color: var(--color-badge-text);
|
|
13
14
|
display: inline-block;
|
|
14
|
-
font-size:
|
|
15
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
15
16
|
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
16
|
-
min-width:
|
|
17
|
-
height:
|
|
18
|
-
|
|
19
|
-
padding: calc(var(--spacing-badge-count-padding_x) * 1px) calc(var(--spacing-badge-count-padding_y) * 1px);
|
|
20
|
-
// padding: 0 4px;
|
|
21
|
-
|
|
22
|
-
// &::before {
|
|
23
|
-
// content: '';
|
|
24
|
-
// display: inline-block;
|
|
25
|
-
// vertical-align: middle;
|
|
26
|
-
// width: 0;
|
|
27
|
-
// height: 100%;
|
|
28
|
-
// margin-top: 1px;
|
|
29
|
-
// }
|
|
17
|
+
min-width: var(--height-badge-count);
|
|
18
|
+
height: var(--height-badge-count);
|
|
19
|
+
padding: var(--spacing-badge-count-padding_x) var(--spacing-badge-count-padding_y);
|
|
30
20
|
}
|
|
31
|
-
|
|
21
|
+
|
|
22
|
+
.vd-is-dot {
|
|
32
23
|
background-color: transparent;
|
|
33
|
-
&::before{
|
|
24
|
+
&::before {
|
|
34
25
|
content: '';
|
|
35
26
|
display: inline-block;
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
27
|
+
width: var(--width-badge-dot);
|
|
28
|
+
height: var(--height-badge-dot);
|
|
38
29
|
background-color: var(--color-badge-bg);
|
|
39
|
-
border-radius:
|
|
40
|
-
|
|
30
|
+
border-radius: var(--radius-badge-count);
|
|
41
31
|
}
|
|
42
|
-
|
|
43
32
|
}
|
|
44
33
|
|
|
45
|
-
.vd-is-fixed{
|
|
34
|
+
.vd-is-fixed {
|
|
46
35
|
position: absolute;
|
|
47
36
|
top: 0;
|
|
48
37
|
right: 0;
|
|
49
|
-
transform: translate(50
|
|
38
|
+
transform: translate(50%, -50%);
|
|
50
39
|
}
|
|
51
40
|
|
|
52
|
-
.vd-ltr{
|
|
41
|
+
.vd-ltr {
|
|
53
42
|
direction: ltr;
|
|
54
43
|
}
|
|
55
44
|
}
|
|
56
45
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
.vd-is-fixed{
|
|
46
|
+
[lang='ar'] {
|
|
47
|
+
.@{badge-prefix-cls} {
|
|
48
|
+
.vd-is-fixed {
|
|
61
49
|
left: 0;
|
|
62
50
|
right: auto;
|
|
63
|
-
|
|
51
|
+
transform: translate(-50%, -50%);
|
|
64
52
|
}
|
|
65
53
|
}
|
|
66
|
-
}
|
|
54
|
+
}
|