commit | author | age
|
9bcb19
|
1 |
<template> |
I |
2 |
<div class="setting-drawer-index-item"> |
|
3 |
<h3 class="setting-drawer-index-title">{{ title }}</h3> |
|
4 |
<slot></slot> |
|
5 |
<a-divider v-if="divider"/> |
|
6 |
</div> |
|
7 |
</template> |
|
8 |
|
|
9 |
<script> |
|
10 |
export default { |
|
11 |
name: 'SettingItem', |
|
12 |
props: { |
|
13 |
title: { |
|
14 |
type: String, |
|
15 |
default: '' |
|
16 |
}, |
|
17 |
divider: { |
|
18 |
type: Boolean, |
|
19 |
default: false |
|
20 |
} |
|
21 |
} |
|
22 |
} |
|
23 |
</script> |
|
24 |
|
|
25 |
<style lang="less" scoped> |
|
26 |
|
|
27 |
.setting-drawer-index-item { |
|
28 |
margin-bottom: 24px; |
|
29 |
|
|
30 |
.setting-drawer-index-title { |
|
31 |
font-size: 14px; |
|
32 |
color: rgba(0, 0, 0, .85); |
|
33 |
line-height: 22px; |
|
34 |
margin-bottom: 12px; |
|
35 |
} |
|
36 |
|
|
37 |
} |
|
38 |
</style> |