Skip to content

Commit

Permalink
Perf: Optimize datepicker panel sidebar slots
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdaodao committed Apr 3, 2024
1 parent c5166d0 commit 90a009f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/date-picker/src/panel/date-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'has-time': showTime
}, popperClass]">
<div class="el-picker-panel__body-wrapper">
<div class="el-picker-panel__sidebar">
<div class="el-picker-panel__sidebar" v-if="shortcuts || $slots.sidebar">
<template v-if="shortcuts">
<button
type="button"
Expand Down
2 changes: 1 addition & 1 deletion packages/date-picker/src/panel/date.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'has-time': showTime
}, popperClass]">
<div class="el-picker-panel__body-wrapper">
<div class="el-picker-panel__sidebar">
<div class="el-picker-panel__sidebar" v-if="shortcuts || $slots.sidebar">
<template v-if="shortcuts">
<button
type="button"
Expand Down
2 changes: 1 addition & 1 deletion packages/date-picker/src/panel/month-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'has-sidebar': $slots.sidebar || shortcuts
}, popperClass]">
<div class="el-picker-panel__body-wrapper">
<div class="el-picker-panel__sidebar">
<div class="el-picker-panel__sidebar" v-if="shortcuts || $slots.sidebar">
<template v-if="shortcuts">
<button
type="button"
Expand Down

0 comments on commit 90a009f

Please sign in to comment.