first
This commit is contained in:
44
components/my-components/prop/steps-item.js
Normal file
44
components/my-components/prop/steps-item.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import { defineMixin } from '../libs/vue'
|
||||
import defProps from '../libs/config/props.js'
|
||||
export const props = defineMixin({
|
||||
props: {
|
||||
// 标题
|
||||
title: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.stepsItem.title
|
||||
},
|
||||
color:{
|
||||
type: [String],
|
||||
default:'#318AFE'
|
||||
},
|
||||
titleColor:{
|
||||
type: [String],
|
||||
default:'#318AFE'
|
||||
},
|
||||
descColor:{
|
||||
type: [String],
|
||||
default:'#318AFE'
|
||||
},
|
||||
// 描述文本
|
||||
desc: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.stepsItem.desc
|
||||
},
|
||||
|
||||
// 图标大小
|
||||
iconSize: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.stepsItem.iconSize
|
||||
},
|
||||
// 当前步骤是否处于失败状态
|
||||
error: {
|
||||
type: Boolean,
|
||||
default: () => defProps.stepsItem.error
|
||||
},
|
||||
// 自定义样式
|
||||
itemStyle: {
|
||||
type: [Object],
|
||||
default: {}
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user