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

Make List.Item ssr friendly #1219

Merged
merged 5 commits into from
May 6, 2017
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
12 changes: 12 additions & 0 deletions components/accordion/__tests__/__snapshots__/demo.test.web.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports[`renders ./components/accordion/demo/basic.md correctly 1`] = `
Content 1
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand All @@ -111,6 +115,10 @@ exports[`renders ./components/accordion/demo/basic.md correctly 1`] = `
Content 2
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand All @@ -124,6 +132,10 @@ exports[`renders ./components/accordion/demo/basic.md correctly 1`] = `
Content 3
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
</div>
Expand Down
28 changes: 28 additions & 0 deletions components/badge/__tests__/__snapshots__/demo.test.web.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand Down Expand Up @@ -77,6 +81,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand All @@ -103,6 +111,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
</span>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="special-badge am-list-item am-list-item-middle"
Expand All @@ -129,6 +141,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
</span>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand Down Expand Up @@ -164,6 +180,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand Down Expand Up @@ -227,6 +247,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
</span>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand Down Expand Up @@ -270,6 +294,10 @@ exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
</span>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ exports[`renders ./components/button/demo/complex.md correctly 1`] = `
</a>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-list-item am-list-item-middle"
Expand Down Expand Up @@ -180,6 +184,10 @@ exports[`renders ./components/button/demo/complex.md correctly 1`] = `
</a>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
</div>
Expand Down
16 changes: 16 additions & 0 deletions components/checkbox/__tests__/__snapshots__/demo.test.web.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
博士
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-checkbox-item am-list-item am-list-item-middle"
Expand Down Expand Up @@ -76,6 +80,10 @@ exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
本科
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-checkbox-item am-list-item am-list-item-middle"
Expand Down Expand Up @@ -108,6 +116,10 @@ exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
高中
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div
class="am-checkbox-item am-checkbox-item-disabled am-list-item am-list-item-middle"
Expand Down Expand Up @@ -148,6 +160,10 @@ exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
</div>
</div>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
<div>
Expand All @@ -53,6 +57,10 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
<div>
Expand All @@ -76,6 +84,10 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
<div>
Expand All @@ -99,6 +111,10 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
<div>
Expand All @@ -122,6 +138,10 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
class="am-list-arrow am-list-arrow-horizontal"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
</div>
<div
Expand All @@ -141,6 +161,10 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
class="am-list-extra"
/>
</div>
<div
class="am-list-ripple"
style="display:none;"
/>
</div>
<div>
<div
Expand Down
Loading