Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
9d3b2433
Commit
9d3b2433
authored
Jun 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: ButtonSwitch 开发中
parent
43d82d14
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
index.tsx
src/components/ButtonSwitch/index.tsx
+2
-2
index.less
src/components/ButtonTabs/index.less
+0
-0
index.tsx
src/components/ButtonTabs/index.tsx
+31
-0
No files found.
src/components/ButtonSwitch/index.tsx
View file @
9d3b2433
...
...
@@ -22,7 +22,7 @@ export interface OptionItem {
value
:
any
,
}
interface
I
Props
{
export
interface
ButtonSwitch
Props
{
/**
* 数据
*/
...
...
@@ -41,7 +41,7 @@ interface IProps {
size
?:
SizeType
,
}
const
ButtonSwitch
:
React
.
FC
<
IProps
>
=
(
props
:
I
Props
)
=>
{
const
ButtonSwitch
:
React
.
FC
<
ButtonSwitchProps
>
=
(
props
:
ButtonSwitch
Props
)
=>
{
const
{
options
,
onChange
,
...
...
src/components/ButtonTabs/index.less
0 → 100644
View file @
9d3b2433
src/components/ButtonTabs/index.tsx
0 → 100644
View file @
9d3b2433
/*
* @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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment