fix: Avoid children not updating #106

pull/122/head
tangjinzhou 2018-08-08 09:38:32 +08:00
parent 20590c834c
commit becdaf289e
6 changed files with 18 additions and 7 deletions

View File

@ -129,7 +129,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='Modal' componentName='Modal'
defaultLocale={getConfirmLocale()} defaultLocale={getConfirmLocale()}
children={this.renderFooter} scopedSlots={
{ default: this.renderFooter }
}
/> />
) )
const footer = getComponentFromProp(this, 'footer') const footer = getComponentFromProp(this, 'footer')

View File

@ -71,7 +71,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='Pagination' componentName='Pagination'
defaultLocale={enUS} defaultLocale={enUS}
children={this.renderPagination} scopedSlots={
{ default: this.renderPagination }
}
/> />
) )
}, },

View File

@ -156,7 +156,6 @@ export default {
class: cls, class: cls,
ref: 'vcSelect', ref: 'vcSelect',
} }
return ( return (
<VcSelect {...selectProps}> <VcSelect {...selectProps}>
{ {
@ -176,7 +175,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='Select' componentName='Select'
defaultLocale={defaultLocale.Select} defaultLocale={defaultLocale.Select}
children={this.renderSelect} scopedSlots={
{ default: this.renderSelect }
}
/> />
) )
}, },

View File

@ -171,7 +171,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='TimePicker' componentName='TimePicker'
defaultLocale={defaultLocale} defaultLocale={defaultLocale}
children={this.renderTimePicker} scopedSlots={
{ default: this.renderTimePicker }
}
/> />
) )
}, },

View File

@ -423,7 +423,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='Transfer' componentName='Transfer'
defaultLocale={defaultLocale.Transfer} defaultLocale={defaultLocale.Transfer}
children={this.renderTransfer} scopedSlots={
{ default: this.renderTransfer }
}
> >
</LocaleReceiver> </LocaleReceiver>
) )

View File

@ -228,7 +228,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='Upload' componentName='Upload'
defaultLocale={defaultLocale.Upload} defaultLocale={defaultLocale.Upload}
children={this.renderUploadList} scopedSlots={
{ default: this.renderUploadList }
}
> >
</LocaleReceiver> </LocaleReceiver>
) : null ) : null