Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit 9d18b80

Browse files
author
pengshanglong
committed
fix(taro-ui-vue): timeline root tag
1 parent 08880e8 commit 9d18b80

File tree

1 file changed

+24
-26
lines changed
  • packages/taro-ui-vue/src/components/timeline

1 file changed

+24
-26
lines changed

packages/taro-ui-vue/src/components/timeline/index.vue

+24-26
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
<template>
2-
<dir>
2+
<view
3+
:class="classNames(rootClassName, { 'at-timeline--pending': pending }, className)"
4+
:style="customStyle"
5+
>
36
<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)"
610
>
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 }}
1821
</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 }}
3028
</view>
3129
</view>
3230
</view>
33-
</dir>
31+
</view>
3432
</template>
3533

3634
<script lang='ts'>

0 commit comments

Comments
 (0)