Skip to content

Commit

Permalink
chore(descriptions): update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangpaopao0609 committed Oct 16, 2024
1 parent 63b0546 commit efbbb02
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 1 deletion.
121 changes: 121 additions & 0 deletions test/unit/snap/__snapshots__/csr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53694,6 +53694,127 @@ exports[`csr snapshot test > csr test ./src/descriptions/_example/layout.vue 1`]
<!---->


<div
class="t-space-item"
>
<div
class="t-row t-row--start t-row--align-top"
style="margin-left: 0px; margin-right: 0px;"
>

<span>
第一个 item 的 span:
</span>
<div
class="t-radio-group t-size-m t-radio-group__outline"
>

<label
class="t-radio t-is-checked"
tabindex="0"
>
<input
class="t-radio__former"
data-value="1"
name=""
tabindex="-1"
type="radio"
value="1"
/>
<span
class="t-radio__input"
/>
<span
class="t-radio__label"
>

1

</span>
</label>
<label
class="t-radio"
tabindex="0"
>
<input
class="t-radio__former"
data-value="2"
name=""
tabindex="-1"
type="radio"
value="2"
/>
<span
class="t-radio__input"
/>
<span
class="t-radio__label"
>

2

</span>
</label>
<label
class="t-radio"
tabindex="0"
>
<input
class="t-radio__former"
data-value="3"
name=""
tabindex="-1"
type="radio"
value="3"
/>
<span
class="t-radio__input"
/>
<span
class="t-radio__label"
>

3

</span>
</label>
<label
class="t-radio"
tabindex="0"
>
<input
class="t-radio__former"
data-value="4"
name=""
tabindex="-1"
type="radio"
value="4"
/>
<span
class="t-radio__input"
/>
<span
class="t-radio__label"
>

4

</span>
</label>

<!---->
</div>
<span
style="color: rgb(51, 51, 51); font-size: 12px;"
>

</span>

</div>
</div>
<!---->


<div
class="t-space-item"
>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/snap/__snapshots__/ssr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ exports[`ssr snapshot test > ssr test ./src/descriptions/_example/custom-style.v

exports[`ssr snapshot test > ssr test ./src/descriptions/_example/items.vue 1`] = `"<div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--fixed\\"><tbody><!--[--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Name<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\">TDesign</td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\"><button>Telephone Number</button><!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\">139****0609</td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Area<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><h3>China Tencent Headquarters</h3></td><!--]--><!--]--></tr><!--]--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\"><i>&#39;Address&#39;</i><!----></td><td colspan=\\"5\\" class=\\"t-descriptions__content\\" style=\\"\\"><mark> &#39;Shenzhen Penguin Island D1 4A Mail Center&#39;</mark></td><!--]--><!--]--></tr><!--]--><!--]--></tbody></table></div>"`;

exports[`ssr snapshot test > ssr test ./src/descriptions/_example/layout.vue 1`] = `"<div class=\\"t-space t-space-vertical\\" style=\\"gap:16px;\\"><!--[--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-row t-row--start t-row--align-top\\" style=\\"margin-left:0px;margin-right:0px;\\"><!--[--><span>layout:</span><div class=\\"t-radio-group t-size-m t-radio-group__outline\\"><!--[--><label class=\\"t-radio t-is-checked\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name checked value=\\"horizontal\\" tabindex=\\"-1\\" data-value=\\"&#39;horizontal&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->horizontal<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"vertical\\" tabindex=\\"-1\\" data-value=\\"&#39;vertical&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->vertical<!--]--></span></label><!--]--><!----></div><!--]--></div></div><!----><!--]--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-row t-row--start t-row--align-top\\" style=\\"margin-left:0px;margin-right:0px;\\"><!--[--><span>itemLayout:</span><div class=\\"t-radio-group t-size-m t-radio-group__outline\\"><!--[--><label class=\\"t-radio t-is-checked\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name checked value=\\"horizontal\\" tabindex=\\"-1\\" data-value=\\"&#39;horizontal&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->horizontal<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"vertical\\" tabindex=\\"-1\\" data-value=\\"&#39;vertical&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->vertical<!--]--></span></label><!--]--><!----></div><!--]--></div></div><!----><!--]--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--fixed t-descriptions__body--border\\"><tbody><!--[--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Name<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->TDesign<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Telephone Number<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->139****0609<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Area<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->China Tencent Headquarters<!--]--></td><!--]--><!--]--></tr><!--]--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Address<!----></td><td colspan=\\"5\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->Shenzhen Penguin Island D1 4A Mail Center<!--]--></td><!--]--><!--]--></tr><!--]--><!--]--></tbody></table></div></div><!----><!--]--><!--]--></div>"`;
exports[`ssr snapshot test > ssr test ./src/descriptions/_example/layout.vue 1`] = `"<div class=\\"t-space t-space-vertical\\" style=\\"gap:16px;\\"><!--[--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-row t-row--start t-row--align-top\\" style=\\"margin-left:0px;margin-right:0px;\\"><!--[--><span>layout:</span><div class=\\"t-radio-group t-size-m t-radio-group__outline\\"><!--[--><label class=\\"t-radio t-is-checked\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name checked value=\\"horizontal\\" tabindex=\\"-1\\" data-value=\\"&#39;horizontal&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->horizontal<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"vertical\\" tabindex=\\"-1\\" data-value=\\"&#39;vertical&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->vertical<!--]--></span></label><!--]--><!----></div><!--]--></div></div><!----><!--]--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-row t-row--start t-row--align-top\\" style=\\"margin-left:0px;margin-right:0px;\\"><!--[--><span>itemLayout:</span><div class=\\"t-radio-group t-size-m t-radio-group__outline\\"><!--[--><label class=\\"t-radio t-is-checked\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name checked value=\\"horizontal\\" tabindex=\\"-1\\" data-value=\\"&#39;horizontal&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->horizontal<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"vertical\\" tabindex=\\"-1\\" data-value=\\"&#39;vertical&#39;\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->vertical<!--]--></span></label><!--]--><!----></div><!--]--></div></div><!----><!--]--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-row t-row--start t-row--align-top\\" style=\\"margin-left:0px;margin-right:0px;\\"><!--[--><span>第一个 item 的 span:</span><div class=\\"t-radio-group t-size-m t-radio-group__outline\\"><!--[--><label class=\\"t-radio t-is-checked\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name checked value=\\"1\\" tabindex=\\"-1\\" data-value=\\"1\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->1<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"2\\" tabindex=\\"-1\\" data-value=\\"2\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->2<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"3\\" tabindex=\\"-1\\" data-value=\\"3\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->3<!--]--></span></label><label class=\\"t-radio\\" tabindex=\\"0\\"><input type=\\"radio\\" class=\\"t-radio__former\\" name value=\\"4\\" tabindex=\\"-1\\" data-value=\\"4\\"><span class=\\"t-radio__input\\"></span><span class=\\"t-radio__label\\"><!--[-->4<!--]--></span></label><!--]--><!----></div><span style=\\"color:#333;font-size:12px;\\"> </span><!--]--></div></div><!----><!--]--><!--[--><div class=\\"t-space-item\\"><div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--fixed t-descriptions__body--border\\"><tbody><!--[--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Name<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->TDesign<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Telephone Number<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->139****0609<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Area<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->China Tencent Headquarters<!--]--></td><!--]--><!--]--></tr><!--]--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Address<!----></td><td colspan=\\"5\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->Shenzhen Penguin Island D1 4A Mail Center<!--]--></td><!--]--><!--]--></tr><!--]--><!--]--></tbody></table></div></div><!----><!--]--><!--]--></div>"`;

exports[`ssr snapshot test > ssr test ./src/descriptions/_example/nest.vue 1`] = `"<div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--fixed t-descriptions__body--border\\"><tbody><!--[--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Name<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->TDesign<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Telephone Number<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->139****0609<!--]--></td><!--]--><!--]--></tr><!--]--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Area<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->China Tencent Headquarters<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"\\">Address<!----></td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[--><div class=\\"t-descriptions\\"><table class=\\"t-descriptions__body t-size-m t-descriptions__body--fixed\\"><tbody><!--[--><!--[--><tr><!--[--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"background:#f4f4f4;\\">City:</td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->Shenzhen<!--]--></td><!--]--><!--[--><td colspan=\\"1\\" class=\\"t-descriptions__label\\" style=\\"background:#f4f4f4;\\">Detail:</td><td colspan=\\"1\\" class=\\"t-descriptions__content\\" style=\\"\\"><!--[-->Penguin Island D1 4A Mail Center<!--]--></td><!--]--><!--]--></tr><!--]--><!--]--></tbody></table></div><!--]--></td><!--]--><!--]--></tr><!--]--><!--]--></tbody></table></div>"`;

Expand Down

0 comments on commit efbbb02

Please sign in to comment.