@aligov/mobile-c-step

政务移动端基础组件step

Usage no npm install needed!

<script type="module">
  import aligovMobileCStep from 'https://cdn.skypack.dev/@aligov/mobile-c-step';
</script>

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 });