tag component

This commit is contained in:
pangxie1991
2017-02-28 21:08:50 +08:00
parent 5cb93982b4
commit 474a324988
12 changed files with 220 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
<template>
<span class="z-tag" :class="[type ? `z-tag--${type}`: '', { 'is-plain': plain, 'is-mark': mark }]">
<slot></slot>
</span>
</template>
<script>
export default {
name: 'z-tag',
props: {
type: String,
mark: Boolean,
plain: Boolean
}
};
</script>