Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Sep 11, 2024
1 parent 26d6c43 commit 02bb870
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/radio/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ exports[`Radio > Radio customVue demo works fine 1`] = `
value="0"
/>
<div
class="t-radio__icon t-radio__icon--left t-radio__icon--checked"
class="t-radio__icon t-radio__icon--left"
>
<!---->
<!---->
Expand Down Expand Up @@ -419,6 +419,7 @@ exports[`Radio > Radio customVue demo works fine 1`] = `
<view
class="demo-desc"
data-v-5173b2c6=""
style="margin: 24px 16px 16px;"
>
横向卡片单选框
</view>
Expand Down Expand Up @@ -453,7 +454,7 @@ exports[`Radio > Radio customVue demo works fine 1`] = `
value="0"
/>
<div
class="t-radio__icon t-radio__icon--left t-radio__icon--checked"
class="t-radio__icon t-radio__icon--left"
>
<!---->
<!---->
Expand Down Expand Up @@ -1557,7 +1558,7 @@ exports[`Radio > Radio mobileVue demo works fine 1`] = `
value="0"
/>
<div
class="t-radio__icon t-radio__icon--left t-radio__icon--checked"
class="t-radio__icon t-radio__icon--left"
>
<!---->
<!---->
Expand Down Expand Up @@ -1667,6 +1668,7 @@ exports[`Radio > Radio mobileVue demo works fine 1`] = `
<view
class="demo-desc"
data-v-5173b2c6=""
style="margin: 24px 16px 16px;"
>
横向卡片单选框
</view>
Expand Down Expand Up @@ -1701,7 +1703,7 @@ exports[`Radio > Radio mobileVue demo works fine 1`] = `
value="0"
/>
<div
class="t-radio__icon t-radio__icon--left t-radio__icon--checked"
class="t-radio__icon t-radio__icon--left"
>
<!---->
<!---->
Expand Down
8 changes: 7 additions & 1 deletion src/radio/demos/custom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</view>
</t-radio-group>

<view class="demo-desc" style="margin: 48rpx 32rpx 32rpx">横向卡片单选框</view>
<view class="demo-desc" style="margin: 24px 16px 16px">横向卡片单选框</view>

<t-radio-group class="horizontal-box" :value="radio1" @change="onChange1">
<view v-for="(item, index) in 3" :key="index" :class="`card ${radio1 == index ? 'card--active' : ''}`">
Expand All @@ -32,6 +32,12 @@ const onChange1 = (value: any, context: { e: Event }) => {
};
</script>
<style scoped lang="less">
.demo-desc {
font-size: 14px;
color: rgba(0, 0, 0, 0.6);
margin-bottom: 16px;
}
.card {
display: block;
position: relative;
Expand Down

0 comments on commit 02bb870

Please sign in to comment.