vdesign-ui 0.2.1 → 0.2.3
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 +76 -28
- package/dist/components/activityviews/style.less +59 -45
- 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 +9 -1
- 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 +35 -20
- package/dist/components/empty/style.less +33 -36
- 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 -4
- 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/popup/index.js +7 -0
- package/dist/components/popup/index.vue +243 -0
- 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/index.vue +156 -92
- 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 +1315 -1076
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +1315 -1076
- 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
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<
|
|
4
|
-
<div class="vd-overlay" v-if="overlay && visible" @click="handleOverlayClick"></div>
|
|
5
|
-
</transition>
|
|
3
|
+
<div class="vd-overlay" v-if="overlay && visible" @click="handleOverlayClick"></div>
|
|
6
4
|
<transition name="vd-activityviews-slide-up">
|
|
7
|
-
<div class="vd-activityviews" v-if="visible">
|
|
5
|
+
<div :class="['vd-activityviews',{'vd-activityviews--safe-area-inset-bottom':safeAreaInsetBottom}]" :style="transitionStyle" v-if="visible">
|
|
8
6
|
<div class="vd-activityviews__header" v-if="withHeader">
|
|
9
7
|
<div class="vd-activityviews__wrapper">
|
|
10
8
|
<vd-icon v-if="backDefault" name="icon_nav_back"></vd-icon>
|
|
11
|
-
<div v-if="title" class="vd-activityviews__title">
|
|
9
|
+
<div v-if="title || $slots.title" class="vd-activityviews__title">
|
|
10
|
+
<slot name="title">{{ title }}</slot>
|
|
11
|
+
</div>
|
|
12
12
|
<slot name="close">
|
|
13
13
|
<vd-icon v-if="closeIcon" class="vd-activityviews__close" :name="currentCloseIcon" svg
|
|
14
14
|
@click="onCancel"></vd-icon>
|
|
@@ -40,11 +40,18 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script>
|
|
43
|
-
import {
|
|
43
|
+
import { inBrowser } from '../utils/env';
|
|
44
|
+
import { themeMixin } from '../mixins/themeMixin';
|
|
45
|
+
import VdIcon from '../icon';
|
|
46
|
+
import VdButton from '../button';
|
|
44
47
|
|
|
45
48
|
export default {
|
|
46
|
-
name: 'vd-
|
|
49
|
+
name: 'vd-activity-views',
|
|
47
50
|
mixins: [themeMixin], // 引入混入
|
|
51
|
+
components: {
|
|
52
|
+
VdIcon,
|
|
53
|
+
VdButton
|
|
54
|
+
},
|
|
48
55
|
props: {
|
|
49
56
|
value: Boolean,
|
|
50
57
|
title: String,
|
|
@@ -74,6 +81,22 @@ export default {
|
|
|
74
81
|
type: Boolean,
|
|
75
82
|
default: true
|
|
76
83
|
},
|
|
84
|
+
safeAreaInsetBottom: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: true,
|
|
87
|
+
},
|
|
88
|
+
lockScroll: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
92
|
+
duration: {
|
|
93
|
+
type: Number,
|
|
94
|
+
},
|
|
95
|
+
// 指定挂载的容器,可以是选择器字符串或返回元素的函数
|
|
96
|
+
getContainer: {
|
|
97
|
+
type: [String, Function],
|
|
98
|
+
default: 'body',
|
|
99
|
+
},
|
|
77
100
|
},
|
|
78
101
|
data() {
|
|
79
102
|
return {
|
|
@@ -88,9 +111,26 @@ export default {
|
|
|
88
111
|
},
|
|
89
112
|
isDarkTheme() {
|
|
90
113
|
return this.theme === 'dark';
|
|
91
|
-
}
|
|
114
|
+
},
|
|
115
|
+
// 动态设置过渡持续时间的样式
|
|
116
|
+
transitionStyle() {
|
|
117
|
+
return {
|
|
118
|
+
transitionDuration: `${this.duration}s`,
|
|
119
|
+
};
|
|
120
|
+
},
|
|
92
121
|
},
|
|
93
122
|
watch: {
|
|
123
|
+
visible(val) {
|
|
124
|
+
if (inBrowser) {
|
|
125
|
+
if (this.lockScroll) {
|
|
126
|
+
if (val) {
|
|
127
|
+
document.body.style.overflow = 'hidden';
|
|
128
|
+
} else {
|
|
129
|
+
document.body.style.overflow = '';
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
94
134
|
},
|
|
95
135
|
methods: {
|
|
96
136
|
closeActivity() {
|
|
@@ -109,9 +149,36 @@ export default {
|
|
|
109
149
|
if (this.closeOnOverlay) {
|
|
110
150
|
this.closeActivity();
|
|
111
151
|
}
|
|
112
|
-
}
|
|
152
|
+
},
|
|
153
|
+
// 将弹出层添加到指定的容器中
|
|
154
|
+
appendToContainer() {
|
|
155
|
+
const container =
|
|
156
|
+
typeof this.getContainer === 'function'
|
|
157
|
+
? this.getContainer()
|
|
158
|
+
: document.querySelector(this.getContainer);
|
|
159
|
+
if (container && container !== this.$el.parentNode) {
|
|
160
|
+
container.appendChild(this.$el);
|
|
161
|
+
}
|
|
162
|
+
},
|
|
113
163
|
},
|
|
114
164
|
mounted() {
|
|
165
|
+
if (inBrowser) {
|
|
166
|
+
this.appendToContainer();
|
|
167
|
+
if (this.lockScroll && this.visible) {
|
|
168
|
+
document.body.style.overflow = 'hidden';
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
beforeDestroy() {
|
|
173
|
+
if (inBrowser){
|
|
174
|
+
if(this.lockScroll) {
|
|
175
|
+
document.body.style.overflow = '';
|
|
176
|
+
}
|
|
177
|
+
// 从容器中移除弹出层元素
|
|
178
|
+
if (this.$el.parentNode) {
|
|
179
|
+
this.$el.parentNode.removeChild(this.$el);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
115
182
|
}
|
|
116
183
|
|
|
117
184
|
}
|
|
@@ -120,23 +187,4 @@ export default {
|
|
|
120
187
|
<style lang="less">
|
|
121
188
|
@import './style.less';
|
|
122
189
|
|
|
123
|
-
.vd-activityviews-fade-enter-active,
|
|
124
|
-
.vd-activityviews-fade-leave-active {
|
|
125
|
-
transition: opacity 0.3s;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.vd-activityviews-fade-enter,
|
|
129
|
-
.vd-activityviews-fade-leave-to {
|
|
130
|
-
opacity: 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.vd-activityviews-slide-up-enter-active,
|
|
134
|
-
.vd-activityviews-slide-up-leave-active {
|
|
135
|
-
transition: transform 0.3s;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.vd-activityviews-slide-up-enter,
|
|
139
|
-
.vd-activityviews-slide-up-leave-to {
|
|
140
|
-
transform: translateY(100%);
|
|
141
|
-
}
|
|
142
190
|
</style>
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
1
|
@activityviews-prefix-cls: vd-activityviews;
|
|
3
2
|
|
|
4
|
-
.@{activityviews-prefix-cls}{
|
|
3
|
+
.@{activityviews-prefix-cls} {
|
|
4
|
+
|
|
5
|
+
&--safe-area-inset-bottom{
|
|
6
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
7
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
8
|
+
}
|
|
5
9
|
|
|
6
|
-
::-webkit-scrollbar{width:3px;}
|
|
10
|
+
::-webkit-scrollbar { width: 3px; }
|
|
7
11
|
position: fixed;
|
|
8
12
|
left: 0;
|
|
9
13
|
right: 0;
|
|
@@ -14,125 +18,135 @@
|
|
|
14
18
|
flex-direction: column;
|
|
15
19
|
max-height: 80%;
|
|
16
20
|
overflow: auto;
|
|
21
|
+
transition: transform .3s;
|
|
17
22
|
background-color: var(--color-activityviews-bg);
|
|
18
|
-
border-radius:
|
|
23
|
+
border-radius: var(--radius-activityviews-title) var(--radius-activityviews-title) 0 0;
|
|
19
24
|
|
|
20
|
-
&__close{
|
|
21
|
-
font-size:
|
|
25
|
+
&__close {
|
|
26
|
+
font-size: var(--icon-activityviews-close);
|
|
22
27
|
}
|
|
23
28
|
|
|
24
|
-
&__header{
|
|
29
|
+
&__header {
|
|
25
30
|
display: flex;
|
|
26
31
|
flex-direction: column;
|
|
27
|
-
|
|
28
|
-
padding-block-
|
|
29
|
-
padding-
|
|
30
|
-
padding-inline-
|
|
31
|
-
padding-inline-end: calc(var(--spacing-activityviews-padding_right) * 1px);
|
|
32
|
+
padding-block-start: var(--spacing-activityviews-head-padding_top);
|
|
33
|
+
padding-block-end: var(--spacing-activityviews-head-padding_bottom);
|
|
34
|
+
padding-inline-start: var(--spacing-activityviews-padding_left);
|
|
35
|
+
padding-inline-end: var(--spacing-activityviews-padding_right);
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
&__bar{
|
|
38
|
+
&__bar {
|
|
35
39
|
position: relative;
|
|
36
40
|
width: 100%;
|
|
37
41
|
height: 16px;
|
|
38
|
-
&::after{
|
|
42
|
+
&::after {
|
|
39
43
|
content: '';
|
|
40
44
|
position: absolute;
|
|
41
45
|
left: 50%;
|
|
42
|
-
top:
|
|
46
|
+
top: var(--spacing-activityviews-title-margin_right);
|
|
43
47
|
transform: translate(-50%, 0);
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
46
|
-
border-radius:
|
|
48
|
+
width: var(--width-activityviews-bar);
|
|
49
|
+
height: var(--height-activityviews-bar);
|
|
50
|
+
border-radius: var(--radius-activityviews-bar);
|
|
47
51
|
background-color: var(--color-activityviews-bar);
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
&__wrapper{
|
|
55
|
+
&__wrapper {
|
|
52
56
|
display: flex;
|
|
53
57
|
align-items: center;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
&__title{
|
|
60
|
+
&__title {
|
|
57
61
|
text-align: center;
|
|
58
62
|
margin-inline-end: auto;
|
|
59
|
-
padding-inline-end:
|
|
60
|
-
font-size:
|
|
63
|
+
padding-inline-end: var(--spacing-activityviews-title-margin_right);
|
|
64
|
+
font-size: var(--en-single-f-e-s-fontSize);
|
|
61
65
|
font-weight: var(--en-single-f-e-s-fontWeight);
|
|
62
|
-
color:var(--color-activityviews-title);
|
|
66
|
+
color: var(--color-activityviews-title);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
|
-
&__description{
|
|
69
|
+
&__description {
|
|
66
70
|
color: var(--color-activityviews-text_describe);
|
|
67
|
-
margin-block-start:
|
|
68
|
-
font-size:
|
|
71
|
+
margin-block-start: var(--spacing-activityviews-describe-margin_top);
|
|
72
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
69
73
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
70
74
|
}
|
|
71
75
|
|
|
72
|
-
&__done{
|
|
76
|
+
&__done {
|
|
73
77
|
height: 24px;
|
|
74
78
|
line-height: 24px;
|
|
75
79
|
padding-right: 0;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
&__body{
|
|
82
|
+
&__body {
|
|
79
83
|
background-color: var(--color-activityviews-bg);
|
|
80
84
|
height: 80%;
|
|
81
85
|
overflow-y: auto;
|
|
82
86
|
|
|
83
|
-
&--action{
|
|
87
|
+
&--action {
|
|
84
88
|
overflow: hidden;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
&__action{
|
|
92
|
+
&__action {
|
|
89
93
|
padding: 0;
|
|
90
94
|
height: 80%;
|
|
91
95
|
overflow: hidden;
|
|
92
96
|
display: flex;
|
|
93
97
|
-webkit-box-orient: vertical;
|
|
94
|
-
|
|
98
|
+
-webkit-box-direction: normal;
|
|
95
99
|
flex-direction: column;
|
|
96
|
-
|
|
100
|
+
|
|
101
|
+
&-title {
|
|
97
102
|
flex-shrink: 0;
|
|
98
103
|
font-size: 14px;
|
|
99
104
|
text-align: center;
|
|
100
|
-
padding-block-start:
|
|
101
|
-
padding-block-end:
|
|
105
|
+
padding-block-start: var(--spacing-activityviews-actionsheet_title-padding_y);
|
|
106
|
+
padding-block-end: var(--spacing-activityviews-actionsheet_title-padding_y);
|
|
102
107
|
color: var(--color-activityviews-actionsheet_title);
|
|
103
108
|
}
|
|
104
|
-
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
&__actions{
|
|
111
|
+
&__actions {
|
|
108
112
|
flex: 1;
|
|
109
113
|
overflow: auto;
|
|
110
114
|
-webkit-overflow-scrolling: touch;
|
|
111
115
|
|
|
112
|
-
.vd-btn{
|
|
116
|
+
.vd-btn {
|
|
113
117
|
border-radius: 0;
|
|
114
118
|
background-color: var(--color-activityviews-bg);
|
|
115
|
-
height:
|
|
116
|
-
|
|
119
|
+
height: var(--height-activityviews-actionsheet);
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
|
120
|
-
&__gap{
|
|
123
|
+
&__gap {
|
|
121
124
|
display: block;
|
|
122
|
-
height:
|
|
125
|
+
height: var(--height-activityviews-actionsheet_divider);
|
|
123
126
|
background-color: var(--color-activityviews-actionsheet_divider);
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
&__cancel{
|
|
129
|
+
&__cancel {
|
|
127
130
|
flex-shrink: 0;
|
|
128
131
|
|
|
129
|
-
|
|
130
|
-
.vd-btn{
|
|
132
|
+
.vd-btn {
|
|
131
133
|
position: relative;
|
|
132
134
|
border: none;
|
|
133
135
|
background-color: var(--color-activityviews-bg);
|
|
134
|
-
height:
|
|
136
|
+
height: var(--height-activityviews-actionsheet);
|
|
135
137
|
border-radius: 0;
|
|
136
138
|
}
|
|
137
139
|
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
.vd-activityviews-slide-up-enter-active,
|
|
144
|
+
.vd-activityviews-slide-up-leave-active {
|
|
145
|
+
transition-property: transform;
|
|
146
|
+
transition-timing-function: ease;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.vd-activityviews-slide-up-enter,
|
|
150
|
+
.vd-activityviews-slide-up-leave-to {
|
|
151
|
+
transform: translateY(100%);
|
|
138
152
|
}
|