@aligov/mobile-c-step
v1.0.5
Published
政务移动端基础组件step
Downloads
16
Readme
@aligov/mobile-c-step
Install
$ npm install @aligov/mobile-c-step --save
Usage
import MobileCStep from '@aligov/mobile-c-step';
API
Props
| name | type | default | describe | | :-------- | :----- | :----------- | :------------- | | direction | String | 'horizontal' | 方向,默认竖直 | | steps | Array | [] | 步骤数据数组 | | current | Number | '' | |
Function
| name | param | return | describe | | :---------------- | :------- | :------ | :----------- | | renderStepContent | () => {} | RaxNode | 渲染步骤内容 |
Example
import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import MobileCStep from '@aligov/mobile-c-step';
render(<MobileCStep />, document.body, { driver: DriverUniversal });