Skip to content

Commit

Permalink
fix(button): using new style (#612)
Browse files Browse the repository at this point in the history
* fix(button): using new style

* feat(button): finish new style

* refactor: remove button group

* fix: update common & test

* test: update snapshot
  • Loading branch information
LeeJim committed Apr 21, 2023
1 parent bb4ec8d commit 8ead3e5
Show file tree
Hide file tree
Showing 53 changed files with 2,548 additions and 2,314 deletions.
36 changes: 24 additions & 12 deletions src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ exports[`ActionSheet > ActionSheet gridMultipleVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-1719f7aa=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
宫格型-多页
</span>
<!---->
</button>
</div>
<teleport-stub
Expand Down Expand Up @@ -1116,18 +1118,20 @@ exports[`ActionSheet > ActionSheet gridVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-06f7cca3=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
宫格型
</span>
<!---->
</button>
</div>
<teleport-stub
Expand Down Expand Up @@ -1701,18 +1705,20 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-443785fb=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
列表型
</span>
<!---->
</button>
</div>
<teleport-stub
Expand Down Expand Up @@ -1852,18 +1858,20 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-443785fb=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
列表型
</span>
<!---->
</button>
</div>
<teleport-stub
Expand Down Expand Up @@ -1964,18 +1972,20 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-06f7cca3=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
宫格型
</span>
<!---->
</button>
</div>
<teleport-stub
Expand Down Expand Up @@ -2542,18 +2552,20 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-1719f7aa=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
宫格型-多页
</span>
<!---->
</button>
</div>
<teleport-stub
Expand Down
72 changes: 48 additions & 24 deletions src/back-top/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,37 @@ exports[`BackTop > BackTop halfRoundVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-924378ec=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
半圆白底
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-924378ec=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
半圆黑底
</span>
<!---->
</button>
</div>
<div
Expand Down Expand Up @@ -120,63 +124,71 @@ exports[`BackTop > BackTop mobileVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆角白底
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆角黑底
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆白底纯图标
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆黑底纯图标
</span>
<!---->
</button>
</div>
<div
Expand Down Expand Up @@ -237,33 +249,37 @@ exports[`BackTop > BackTop mobileVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-924378ec=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
半圆白底
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-924378ec=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
半圆黑底
</span>
<!---->
</button>
</div>
<div
Expand Down Expand Up @@ -480,63 +496,71 @@ exports[`BackTop > BackTop roundVue demo works fine 1`] = `
>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆角白底
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆角黑底
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆白底纯图标
</span>
<!---->
</button>
<button
aria-disabled="false"
class="t-button t-size-l t-button--outline t-button--default t-button--shape-rectangle t-is-block"
class="t-button t-button--size-large t-button--outline t-button--default t-button--rectangle t-button--block"
data-v-915cc230=""
role="button"
type="button"
>
<!---->
<span
class="t-button__text"
class="t-button__content"
>
圆黑底纯图标
</span>
<!---->
</button>
</div>
<div
Expand Down
Loading

0 comments on commit 8ead3e5

Please sign in to comment.