This repository was archived by the owner on Oct 27, 2021. It is now read-only.
Commit 9d18b80 pengshanglong
committed
1 parent 08880e8 commit 9d18b80 Copy full SHA for 9d18b80
File tree 1 file changed +24
-26
lines changed
packages/taro-ui-vue/src/components/timeline
1 file changed +24
-26
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <dir >
2
+ <view
3
+ :class =" classNames(rootClassName, { 'at-timeline--pending': pending }, className)"
4
+ :style =" customStyle"
5
+ >
3
6
<view
4
- :class =" classNames(rootClassName, { 'at-timeline--pending': pending }, className)"
5
- :style =" customStyle"
7
+ v-for =" (item, index) in items"
8
+ :key =" index"
9
+ :class =" itemRootClassName(item)"
6
10
>
7
- <view
8
- v-for =" (item, index) in items"
9
- :key =" index"
10
- :class =" itemRootClassName(item)"
11
- >
12
- <view class =" at-timeline-item__tail" />
13
- <view :class =" dotClass(item)" >
14
- <view
15
- v-if =" item.icon"
16
- :class =" fileIconClass(item)"
17
- />
11
+ <view class =" at-timeline-item__tail" />
12
+ <view :class =" dotClass(item)" >
13
+ <view
14
+ v-if =" item.icon"
15
+ :class =" fileIconClass(item)"
16
+ />
17
+ </view >
18
+ <view class =" at-timeline-item__content" >
19
+ <view class =" at-timeline-item__content-item" >
20
+ {{ item.title }}
18
21
</view >
19
- <view class =" at-timeline-item__content" >
20
- <view class =" at-timeline-item__content-item" >
21
- {{ item.title }}
22
- </view >
23
- <view
24
- v-for =" (sub, subIndex) in item.content"
25
- :key =" subIndex"
26
- class =" at-timeline-item__content-item at-timeline-item__content--sub"
27
- >
28
- {{ sub }}
29
- </view >
22
+ <view
23
+ v-for =" (sub, subIndex) in item.content"
24
+ :key =" subIndex"
25
+ class =" at-timeline-item__content-item at-timeline-item__content--sub"
26
+ >
27
+ {{ sub }}
30
28
</view >
31
29
</view >
32
30
</view >
33
- </dir >
31
+ </view >
34
32
</template >
35
33
36
34
<script lang='ts'>
You can’t perform that action at this time.
0 commit comments