+
@@ -16,19 +22,22 @@ export default {
props: {
active: Number,
icon: String,
- // iconClass: String,
+ iconClass: {
+ type: String,
+ default: ''
+ },
title: String,
description: String
},
computed: {
- // computedIconClass() {
- // let iconName = `zan-icon-${this.icon}`;
- // let result = (iconClass && iconClass.split(' ')) || [];
- // result.push(iconName);
+ computedIconClass() {
+ let iconName = `zan-icon-${this.icon}`;
+ let result = this.iconClass.split(' ');
+ result.push(iconName);
- // return result;
- // }
+ return result;
+ }
}
};
diff --git a/packages/zanui-css/src/cell.css b/packages/zanui-css/src/cell.css
index be6bc0b4b..5be52bce1 100644
--- a/packages/zanui-css/src/cell.css
+++ b/packages/zanui-css/src/cell.css
@@ -5,6 +5,7 @@
@b cell-group {
padding-left: 10px;
position: relative;
+ background-color: #fff;
&::after {
@mixin border-retina (top, bottom);
diff --git a/packages/zanui-css/src/steps.css b/packages/zanui-css/src/steps.css
index 694c914b7..03b764afa 100644
--- a/packages/zanui-css/src/steps.css
+++ b/packages/zanui-css/src/steps.css
@@ -3,5 +3,38 @@
@component-namespace zan {
@b steps {
padding: 15px 0;
+
+ .zan-icon {
+ font-size: 40px;
+ line-height: 1;
+ float: left;
+ }
+
+ @e status {
+ padding: 0 10px;
+ }
+
+ @e message {
+ display: table;
+ height: 40px;
+ padding-right: 50px;
+ width: 100%;
+ box-sizing: border-box;
+
+ .zan-steps__message-wrapper {
+ display: table-cell;
+ vertical-align: middle;
+ }
+ }
+
+ @e title {
+ font-size: 14px;
+ color: $c-black;
+ }
+
+ @e desc {
+ font-size: 12px;
+ color: $c-gray-dark;
+ }
}
}