mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 06:49:32 +08:00
Merge branch 'master' into antd-3.0
This commit is contained in:
commit
f9754c8a25
@ -519,7 +519,7 @@ form {
|
|||||||
border-color: @error-color;
|
border-color: @error-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.@{ant-prefix}-mention-active .@{ant-prefix}-mention-editor,
|
&.@{ant-prefix}-mention-active:not([disabled]) .@{ant-prefix}-mention-editor,
|
||||||
.@{ant-prefix}-mention-editor:not([disabled]):focus {
|
.@{ant-prefix}-mention-editor:not([disabled]):focus {
|
||||||
.active(@error-color);
|
.active(@error-color);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ class AsyncMention extends React.Component {
|
|||||||
const { suggestions, loading } = this.state;
|
const { suggestions, loading } = this.state;
|
||||||
return (
|
return (
|
||||||
<Mention
|
<Mention
|
||||||
style={{ width: '100%', height: 100 }}
|
style={{ width: '100%' }}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
suggestions={suggestions}
|
suggestions={suggestions}
|
||||||
onSearchChange={this.onSearchChange}
|
onSearchChange={this.onSearchChange}
|
||||||
|
@ -53,7 +53,7 @@ class CustomNavMention extends React.Component {
|
|||||||
const { suggestions } = this.state;
|
const { suggestions } = this.state;
|
||||||
return (
|
return (
|
||||||
<Mention
|
<Mention
|
||||||
style={{ width: '100%', height: 100 }}
|
style={{ width: '100%' }}
|
||||||
suggestions={suggestions}
|
suggestions={suggestions}
|
||||||
onSearchChange={this.onSearchChange}
|
onSearchChange={this.onSearchChange}
|
||||||
/>
|
/>
|
||||||
|
@ -27,7 +27,7 @@ function onSelect(suggestion) {
|
|||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Mention
|
<Mention
|
||||||
style={{ width: '100%', height: 100 }}
|
style={{ width: '100%' }}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
defaultValue={toContentState('@afc163')}
|
defaultValue={toContentState('@afc163')}
|
||||||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
||||||
|
@ -65,7 +65,6 @@ class App extends React.Component {
|
|||||||
})(
|
})(
|
||||||
<Mention
|
<Mention
|
||||||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
||||||
style={{ height: 60 }}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
@ -55,7 +55,7 @@ class CustomNavMention extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<Mention
|
<Mention
|
||||||
placeholder="@someone"
|
placeholder="@someone"
|
||||||
style={{ width: '100%', height: 100 }}
|
style={{ width: '100%' }}
|
||||||
suggestions={suggestions}
|
suggestions={suggestions}
|
||||||
onSearchChange={this.onSearchChange}
|
onSearchChange={this.onSearchChange}
|
||||||
onSelect={onSelect}
|
onSelect={onSelect}
|
||||||
|
@ -45,7 +45,7 @@ class App extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Mention
|
<Mention
|
||||||
style={{ width: '100%', height: 100 }}
|
style={{ width: '100%' }}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
placeholder="input @ to mention people, # to mention tag"
|
placeholder="input @ to mention people, # to mention tag"
|
||||||
prefix={['@', '#']}
|
prefix={['@', '#']}
|
||||||
|
@ -32,7 +32,7 @@ class PopoverContainer extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
const mention = (
|
const mention = (
|
||||||
<Mention
|
<Mention
|
||||||
style={{ width: '100%', height: 100 }}
|
style={{ width: '100%' }}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
defaultValue={toContentState('@afc163')}
|
defaultValue={toContentState('@afc163')}
|
||||||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
|
||||||
|
Loading…
Reference in New Issue
Block a user