home1022
This commit is contained in:
@@ -0,0 +1,216 @@
|
||||
<template>
|
||||
<view class="u-page">
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">基础演示</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps :current="current1">
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">显示点类型</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps
|
||||
:current="1"
|
||||
dot
|
||||
>
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
<u-steps
|
||||
:current="1"
|
||||
dot
|
||||
direction="column"
|
||||
>
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">错误状态</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps :current="1">
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
error
|
||||
title="仓库着火"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="破产清算"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">自定义图标</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps
|
||||
:current="1"
|
||||
activeIcon="checkmark"
|
||||
inactiveIcon="arrow-right"
|
||||
>
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">自定义插槽</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps :current="1">
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
<text class="slot-icon" slot="icon">运</text>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">自定义颜色</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps :current="1" activeColor="#3c9cff">
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-demo-block">
|
||||
<text class="u-demo-block__title">竖向展示</text>
|
||||
<view class="u-demo-block__content">
|
||||
<u-steps
|
||||
:current="1"
|
||||
direction="column"
|
||||
>
|
||||
<u-steps-item
|
||||
title="已下单"
|
||||
desc="10:30"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="已出库"
|
||||
desc="10:35"
|
||||
>
|
||||
</u-steps-item>
|
||||
<u-steps-item
|
||||
title="运输中"
|
||||
desc="11:40"
|
||||
>
|
||||
</u-steps-item>
|
||||
</u-steps>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
current1: 1
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.slot-icon {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
background-color: $u-warning;
|
||||
border-radius: 100px;
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
line-height: 21px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user