Skip to content

Commit

Permalink
refactor(overlay): sfc to tsx (#1339)
Browse files Browse the repository at this point in the history
* refactor(overlay): sfc to tsx

* fix: ts type export

* test: snap update

* chore: run test update

* test: demo snap update
  • Loading branch information
liweijie0812 committed Apr 24, 2024
1 parent f20a6ba commit 4f13fa2
Show file tree
Hide file tree
Showing 18 changed files with 137 additions and 227 deletions.
36 changes: 12 additions & 24 deletions src/calendar/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ exports[`Calendar > Calendar baseVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2204,8 +2203,7 @@ exports[`Calendar > Calendar customButtonVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -4398,8 +4396,7 @@ exports[`Calendar > Calendar customRangeVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -4858,8 +4855,7 @@ exports[`Calendar > Calendar customTextVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -5869,8 +5865,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -8056,8 +8051,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -10243,8 +10237,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -12455,8 +12448,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -13429,8 +13421,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -15616,8 +15607,7 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -18193,8 +18183,7 @@ exports[`Calendar > Calendar multipleVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -20383,8 +20372,7 @@ exports[`Calendar > Calendar rangeVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>


<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down
3 changes: 1 addition & 2 deletions src/calendar/__test__/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ exports[`calendar > props > : format 1`] = `
class="t-overlay t-overlay--active"
style="z-index: 1000; transition-duration: 300ms;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down
42 changes: 14 additions & 28 deletions src/cascader/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ exports[`Cascader > Cascader baseVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -287,8 +286,7 @@ exports[`Cascader > Cascader checkStrictlyVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -512,8 +510,7 @@ exports[`Cascader > Cascader keysVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -742,8 +739,7 @@ exports[`Cascader > Cascader lazyVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -969,8 +965,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -1212,8 +1207,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -1428,8 +1422,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -1671,8 +1664,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -1914,8 +1906,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2161,8 +2152,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2372,8 +2362,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2600,8 +2589,7 @@ exports[`Cascader > Cascader themeTabVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2799,8 +2787,7 @@ exports[`Cascader > Cascader withTitleVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -3033,8 +3020,7 @@ exports[`Cascader > Cascader withValueVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down
3 changes: 1 addition & 2 deletions src/cascader/__test__/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ exports[`cascader > events > : pick 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down
27 changes: 9 additions & 18 deletions src/date-time-picker/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ exports[`DateTimePicker > DateTimePicker baseVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -475,8 +474,7 @@ exports[`DateTimePicker > DateTimePicker customRangeVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -844,8 +842,7 @@ exports[`DateTimePicker > DateTimePicker fullVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2072,8 +2069,7 @@ exports[`DateTimePicker > DateTimePicker mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2504,8 +2500,7 @@ exports[`DateTimePicker > DateTimePicker mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -2775,8 +2770,7 @@ exports[`DateTimePicker > DateTimePicker mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -3325,8 +3319,7 @@ exports[`DateTimePicker > DateTimePicker mobileVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -3697,8 +3690,7 @@ exports[`DateTimePicker > DateTimePicker timeVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down Expand Up @@ -4230,8 +4222,7 @@ exports[`DateTimePicker > DateTimePicker yearMonthVue demo works fine 1`] = `
class="t-overlay"
style="z-index: 1000; transition-duration: 300ms; display: none;"
>
<!---->
</div>
<div
class="t-popup t-popup--bottom"
Expand Down
Loading

0 comments on commit 4f13fa2

Please sign in to comment.