fix bugs and add new features (#25)

* fix bugs and add new features

* add unit test

* fix tab/tag/datetime-picker bugs
This commit is contained in:
TimeTraveler
2017-05-03 10:11:31 +08:00
committed by 张敏
parent 58bd17f142
commit 239d2e1e53
31 changed files with 134 additions and 27 deletions
+8 -1
View File
@@ -5,10 +5,17 @@
</template>
<script>
const ALLOW_TYPE = ['danger', 'success', 'primary'];
export default {
name: 'van-tag',
props: {
type: String,
type: {
type: String,
validator: function (val) {
return ~ALLOW_TYPE.indexOf(val);
}
},
mark: Boolean,
plain: Boolean
}