1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| /**
| * CDescription - 描述
| * @author Tevin
| */
|
| <template>
| <view
| class="c-description"
| :class="hasBorder?'c-description-bordered':''"
| >
| <view
| class="c-description-label"
| :class="'c-description-label-' + labelAlign"
| >{{label}}</view>
| <view class="c-desctiption-content">
| <slot />
| </view>
| </view>
| </template>
|
| <script>
| import Taro from '@tarojs/taro';
| import {} from 'taro-ui-vue';
| import './CDescription.scss';
|
| export default {
| name: 'CDescription',
| components: {},
| props: {
| label: String,
| labelAlign: {
| type: String,
| default: 'left', // left、right
| },
| hasBorder: {
| type: Boolean,
| default: true,
| },
| },
| data() {
| return {};
| },
| methods: {},
| };
| </script>
|
|