Browse Source

fix: Avoid children not updating #106

pull/122/head
tangjinzhou 6 years ago
parent
commit
becdaf289e
  1. 4
      components/modal/Modal.jsx
  2. 4
      components/pagination/Pagination.jsx
  3. 5
      components/select/index.jsx
  4. 4
      components/time-picker/index.jsx
  5. 4
      components/transfer/index.jsx
  6. 4
      components/upload/Upload.jsx

4
components/modal/Modal.jsx

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

4
components/pagination/Pagination.jsx

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

5
components/select/index.jsx

@ -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 }
}
/>
)
},

4
components/time-picker/index.jsx

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

4
components/transfer/index.jsx

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

4
components/upload/Upload.jsx

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

Loading…
Cancel
Save