-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
912 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
|
||
&-text { | ||
margin: 0 10px; | ||
font-size: @font-size-base; | ||
font-size: @font-size-default; | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
|
||
&-text { | ||
margin: 0 10px; | ||
font-size: @font-size-base; | ||
font-size: @font-size-default; | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
import {Component} from 'react'; | ||
import * as React from 'react'; | ||
import * as classNames from 'classnames'; | ||
import {IBaseComponent, TKey} from '../template/component'; | ||
|
||
export interface IPaneProps extends IBaseComponent { | ||
/** | ||
* 选项标题 | ||
*/ | ||
name: TKey; | ||
/** | ||
* 禁用 | ||
*/ | ||
disabled?: boolean; | ||
/** | ||
* 激活key,由Tabs传入,开发者不应使用 | ||
*/ | ||
active?: boolean; | ||
} | ||
|
||
export interface IPaneState { | ||
|
||
} | ||
|
||
/** | ||
* **组件中文名称**-组件描述。 | ||
*/ | ||
export class Pane extends Component<IPaneProps, IPaneState> { | ||
static defaultProps = { | ||
|
||
}; | ||
|
||
render() { | ||
const { | ||
className, style, name, | ||
active, disabled, | ||
children, onChange, | ||
...otherProps} = this.props; | ||
const preCls = 'yoshino-tabs-pane'; | ||
const clsName = classNames( | ||
preCls, className, | ||
{[`${preCls}-disabled`]: disabled}, | ||
); | ||
return ( | ||
<div | ||
className={clsName} | ||
style={style} | ||
{...otherProps} | ||
> | ||
{children} | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Pane; |
Oops, something went wrong.