zui steps

This commit is contained in:
pangxie1991 2017-01-04 11:53:12 +08:00
parent b5ee51c7cf
commit 4a3650e8e7
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<template name="steps">
<template name="zui-steps">
<view class="zui-steps zui-steps--{{ type == 'vertical' ? 'vsteps' : 'steps' }} zui-steps--{{ steps.length }}">
<view
wx:for="{{ steps }}" wx:for-item="step" wx:key="unique" wx:for-index="index"

View File

@ -4,13 +4,13 @@
<view class="zui-panel">
<view class="zui-cell">
<view class="zui-cell__bd">
<template is="steps" data="{{ type: 'horizon', steps }}"></template>
<template is="zui-steps" data="{{ type: 'horizon', steps }}"></template>
</view>
</view>
<view class="zui-cell zui-cell--last-child">
<view class="zui-cell__bd">
<template is="steps" data="{{ type: 'vertical', steps }}"></template>
<template is="zui-steps" data="{{ type: 'vertical', steps }}"></template>
</view>
</view>
</view>