初始化

This commit is contained in:
wwz
2025-02-07 13:56:35 +08:00
parent f1025605d7
commit 20b5539a82
513 changed files with 56948 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
props: {
// item标签的名称作为与u-tabbar的value参数匹配的标识符
name: {
type: [String, Number, null],
default: () => defProps.tabbarItem.name
},
// uView内置图标或者绝对路径的图片
icon: {
icon: String,
default: () => defProps.tabbarItem.icon
},
// 右上角的角标提示信息
badge: {
type: [String, Number, null],
default: () => defProps.tabbarItem.badge
},
// 是否显示圆点将会覆盖badge参数
dot: {
type: Boolean,
default: () => defProps.tabbarItem.dot
},
// 描述文本
text: {
type: String,
default: () => defProps.tabbarItem.text
},
// 控制徽标的位置对象或者字符串形式可以设置top和right属性
badgeStyle: {
type: [Object, String],
default: () => defProps.tabbarItem.badgeStyle
}
}
})