weex-flymeui
Version:
A Flyme Style UI library based on Weex for Creator.
45 lines (44 loc) • 899 B
JavaScript
import VALUE from 'weex-flymeui/lib/common/variable-type';
export default {
name: 'FmIcon',
desc: '图标组件',
slots: null,
props: {
name: {
type: VALUE.SELECT,
desc: 'Icon 名称',
default: 'zhuye',
props: {
options: ['zhuye', 'wancheng', 'guanbi', 'gengduo', 'bianji', 'shanchu', 'fenxiang', 'xingxing', 'fanhui']
}
},
iconStyle: {
type: VALUE.STRING,
desc: '大小',
default: 42
},
color: {
type: VALUE.COLOR,
desc: '颜色',
default: '#000000'
}
},
events: {
fmIconClicked: {
desc: '点击'
},
fmIconLongpress: {
desc: '长按'
}
},
size: {
width: 72,
height: 72
},
mockData: {
name: 'zhuye',
iconStyle: 72,
color: '#000000'
},
thumbnail: 'http://image.res.meizu.com/image/flyme-icon/52710e0c44bf44ebabe628d0e43cf0edz'
};