Skip to content

Commit

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

* test: snap update

* fix: tips
  • Loading branch information
liweijie0812 committed Apr 28, 2024
1 parent 5382592 commit eacd447
Show file tree
Hide file tree
Showing 11 changed files with 612 additions and 886 deletions.
64 changes: 24 additions & 40 deletions src/dialog/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -855,17 +855,13 @@ exports[`Dialog > Dialog inputVue demo works fine 1`] = `
>
<div
class="t-input t-input--layout-horizontal t-input--size-small t-input--border"
class="t-input t-input--layout-horizontal t-input--border"
data-v-4a76bf3d=""
>
<div
class="t-input__wrap--prefix"
>
<div
class="t-input__icon--prefix"
>
<!--v-if-->
</div>
<!---->
<div
class="t-input__label"
>
Expand All @@ -886,11 +882,11 @@ exports[`Dialog > Dialog inputVue demo works fine 1`] = `
placeholder="请输入文字"
type="text"
/>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!---->
<!---->
<!---->
</div>
<!--v-if-->
<!---->
</div>
</div>
Expand Down Expand Up @@ -1007,17 +1003,13 @@ exports[`Dialog > Dialog inputVue demo works fine 1`] = `
告知当前状态、信息和解决方法等,描述文案尽可能控制在三行内
</p>
<div
class="t-input t-input--layout-horizontal t-input--size-small t-input--border"
class="t-input t-input--layout-horizontal t-input--border"
data-v-4a76bf3d=""
>
<div
class="t-input__wrap--prefix"
>
<div
class="t-input__icon--prefix"
>
<!--v-if-->
</div>
<!---->
<div
class="t-input__label"
>
Expand All @@ -1038,11 +1030,11 @@ exports[`Dialog > Dialog inputVue demo works fine 1`] = `
placeholder="请输入文字"
type="text"
/>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!---->
<!---->
<!---->
</div>
<!--v-if-->
<!---->
</div>
</div>
Expand Down Expand Up @@ -1703,17 +1695,13 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
>
<div
class="t-input t-input--layout-horizontal t-input--size-small t-input--border"
class="t-input t-input--layout-horizontal t-input--border"
data-v-4a76bf3d=""
>
<div
class="t-input__wrap--prefix"
>
<div
class="t-input__icon--prefix"
>
<!--v-if-->
</div>
<!---->
<div
class="t-input__label"
>
Expand All @@ -1734,11 +1722,11 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
placeholder="请输入文字"
type="text"
/>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!---->
<!---->
<!---->
</div>
<!--v-if-->
<!---->
</div>
</div>
Expand Down Expand Up @@ -1855,17 +1843,13 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
告知当前状态、信息和解决方法等,描述文案尽可能控制在三行内
</p>
<div
class="t-input t-input--layout-horizontal t-input--size-small t-input--border"
class="t-input t-input--layout-horizontal t-input--border"
data-v-4a76bf3d=""
>
<div
class="t-input__wrap--prefix"
>
<div
class="t-input__icon--prefix"
>
<!--v-if-->
</div>
<!---->
<div
class="t-input__label"
>
Expand All @@ -1886,11 +1870,11 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
placeholder="请输入文字"
type="text"
/>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!---->
<!---->
<!---->
</div>
<!--v-if-->
<!---->
</div>
</div>
Expand Down
Loading

0 comments on commit eacd447

Please sign in to comment.