@beisen-phoenix/steps-pgb

@beisen-phoenix/steps-pgb

Usage no npm install needed!

<script type="module">
  import beisenPhoenixStepsPgb from 'https://cdn.skypack.dev/@beisen-phoenix/steps-pgb';
</script>

README

标签组件

@beisen-phoenix/steps-pgb

概述

对步骤条组件进行封装,将内部多个 step 属性封装成数组对外暴露

API

参数 说明 类型 默认值 是否必传
current 当前步骤序号,从 0 开始 number yes
onChange 点击切换(不设置此属性不支持点击切换) (current) => void no
data 各个步骤的属性设置 Array
interface IStepItemProps {
  title?: string; //当前步骤标题
  disabled?: boolean; //是否可点击
}