nutui-uniapp
Version:
京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)
23 lines (18 loc) • 488 B
text/typescript
import type { ExtractPropTypes } from 'vue'
import { commonProps, isNumber } from '../_utils'
export const stepProps = {
...commonProps,
/**
* @description 流程步骤的标题
*/
title: String,
/**
* @description 流程步骤的描述性文字(支持 html 结构)
*/
content: String,
}
export type StepProps = ExtractPropTypes<typeof stepProps>
export const stepEmits = {
clickStep: (val: number) => isNumber(val),
}
export type StepEmits = typeof stepEmits