Skip to content

Commit

Permalink
fix(Calendar): resolved border-radius style problem (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jun 6, 2023
1 parent 7f4d2e3 commit 2cc5a82
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/calendar/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`Calendar > Calendar baseVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -2216,7 +2216,7 @@ exports[`Calendar > Calendar customButtonVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -4412,7 +4412,7 @@ exports[`Calendar > Calendar customRangeVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -4874,7 +4874,7 @@ exports[`Calendar > Calendar customTextVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -5887,7 +5887,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -8076,7 +8076,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -10265,7 +10265,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -12479,7 +12479,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -13455,7 +13455,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -15644,7 +15644,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -18223,7 +18223,7 @@ exports[`Calendar > Calendar multipleVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down Expand Up @@ -20415,7 +20415,7 @@ exports[`Calendar > Calendar rangeVue demo works fine 1`] = `
<!--v-if-->

<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/__test__/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`calendar > props > : format 1`] = `
<!--v-if-->
<div
class="t-calendar"
class="t-calendar t-calendar--popup"
>
<div
class="t-calendar__title"
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/template.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="name">
<div :class="{ [`${name}`]: true, [`${name}--popup`]: usePopup }">
<div :class="`${name}__title`">
<slot name="title">{{ title || '请选择日期' }}</slot>
</div>
Expand Down

0 comments on commit 2cc5a82

Please sign in to comment.