forked from alibaba-fusion/next
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/1.15.0
- Loading branch information
Showing
32 changed files
with
490 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
# Latest Log | ||
|
||
## [1.14.4](https://github.com/alibaba-fusion/next/compare/1.14.3...1.14.4) (2019-05-16) | ||
# [1.15.0](https://github.com/alibaba-fusion/next/compare/1.14.6...1.15.0) (2019-05-24) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* fix DatePicker,Switch,Upload to a11y ([99ef836](https://github.com/alibaba-fusion/next/commit/99ef836)) | ||
* **Checkbox:** number 0 should be rendered ([93318d8](https://github.com/alibaba-fusion/next/commit/93318d8)) | ||
* **Field:** no react key props for errors ([93127d6](https://github.com/alibaba-fusion/next/commit/93127d6)) | ||
* **Menu:** Resolve expanding and selecting in uncontrolled mode ([#667](https://github.com/alibaba-fusion/next/issues/667)) ([0ba7e4a](https://github.com/alibaba-fusion/next/commit/0ba7e4a)) | ||
* **Menu:** Resolve items that created by `React.forwardRef` ([807d8de](https://github.com/alibaba-fusion/next/commit/807d8de)) | ||
* **Select:** hight first item with remote datasource. Close [#654](https://github.com/alibaba-fusion/next/issues/654) ([d784ee0](https://github.com/alibaba-fusion/next/commit/d784ee0)) | ||
* fusion cool render issues ([fbdffaa](https://github.com/alibaba-fusion/next/commit/fbdffaa)) | ||
* **Calendar:** select month auto change date view ([354f545](https://github.com/alibaba-fusion/next/commit/354f545)) | ||
* **Field:** resetDefault when parseValue false ([e2c2b00](https://github.com/alibaba-fusion/next/commit/e2c2b00)) | ||
* **Message:** can`t close after click ([53fe94d](https://github.com/alibaba-fusion/next/commit/53fe94d)) | ||
* **Select:** init flatten ds ([57667a4](https://github.com/alibaba-fusion/next/commit/57667a4)) | ||
* **Select:** value no show fillProps with empty dataSource. Close [#715](https://github.com/alibaba-fusion/next/issues/715) ([70a15ab](https://github.com/alibaba-fusion/next/commit/70a15ab)) | ||
|
||
|
||
### Features | ||
|
||
* add file types/ to customize index.d.ts ([c537d81](https://github.com/alibaba-fusion/next/commit/c537d81)) | ||
* **Menu:** add API embeddable ([6d21bb1](https://github.com/alibaba-fusion/next/commit/6d21bb1)) | ||
* **Nav:** add API embeddable ([1379df3](https://github.com/alibaba-fusion/next/commit/1379df3)) | ||
* **Table:** add API sortIcons to customize sort icons ([7abcf7c](https://github.com/alibaba-fusion/next/commit/7abcf7c)) | ||
* **Select:** add api to customize show tag content ([4c29109](https://github.com/alibaba-fusion/next/commit/4c29109)) | ||
* **Select:** add maxTagPlaceholder ([bfc9b20](https://github.com/alibaba-fusion/next/commit/bfc9b20)) | ||
|
||
|
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,74 @@ | ||
# 结构化解析 | ||
|
||
- order: 12 | ||
|
||
使用 parseName 时设置默认值。 | ||
输入名称是 “值” 道具内的路径 | ||
|
||
:::lang=en-us | ||
# Parse Array or Object | ||
|
||
- order: 12 | ||
|
||
Set default values when using parseName. | ||
Input name is path inside `values` prop | ||
|
||
::: | ||
--- | ||
|
||
````jsx | ||
import {Input, Button, Field, Form } from '@alifd/next'; | ||
|
||
|
||
|
||
class Demo extends React.Component { | ||
field = new Field(this, { | ||
parseName: true, | ||
values: { | ||
aaa: ['xxx', 'yyy'], | ||
bbb: { | ||
ccc: 'value c' | ||
} | ||
} | ||
}); | ||
|
||
_handleValidate = () => { | ||
const { | ||
field: { | ||
validate | ||
} | ||
} = this; | ||
|
||
validate(['bbb.ccc']); | ||
}; | ||
|
||
render() { | ||
const { | ||
field, | ||
field: { | ||
init, | ||
} | ||
} = this; | ||
|
||
console.log(this); | ||
|
||
return (<Form field={field}> | ||
<Button onClick={this._handleValidate}>validate</Button> | ||
<Form.Item label="aaa" key="aaa"> | ||
<Input name="aaa.0"/> | ||
</Form.Item> | ||
<Form.Item label="ccc" key="ccc"> | ||
<Input name="bbb.ccc"/> | ||
</Form.Item> | ||
</Form>); | ||
} | ||
} | ||
|
||
ReactDOM.render(<Demo/>, mountNode); | ||
```` | ||
|
||
````css | ||
.demo .next-btn { | ||
margin-right: 5px; | ||
} | ||
```` |
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
Oops, something went wrong.