Commit 9d3b2433 authored by XieZhiXiong's avatar XieZhiXiong

chore: ButtonSwitch 开发中

parent 43d82d14
......@@ -22,7 +22,7 @@ export interface OptionItem {
value: any,
}
interface IProps {
export interface ButtonSwitchProps {
/**
* 数据
*/
......@@ -41,7 +41,7 @@ interface IProps {
size?: SizeType,
}
const ButtonSwitch: React.FC<IProps> = (props: IProps) => {
const ButtonSwitch: React.FC<ButtonSwitchProps> = (props: ButtonSwitchProps) => {
const {
options,
onChange,
......
/*
* @Author: XieZhiXiong
* @Date: 2021-06-15 17:13:25
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-15 17:19:58
* @Description: Radio.Button 选项卡
*/
import React from 'react';
import ButtonSwitch, { ButtonSwitchProps } from '../ButtonSwitch';
import styles from './index.less';
interface IProps extends ButtonSwitchProps {
}
const ButtonTabs: React.FC = () => {
return (
<div className={styles['button-tabs']}>
<div className={styles['button-tabs-head']}>
<div className={styles['button-tabs-head-extra']}>
我是拓展
</div>
<div className={styles['button-tabs-head-nav']}>
我是拓展
</div>
</div>
</div>
);
};
export default ButtonTabs;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment