Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: reset and force update * feat: update package * feat: reset * feat: update for viewer * feat: update for viewer * feat: update for viewer * feat: update for viewer * feat: update for viewer * update doc * feat: add waring * feat: update doc * feat: add test case
- Loading branch information
Showing
14 changed files
with
260 additions
and
117 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,14 +1,25 @@ | ||
import React from 'react'; | ||
import { Mentions } from 'antd'; | ||
|
||
const { Option } = Mentions; | ||
|
||
const App: React.FC = () => ( | ||
<Mentions autoSize style={{ width: '100%' }}> | ||
<Option value="afc163">afc163</Option> | ||
<Option value="zombieJ">zombieJ</Option> | ||
<Option value="yesmeck">yesmeck</Option> | ||
</Mentions> | ||
<Mentions | ||
autoSize | ||
style={{ width: '100%' }} | ||
options={[ | ||
{ | ||
value: 'afc163', | ||
label: 'afc163', | ||
}, | ||
{ | ||
value: 'zombieJ', | ||
label: 'zombieJ', | ||
}, | ||
{ | ||
value: 'yesmeck', | ||
label: 'yesmeck', | ||
}, | ||
]} | ||
/> | ||
); | ||
|
||
export default App; |
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,14 +1,25 @@ | ||
import React from 'react'; | ||
import { Mentions } from 'antd'; | ||
|
||
const { Option } = Mentions; | ||
|
||
const App: React.FC = () => ( | ||
<Mentions style={{ width: '100%' }} placement="top"> | ||
<Option value="afc163">afc163</Option> | ||
<Option value="zombieJ">zombieJ</Option> | ||
<Option value="yesmeck">yesmeck</Option> | ||
</Mentions> | ||
<Mentions | ||
style={{ width: '100%' }} | ||
placement="top" | ||
options={[ | ||
{ | ||
value: 'afc163', | ||
label: 'afc163', | ||
}, | ||
{ | ||
value: 'zombieJ', | ||
label: 'zombieJ', | ||
}, | ||
{ | ||
value: 'yesmeck', | ||
label: 'yesmeck', | ||
}, | ||
]} | ||
/> | ||
); | ||
|
||
export default App; |
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,15 +1,21 @@ | ||
import React from 'react'; | ||
import { Mentions } from 'antd'; | ||
|
||
const { Option } = Mentions; | ||
|
||
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalMentions } = Mentions; | ||
|
||
const options = [ | ||
{ | ||
value: 'afc163', | ||
label: 'afc163', | ||
}, | ||
{ | ||
value: 'zombieJ', | ||
label: 'zombieJ', | ||
}, | ||
] | ||
|
||
const App: React.FC = () => ( | ||
<InternalMentions style={{ width: '100%' }} value="@"> | ||
<Option value="afc163">afc163</Option> | ||
<Option value="zombieJ">zombieJ</Option> | ||
</InternalMentions> | ||
<InternalMentions style={{ width: '100%' }} value="@" options={options}/> | ||
); | ||
|
||
export default App; |
Oops, something went wrong.