Skip to content

Commit

Permalink
chore: update pictures in demos (#2570)
Browse files Browse the repository at this point in the history
* fix: update project case module

* chore: update pictures in demos
  • Loading branch information
anlyyao authored Jan 22, 2024
1 parent d82afc6 commit a5bcf1a
Show file tree
Hide file tree
Showing 64 changed files with 441 additions and 459 deletions.
77 changes: 0 additions & 77 deletions USED.md

This file was deleted.

14 changes: 10 additions & 4 deletions site/data/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ export default [
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian-code.jpg',
},
{
name: '小楼助教',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao-code.png',
name: '上海慈善基金会',
tags: ['服务'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/cishanjijinhui.jpg'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/cishanjijinhui-code.png',
},
{
name: '区白白',
tags: ['服务'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/qubaibai.jpg'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/qubaibai-code.png',
},
{
name: 'frmall',
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 111 files
8 changes: 4 additions & 4 deletions src/action-sheet/_example/grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/
const firstGrid = [
{
label: '微信',
image: 'https://tdesign.gtimg.com/miniprogram/logo/wechat.png',
image: 'https://tdesign.gtimg.com/mobile/demos/wechat.png',
},
{
label: '朋友圈',
image: 'https://tdesign.gtimg.com/miniprogram/logo/times.png',
image: 'https://tdesign.gtimg.com/mobile/demos/times.png',
},
{
label: 'QQ',
image: 'https://tdesign.gtimg.com/miniprogram/logo/qq.png',
image: 'https://tdesign.gtimg.com/mobile/demos/qq.png',
},
{
label: '企业微信',
image: 'https://tdesign.gtimg.com/miniprogram/logo/wecom.png',
image: 'https://tdesign.gtimg.com/mobile/demos/wecom.png',
},
{
label: '收藏',
Expand Down
36 changes: 18 additions & 18 deletions src/avatar/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ exports[`Avatar Avatar action demo works fine 1`] = `
max="5"
>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar2.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar2.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar3.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar3.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar4.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar4.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar5.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar5.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
</t-avatar-group>
</action>
Expand All @@ -41,7 +41,7 @@ exports[`Avatar Avatar badge-avatar demo works fine 1`] = `
}
}}"
class="avatar-example"
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
<t-avatar
badgeProps="{{
Expand Down Expand Up @@ -100,22 +100,22 @@ exports[`Avatar Avatar exhibition demo works fine 1`] = `
max="5"
>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar2.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar2.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar3.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar3.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar4.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar4.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar5.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar5.png"
/>
<t-avatar
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
</t-avatar-group>
</exhibition>
Expand All @@ -139,11 +139,11 @@ exports[`Avatar Avatar image-avatar demo works fine 1`] = `
<image-avatar>
<t-avatar
class="avatar-example"
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
<t-avatar
class="avatar-example"
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
shape="round"
/>
</image-avatar>
Expand All @@ -156,7 +156,7 @@ exports[`Avatar Avatar size demo works fine 1`] = `
>
<t-avatar
class="avatar-example--large"
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
size="large"
/>
<t-avatar
Expand All @@ -177,7 +177,7 @@ exports[`Avatar Avatar size demo works fine 1`] = `
>
<t-avatar
class="avatar-example--medium"
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
/>
<t-avatar
class="avatar-example--medium"
Expand All @@ -197,7 +197,7 @@ exports[`Avatar Avatar size demo works fine 1`] = `
>
<t-avatar
class="avatar-example--small"
image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
size="small"
/>
<t-avatar
Expand Down
12 changes: 6 additions & 6 deletions src/avatar/_example/action/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Component({
data: {
pics: [
'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar2.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar3.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar4.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar5.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
'https://tdesign.gtimg.com/mobile/demos/avatar2.png',
'https://tdesign.gtimg.com/mobile/demos/avatar3.png',
'https://tdesign.gtimg.com/mobile/demos/avatar4.png',
'https://tdesign.gtimg.com/mobile/demos/avatar5.png',
'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
],
},

Expand Down
2 changes: 1 addition & 1 deletion src/avatar/_example/badge-avatar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Component({
data: {
image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
image: 'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
},
});
2 changes: 1 addition & 1 deletion src/avatar/_example/character-avatar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Component({
data: {
image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
image: 'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
},
});
12 changes: 6 additions & 6 deletions src/avatar/_example/exhibition/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Component({
data: {
pics: [
'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar2.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar3.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar4.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar5.png',
'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
'https://tdesign.gtimg.com/mobile/demos/avatar2.png',
'https://tdesign.gtimg.com/mobile/demos/avatar3.png',
'https://tdesign.gtimg.com/mobile/demos/avatar4.png',
'https://tdesign.gtimg.com/mobile/demos/avatar5.png',
'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
],
},
});
2 changes: 1 addition & 1 deletion src/avatar/_example/icon-avatar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Component({
data: {
image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
image: 'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
},
});
2 changes: 1 addition & 1 deletion src/avatar/_example/image-avatar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Component({
data: {
image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
image: 'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
},
});
2 changes: 1 addition & 1 deletion src/avatar/_example/size/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Component({
data: {
image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png',
image: 'https://tdesign.gtimg.com/mobile/demos/avatar1.png',
},
});
2 changes: 1 addition & 1 deletion src/cell/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ exports[`Cell Cell multiple demo works fine 1`] = `
bordered="{{false}}"
description="一段很长很长的内容文字"
hover="{{true}}"
image="https://tdesign.gtimg.com/miniprogram/images/cell1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
title="多行带图片"
/>
</multiple>
Expand Down
2 changes: 1 addition & 1 deletion src/cell/_example/multiple/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
title="多行带图片"
description="一段很长很长的内容文字"
align="top"
image="https://tdesign.gtimg.com/miniprogram/images/cell1.png"
image="https://tdesign.gtimg.com/mobile/demos/avatar1.png"
hover
bordered="{{false}}"
/>
4 changes: 2 additions & 2 deletions src/dialog/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ exports[`Dialog Dialog with-image demo works fine 1`] = `
>
<t-image
slot="top"
src="https://tdesign.gtimg.com/miniprogram/images/dialog1.png"
src="https://tdesign.gtimg.com/mobile/demos/dialog1.png"
tClass="dialog-image"
/>
</t-dialog>
Expand Down Expand Up @@ -426,7 +426,7 @@ exports[`Dialog Dialog with-image demo works fine 1`] = `
>
<t-image
slot="middle"
src="https://tdesign.gtimg.com/miniprogram/images/dialog1.png"
src="https://tdesign.gtimg.com/mobile/demos/dialog1.png"
tClass="image-host dialog-image"
/>
</t-dialog>
Expand Down
8 changes: 2 additions & 6 deletions src/dialog/_example/with-image/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
bind:confirm="closeDialog"
bind:cancel="closeDialog"
>
<t-image slot="top" t-class="dialog-image" src="https://tdesign.gtimg.com/miniprogram/images/dialog1.png" />
<t-image slot="top" t-class="dialog-image" src="https://tdesign.gtimg.com/mobile/demos/dialog1.png" />
</t-dialog>

<t-button
Expand All @@ -41,9 +41,5 @@
bind:confirm="closeDialog"
bind:cancel="closeDialog"
>
<t-image
slot="middle"
t-class="image-host dialog-image"
src="https://tdesign.gtimg.com/miniprogram/images/dialog1.png"
/>
<t-image slot="middle" t-class="image-host dialog-image" src="https://tdesign.gtimg.com/mobile/demos/dialog1.png" />
</t-dialog>
2 changes: 1 addition & 1 deletion src/empty/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`Empty Empty imageEmpty demo works fine 1`] = `
<imageEmpty>
<t-empty
description="描述文字"
image="https://tdesign.gtimg.com/miniprogram/images/empty1.png"
image="https://tdesign.gtimg.com/mobile/demos/empty1.png"
tClass="empty-cls"
tClassImage="t-empty__image"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/empty/_example/imageEmpty/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Component({
data: {
image: 'https://tdesign.gtimg.com/miniprogram/images/empty1.png',
image: 'https://tdesign.gtimg.com/mobile/demos/empty1.png',
},
});
13 changes: 13 additions & 0 deletions src/fab/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,16 @@ exports[`Fab Fab base demo works fine 1`] = `
/>
</base>
`;

exports[`Fab Fab draggable demo works fine 1`] = `
<draggable>
<t-fab
ariaLabel="增加"
draggable="{{true}}"
icon="gesture-press"
text="拖我"
bind:click="handleClick"
bind:move="handleMove"
/>
</draggable>
`;
Loading

0 comments on commit a5bcf1a

Please sign in to comment.