fix: Avoid children not updating #106

pull/122/head
tangjinzhou 6 years ago
parent 20590c834c
commit becdaf289e

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

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

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

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

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

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

Loading…
Cancel
Save