5***@qq.com
5***@qq.com
  • 发布:2019-07-17 10:26
  • 更新:2019-07-17 10:26
  • 阅读:2523

如何在uni-list-item.vue组件里修改uni-badge.vue组件的值

分类:uni-app

import uniBadge from '../uni-badge/uni-badge.vue'

export default {
components: {
uniBadge
},
data() {
return { }
},
props: {
title: String, //列表标题
note: String, //列表描述
disabled: { //是否禁用
type: [Boolean, String],
default: false
},
showArrow: { //是否显示箭头
type: [Boolean, String],
default: true
},
showBadge: { //是否显示数字角标
type: [Boolean, String],
default: false
},
showSwitch: { //是否显示Switch
type: [Boolean, String],
default: false
},
switchChecked: { //Switch是否被选中
type: [Boolean, String],
default: false
},
badgeText: String, //badge内容
badgeType: { //badge类型
type: String,
default: 'success'
},
thumb: String, //缩略图
showExtraIcon: { //是否显示扩展图标
type: [Boolean, String],
default: false
},
extraIcon: {
type: Object,
default () {
return {
type: "contact",
color: "#000000",
size: "20"
};
}
}
},
methods: {
}
}

2019-07-17 10:26 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复