Skip to content

Commit

Permalink
fix(stepper): stepper输入小数-snap
Browse files Browse the repository at this point in the history
  • Loading branch information
fennghuang committed Sep 27, 2023
1 parent 9d7d6eb commit 79c4e4b
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/form/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -2791,6 +2792,7 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -4377,6 +4379,7 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down
106 changes: 106 additions & 0 deletions src/stepper/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports[`Stepper > Stepper baseVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand All @@ -45,6 +46,48 @@ exports[`Stepper > Stepper baseVue demo works fine 1`] = `
</svg>
</div>
</div>
<div
class="t-stepper t-stepper--medium"
>
<div
class="t-stepper__minus t-stepper__minus--filled t-stepper__icon--medium"
>
<svg
class="t-icon t-icon-remove t-stepper__minus-icon"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M4 11h16v2H4v-2z"
fill="currentColor"
/>
</svg>
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="decimal"
style=""
type="text"
/>
<div
class="t-stepper__plus t-stepper__plus--filled t-stepper__icon--medium"
>
<svg
class="t-icon t-icon-add t-stepper__plus-icon"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M13 4v7h7v2h-7v7h-2v-7H4v-2h7V4h2z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
`;

Expand Down Expand Up @@ -73,6 +116,7 @@ exports[`Stepper > Stepper minMaxVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -114,6 +158,7 @@ exports[`Stepper > Stepper minMaxVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -155,6 +200,7 @@ exports[`Stepper > Stepper minMaxVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -237,6 +283,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand All @@ -257,6 +304,48 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</svg>
</div>
</div>
<div
class="t-stepper t-stepper--medium"
>
<div
class="t-stepper__minus t-stepper__minus--filled t-stepper__icon--medium"
>
<svg
class="t-icon t-icon-remove t-stepper__minus-icon"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M4 11h16v2H4v-2z"
fill="currentColor"
/>
</svg>
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="decimal"
style=""
type="text"
/>
<div
class="t-stepper__plus t-stepper__plus--filled t-stepper__icon--medium"
>
<svg
class="t-icon t-icon-add t-stepper__plus-icon"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M13 4v7h7v2h-7v7h-2v-7H4v-2h7V4h2z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -306,6 +395,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -347,6 +437,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -388,6 +479,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -454,6 +546,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium t-stepper--filled-disabled"
disabled=""
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -523,6 +616,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -564,6 +658,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--outline t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -605,6 +700,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--normal t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -670,6 +766,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--large"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -711,6 +808,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -752,6 +850,7 @@ exports[`Stepper > Stepper mobileVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--small"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -804,6 +903,7 @@ exports[`Stepper > Stepper sizeVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--large"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -845,6 +945,7 @@ exports[`Stepper > Stepper sizeVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -886,6 +987,7 @@ exports[`Stepper > Stepper sizeVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--small"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -935,6 +1037,7 @@ exports[`Stepper > Stepper statusVue demo works fine 1`] = `
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium t-stepper--filled-disabled"
disabled=""
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -983,6 +1086,7 @@ exports[`Stepper > Stepper themeVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--filled t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -1024,6 +1128,7 @@ exports[`Stepper > Stepper themeVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--outline t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down Expand Up @@ -1065,6 +1170,7 @@ exports[`Stepper > Stepper themeVue demo works fine 1`] = `
</div>
<input
class="t-stepper__input t-stepper__input--normal t-stepper__input--medium"
inputmode="numeric"
style=""
type="tel"
/>
Expand Down

0 comments on commit 79c4e4b

Please sign in to comment.