Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update images for demo #1418

Merged
merged 1 commit into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed example/assets/illustration@2x.png
Binary file not shown.
24 changes: 10 additions & 14 deletions src/footer/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@

exports[`Footer Footer base demo works fine 1`] = `
<base>
<wx-view
class="demo-footer"
>
<t-footer
copyright="Copyright © 2021-2031 TD.All Rights Reserved."
theme="text"
/>
</wx-view>
<t-footer
copyright="Copyright © 2021-2031 TD.All Rights Reserved."
theme="text"
/>
</base>
`;

exports[`Footer Footer link demo works fine 1`] = `
<link>
<wx-view
class="demo-footer"
class="footer-example"
>
<t-footer
copyright="Copyright © 2021-2031 TD.All Rights Reserved."
Expand All @@ -33,7 +29,7 @@ exports[`Footer Footer link demo works fine 1`] = `
/>
</wx-view>
<wx-view
class="demo-footer"
class="footer-example"
>
<t-footer
copyright="Copyright © 2021-2031 TD.All Rights Reserved."
Expand All @@ -60,25 +56,25 @@ exports[`Footer Footer link demo works fine 1`] = `
exports[`Footer Footer logo demo works fine 1`] = `
<logo>
<wx-view
class="demo-footer"
class="footer-example"
>
<t-footer
logo="{{
Object {
"icon": "https://cdn-we-retail.ym.tencent.com/miniapp/articleFooter/example3.png",
"icon": "https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/footer-logo-single.png",
"title": "品牌名称",
}
}}"
theme="logo"
/>
</wx-view>
<wx-view
class="demo-footer"
class="footer-example"
>
<t-footer
logo="{{
Object {
"url": "https://cdn-we-retail.ym.tencent.com/miniapp/articleFooter/example3.png",
"url": "https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/footer-logo.png",
}
}}"
theme="logo"
Expand Down
4 changes: 1 addition & 3 deletions src/footer/_example/base/index.wxml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<!-- 基础页脚 只有版权信息 -->
<view class="demo-footer">
<t-footer theme="text" copyright="{{copyright}}"></t-footer>
</view>
<t-footer theme="text" copyright="{{copyright}}"></t-footer>
4 changes: 0 additions & 4 deletions src/footer/_example/base/index.wxss
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
.demo-footer {
margin-top: 8rpx;
margin-bottom: 40rpx;
}
4 changes: 2 additions & 2 deletions src/footer/_example/link/index.wxml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!-- theme 为 text,含有底部链接 -->
<view class="demo-footer">
<view class="footer-example">
<t-footer theme="text" copyright="{{copyright}}" textLinkList="{{textLinkList[0]}}" />
</view>

<view class="demo-footer">
<view class="footer-example">
<t-footer theme="text" copyright="{{copyright}}" textLinkList="{{textLinkList[1]}}" />
</view>
9 changes: 6 additions & 3 deletions src/footer/_example/link/index.wxss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.demo-footer {
margin-top: 8rpx;
margin-bottom: 40rpx;
.footer-example {
padding: 8rpx 0;
}

.footer-example:not(:last-child) {
margin-bottom: 32rpx;
}
4 changes: 2 additions & 2 deletions src/footer/_example/logo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ Component({
data: {
logoList: [
{
icon: 'https://cdn-we-retail.ym.tencent.com/miniapp/articleFooter/example3.png', // 占位图片
icon: 'https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/footer-logo-single.png',
title: '品牌名称',
},
{
url: 'https://cdn-we-retail.ym.tencent.com/miniapp/articleFooter/example3.png', // 占位图片
url: 'https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/footer-logo.png',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions src/footer/_example/logo/index.wxml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!-- theme 为 logo -->
<view class="demo-footer">
<view class="footer-example">
<t-footer theme="logo" logo="{{logoList[0]}}" />
</view>

<view class="demo-footer">
<view class="footer-example">
<t-footer theme="logo" logo="{{logoList[1]}}" />
</view>
9 changes: 6 additions & 3 deletions src/footer/_example/logo/index.wxss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.demo-footer {
margin-top: 8rpx;
margin-bottom: 40rpx;
.footer-example {
padding: 8rpx 0;
}

.footer-example:not(:last-child) {
margin-bottom: 32rpx;
}
2 changes: 1 addition & 1 deletion src/result/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Result Result custom demo works fine 1`] = `
<custom>
<t-result
image="/assets/illustration@2x.png"
image="https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/result-image.png"
tClassImage="external-class-image"
>
<wx-view
Expand Down
5 changes: 4 additions & 1 deletion src/result/_example/custom/index.wxml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<t-result t-class-image="external-class-image" image="/assets/illustration@2x.png">
<t-result
t-class-image="external-class-image"
image="https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/result-image.png"
>
<view slot="title"> 自定义结果 </view>
<view slot="description"> 描述文字 </view>
</t-result>