mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix(components): [date-picker] range-separator slot
don't work (#4522)
This commit is contained in:
parent
f133de59cd
commit
af2d8cf6ba
@ -1,4 +1,4 @@
|
||||
import { defineComponent, h, provide, ref } from 'vue'
|
||||
import { defineComponent, h, provide, ref, renderSlot } from 'vue'
|
||||
import dayjs from 'dayjs'
|
||||
import customParseFormat from 'dayjs/plugin/customParseFormat'
|
||||
import advancedFormat from 'dayjs/plugin/advancedFormat'
|
||||
@ -81,6 +81,7 @@ export default defineComponent({
|
||||
},
|
||||
{
|
||||
default: (scopedProps) => h(getPanel(props.type), scopedProps),
|
||||
'range-separator': () => renderSlot(ctx.slots, 'range-separator'),
|
||||
}
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user