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
95 changed files
with
1,656 additions
and
548 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Latest Log | ||
|
||
## [1.13.4](https://github.com/alibaba-fusion/next/compare/1.13.3...1.13.4) (2019-02-28) | ||
## [1.13.8](https://github.com/alibaba-fusion/next/compare/1.13.7...1.13.8) (2019-03-14) | ||
|
||
|
||
### Features | ||
### Bug Fixes | ||
|
||
* **NumberPicker:** consider [。] as [.] ([8369b4a](https://github.com/alibaba-fusion/next/commit/8369b4a)) | ||
* **ConfigProvider:** config on components should take higher priority ([87917c8](https://github.com/alibaba-fusion/next/commit/87917c8)) | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# 无障碍 | ||
|
||
- order: 8 | ||
- order: 9 | ||
|
||
请参考`ARIA and KeyBoard`。 | ||
|
||
|
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,50 @@ | ||
# 渲染 DataSource 中不存在的 value | ||
|
||
- order: 8 | ||
|
||
--- | ||
|
||
```jsx | ||
import { CascaderSelect } from '@alifd/next'; | ||
import 'whatwg-fetch'; | ||
|
||
class Demo extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
data: [] | ||
}; | ||
|
||
this.handleChange = this.handleChange.bind(this); | ||
} | ||
|
||
componentDidMount() { | ||
fetch('https://os.alipayobjects.com/rmsportal/ODDwqcDFTLAguOvWEolX.json') | ||
.then(response => response.json()) | ||
.then(data => { | ||
data[1].disabled = true; | ||
this.setState({ data }); | ||
}) | ||
.catch(e => console.log(e)); | ||
} | ||
|
||
handleChange(value, data, extra) { | ||
console.log(value, data, extra); | ||
} | ||
|
||
valueRender = (item) => { | ||
if (item.label) { | ||
return item.label; // 正常的item | ||
} | ||
|
||
// value在 dataSouce里不存在时渲染。 | ||
return item.value === '432988' ? '不存在的' : item.value; | ||
}; | ||
|
||
render() { | ||
return <CascaderSelect valueRender={this.valueRender} defaultValue="432988" style={{ width: '302px' }} dataSource={this.state.data} onChange={this.handleChange} />; | ||
} | ||
} | ||
ReactDOM.render(<Demo />, mountNode) | ||
``` |
Oops, something went wrong.