Comparing version 0.6.2 to 0.6.3
@@ -227,2 +227,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// | ||
// | ||
// | ||
@@ -232,6 +234,3 @@ exports.default = { | ||
props: { | ||
thumb: { | ||
type: String, | ||
required: true | ||
}, | ||
thumb: String, | ||
title: String, | ||
@@ -269,16 +268,14 @@ desc: String | ||
return _c('div', { | ||
staticClass: "van-card" | ||
}, [_c('img', { | ||
class: ['van-card', { | ||
'van-card--center': !_vm.$slots.footer | ||
}] | ||
}, [_c('div', { | ||
staticClass: "van-card__thumb" | ||
}, [_vm._t("thumb", [_c('img', { | ||
staticClass: "van-card__img", | ||
attrs: { | ||
"src": _vm.thumb, | ||
"alt": "" | ||
"src": _vm.thumb | ||
} | ||
}), _c('div', { | ||
staticClass: "van-card__content", | ||
class: { | ||
'van-card__content--center': !this.$slots.footer | ||
} | ||
}, [_c('div', { | ||
staticClass: "van-card__info" | ||
})])], 2), _c('div', { | ||
staticClass: "van-card__content" | ||
}, [_vm._t("title", [_c('h4', { | ||
@@ -294,3 +291,3 @@ staticClass: "van-card__title", | ||
} | ||
}) : _vm._e()]), _vm._t("tags")], 2), _vm._t("footer")], 2)]) | ||
}) : _vm._e()]), _vm._t("tags")], 2), _vm._t("footer")], 2) | ||
},staticRenderFns: []} | ||
@@ -297,0 +294,0 @@ |
@@ -242,5 +242,14 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}, | ||
statusClass: function statusClass() { | ||
stepClass: function stepClass() { | ||
var status = this.status; | ||
return status ? 'van-step--' + status : ''; | ||
var statusClass = status ? 'van-step--' + status : ''; | ||
var directionClass = 'van-step--' + this.$parent.direction; | ||
return [directionClass, statusClass]; | ||
}, | ||
titleStyle: function titleStyle() { | ||
if (this.status === 'process') { | ||
return { | ||
color: this.$parent.activeColor | ||
}; | ||
} | ||
} | ||
@@ -278,3 +287,3 @@ } | ||
staticClass: "van-step", | ||
class: _vm.statusClass | ||
class: _vm.stepClass | ||
}, [_c('div', { | ||
@@ -285,5 +294,9 @@ staticClass: "van-step__circle-container" | ||
}) : _c('i', { | ||
staticClass: "van-icon van-icon-checked" | ||
})]), _c('p', { | ||
staticClass: "van-step__title" | ||
staticClass: "van-icon van-icon-checked", | ||
style: ({ | ||
color: _vm.$parent.activeColor | ||
}) | ||
})]), _c('div', { | ||
staticClass: "van-step__title", | ||
style: (_vm.titleStyle) | ||
}, [_vm._t("default")], 2), _c('div', { | ||
@@ -290,0 +303,0 @@ staticClass: "van-step__line" |
@@ -231,3 +231,11 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
title: String, | ||
description: String | ||
description: String, | ||
direction: { | ||
type: String, | ||
default: 'horizontal' | ||
}, | ||
activeColor: { | ||
type: String, | ||
default: '#06bf04' | ||
} | ||
}, | ||
@@ -239,2 +247,13 @@ | ||
}; | ||
}, | ||
computed: { | ||
stepsClass: function stepsClass() { | ||
var direction = this.direction; | ||
var lengthClass = 'van-steps--' + this.steps.length; | ||
var directionClass = 'van-steps--' + direction; | ||
return direction === 'horizontal' ? [lengthClass, directionClass] : [directionClass]; | ||
} | ||
} | ||
@@ -295,3 +314,3 @@ }; // | ||
staticClass: "van-steps", | ||
class: ("van-steps--" + (_vm.steps.length)) | ||
class: _vm.stepsClass | ||
}, [(_vm.title || _vm.description) ? _c('div', { | ||
@@ -298,0 +317,0 @@ staticClass: "van-steps__status" |
{ | ||
"name": "vant", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "有赞vue wap组件库", | ||
@@ -5,0 +5,0 @@ "main": "lib/vant.js", |
{ | ||
"name": "vant-css", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "vant css.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.css", |
@@ -86,3 +86,3 @@ import Button from '../packages/button/index.js'; | ||
install, | ||
version: '0.6.2', | ||
version: '0.6.3', | ||
Button, | ||
@@ -89,0 +89,0 @@ Switch, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1432021
32367
0