vdesign-ui 0.2.20 → 0.3.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 +58 -58
- package/dist/components/actionbar/index.js +8 -8
- package/dist/components/actionbar/index.vue +39 -39
- package/dist/components/actionbar/style.less +44 -44
- package/dist/components/actionbar-cell/index.js +7 -7
- package/dist/components/actionbar-cell/index.vue +42 -42
- package/dist/components/actions/index.js +6 -6
- package/dist/components/actions/index.vue +77 -77
- package/dist/components/actions/style.less +109 -109
- package/dist/components/actions-cell/index.js +6 -6
- package/dist/components/actions-cell/index.vue +94 -94
- package/dist/components/actions-cell/style.less +38 -38
- package/dist/components/activityviews/index.js +8 -8
- package/dist/components/activityviews/index.vue +192 -192
- package/dist/components/activityviews/style.less +161 -161
- package/dist/components/badge/index.js +8 -8
- package/dist/components/badge/index.vue +49 -49
- package/dist/components/badge/style.less +54 -54
- package/dist/components/button/index.js +8 -8
- package/dist/components/button/index.vue +93 -93
- package/dist/components/button/style.less +558 -558
- package/dist/components/calendar/index-element.vue +84 -84
- package/dist/components/calendar/index.js +7 -7
- package/dist/components/calendar/index.vue +53 -53
- package/dist/components/calendar/style.less +138 -138
- package/dist/components/checkbox/index.js +8 -8
- package/dist/components/checkbox/index.vue +161 -161
- package/dist/components/checkbox/style.less +288 -288
- package/dist/components/checkbox-group/index.js +7 -7
- package/dist/components/checkbox-group/index.vue +73 -73
- package/dist/components/common/state/index.vue +33 -33
- package/dist/components/common/state/style.less +47 -47
- package/dist/components/data-list/index.js +10 -10
- package/dist/components/data-list/index.vue +19 -19
- package/dist/components/data-list/style.less +623 -623
- package/dist/components/datetime-picker/index.js +7 -7
- package/dist/components/datetime-picker/index.vue +39 -39
- package/dist/components/datetime-picker/style.less +23 -23
- package/dist/components/dialog/index.js +8 -8
- package/dist/components/dialog/index.vue +164 -164
- package/dist/components/dialog/overlay-manager.js +18 -18
- package/dist/components/dialog/style.less +138 -138
- package/dist/components/divider/index.js +8 -8
- package/dist/components/divider/index.vue +54 -54
- package/dist/components/divider/style.less +92 -92
- package/dist/components/dropdown/index.js +8 -8
- package/dist/components/dropdown/index.vue +218 -218
- package/dist/components/dropdown/style.less +432 -432
- package/dist/components/empty/index.js +8 -8
- package/dist/components/empty/index.vue +138 -138
- package/dist/components/empty/style.less +60 -60
- package/dist/components/footer/index.js +6 -6
- package/dist/components/footer/index.vue +33 -33
- package/dist/components/footer/style.less +20 -20
- package/dist/components/footnav/index.js +6 -6
- package/dist/components/footnav/index.vue +93 -93
- package/dist/components/footnav/style.less +22 -22
- package/dist/components/footnav-item/index.js +6 -6
- package/dist/components/footnav-item/index.vue +50 -50
- package/dist/components/footnav-item/style.less +39 -39
- package/dist/components/form/index.js +6 -6
- package/dist/components/form/index.vue +14 -14
- package/dist/components/headnav/index.js +6 -6
- package/dist/components/headnav/index.vue +185 -185
- package/dist/components/headnav/style.less +231 -231
- package/dist/components/icon/font/iconfont.css +163 -163
- package/dist/components/icon/font/iconfont.js +5 -5
- package/dist/components/icon/index.js +9 -9
- package/dist/components/icon/index.vue +96 -96
- package/dist/components/icon/style.less +44 -44
- package/dist/components/input/calcTextareaHeight.js +162 -162
- package/dist/components/input/index.js +8 -8
- package/dist/components/input/index.vue +345 -345
- package/dist/components/input/style.less +471 -471
- package/dist/components/list/index.js +8 -8
- package/dist/components/list/index.vue +152 -152
- package/dist/components/list/style.less +213 -213
- package/dist/components/loading/index.js +6 -6
- package/dist/components/loading/index.vue +68 -68
- package/dist/components/loading/style.less +53 -53
- package/dist/components/mixins/clickoutside.js +81 -81
- package/dist/components/mixins/dom.js +41 -41
- package/dist/components/mixins/languageMixin.js +43 -43
- package/dist/components/mixins/outlineConfigPlugin.js +45 -45
- package/dist/components/mixins/router-link.js +22 -22
- package/dist/components/mixins/themeMixin.js +43 -43
- package/dist/components/noticebar/index.js +8 -8
- package/dist/components/noticebar/index.vue +258 -258
- package/dist/components/noticebar/style.less +333 -333
- package/dist/components/overlay/index.js +8 -8
- package/dist/components/overlay/index.vue +184 -184
- package/dist/components/overlay/style.less +24 -24
- package/dist/components/pagebreak/index.js +6 -6
- package/dist/components/pagebreak/index.vue +67 -67
- package/dist/components/pagebreak/style.less +41 -41
- package/dist/components/password/index.js +8 -8
- package/dist/components/password/index.vue +64 -64
- package/dist/components/popover/index.js +8 -8
- package/dist/components/popover/index.vue +100 -100
- package/dist/components/popover/style.less +346 -346
- package/dist/components/popover/vue-popover.vue +314 -314
- package/dist/components/popup/index.js +7 -7
- package/dist/components/popup/index.vue +165 -165
- package/dist/components/popup/style.less +78 -78
- package/dist/components/radio/index.js +8 -8
- package/dist/components/radio/index.vue +184 -184
- package/dist/components/radio/style.less +300 -300
- package/dist/components/radio-group/index.js +7 -7
- package/dist/components/radio-group/index.vue +62 -62
- package/dist/components/result/index.js +8 -8
- package/dist/components/result/index.vue +73 -73
- package/dist/components/result/style.less +43 -43
- package/dist/components/search/index.js +8 -8
- package/dist/components/search/index.vue +70 -70
- package/dist/components/selector/index.js +8 -8
- package/dist/components/selector/index.vue +161 -161
- package/dist/components/selector/style.less +484 -484
- package/dist/components/skeleton/index.js +6 -6
- package/dist/components/skeleton/index.vue +207 -207
- package/dist/components/skeleton/style.less +196 -196
- package/dist/components/slider/draggable.js +49 -49
- package/dist/components/slider/index.js +6 -6
- package/dist/components/slider/index.vue +167 -167
- package/dist/components/slider/style.less +99 -99
- package/dist/components/slider/utils.js +59 -59
- package/dist/components/step/index.js +7 -7
- package/dist/components/step/index.vue +48 -48
- package/dist/components/step/style.less +66 -66
- package/dist/components/step-item/index.js +7 -7
- package/dist/components/step-item/index.vue +126 -126
- package/dist/components/step-item/style.less +399 -399
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/index.vue +150 -150
- package/dist/components/style/index.vue +42 -42
- package/dist/components/switch/index.js +8 -8
- package/dist/components/switch/index.vue +72 -72
- package/dist/components/switch/style.less +56 -56
- package/dist/components/tab/index.js +7 -7
- package/dist/components/tab/index.vue +97 -97
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.vue +356 -356
- package/dist/components/tabs/style.less +504 -504
- package/dist/components/tag/index.js +6 -6
- package/dist/components/tag/index.vue +64 -64
- package/dist/components/tag/style.less +210 -210
- package/dist/components/title/index.js +8 -8
- package/dist/components/title/index.vue +99 -99
- package/dist/components/title/style.less +187 -187
- package/dist/components/toast/index.js +139 -139
- package/dist/components/toast/index.vue +50 -50
- package/dist/components/toast/style.less +58 -58
- package/dist/components/transition/index.js +8 -8
- package/dist/components/transition/index.vue +13 -13
- package/dist/components/transition/style.less +208 -208
- package/dist/components/upload/index.js +6 -6
- package/dist/components/upload/index.vue +106 -106
- package/dist/components/upload/style.less +147 -147
- package/dist/components/utils/assist.js +34 -34
- package/dist/components/utils/env.js +21 -21
- package/dist/locale/ar.js +97 -97
- package/dist/locale/en.js +97 -97
- package/dist/locale/zh.js +97 -97
- package/dist/token.css +9 -9
- package/dist/vdesign-ui.common.js +83 -83
- package/dist/vdesign-ui.umd.js +83 -83
- package/package.json +113 -113
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import List from './index.vue';
|
|
2
|
-
import './style.less';
|
|
3
|
-
|
|
4
|
-
List.install = function (Vue) {
|
|
5
|
-
Vue.component(List.name, List);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default List;
|
|
1
|
+
import List from './index.vue';
|
|
2
|
+
import './style.less';
|
|
3
|
+
|
|
4
|
+
List.install = function (Vue) {
|
|
5
|
+
Vue.component(List.name, List);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default List;
|
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vd-list" :class="wrapClasses" @click="handleToggleActive">
|
|
3
|
-
<!-- 左侧内容区域 -->
|
|
4
|
-
<div class="vd-list--left" :class="listLeftClasses">
|
|
5
|
-
<!-- 通用列表和勾选列表自定义左侧图标 距离右边12px-->
|
|
6
|
-
<vd-icon v-if="icon" :name="icon" size="large" :class="iconClasses"></vd-icon>
|
|
7
|
-
<div class="vd-list-content" :class="contentClasses">
|
|
8
|
-
<!-- 标题 -->
|
|
9
|
-
<span class="vd-multi-ellipsis--l2" :class="innerTitleClasses">{{ title }}</span>
|
|
10
|
-
<!-- 通用列表副文本 -->
|
|
11
|
-
<p class="vd-multi-ellipsis--l2" :class="subtitleClasses" v-if="subtitle">{{ subtitle }}
|
|
12
|
-
</p>
|
|
13
|
-
</div>
|
|
14
|
-
<!-- 信息列表右侧图标 -->
|
|
15
|
-
<vd-icon v-if="statusIcon" :name="statusIcon" size="small" :class="statusIconClasses"></vd-icon>
|
|
16
|
-
<!-- 勾选列表 额外插槽 -->
|
|
17
|
-
<slot name="left"></slot>
|
|
18
|
-
</div>
|
|
19
|
-
<!-- 右侧内容区域 -->
|
|
20
|
-
<div class="vd-list--right" v-if="guideText || arrowIcon || isActive || $slots.switch">
|
|
21
|
-
<!-- 信息列表右侧自定义图标 -->
|
|
22
|
-
<vd-icon class="vd-list__icon--extra" size="small" v-if="actionIcon" :name="actionIcon"></vd-icon>
|
|
23
|
-
<!-- 通用列表徽标插槽 左间距12 -->
|
|
24
|
-
<span class="vd-list-common__badge" v-if="showBadge || $slots.badge">
|
|
25
|
-
<slot name="badge">
|
|
26
|
-
<vd-badge is-dot></vd-badge>
|
|
27
|
-
</slot>
|
|
28
|
-
</span>
|
|
29
|
-
<!-- 右侧文本 -->
|
|
30
|
-
<div v-if="guideText" :class="textRightClasses">
|
|
31
|
-
<p>{{ guideText }}</p>
|
|
32
|
-
<p v-if="mulText" class="vd-list__multext">{{ mulText }}</p>
|
|
33
|
-
</div>
|
|
34
|
-
<!-- 右箭头 左间距4 设计师没有提供默认图标,不设置默认值-->
|
|
35
|
-
<span v-if="arrowIcon" class="vd-list__arrow" @click="$emit('next')">
|
|
36
|
-
<vd-icon :name="arrowIcon" size="small"></vd-icon>
|
|
37
|
-
</span>
|
|
38
|
-
<!-- 勾选列表选择图标 左间距12-->
|
|
39
|
-
<vd-icon v-if="isActive" class="vd-list-check__select" name="icon_btn_singleslt"
|
|
40
|
-
color="#1BC47D"></vd-icon>
|
|
41
|
-
<!-- 通用列表自定义插槽 左间距8 -->
|
|
42
|
-
<span v-if="$slots.switch" class="vd-list__switch">
|
|
43
|
-
<slot name="switch"></slot>
|
|
44
|
-
</span>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
<script>
|
|
49
|
-
|
|
50
|
-
import VdIcon from '../icon';
|
|
51
|
-
const prefixCls = 'vd-list';
|
|
52
|
-
|
|
53
|
-
export default {
|
|
54
|
-
name: 'vd-list',
|
|
55
|
-
components: {
|
|
56
|
-
VdIcon,
|
|
57
|
-
},
|
|
58
|
-
props: {
|
|
59
|
-
title: String, // 标题文本
|
|
60
|
-
icon: String, // 主图标(左侧文字前)
|
|
61
|
-
statusIcon:String, // 状态图标(左侧文字后)
|
|
62
|
-
actionIcon: String, // 动作图标(右侧)
|
|
63
|
-
subtitle: String, // 左侧副文本
|
|
64
|
-
guideText: String, // 右侧引导文本
|
|
65
|
-
mulText: String, // 右侧额外文本
|
|
66
|
-
isActive: Boolean, // 是否激活选择状态
|
|
67
|
-
type: String, // 列表项类型 信息列表四个尺寸 L(56固定)\M(48自适应)\S(40自适应)\XS(32自适应) common(通用列表) check(勾选列表)
|
|
68
|
-
arrowIcon: String, // 右箭头图标名称
|
|
69
|
-
showBadge : Boolean, // 是否显示徽标,默认是 小点
|
|
70
|
-
divider: Boolean, // 是否显示分割线
|
|
71
|
-
},
|
|
72
|
-
data() {
|
|
73
|
-
return {
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
computed: {
|
|
77
|
-
wrapClasses() {
|
|
78
|
-
return [
|
|
79
|
-
{
|
|
80
|
-
[`${prefixCls}-${this.type}`]: this.type,
|
|
81
|
-
[`${prefixCls}-${this.type}--active`]: this.isActive,
|
|
82
|
-
'vd-hairline--bottom': this.divider,
|
|
83
|
-
}
|
|
84
|
-
];
|
|
85
|
-
},
|
|
86
|
-
listLeftClasses() {
|
|
87
|
-
return [
|
|
88
|
-
{
|
|
89
|
-
[`${prefixCls}-common--left`]: this.type
|
|
90
|
-
}
|
|
91
|
-
];
|
|
92
|
-
},
|
|
93
|
-
iconClasses() {
|
|
94
|
-
return [
|
|
95
|
-
{
|
|
96
|
-
[`${prefixCls}-${this.type}__icon--leftcus`]: this.type
|
|
97
|
-
}
|
|
98
|
-
];
|
|
99
|
-
},
|
|
100
|
-
contentClasses() {
|
|
101
|
-
return [
|
|
102
|
-
{
|
|
103
|
-
[`${prefixCls}-content-${this.type}`]: this.type === 'common',
|
|
104
|
-
}
|
|
105
|
-
];
|
|
106
|
-
},
|
|
107
|
-
innerTitleClasses() {
|
|
108
|
-
return [
|
|
109
|
-
{
|
|
110
|
-
[`${prefixCls}-${this.type}__title`]: this.type,
|
|
111
|
-
[`${prefixCls}-${this.type}__title--with-subtitle`] : this.subtitle
|
|
112
|
-
}
|
|
113
|
-
];
|
|
114
|
-
},
|
|
115
|
-
subtitleClasses() {
|
|
116
|
-
return [
|
|
117
|
-
{
|
|
118
|
-
[`${prefixCls}-${this.type}__subtitle`]: this.type
|
|
119
|
-
}
|
|
120
|
-
];
|
|
121
|
-
},
|
|
122
|
-
statusIconClasses() {
|
|
123
|
-
return [
|
|
124
|
-
{
|
|
125
|
-
[`${prefixCls}-${this.type}__icon--right`]: this.type
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
textRightClasses() {
|
|
130
|
-
return [
|
|
131
|
-
{
|
|
132
|
-
[`${prefixCls}-${this.type}__text--right`]: this.type
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
mounted() {
|
|
138
|
-
},
|
|
139
|
-
methods: {
|
|
140
|
-
handleToggleActive() {
|
|
141
|
-
this.$emit('toggle-active', !this.isActive);
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
watch: {
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
</script>
|
|
149
|
-
|
|
150
|
-
<style lang="less">
|
|
151
|
-
@import './style.less';
|
|
152
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-list" :class="wrapClasses" @click="handleToggleActive">
|
|
3
|
+
<!-- 左侧内容区域 -->
|
|
4
|
+
<div class="vd-list--left" :class="listLeftClasses">
|
|
5
|
+
<!-- 通用列表和勾选列表自定义左侧图标 距离右边12px-->
|
|
6
|
+
<vd-icon v-if="icon" :name="icon" size="large" :class="iconClasses"></vd-icon>
|
|
7
|
+
<div class="vd-list-content" :class="contentClasses">
|
|
8
|
+
<!-- 标题 -->
|
|
9
|
+
<span class="vd-multi-ellipsis--l2" :class="innerTitleClasses">{{ title }}</span>
|
|
10
|
+
<!-- 通用列表副文本 -->
|
|
11
|
+
<p class="vd-multi-ellipsis--l2" :class="subtitleClasses" v-if="subtitle">{{ subtitle }}
|
|
12
|
+
</p>
|
|
13
|
+
</div>
|
|
14
|
+
<!-- 信息列表右侧图标 -->
|
|
15
|
+
<vd-icon v-if="statusIcon" :name="statusIcon" size="small" :class="statusIconClasses"></vd-icon>
|
|
16
|
+
<!-- 勾选列表 额外插槽 -->
|
|
17
|
+
<slot name="left"></slot>
|
|
18
|
+
</div>
|
|
19
|
+
<!-- 右侧内容区域 -->
|
|
20
|
+
<div class="vd-list--right" v-if="guideText || arrowIcon || isActive || $slots.switch">
|
|
21
|
+
<!-- 信息列表右侧自定义图标 -->
|
|
22
|
+
<vd-icon class="vd-list__icon--extra" size="small" v-if="actionIcon" :name="actionIcon"></vd-icon>
|
|
23
|
+
<!-- 通用列表徽标插槽 左间距12 -->
|
|
24
|
+
<span class="vd-list-common__badge" v-if="showBadge || $slots.badge">
|
|
25
|
+
<slot name="badge">
|
|
26
|
+
<vd-badge is-dot></vd-badge>
|
|
27
|
+
</slot>
|
|
28
|
+
</span>
|
|
29
|
+
<!-- 右侧文本 -->
|
|
30
|
+
<div v-if="guideText" :class="textRightClasses">
|
|
31
|
+
<p>{{ guideText }}</p>
|
|
32
|
+
<p v-if="mulText" class="vd-list__multext">{{ mulText }}</p>
|
|
33
|
+
</div>
|
|
34
|
+
<!-- 右箭头 左间距4 设计师没有提供默认图标,不设置默认值-->
|
|
35
|
+
<span v-if="arrowIcon" class="vd-list__arrow" @click="$emit('next')">
|
|
36
|
+
<vd-icon :name="arrowIcon" size="small"></vd-icon>
|
|
37
|
+
</span>
|
|
38
|
+
<!-- 勾选列表选择图标 左间距12-->
|
|
39
|
+
<vd-icon v-if="isActive" class="vd-list-check__select" name="icon_btn_singleslt"
|
|
40
|
+
color="#1BC47D"></vd-icon>
|
|
41
|
+
<!-- 通用列表自定义插槽 左间距8 -->
|
|
42
|
+
<span v-if="$slots.switch" class="vd-list__switch">
|
|
43
|
+
<slot name="switch"></slot>
|
|
44
|
+
</span>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
<script>
|
|
49
|
+
|
|
50
|
+
import VdIcon from '../icon';
|
|
51
|
+
const prefixCls = 'vd-list';
|
|
52
|
+
|
|
53
|
+
export default {
|
|
54
|
+
name: 'vd-list',
|
|
55
|
+
components: {
|
|
56
|
+
VdIcon,
|
|
57
|
+
},
|
|
58
|
+
props: {
|
|
59
|
+
title: String, // 标题文本
|
|
60
|
+
icon: String, // 主图标(左侧文字前)
|
|
61
|
+
statusIcon:String, // 状态图标(左侧文字后)
|
|
62
|
+
actionIcon: String, // 动作图标(右侧)
|
|
63
|
+
subtitle: String, // 左侧副文本
|
|
64
|
+
guideText: String, // 右侧引导文本
|
|
65
|
+
mulText: String, // 右侧额外文本
|
|
66
|
+
isActive: Boolean, // 是否激活选择状态
|
|
67
|
+
type: String, // 列表项类型 信息列表四个尺寸 L(56固定)\M(48自适应)\S(40自适应)\XS(32自适应) common(通用列表) check(勾选列表)
|
|
68
|
+
arrowIcon: String, // 右箭头图标名称
|
|
69
|
+
showBadge : Boolean, // 是否显示徽标,默认是 小点
|
|
70
|
+
divider: Boolean, // 是否显示分割线
|
|
71
|
+
},
|
|
72
|
+
data() {
|
|
73
|
+
return {
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
wrapClasses() {
|
|
78
|
+
return [
|
|
79
|
+
{
|
|
80
|
+
[`${prefixCls}-${this.type}`]: this.type,
|
|
81
|
+
[`${prefixCls}-${this.type}--active`]: this.isActive,
|
|
82
|
+
'vd-hairline--bottom': this.divider,
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
},
|
|
86
|
+
listLeftClasses() {
|
|
87
|
+
return [
|
|
88
|
+
{
|
|
89
|
+
[`${prefixCls}-common--left`]: this.type
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
},
|
|
93
|
+
iconClasses() {
|
|
94
|
+
return [
|
|
95
|
+
{
|
|
96
|
+
[`${prefixCls}-${this.type}__icon--leftcus`]: this.type
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
},
|
|
100
|
+
contentClasses() {
|
|
101
|
+
return [
|
|
102
|
+
{
|
|
103
|
+
[`${prefixCls}-content-${this.type}`]: this.type === 'common',
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
},
|
|
107
|
+
innerTitleClasses() {
|
|
108
|
+
return [
|
|
109
|
+
{
|
|
110
|
+
[`${prefixCls}-${this.type}__title`]: this.type,
|
|
111
|
+
[`${prefixCls}-${this.type}__title--with-subtitle`] : this.subtitle
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
},
|
|
115
|
+
subtitleClasses() {
|
|
116
|
+
return [
|
|
117
|
+
{
|
|
118
|
+
[`${prefixCls}-${this.type}__subtitle`]: this.type
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
},
|
|
122
|
+
statusIconClasses() {
|
|
123
|
+
return [
|
|
124
|
+
{
|
|
125
|
+
[`${prefixCls}-${this.type}__icon--right`]: this.type
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
textRightClasses() {
|
|
130
|
+
return [
|
|
131
|
+
{
|
|
132
|
+
[`${prefixCls}-${this.type}__text--right`]: this.type
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
mounted() {
|
|
138
|
+
},
|
|
139
|
+
methods: {
|
|
140
|
+
handleToggleActive() {
|
|
141
|
+
this.$emit('toggle-active', !this.isActive);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
watch: {
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
</script>
|
|
149
|
+
|
|
150
|
+
<style lang="less">
|
|
151
|
+
@import './style.less';
|
|
152
|
+
</style>
|