Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(divider): final version #896

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 60 additions & 140 deletions src/divider/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ exports[`Divider > Divider baseVue demo works fine 1`] = `
水平分割线
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<div
Expand All @@ -32,48 +28,36 @@ exports[`Divider > Divider baseVue demo works fine 1`] = `
带文字水平分割线
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--left"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--left"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--right"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--right"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
Expand All @@ -93,18 +77,14 @@ exports[`Divider > Divider baseVue demo works fine 1`] = `
文字信息
</span>
<div
class="t-divider--vertical-center"
class="t-divider t-divider--vertical t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--vertical t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<span
Expand All @@ -113,18 +93,14 @@ exports[`Divider > Divider baseVue demo works fine 1`] = `
文字信息
</span>
<div
class="t-divider--vertical-center"
class="t-divider t-divider--vertical t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--vertical t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<span
Expand Down Expand Up @@ -182,18 +158,14 @@ exports[`Divider > Divider mobileVue demo works fine 1`] = `
水平分割线
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<div
Expand All @@ -203,48 +175,36 @@ exports[`Divider > Divider mobileVue demo works fine 1`] = `
带文字水平分割线
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--left"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--left"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--right"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--right"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
Expand All @@ -264,18 +224,14 @@ exports[`Divider > Divider mobileVue demo works fine 1`] = `
文字信息
</span>
<div
class="t-divider--vertical-center"
class="t-divider t-divider--vertical t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--vertical t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<span
Expand All @@ -284,18 +240,14 @@ exports[`Divider > Divider mobileVue demo works fine 1`] = `
文字信息
</span>
<div
class="t-divider--vertical-center"
class="t-divider t-divider--vertical t-divider--center"
data-v-589c0842=""
role="separator"
>
<div
class="t-divider t-divider--vertical t-divider--center"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<span
Expand Down Expand Up @@ -337,63 +289,47 @@ exports[`Divider > Divider mobileVue demo works fine 1`] = `
虚线样式
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--left t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--left t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--right t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--right t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
</div>
Expand All @@ -414,63 +350,47 @@ exports[`Divider > Divider themeVue demo works fine 1`] = `
虚线样式
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
<!---->
</div>
<!---->
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--left t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--left t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--center t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
<div
class=""
class="t-divider t-divider--horizontal t-divider--right t-divider--dashed"
data-v-127b67ab=""
role="separator"
>
<div
class="t-divider t-divider--horizontal t-divider--right t-divider--dashed"
class="t-divider__content"
>
<div
class="t-divider__content"
>
文字信息
</div>
文字信息
</div>
</div>
</div>
Expand Down
Loading