mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-10-09 00:30:11 +08:00
62 lines
1018 B
TypeScript
62 lines
1018 B
TypeScript
/**
|
|
*
|
|
* @author Ray <https://github.com/XiaoDaiGua-Ray>
|
|
*
|
|
* @date 2023-10-27
|
|
*
|
|
* @workspace ray-template
|
|
*
|
|
* @remark 今天也是元气满满撸代码的一天
|
|
*/
|
|
|
|
import type { PropType } from 'vue'
|
|
import type { MaybeArray } from '@/types'
|
|
|
|
const props = {
|
|
color: {
|
|
type: String,
|
|
default: 'currentColor',
|
|
},
|
|
prefix: {
|
|
type: String,
|
|
default: 'icon',
|
|
},
|
|
name: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
size: {
|
|
type: [Number, String],
|
|
default: 14,
|
|
},
|
|
width: {
|
|
type: [Number, String],
|
|
default: 0,
|
|
},
|
|
height: {
|
|
type: [Number, String],
|
|
default: 0,
|
|
},
|
|
customClassName: {
|
|
/** 自定义 class name */
|
|
type: String,
|
|
default: null,
|
|
},
|
|
depth: {
|
|
/** 图标深度 */
|
|
type: Number,
|
|
default: 1,
|
|
},
|
|
cursor: {
|
|
/** 鼠标指针样式 */
|
|
type: String,
|
|
default: 'default',
|
|
},
|
|
onClick: {
|
|
type: [Function, Array] as PropType<MaybeArray<(e: MouseEvent) => void>>,
|
|
default: null,
|
|
},
|
|
}
|
|
|
|
export default props
|