first commit
This commit is contained in:
28
l-im-app-imooc-master/l-im-app-imooc/components/ui/badge.vue
Normal file
28
l-im-app-imooc-master/l-im-app-imooc/components/ui/badge.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<text class="badge bg-danger text-white rounded-circle font-sm" :class="badgeClass" :style="badgeStyle">{{value}}</text>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
badgeClass: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
badgeStyle:{
|
||||
type:String,
|
||||
default:""
|
||||
},
|
||||
value:{
|
||||
type:[Number,String],
|
||||
default:""
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.badge{
|
||||
padding-left: 14rpx;padding-right: 14rpx;padding-bottom: 3rpx;padding-top: 3rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user