[improvement] SwitchCell: jsx (#2656)

This commit is contained in:
neverland
2019-01-31 14:37:24 +08:00
committed by GitHub
parent 1c70cf6ead
commit 9183849e6a
11 changed files with 82 additions and 118 deletions
@@ -7,10 +7,8 @@ exports[`renders demo correctly 1`] = `
<div class="van-cell van-cell--center van-cell--borderless van-switch-cell">
<div class="van-cell__title"><span>标题</span></div>
<div class="van-cell__value">
<div title="标题" class="van-switch van-switch--on" style="font-size:24px;background-color:undefined;">
<div class="van-switch__node">
<!---->
</div>
<div class="van-switch van-switch--on" style="font-size:24px;background-color:undefined;">
<div class="van-switch__node"></div>
</div>
</div>
</div>
@@ -21,10 +19,8 @@ exports[`renders demo correctly 1`] = `
<div class="van-cell van-cell--center van-cell--borderless van-switch-cell">
<div class="van-cell__title"><span>标题</span></div>
<div class="van-cell__value">
<div title="标题" class="van-switch van-switch--on van-switch--disabled" style="font-size:24px;background-color:undefined;">
<div class="van-switch__node">
<!---->
</div>
<div class="van-switch van-switch--on van-switch--disabled" style="font-size:24px;background-color:undefined;">
<div class="van-switch__node"></div>
</div>
</div>
</div>
@@ -35,7 +31,7 @@ exports[`renders demo correctly 1`] = `
<div class="van-cell van-cell--center van-cell--borderless van-switch-cell">
<div class="van-cell__title"><span>标题</span></div>
<div class="van-cell__value">
<div title="标题" class="van-switch van-switch--on" style="font-size:24px;background-color:undefined;">
<div class="van-switch van-switch--on" style="font-size:24px;background-color:undefined;">
<div class="van-switch__node">
<div class="van-loading van-loading--circular van-loading van-switch__loading" style="color:#c9c9c9;width:undefined;height:undefined;"><span class="van-loading__spinner van-loading__spinner--circular"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div>
</div>