import React, { Component } from 'react'
import { Space, Tag, Typography } from 'antd'

const { Text } = Typography

export default class format extends Component {
    render() {
        return (
            <Space direction="vertical" className="w-100-p">
                <Text>
                    <Tag color="orange">/format</Tag>
                </Text>
                <ul>
                    <li>
                        <p>
                            <Tag color="red">numberToChinese</Tag>
                            <Tag color="green">(number: [Number, String]) =&gt; String</Tag>
                            将数字转换为中文数字。
                        </p>
                    </li>
                    <li>
                        <p>
                            <Tag color="red">toCamelCase</Tag>
                            <Tag color="green">(str: String) =&gt; String</Tag>
                            下划线转驼峰。
                        </p>
                    </li>
                    <li>
                        <p>
                            <Tag color="red">toUnderScoreCase</Tag>
                            <Tag color="green">(str: String) =&gt; String</Tag>
                            驼峰转下划线。
                        </p>
                    </li>
                </ul>
            </Space>
        )
    }
}
