weex-lrui
Version:
A Flyme Style UI library based on Weex for Creator.
54 lines (53 loc) • 1.13 kB
JavaScript
import VALUE from 'weex-flymeui/lib/common/variable-type';
export default {
name: 'FmTabbar',
desc: '底部操作栏组件',
slots: null,
props: {
items: {
type: VALUE.ARRAY,
desc: '按钮列表',
props: {
min: 1,
max: 5,
inner: {
title: {
type: VALUE.STRING,
desc: '标题'
},
icon: {
type: VALUE.SELECT,
desc: 'icon 名称',
default: 'zhuye',
props: {
options: ['zhuye', 'wancheng', 'guanbi', 'gengduo', 'bianji', 'shanchu', 'fenxiang', 'xingxing']
}
},
dot: {
type: VALUE.BOOLEAN,
desc: '显示小红点'
},
badge: {
type: VALUE.STRING,
desc: '徽章信息'
}
}
},
default: []
},
backgroundColor: {
type: VALUE.COLOR,
desc: '背景颜色',
default: '#FFFFFF'
}
},
events: {
fmTabbarSelected: {
desc: '按钮被选中'
}
},
size: {
width: 1080,
height: 144
}
};