mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
update mention demos
This commit is contained in:
parent
f545e52ec5
commit
ccf507b603
@ -43,7 +43,7 @@ class AsyncMention extends React.Component {
|
||||
const { suggestions, loading } = this.state;
|
||||
return (
|
||||
<Mention
|
||||
style={{ width: '100%', height: 100 }}
|
||||
style={{ width: '100%' }}
|
||||
loading={loading}
|
||||
suggestions={suggestions}
|
||||
onSearchChange={this.onSearchChange}
|
||||
|
@ -53,7 +53,7 @@ class CustomNavMention extends React.Component {
|
||||
const { suggestions } = this.state;
|
||||
return (
|
||||
<Mention
|
||||
style={{ width: '100%', height: 100 }}
|
||||
style={{ width: '100%' }}
|
||||
suggestions={suggestions}
|
||||
onSearchChange={this.onSearchChange}
|
||||
/>
|
||||
|
@ -27,7 +27,7 @@ function onSelect(suggestion) {
|
||||
|
||||
ReactDOM.render(
|
||||
<Mention
|
||||
style={{ width: '100%', height: 100 }}
|
||||
style={{ width: '100%' }}
|
||||
onChange={onChange}
|
||||
defaultValue={toContentState('@afc163')}
|
||||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
||||
|
@ -65,7 +65,6 @@ class App extends React.Component {
|
||||
})(
|
||||
<Mention
|
||||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
||||
style={{ height: 60 }}
|
||||
/>
|
||||
)}
|
||||
</FormItem>
|
||||
|
@ -55,7 +55,7 @@ class CustomNavMention extends React.Component {
|
||||
return (
|
||||
<Mention
|
||||
placeholder="@someone"
|
||||
style={{ width: '100%', height: 100 }}
|
||||
style={{ width: '100%' }}
|
||||
suggestions={suggestions}
|
||||
onSearchChange={this.onSearchChange}
|
||||
onSelect={onSelect}
|
||||
|
@ -45,7 +45,7 @@ class App extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<Mention
|
||||
style={{ width: '100%', height: 100 }}
|
||||
style={{ width: '100%' }}
|
||||
onChange={onChange}
|
||||
placeholder="input @ to mention people, # to mention tag"
|
||||
prefix={['@', '#']}
|
||||
|
@ -32,7 +32,7 @@ class PopoverContainer extends React.Component {
|
||||
render() {
|
||||
const mention = (
|
||||
<Mention
|
||||
style={{ width: '100%', height: 100 }}
|
||||
style={{ width: '100%' }}
|
||||
onChange={onChange}
|
||||
defaultValue={toContentState('@afc163')}
|
||||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
||||
|
Loading…
Reference in New Issue
Block a user