Skip to content

Commit

Permalink
fix(Swiper): the image is disappears when the version is lower than 2…
Browse files Browse the repository at this point in the history
….19.2
  • Loading branch information
anlyyao committed Mar 7, 2023
1 parent 010f34d commit 71c837c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 48 deletions.
45 changes: 24 additions & 21 deletions src/checkbox/__test__/__virtualHostSnapshot__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,37 @@ exports[`Checkbox Checkbox all demo works fine 1`] = `
exports[`Checkbox Checkbox base demo works fine 1`] = `
<base>
<t-checkbox-group
options="{{
Array [
Object {
"label": "多选",
"value": "checkbox1",
},
Object {
"label": "多选",
"value": "checkbox2",
},
Object {
"label": "多选标题多行多选标题多行多选标题多行多选标题多行多选标题多行多选标题多行",
"maxLabelRow": 2,
"value": "checkbox3",
},
Object {
"content": "描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息",
"label": "多选",
"maxContentRow": 2,
"value": "checkbox4",
},
]
}}"
value="{{
Array [
"checkbox1",
"checkbox2",
]
}}"
bind:change="handleGroupChange"
>
<t-checkbox
label="多选"
value="checkbox1"
/>
<t-checkbox
label="多选"
value="checkbox2"
/>
<t-checkbox
label="多选标题多行多选标题多行多选标题多行多选标题多行多选标题多行多选标题多行"
maxLabelRow="2"
value="checkbox3"
/>
<t-checkbox
content="描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息"
label="多选"
maxContentRow="2"
value="checkbox4"
/>
</t-checkbox-group>
/>
</base>
`;

Expand Down
8 changes: 6 additions & 2 deletions src/common/template/image.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<template name="image">
<t-image
class="{{class}}"
t-class="{{tClass}}"
t-class-load="{{tClassLoad}}"
style="{{style || ''}}"
customStyle="{{customStyle || ''}}"
height="{{height || ''}}"
width="{{width || ''}}"
error="{{error || 'default'}}"
lazy="{{lazy || false}}"
loading="{{count || 'default'}}"
Expand All @@ -11,7 +17,5 @@
showMenuByLongpress="{{showMenuByLongpress || false}}"
bind:error="{{binderror}}"
bind:load="{{bindload}}"
t-class="{{class}} {{tClass}}"
t-class-load="{{tClassLoad}}"
/>
</template>
10 changes: 5 additions & 5 deletions src/navbar/__test__/__virtualHostSnapshot__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`navbar :base 1`] = `
class="t-navbar__left t-class-left"
>
<wx-view
class="t-navbar__capsule"
class="t-navbar__capsule t-class-capsule"
/>
</wx-view>
<wx-view
Expand Down Expand Up @@ -52,7 +52,7 @@ exports[`navbar :base 2`] = `
class="t-navbar__left t-class-left"
>
<wx-view
class="t-navbar__capsule"
class="t-navbar__capsule t-class-capsule"
/>
</wx-view>
<wx-view
Expand Down Expand Up @@ -87,7 +87,7 @@ exports[`navbar :base 3`] = `
class="t-navbar__left t-class-left"
>
<wx-view
class="t-navbar__capsule"
class="t-navbar__capsule t-class-capsule"
/>
</wx-view>
<wx-view
Expand Down Expand Up @@ -122,7 +122,7 @@ exports[`navbar :fixed 1`] = `
class="t-navbar__left t-class-left"
>
<wx-view
class="t-navbar__capsule"
class="t-navbar__capsule t-class-capsule"
/>
</wx-view>
<wx-view
Expand Down Expand Up @@ -157,7 +157,7 @@ exports[`navbar :menu button 1`] = `
class="t-navbar__left t-class-left"
>
<wx-view
class="t-navbar__capsule"
class="t-navbar__capsule t-class-capsule"
/>
</wx-view>
<wx-view
Expand Down
43 changes: 23 additions & 20 deletions src/radio/__test__/__virtualHostSnapshot__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,30 @@ exports[`Radio Radio align demo works fine 1`] = `
exports[`Radio Radio base demo works fine 1`] = `
<base>
<t-radio-group
defaultValue="radio1"
options="{{
Array [
Object {
"label": "单选",
"value": 0,
},
Object {
"label": "单选",
"value": 1,
},
Object {
"label": "单选单选单选单选单选单选单选单选单选单选单选单选单选单选",
"value": 2,
},
Object {
"content": "描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息",
"label": "单选",
"value": 3,
},
]
}}"
value="{{1}}"
bind:change="onChange"
>
<t-radio
label="单选"
value="radio1"
/>
<t-radio
label="单选"
value="radio2"
/>
<t-radio
label="单选单选单选单选单选单选单选单选单选单选单选单选单选单选"
value="radio3"
/>
<t-radio
content="描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息"
label="单选"
value="radio4"
/>
</t-radio-group>
/>
</base>
`;

Expand Down

0 comments on commit 71c837c

Please sign in to comment.