TraceabilityAPP/node_modules/uview-plus/components/u-icon/props.js

91 lines
2.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import defprops from '../../libs/config/props';
export default {
props: {
// 图标类名
name: {
type: String,
default: defprops.icon.name
},
// 图标颜色,可接受主题色
color: {
type: String,
default: defprops.icon.color
},
// 字体大小单位px
size: {
type: [String, Number],
default: defprops.icon.size
},
// 是否显示粗体
bold: {
type: Boolean,
default: defprops.icon.bold
},
// 点击图标的时候传递事件出去的index用于区分点击了哪一个
index: {
type: [String, Number],
default: defprops.icon.index
},
// 触摸图标时的类名
hoverClass: {
type: String,
default: defprops.icon.hoverClass
},
// 自定义扩展前缀,方便用户扩展自己的图标库
customPrefix: {
type: String,
default: defprops.icon.customPrefix
},
// 图标右边或者下面的文字
label: {
type: [String, Number],
default: defprops.icon.label
},
// label的位置只能右边或者下边
labelPos: {
type: String,
default: defprops.icon.labelPos
},
// label的大小
labelSize: {
type: [String, Number],
default: defprops.icon.labelSize
},
// label的颜色
labelColor: {
type: String,
default: defprops.icon.labelColor
},
// label与图标的距离
space: {
type: [String, Number],
default: defprops.icon.space
},
// 图片的mode
imgMode: {
type: String,
default: defprops.icon.imgMode
},
// 用于显示图片小图标时,图片的宽度
width: {
type: [String, Number],
default: defprops.icon.width
},
// 用于显示图片小图标时,图片的高度
height: {
type: [String, Number],
default: defprops.icon.height
},
// 用于解决某些情况下,让图标垂直居中的用途
top: {
type: [String, Number],
default: defprops.icon.top
},
// 是否阻止事件传播
stop: {
type: Boolean,
default: defprops.icon.stop
}
}
}