vdesign-ui 0.1.20 → 0.1.21
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/package.json +1 -1
- package/dist/components/actionbar/actionbar-cell/index.vue +0 -34
- package/dist/components/actionbar/index.js +0 -8
- package/dist/components/actionbar/index.vue +0 -39
- package/dist/components/actionbar/style.less +0 -48
- package/dist/components/actions-cell/actions/index.js +0 -7
- package/dist/components/actions-cell/actions/index.vue +0 -76
- package/dist/components/actions-cell/actions/style.less +0 -112
- package/dist/components/actions-cell/index.js +0 -7
- package/dist/components/actions-cell/index.vue +0 -94
- package/dist/components/actions-cell/style.less +0 -39
- package/dist/components/activityviews/index.js +0 -8
- package/dist/components/activityviews/index.vue +0 -140
- package/dist/components/activityviews/style.less +0 -138
- package/dist/components/badge/index.js +0 -8
- package/dist/components/badge/index.vue +0 -49
- package/dist/components/badge/style.less +0 -66
- package/dist/components/button/index.js +0 -8
- package/dist/components/button/index.vue +0 -89
- package/dist/components/button/style.less +0 -563
- package/dist/components/calendar/end.png +0 -0
- package/dist/components/calendar/index-element.vue +0 -84
- package/dist/components/calendar/index.js +0 -8
- package/dist/components/calendar/index.vue +0 -52
- package/dist/components/calendar/start.png +0 -0
- package/dist/components/calendar/style.less +0 -167
- package/dist/components/checkbox/assist.js +0 -34
- package/dist/components/checkbox/checkbox-group/index.js +0 -8
- package/dist/components/checkbox/checkbox-group/index.vue +0 -69
- package/dist/components/checkbox/index.js +0 -8
- package/dist/components/checkbox/index.vue +0 -184
- package/dist/components/checkbox/style.less +0 -291
- package/dist/components/common/state/index.vue +0 -80
- package/dist/components/data-list/index.js +0 -10
- package/dist/components/data-list/index.vue +0 -19
- package/dist/components/data-list/style.less +0 -624
- package/dist/components/datetime-picker/index.js +0 -8
- package/dist/components/datetime-picker/index.vue +0 -37
- package/dist/components/datetime-picker/style.less +0 -24
- package/dist/components/dialog/index.js +0 -8
- package/dist/components/dialog/index.vue +0 -162
- package/dist/components/dialog/overlay-manager.js +0 -18
- package/dist/components/dialog/style.less +0 -132
- package/dist/components/divider/index.js +0 -8
- package/dist/components/divider/index.vue +0 -54
- package/dist/components/divider/style.less +0 -92
- package/dist/components/dropdown/index.js +0 -8
- package/dist/components/dropdown/index.vue +0 -210
- package/dist/components/dropdown/style.less +0 -418
- package/dist/components/empty/404-dark.png +0 -0
- package/dist/components/empty/404.png +0 -0
- package/dist/components/empty/index.js +0 -8
- package/dist/components/empty/index.vue +0 -95
- package/dist/components/empty/network-dark.png +0 -0
- package/dist/components/empty/network.png +0 -0
- package/dist/components/empty/nodata-dark.png +0 -0
- package/dist/components/empty/nodata.png +0 -0
- package/dist/components/empty/style.less +0 -60
- package/dist/components/footer/index.js +0 -7
- package/dist/components/footer/index.vue +0 -29
- package/dist/components/footer/style.less +0 -22
- package/dist/components/footnav/footnav-item/index.js +0 -7
- package/dist/components/footnav/footnav-item/index.vue +0 -75
- package/dist/components/footnav/footnav-item/style.less +0 -39
- package/dist/components/footnav/index.js +0 -7
- package/dist/components/footnav/index.vue +0 -97
- package/dist/components/footnav/style.less +0 -23
- package/dist/components/form/index.js +0 -7
- package/dist/components/form/index.vue +0 -12
- package/dist/components/headnav/index.js +0 -7
- package/dist/components/headnav/index.vue +0 -163
- package/dist/components/headnav/style.less +0 -245
- package/dist/components/icon/font/iconfont.css +0 -1050
- package/dist/components/icon/font/iconfont.js +0 -2
- package/dist/components/icon/index.js +0 -9
- package/dist/components/icon/index.vue +0 -46
- package/dist/components/icon/style.less +0 -44
- package/dist/components/input/calcTextareaHeight.js +0 -266
- package/dist/components/input/index.js +0 -8
- package/dist/components/input/index.vue +0 -343
- package/dist/components/input/password/index.js +0 -8
- package/dist/components/input/password/index.vue +0 -60
- package/dist/components/input/search/index.js +0 -8
- package/dist/components/input/search/index.vue +0 -66
- package/dist/components/input/stepper/index.js +0 -8
- package/dist/components/input/stepper/index.vue +0 -136
- package/dist/components/input/style.less +0 -497
- package/dist/components/list/index.js +0 -8
- package/dist/components/list/index.vue +0 -159
- package/dist/components/list/style.less +0 -292
- package/dist/components/loading/index.js +0 -7
- package/dist/components/loading/index.vue +0 -53
- package/dist/components/loading/loading.png +0 -0
- package/dist/components/loading/refresh.png +0 -0
- package/dist/components/loading/style.less +0 -48
- package/dist/components/mixins/clickoutside.js +0 -81
- package/dist/components/mixins/dom.js +0 -41
- package/dist/components/mixins/languageMixin.js +0 -38
- package/dist/components/mixins/outlineConfigPlugin.js +0 -40
- package/dist/components/mixins/router-link.js +0 -23
- package/dist/components/mixins/themeMixin.js +0 -29
- package/dist/components/noticebar/index.js +0 -8
- package/dist/components/noticebar/index.vue +0 -247
- package/dist/components/noticebar/style.less +0 -332
- package/dist/components/overlay/index.js +0 -8
- package/dist/components/overlay/index.vue +0 -161
- package/dist/components/overlay/style.less +0 -23
- package/dist/components/pagebreak/index.js +0 -7
- package/dist/components/pagebreak/index.vue +0 -60
- package/dist/components/pagebreak/style.less +0 -43
- package/dist/components/popover/index.js +0 -8
- package/dist/components/popover/index.vue +0 -99
- package/dist/components/popover/style.less +0 -346
- package/dist/components/popover/vue-popover.vue +0 -314
- package/dist/components/radio/assist.js +0 -34
- package/dist/components/radio/index.js +0 -8
- package/dist/components/radio/index.vue +0 -159
- package/dist/components/radio/radio-group/index.vue +0 -70
- package/dist/components/radio/style.less +0 -297
- 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.js +0 -8
- package/dist/components/result/index.vue +0 -75
- package/dist/components/result/style.less +0 -42
- package/dist/components/result/wait-dark.png +0 -0
- package/dist/components/result/wait.png +0 -0
- package/dist/components/selector/index.js +0 -8
- package/dist/components/selector/index.vue +0 -124
- package/dist/components/selector/style.less +0 -474
- package/dist/components/skeleton/index.js +0 -7
- package/dist/components/skeleton/index.vue +0 -142
- package/dist/components/skeleton/style.less +0 -192
- package/dist/components/slider/draggable.js +0 -49
- package/dist/components/slider/index.js +0 -7
- package/dist/components/slider/index.vue +0 -173
- package/dist/components/slider/style.less +0 -96
- package/dist/components/slider/utils.js +0 -60
- package/dist/components/step/index.js +0 -7
- package/dist/components/step/index.vue +0 -48
- package/dist/components/step/style.less +0 -59
- package/dist/components/step-item/index.js +0 -7
- package/dist/components/step-item/index.vue +0 -117
- package/dist/components/step-item/style.less +0 -361
- package/dist/components/style/index.vue +0 -42
- package/dist/components/switch/index.js +0 -8
- package/dist/components/switch/index.vue +0 -72
- package/dist/components/switch/style.less +0 -56
- package/dist/components/tabs/index.js +0 -8
- package/dist/components/tabs/index.vue +0 -145
- package/dist/components/tabs/style.less +0 -385
- package/dist/components/tabs/tab/index.vue +0 -56
- package/dist/components/tag/index.js +0 -7
- package/dist/components/tag/index.vue +0 -50
- package/dist/components/tag/style.less +0 -211
- package/dist/components/title/index.js +0 -8
- package/dist/components/title/index.vue +0 -92
- package/dist/components/title/style.less +0 -188
- package/dist/components/toast/index.js +0 -80
- package/dist/components/toast/index.vue +0 -44
- package/dist/components/toast/style.less +0 -55
- package/dist/components/transition/index.js +0 -8
- package/dist/components/transition/index.vue +0 -13
- package/dist/components/transition/style.less +0 -208
- package/dist/components/upload/index.js +0 -7
- package/dist/components/upload/index.vue +0 -224
- package/dist/components/upload/style.less +0 -156
- package/dist/demo.html +0 -10
- package/dist/img/404-dark.775df5bb.png +0 -0
- package/dist/img/completed-dark.4183a8a8.png +0 -0
- package/dist/img/error-dark.b80857da.png +0 -0
- package/dist/img/network-dark.11a147bb.png +0 -0
- package/dist/img/nodata-dark.b0ea0e39.png +0 -0
- package/dist/img/wait-dark.6aa28731.png +0 -0
- package/dist/locale/ar.js +0 -98
- package/dist/locale/en.js +0 -98
- package/dist/locale/zh.js +0 -98
- package/dist/token.css +0 -2982
- package/dist/vdesign-ui.common.js +0 -27204
- package/dist/vdesign-ui.css +0 -1
- package/dist/vdesign-ui.umd.js +0 -27214
- package/dist/vdesign-ui.umd.min.js +0 -32
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 开关 -->
|
|
3
|
-
<div class="vd-switch" :class="{ 'vd-switch-on': isActived }" :disabled="disabled" @click="handleClick">
|
|
4
|
-
<span class="vd-switch-round"></span>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'vd-switch',
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* v-model 绑定值
|
|
13
|
-
*/
|
|
14
|
-
value: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* 异步状态
|
|
20
|
-
*/
|
|
21
|
-
async: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* 禁用状态
|
|
27
|
-
*/
|
|
28
|
-
disabled: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: false
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
/**
|
|
36
|
-
* 激活状态
|
|
37
|
-
*/
|
|
38
|
-
isActived: this.value
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
/**
|
|
43
|
-
* 点击 Switch 开关
|
|
44
|
-
*/
|
|
45
|
-
handleClick() {
|
|
46
|
-
const { disabled, async, isActived } = this
|
|
47
|
-
/**
|
|
48
|
-
* 判断是否被禁用
|
|
49
|
-
*/
|
|
50
|
-
if (!disabled) {
|
|
51
|
-
/**
|
|
52
|
-
* 判断是否异步
|
|
53
|
-
*/
|
|
54
|
-
!async && this.$emit('input', !isActived)
|
|
55
|
-
this.$emit('on-click')
|
|
56
|
-
// element.style.setProperty('--primary-color', 'blue');
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
watch: {
|
|
61
|
-
/**
|
|
62
|
-
* 监听 value 的值
|
|
63
|
-
*/
|
|
64
|
-
value(value) {
|
|
65
|
-
this.isActived = value
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
</script>
|
|
70
|
-
<style lang="less">
|
|
71
|
-
@import './style.less';
|
|
72
|
-
</style>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
@prefix: ~"vd-switch";
|
|
2
|
-
|
|
3
|
-
.@{prefix} {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
position: relative;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
width: calc(var(--width-switch-bg) * 1px);
|
|
8
|
-
height: calc(var(--height-switch-bg) * 1px);
|
|
9
|
-
border-radius: calc(var(--radius-switch-bg) * 1px);
|
|
10
|
-
background: var(--color-switch-off_bg-default);
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
|
|
13
|
-
&-round {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
position: absolute;
|
|
16
|
-
top: calc(var(--height-switch-bg) * -0.5px);
|
|
17
|
-
left: 0;
|
|
18
|
-
transition: transform .3s;
|
|
19
|
-
width: calc(var(--height-switch-button) * 1px);
|
|
20
|
-
height: calc(var(--height-switch-button) * 1px);
|
|
21
|
-
border-radius: calc(var(--radius-switch-button) * 1px);
|
|
22
|
-
border: 1px solid var(--color-switch-off_button_border-default);
|
|
23
|
-
background: var(--color-switch-off_button_bg-default);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-on {
|
|
27
|
-
border-color: var(--color-switch-on_button_border-default);
|
|
28
|
-
background: var(--color-switch-on_bg-default);
|
|
29
|
-
|
|
30
|
-
.@{prefix}-round {
|
|
31
|
-
transform: translateX(calc(var(--height-switch-button) * 1px));
|
|
32
|
-
background: var(--color-switch-on_button_bg-default);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&[disabled] {
|
|
37
|
-
border-color: var(--color-switch-off_button_border-disable);
|
|
38
|
-
background: var(--color-switch-off_bg-disable);
|
|
39
|
-
|
|
40
|
-
.@{prefix}-round {
|
|
41
|
-
background: var(--color-switch-off_button_bg-disable);
|
|
42
|
-
border-color: var(--color-switch-off_button_border-disable);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// 选中&&禁用
|
|
47
|
-
&-on[disabled] {
|
|
48
|
-
border-color: var(--color-switch-on_button_border-disable);
|
|
49
|
-
background: var(--color-switch-on_bg-disable);
|
|
50
|
-
|
|
51
|
-
.@{prefix}-round {
|
|
52
|
-
background: var(--color-switch-on_button_bg-disable);
|
|
53
|
-
border-color: var(--color-switch-on_button_border-disable);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vd-tabs">
|
|
3
|
-
<div class="vd-tabs__wrap" :class="menuClasses" ref="tabsWrap">
|
|
4
|
-
<div :class="[barType,scrollspy]" ref="tabsContainer">
|
|
5
|
-
<div v-for="(item, index) in navList" :key="index" :class="tabClasses(item)" @click="handleChange(index)">
|
|
6
|
-
<span class="vd-tabs-text-cell" :class="ellipsisClasses">{{ item.title }}
|
|
7
|
-
<vd-icon class="vd-tabs-arrow" v-if="item.arrow" name="icon_btn_moredown"></vd-icon>
|
|
8
|
-
</span>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="vd-tabs-menu--right" v-if="menu">
|
|
12
|
-
<vd-icon :name="menuIcon" class="vd-tabs-menu-btn" @click="emitMenuClick"></vd-icon>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="vd-tabs__content">
|
|
16
|
-
<slot />
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
const prefixCls = "vd-tabs";
|
|
23
|
-
export default {
|
|
24
|
-
name: "vd-tabs",
|
|
25
|
-
props: {
|
|
26
|
-
value: [String, Number],
|
|
27
|
-
tabsType: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "primary",
|
|
30
|
-
},
|
|
31
|
-
menu: Boolean,
|
|
32
|
-
ellipsis: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: true,
|
|
35
|
-
},
|
|
36
|
-
actBorder: Boolean,
|
|
37
|
-
backgroundColor: Boolean,
|
|
38
|
-
divider: Boolean,
|
|
39
|
-
menuIcon: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: 'icon_tab_morelist',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
data() {
|
|
45
|
-
return {
|
|
46
|
-
currentValue: this.value,
|
|
47
|
-
navList: [],
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
watch: {
|
|
51
|
-
value(val) {
|
|
52
|
-
this.currentValue = val;
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
computed: {
|
|
56
|
-
scrollspy() {
|
|
57
|
-
return `${prefixCls}--complete`
|
|
58
|
-
},
|
|
59
|
-
ellipsisClasses() {
|
|
60
|
-
return {
|
|
61
|
-
[`${prefixCls}-text--ellipsis`]: this.ellipsis,
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
menuClasses() {
|
|
65
|
-
return {
|
|
66
|
-
[`${prefixCls}-menu`]: this.menu,
|
|
67
|
-
[`${prefixCls}__wrap--bg`]: this.backgroundColor,
|
|
68
|
-
"vd-hairline--bottom": this.divider,
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
lineClasses() {
|
|
72
|
-
return {
|
|
73
|
-
[`${prefixCls}__line`]: !this.actBorder,
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
barType() {
|
|
77
|
-
return {
|
|
78
|
-
[`${prefixCls}-${this.tabsType}-bar`]: this.tabsType,
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
methods: {
|
|
83
|
-
emitMenuClick() {
|
|
84
|
-
this.$emit('menu-click');
|
|
85
|
-
},
|
|
86
|
-
tabClasses(item) {
|
|
87
|
-
return {
|
|
88
|
-
[`${prefixCls}-${this.tabsType}`]: true,
|
|
89
|
-
[`${prefixCls}-${this.tabsType}-active`]: item.name === this.currentValue,
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
getTabs() {
|
|
93
|
-
return this.$children.filter((item) => item.$options.name === "vd-tab");
|
|
94
|
-
},
|
|
95
|
-
updateNav() {
|
|
96
|
-
this.navList = this.getTabs().map((pane, index) => ({
|
|
97
|
-
title: pane.title,
|
|
98
|
-
name: pane.name || index,
|
|
99
|
-
arrow: pane.arrow,
|
|
100
|
-
}));
|
|
101
|
-
if (!this.currentValue) {
|
|
102
|
-
this.currentValue = this.navList[0].name;
|
|
103
|
-
}
|
|
104
|
-
this.updateStatus();
|
|
105
|
-
},
|
|
106
|
-
updateStatus() {
|
|
107
|
-
this.getTabs().forEach((tab) => {
|
|
108
|
-
tab.show = tab.computedName === this.currentValue;
|
|
109
|
-
});
|
|
110
|
-
},
|
|
111
|
-
handleChange(index) {
|
|
112
|
-
const nav = this.navList[index];
|
|
113
|
-
const name = nav.name;
|
|
114
|
-
if (this.currentValue !== name) {
|
|
115
|
-
this.currentValue = name;
|
|
116
|
-
this.$emit('input', name); // 确保向父组件更新
|
|
117
|
-
this.$emit('change', { index, title: nav.title, name });
|
|
118
|
-
this.updateStatus(); // 确保更新状态
|
|
119
|
-
this.adjustTabPosition(index);
|
|
120
|
-
}
|
|
121
|
-
this.$emit("click", { index, title: nav.title, name });
|
|
122
|
-
},
|
|
123
|
-
adjustTabPosition(index) {
|
|
124
|
-
const container = this.$refs.tabsContainer;
|
|
125
|
-
const selectedTab = container.children[index];
|
|
126
|
-
if (selectedTab) {
|
|
127
|
-
const containerWidth = container.offsetWidth;
|
|
128
|
-
const tabWidth = selectedTab.offsetWidth;
|
|
129
|
-
const tabOffsetLeft = selectedTab.offsetLeft;
|
|
130
|
-
const scrollLeft = tabOffsetLeft - (containerWidth - tabWidth) / 2;
|
|
131
|
-
container.scrollTo({ left: scrollLeft, behavior: "smooth" });
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
mounted() {
|
|
136
|
-
this.updateNav();
|
|
137
|
-
},
|
|
138
|
-
};
|
|
139
|
-
</script>
|
|
140
|
-
|
|
141
|
-
<style lang="less"></style>
|
|
142
|
-
|
|
143
|
-
<style lang="less">
|
|
144
|
-
@import "./style.less";
|
|
145
|
-
</style>
|
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
@tabs-prefix-cls: vd-tabs;
|
|
2
|
-
|
|
3
|
-
.@{tabs-prefix-cls} {
|
|
4
|
-
|
|
5
|
-
&__wrap {
|
|
6
|
-
position: relative;
|
|
7
|
-
width: 100%;
|
|
8
|
-
// background-color: #fff;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&-primary {
|
|
12
|
-
position: relative;
|
|
13
|
-
display: inline-block;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
padding-inline-start: calc(var(--spacing-tab-primary-padding_left) * 1px);
|
|
16
|
-
padding-inline-end: calc(var(--spacing-tab-primary-padding_right) * 1px);
|
|
17
|
-
color: var(--color-tab-primary-text-default);
|
|
18
|
-
font-size: calc(var(--en-single-f-d-r-fontSize)* 1px);
|
|
19
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
20
|
-
|
|
21
|
-
&-bar {
|
|
22
|
-
position: relative;
|
|
23
|
-
// display: flex;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
padding-inline-start: calc(var(--spacing-tab-primary-margin_left)*1px);
|
|
26
|
-
height: calc(var(--height-super-large)*1px);
|
|
27
|
-
line-height: calc(var(--height-super-large)*1px);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-active {
|
|
31
|
-
color: var(--color-tab-primary-text-active);
|
|
32
|
-
font-size: calc(var(--en-single-f-e-s-fontSize)* 1px);
|
|
33
|
-
font-weight: var(--en-single-f-e-s-fontWeight);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
&::before {
|
|
37
|
-
content: "";
|
|
38
|
-
bottom: 11px;
|
|
39
|
-
height: calc(var(--height-tab-primary-bar) * 1px);
|
|
40
|
-
width: calc(var(--width-tab-primary-bar) * 1px);
|
|
41
|
-
display: block;
|
|
42
|
-
position: absolute;
|
|
43
|
-
background-color: var(--color-tab-primary-bar-active);
|
|
44
|
-
left: 50%;
|
|
45
|
-
transform: translateX(-50%);
|
|
46
|
-
border-radius: calc(var(--radius-tab-primary_bar) * 1px);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-card {
|
|
52
|
-
min-width: 1%;
|
|
53
|
-
flex: 1;
|
|
54
|
-
display: flex;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
align-items: center;
|
|
57
|
-
position: relative;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
text-align: center;
|
|
60
|
-
color: var(--color-tab-primary-text-default);
|
|
61
|
-
font-size: calc(var(--en-single-f-d-r-fontSize)* 1px);
|
|
62
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
63
|
-
|
|
64
|
-
&-bar {
|
|
65
|
-
position: relative;
|
|
66
|
-
display: flex;
|
|
67
|
-
padding-inline-start: 20px;
|
|
68
|
-
padding-inline-end: 20px;
|
|
69
|
-
height: calc(var(--height-super-large)*1px);
|
|
70
|
-
line-height: calc(var(--height-super-large)*1px);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&-active {
|
|
74
|
-
color: var(--color-tab-primary-text-active);
|
|
75
|
-
font-size: calc(var(--en-single-f-e-s-fontSize)* 1px);
|
|
76
|
-
font-weight: var(--en-single-f-e-s-fontWeight);
|
|
77
|
-
|
|
78
|
-
&::before {
|
|
79
|
-
content: "";
|
|
80
|
-
bottom: 11px;
|
|
81
|
-
height: calc(var(--height-tab-primary-bar) * 1px);
|
|
82
|
-
width: calc(var(--width-tab-primary-bar) * 1px);
|
|
83
|
-
display: block;
|
|
84
|
-
position: absolute;
|
|
85
|
-
background-color: var(--color-tab-primary-bar-active);
|
|
86
|
-
left: 50%;
|
|
87
|
-
transform: translateX(-50%);
|
|
88
|
-
border-radius: 1px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&-secondary {
|
|
94
|
-
position: relative;
|
|
95
|
-
display: inline-block;
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
margin-inline-start: calc(var(--spacing-tab-secondary-padding_left) * 1px);
|
|
98
|
-
margin-inline-end: calc(var(--spacing-tab-secondary-padding_right) * 1px);
|
|
99
|
-
color: var(--color-tab-primary-text-default);
|
|
100
|
-
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
101
|
-
font-weight: var(--en-single-f-c-r-fontWeigh);
|
|
102
|
-
|
|
103
|
-
&-bar {
|
|
104
|
-
display: flex;
|
|
105
|
-
align-items: center;
|
|
106
|
-
position: relative;
|
|
107
|
-
padding-inline-start: calc(var(--spacing-tab-secondary-margin_left) * 1px);
|
|
108
|
-
height: calc(var(--height-tab-secondary) * 1px);
|
|
109
|
-
line-height: calc(var(--height-tab-secondary) * 1px);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&-active {
|
|
113
|
-
color: var(--color-tab-primary-text-active);
|
|
114
|
-
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
115
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
116
|
-
|
|
117
|
-
&::before {
|
|
118
|
-
content: "";
|
|
119
|
-
bottom: 0;
|
|
120
|
-
height: calc(var(--height-tab-secondary-bar) * 1px);
|
|
121
|
-
display: block;
|
|
122
|
-
position: absolute;
|
|
123
|
-
background-color: var(--color-tab-secondary-bar-active);
|
|
124
|
-
left: 0;
|
|
125
|
-
right: 0;
|
|
126
|
-
width: 100%;
|
|
127
|
-
border-radius: calc(var(--radius-tab-secondary-bar_top) * 1px) calc(var(--radius-tab-secondary-bar_top) * 1px) calc(var(--radius-tab-secondary-bar_bottom) * 1px) calc(var(--radius-tab-secondary-bar_bottom) * 1px);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&-capsule {
|
|
133
|
-
position: relative;
|
|
134
|
-
display: inline-block;
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
vertical-align: middle;
|
|
137
|
-
height: calc(var(--height-tab-capsule_btn) * 1px);
|
|
138
|
-
line-height: calc(var(--height-tab-capsule_btn) * 1px);
|
|
139
|
-
padding-inline-start: calc(var(--spacing-tab-capsule_btn-padding_left) * 1px);
|
|
140
|
-
padding-inline-end: calc(var(--spacing-tab-capsule_btn-padding_right) * 1px);
|
|
141
|
-
margin-inline-start: calc(var(--spacing-tab-capsule_btn-margin_right) * 1px);
|
|
142
|
-
margin-inline-end: calc(var(--spacing-tab-capsule_btn-margin_right) * 1px);
|
|
143
|
-
background-color: var(--color-tab-capsule_btn-bg-default);
|
|
144
|
-
color: var(--color-tab-capsule-text-default);
|
|
145
|
-
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
146
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
147
|
-
border-radius: calc(var(--radius-tab-capsule_button) * 1px);
|
|
148
|
-
|
|
149
|
-
&-bar {
|
|
150
|
-
position: relative;
|
|
151
|
-
// display: flex;
|
|
152
|
-
white-space: nowrap;
|
|
153
|
-
align-items: center;
|
|
154
|
-
padding-inline-start: calc(var(--spacing-tab-capsule-margin_left) * 1px);
|
|
155
|
-
height: calc(var(--height-tab-capsule) * 1px);
|
|
156
|
-
line-height: calc(var(--height-tab-capsule) * 1px);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&-active {
|
|
160
|
-
color: var(--color-tab-capsule-text-active);
|
|
161
|
-
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
162
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
163
|
-
background-color: var(--color-tab-capsule_btn-bg-active);
|
|
164
|
-
|
|
165
|
-
.@{tabs-prefix-cls}-arrow {
|
|
166
|
-
color: var(--color-tab-filter_down-active);
|
|
167
|
-
transform: rotate(180deg);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&-selector-l {
|
|
174
|
-
flex: 1;
|
|
175
|
-
position: relative;
|
|
176
|
-
display: inline-block;
|
|
177
|
-
text-align: center;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
height: calc(var(--height-tab-selector_l_btn) * 1px);
|
|
180
|
-
line-height: calc(var(--height-tab-selector_l_btn) * 1px);
|
|
181
|
-
color: var(--color-tab-selector-text-default);
|
|
182
|
-
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
183
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
184
|
-
|
|
185
|
-
&-bar {
|
|
186
|
-
position: relative;
|
|
187
|
-
display: flex;
|
|
188
|
-
// background-color: #F7F8F9;
|
|
189
|
-
background-color: var(--color-tab-selector-bg-default);
|
|
190
|
-
border-radius: calc(var(--radius-tab-selector_card) * 1px);
|
|
191
|
-
padding-inline-start: calc(var(--spacing-tab-selector-margin_left) * 1px);
|
|
192
|
-
padding-inline-end: calc(var(--spacing-tab-selector-margin_right) * 1px);
|
|
193
|
-
padding-block-start: calc(var(--spacing-tab-selector-margin_top) * 1px);
|
|
194
|
-
padding-block-end: calc(var(--spacing-tab-selector-margin_bottom) * 1px);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&-active {
|
|
198
|
-
color: var(--color-tab-selector-text-active);
|
|
199
|
-
font-size: calc(var(--en-single-f-c-s-fontSize)* 1px);
|
|
200
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
201
|
-
background-color: var(--color-tab-selector-bg-active);
|
|
202
|
-
box-shadow: var(--shadow-s1);
|
|
203
|
-
border-radius: calc(var(--radius-tab-selector_card) * 1px);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&-selector-m {
|
|
208
|
-
flex: 1;
|
|
209
|
-
position: relative;
|
|
210
|
-
display: inline-block;
|
|
211
|
-
text-align: center;
|
|
212
|
-
cursor: pointer;
|
|
213
|
-
height: calc(var(--height-tab-selector_m_btn)*1px);
|
|
214
|
-
line-height: calc(var(--height-tab-selector_m_btn)*1px);
|
|
215
|
-
color: var(--color-tab-selector-text-default);
|
|
216
|
-
font-size: calc(var(--en-single-f-b-r-fontSize)* 1px);
|
|
217
|
-
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
218
|
-
|
|
219
|
-
&-bar {
|
|
220
|
-
position: relative;
|
|
221
|
-
display: flex;
|
|
222
|
-
// background-color: #F7F8F9;
|
|
223
|
-
background-color: var(--color-tab-selector-bg-default);
|
|
224
|
-
border-radius: calc(var(--radius-tab-selector_card) * 1px);
|
|
225
|
-
padding-inline-start: calc(var(--spacing-tab-selector-margin_left) * 1px);
|
|
226
|
-
padding-inline-end: calc(var(--spacing-tab-selector-margin_right) * 1px);
|
|
227
|
-
padding-block-start: calc(var(--spacing-tab-selector-margin_top) * 1px);
|
|
228
|
-
padding-block-end: calc(var(--spacing-tab-selector-margin_bottom) * 1px);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&-active {
|
|
232
|
-
color: var(--color-tab-selector-text-active);
|
|
233
|
-
font-size: calc(var(--en-single-f-b-s-fontSize) * 1px);
|
|
234
|
-
font-weight: var(--en-single-f-b-s-fontWeight);
|
|
235
|
-
background-color: var(--color-tab-selector-bg-active);
|
|
236
|
-
box-shadow: var(--shadow-s1);
|
|
237
|
-
border-radius: calc(var(--radius-tab-selector_card) * 1px);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&-filter {
|
|
242
|
-
flex: 1;
|
|
243
|
-
position: relative;
|
|
244
|
-
cursor: pointer;
|
|
245
|
-
text-align: center;
|
|
246
|
-
color: var(--color-tab-filter-text-default);
|
|
247
|
-
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
248
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
249
|
-
|
|
250
|
-
&-bar {
|
|
251
|
-
position: relative;
|
|
252
|
-
display: flex;
|
|
253
|
-
height: calc(var(--height-tab-filter)*1px);
|
|
254
|
-
line-height: calc(var(--height-tab-filter)*1px);
|
|
255
|
-
padding-inline-start: calc(var(--spacing-tab-filter-margin_y) * 1px);
|
|
256
|
-
padding-inline-end: calc(var(--spacing-tab-filter-margin_y) * 1px);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
&-active {
|
|
260
|
-
color: var(--color-tab-filter-text-active);
|
|
261
|
-
font-size: calc(var(--en-single-f-c-s-fontSize)* 1px);
|
|
262
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
263
|
-
|
|
264
|
-
.@{tabs-prefix-cls}-arrow {
|
|
265
|
-
color: var(--color-tab-filter_down);
|
|
266
|
-
transform: rotate(180deg);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
&-click-filter {
|
|
272
|
-
flex: 1;
|
|
273
|
-
position: relative;
|
|
274
|
-
cursor: pointer;
|
|
275
|
-
text-align: center;
|
|
276
|
-
color: var(--color-tab-double_click_filter-text-default);
|
|
277
|
-
font-size: calc(var(--en-single-f-c-r-fontSize)* 1px);
|
|
278
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
279
|
-
|
|
280
|
-
&-bar {
|
|
281
|
-
position: relative;
|
|
282
|
-
display: flex;
|
|
283
|
-
height: calc(var(--height-tab-filter)*1px);
|
|
284
|
-
line-height: calc(var(--height-tab-filter)*1px);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
&-active {
|
|
288
|
-
color: var(--color-tab-double_click_filter-text-active);
|
|
289
|
-
font-size: calc(var(--en-single-f-c-s-fontSize)* 1px);
|
|
290
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
&-menu-btn {
|
|
295
|
-
cursor: pointer;
|
|
296
|
-
// position: absolute;
|
|
297
|
-
// top: 50%;
|
|
298
|
-
// transform: translateY(-50%)!important;
|
|
299
|
-
// right: 0;
|
|
300
|
-
font-size: calc(var(--icon-large) * 1px) !important;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
&-text-cell {
|
|
304
|
-
display: flex;
|
|
305
|
-
align-items: center;
|
|
306
|
-
justify-content: center;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
&-arrow {
|
|
310
|
-
display: inline-block;
|
|
311
|
-
vertical-align: -1px;
|
|
312
|
-
font-size: calc(var(--icon-small) * 1px) !important;
|
|
313
|
-
color: var(--color-tab-filter_down);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
&__line {
|
|
317
|
-
&::before {
|
|
318
|
-
display: none;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
&-menu {
|
|
323
|
-
display: flex;
|
|
324
|
-
justify-content: space-between;
|
|
325
|
-
align-items: center;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
&--right {
|
|
329
|
-
position: relative;
|
|
330
|
-
display: flex;
|
|
331
|
-
height: calc(var(--icon-large) * 1px);
|
|
332
|
-
padding-inline-end: calc(var(--spacing-tab-primary_icon-margin_right) * 1px);
|
|
333
|
-
color: var(--text-color-h1);
|
|
334
|
-
|
|
335
|
-
&::before {
|
|
336
|
-
content: '';
|
|
337
|
-
position: absolute;
|
|
338
|
-
margin-inline-start: -16px;
|
|
339
|
-
width: 16px;
|
|
340
|
-
height: 100%;
|
|
341
|
-
background-image: linear-gradient(to left, var(--bg-color-1) 0%, rgba(255, 255, 255, 0) 100%);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
&__wrap--bg {
|
|
351
|
-
background-color: transparent;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
&--complete {
|
|
355
|
-
overflow-x: auto;
|
|
356
|
-
overflow-y: hidden;
|
|
357
|
-
-webkit-overflow-scrolling: touch;
|
|
358
|
-
padding-inline-end: calc(var(--spacing-tab-primary_icon-margin_right) * 1px);
|
|
359
|
-
|
|
360
|
-
&::-webkit-scrollbar {
|
|
361
|
-
display: none;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
&-text--ellipsis {
|
|
366
|
-
display: -webkit-box;
|
|
367
|
-
overflow: hidden;
|
|
368
|
-
-webkit-line-clamp: 1;
|
|
369
|
-
-webkit-box-orient: vertical;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
[lang='ar'] .vd-tabs-menu--right::before {
|
|
374
|
-
transform: scaleX(-1);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
.vd-tab {
|
|
379
|
-
width: 100%;
|
|
380
|
-
display: none;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.vd-tab-active {
|
|
384
|
-
display: block;
|
|
385
|
-
}
|