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
46
47
48
49
50
51
| <template>
| <view class="role-container">
| <view v-for="(item, index) in roleData">
| <view class="l">
| <u-icon :name="item.iconName"></u-icon>
| <view class="role-name">
| {{item.roleName}}
| </view>
| </view>
|
| <view class="r">
| <u-icon name="checkmark"></u-icon>
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| props: {
| roleData: {
| type: Array,
| default: () => []
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .role-container {
| & > view {
| display: flex;
| justify-content: flex-start;
| align-items: center;
| margin-top: 16rpx;
| padding: 0 16rpx;
| background: #fff;
| height: 80rpx;
|
| .l {
| flex: 1;
| display: flex;
| align-items: center;
|
| .role-name {
| margin-left: 16rpx;
| }
| }
| }
| }
| </style>
|
|