Skip to content

Commit

Permalink
docs(Descriptions): modify docs text description (#2739)
Browse files Browse the repository at this point in the history
Co-authored-by: Heising <[email protected]>
  • Loading branch information
HaixingOoO and Heising authored Feb 1, 2024
1 parent cabcbd4 commit 8f2b540
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/descriptions/_example/colon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Colon() {
<Space direction="vertical">
<Space align="center">
<Switch size="large" value={checked} onChange={setChecked} />
显示引号
展示冒号
</Space>
<Descriptions items={items} title="Shipping address" bordered colon={checked} />
</Space>
Expand Down
6 changes: 3 additions & 3 deletions test/snap/__snapshots__/csr.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -85171,7 +85171,7 @@ exports[`csr snapshot test > csr test src/descriptions/_example/colon.jsx 1`] =
<div
class="t-space-item"
>
显示引号
展示冒号
</div>
</div>
</div>
Expand Down Expand Up @@ -85280,7 +85280,7 @@ exports[`csr snapshot test > csr test src/descriptions/_example/colon.jsx 1`] =
<div
class="t-space-item"
>
显示引号
展示冒号
</div>
</div>
</div>
Expand Down Expand Up @@ -302948,7 +302948,7 @@ exports[`ssr snapshot test > ssr test src/descriptions/_example/base.jsx 1`] = `

exports[`ssr snapshot test > ssr test src/descriptions/_example/bordered.jsx 1`] = `"<div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div>"`;

exports[`ssr snapshot test > ssr test src/descriptions/_example/colon.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div style=\\"gap:16px\\" class=\\"t-space t-space-align-center t-space-horizontal\\"><div class=\\"t-space-item\\"><button type=\\"button\\" role=\\"switch\\" class=\\"t-switch t-size-l\\"><span class=\\"t-switch__handle\\"></span><div class=\\"t-switch__content\\"></div></button></div><div class=\\"t-space-item\\">显示引号</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--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;
exports[`ssr snapshot test > ssr test src/descriptions/_example/colon.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div style=\\"gap:16px\\" class=\\"t-space t-space-align-center t-space-horizontal\\"><div class=\\"t-space-item\\"><button type=\\"button\\" role=\\"switch\\" class=\\"t-switch t-size-l\\"><span class=\\"t-switch__handle\\"></span><div class=\\"t-switch__content\\"></div></button></div><div class=\\"t-space-item\\">展示冒号</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--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;

exports[`ssr snapshot test > ssr test src/descriptions/_example/column.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label tabindex=\\"0\\" class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"2\\" checked=\\"\\" value=\\"2\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">2</span></label><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"3\\" value=\\"3\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">3</span></label><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"4\\" value=\\"4\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">4</span></label><div class=\\"t-radio-group__bg-block\\"></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--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;

Expand Down
2 changes: 1 addition & 1 deletion test/snap/__snapshots__/ssr.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ exports[`ssr snapshot test > ssr test src/descriptions/_example/base.jsx 1`] = `

exports[`ssr snapshot test > ssr test src/descriptions/_example/bordered.jsx 1`] = `"<div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div>"`;

exports[`ssr snapshot test > ssr test src/descriptions/_example/colon.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div style=\\"gap:16px\\" class=\\"t-space t-space-align-center t-space-horizontal\\"><div class=\\"t-space-item\\"><button type=\\"button\\" role=\\"switch\\" class=\\"t-switch t-size-l\\"><span class=\\"t-switch__handle\\"></span><div class=\\"t-switch__content\\"></div></button></div><div class=\\"t-space-item\\">显示引号</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--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;
exports[`ssr snapshot test > ssr test src/descriptions/_example/colon.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div style=\\"gap:16px\\" class=\\"t-space t-space-align-center t-space-horizontal\\"><div class=\\"t-space-item\\"><button type=\\"button\\" role=\\"switch\\" class=\\"t-switch t-size-l\\"><span class=\\"t-switch__handle\\"></span><div class=\\"t-switch__content\\"></div></button></div><div class=\\"t-space-item\\">展示冒号</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--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;

exports[`ssr snapshot test > ssr test src/descriptions/_example/column.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label tabindex=\\"0\\" class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"2\\" checked=\\"\\" value=\\"2\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">2</span></label><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"3\\" value=\\"3\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">3</span></label><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"4\\" value=\\"4\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">4</span></label><div class=\\"t-radio-group__bg-block\\"></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--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;

Expand Down

0 comments on commit 8f2b540

Please sign in to comment.