Skip to content

Commit a87f556

Browse files
committed
fix: weekpicker can not custom trigger picker #1915
1 parent 749d74e commit a87f556

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/date-picker/WeekPicker.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@ export default {
224224
openChange: this.handleOpenChange,
225225
},
226226
style: popupStyle,
227+
scopedSlots: { default: input, ...$scopedSlots },
227228
};
228229
return (
229230
<span class={pickerClass}>
230-
<VcDatePicker {...vcDatePickerProps}>{input}</VcDatePicker>
231+
<VcDatePicker {...vcDatePickerProps} />
231232
</span>
232233
);
233234
},

0 commit comments

Comments
 (0)