Skip to content

Commit

Permalink
feat(picker): update picker snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
byq1213 committed Dec 17, 2022
1 parent 2bc351d commit d1d95e2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
15 changes: 9 additions & 6 deletions src/picker/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

exports[`Picker Picker base demo works fine 1`] = `
<base>
<wx-view
<wx-label
ariaRole="button"
class="pannel-item"
data-key="city"
bind:tap="onClickPicker"
Expand All @@ -22,8 +23,9 @@ exports[`Picker Picker base demo works fine 1`] = `
name="chevron-right"
size="24px"
/>
</wx-view>
<wx-view
</wx-label>
<wx-label
ariaRole="button"
class="pannel-item"
data-key="yearSeasons"
bind:tap="onClickPicker"
Expand All @@ -44,8 +46,9 @@ exports[`Picker Picker base demo works fine 1`] = `
name="chevron-right"
size="24px"
/>
</wx-view>
<wx-view
</wx-label>
<wx-label
ariaRole="button"
class="pannel-item last"
data-key="date"
bind:tap="onClickPicker"
Expand All @@ -65,7 +68,7 @@ exports[`Picker Picker base demo works fine 1`] = `
name="chevron-right"
size="24px"
/>
</wx-view>
</wx-label>
<t-picker
cancelBtn="取消"
confirmBtn="确认"
Expand Down
17 changes: 15 additions & 2 deletions src/picker/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,30 @@ exports[`picker :base 1`] = `
/>
<wx-view
class="t-picker t-class"
focus="{{true}}"
slot="content"
style=""
tabindex="-1"
>
<wx-view
class="t-picker__toolbar"
>
<wx-view
ariaRole="button"
class="t-picker__cancel t-class-cancel"
bind:tap="onCancel"
>
取消
</wx-view>
<wx-view
ariaLabel="选择框"
class="t-picker__title t-class-title"
focus="{{true}}"
>
</wx-view>
<wx-view
ariaRole="button"
class="t-picker__confirm t-class-confirm"
bind:tap="onConfirm"
>
Expand All @@ -57,8 +63,10 @@ exports[`picker :base 1`] = `
<t-picker-item
id="cityItem"
>
<wx-view
<wx-scroll-view
class="t-picker-item__group"
enhanced="true"
id="t-picker-item__group"
style=""
bind:touchcancel="onTouchEnd"
bind:touchend="onTouchEnd"
Expand All @@ -72,6 +80,7 @@ exports[`picker :base 1`] = `
<wx-view
class="t-picker-item__item"
data-index="{{0}}"
bind:tap="onTap"
>
北京
Expand All @@ -80,6 +89,7 @@ exports[`picker :base 1`] = `
<wx-view
class="t-picker-item__item"
data-index="{{1}}"
bind:tap="onTap"
>
上海
Expand All @@ -88,6 +98,7 @@ exports[`picker :base 1`] = `
<wx-view
class="t-picker-item__item"
data-index="{{2}}"
bind:tap="onTap"
>
广州
Expand All @@ -96,6 +107,7 @@ exports[`picker :base 1`] = `
<wx-view
class="t-picker-item__item"
data-index="{{3}}"
bind:tap="onTap"
>
深圳
Expand All @@ -104,13 +116,14 @@ exports[`picker :base 1`] = `
<wx-view
class="t-picker-item__item"
data-index="{{4}}"
bind:tap="onTap"
>
成都
</wx-view>
</wx-view>
</wx-view>
</wx-scroll-view>
</t-picker-item>
<wx-view
class="t-picker__mask"
Expand Down

0 comments on commit d1d95e2

Please sign in to comment.