From 98de808a6a8892358ea3cec58979d0c6af841a09 Mon Sep 17 00:00:00 2001 From: Y Date: Thu, 12 Jan 2023 14:17:32 +0800 Subject: [PATCH] fix: fix demo (#1489) --- .../__test__/__snapshots__/demo.test.js.snap | 36 +-- src/avatar/__test__/index.js | 16 +- src/avatar/__test__/index.test.js | 2 +- src/avatar/_example/action/index.js | 12 +- src/avatar/_example/badge-avatar/index.js | 2 +- src/avatar/_example/character-avatar/index.js | 2 +- src/avatar/_example/exhibition/index.js | 12 +- src/avatar/_example/icon-avatar/index.js | 2 +- src/avatar/_example/image-avatar/index.js | 2 +- src/avatar/_example/size/index.js | 2 +- src/back-top/_example/back-top.json | 1 + .../__test__/__snapshots__/demo.test.js.snap | 2 +- src/cell/_example/base/index.json | 3 +- src/cell/_example/multiple/index.wxml | 2 +- src/cell/_example/theme/index.json | 1 + src/checkbox/_example/base/index.json | 4 +- src/checkbox/_example/horizontal/index.json | 4 +- src/checkbox/_example/right/index.json | 4 +- src/checkbox/_example/special/index.json | 4 +- src/checkbox/_example/status/index.json | 4 +- src/checkbox/_example/type/index.json | 4 +- .../__test__/__snapshots__/demo.test.js.snap | 4 +- src/dialog/_example/dialog.less | 3 + src/dialog/_example/with-image/index.json | 1 + src/dialog/_example/with-image/index.wxml | 8 +- src/drawer/_example/base/index.json | 1 + src/drawer/_example/footer/index.json | 1 + src/drawer/_example/icon-drawer/index.json | 1 + src/drawer/_example/title/index.json | 1 + .../__test__/__snapshots__/demo.test.js.snap | 2 +- src/empty/_example/imageEmpty/index.js | 2 +- src/fab/_example/fab.json | 1 + .../__test__/__snapshots__/demo.test.js.snap | 4 +- src/footer/_example/logo/index.js | 4 +- .../__test__/__snapshots__/demo.test.js.snap | 96 +++--- src/grid/_example/badge/index.js | 6 +- src/grid/_example/base/index.js | 6 +- src/grid/_example/border/index.js | 6 +- src/grid/_example/card/index.js | 6 +- src/grid/_example/description/index.js | 6 +- src/grid/_example/multiple/index.js | 6 +- src/grid/_example/scroll/index.js | 12 +- .../__test__/__snapshots__/demo.test.js.snap | 8 +- src/icon/__test__/index.test.js | 2 +- src/icon/_example/iconImage/index.js | 4 +- src/image-viewer/_example/base/index.js | 2 +- src/image-viewer/_example/delete/index.js | 4 +- .../__test__/__snapshots__/demo.test.js.snap | 14 +- src/image/_example/base/index.js | 3 +- src/image/_example/size/index.js | 3 +- src/image/_example/status/index.json | 3 +- src/indexes/_example/indexes.json | 4 +- src/link/_example/link.json | 1 - .../__test__/__snapshots__/demo.test.js.snap | 2 +- src/navbar/_example/back-home/index.json | 3 +- src/navbar/_example/img/index.js | 2 +- src/navbar/_example/img/index.json | 3 +- .../_example/customization/index.json | 3 +- src/notice-bar/_example/iconDemo/index.json | 3 +- src/progress/_example/transition/index.json | 3 +- .../_example/base/index.json | 4 +- src/radio/_example/align/index.json | 3 +- src/radio/_example/base/index.json | 4 +- src/radio/_example/card/index.json | 4 +- src/radio/_example/horizontal/index.json | 4 +- src/radio/_example/special/index.json | 4 +- src/radio/_example/status/index.json | 4 +- .../__test__/__snapshots__/demo.test.js.snap | 39 ++- src/search/_example/base/index.wxml | 4 +- src/search/_example/base/index.wxss | 4 + src/search/_example/other/index.js | 5 + src/search/_example/other/index.json | 5 + src/search/_example/other/index.wxml | 3 + src/search/_example/other/index.wxss | 4 + src/search/_example/search.json | 3 +- src/search/_example/search.less | 5 - src/search/_example/search.wxml | 11 +- src/search/_example/status/index.wxml | 12 +- src/search/_example/status/index.wxss | 14 +- .../__test__/__snapshots__/demo.test.js.snap | 306 +++++++++--------- src/side-bar/_example/base/index.js | 4 +- src/side-bar/_example/custom/index.js | 4 +- src/side-bar/_example/side-bar.json | 1 + src/side-bar/_example/switch/index.js | 10 +- src/side-bar/_example/switch/index.json | 3 +- src/side-bar/_example/switch/index.wxss | 3 +- .../__test__/__snapshots__/demo.test.js.snap | 2 +- src/steps/_example/special/index.json | 3 +- src/steps/_example/vertical/index.wxml | 2 +- src/sticky/_example/base/index.json | 4 +- src/sticky/_example/container/index.json | 4 +- src/sticky/_example/offset/index.json | 4 +- .../__test__/__snapshots__/demo.test.js.snap | 4 +- src/swipe-cell/_example/double/index.json | 4 +- src/swipe-cell/_example/icon/index.json | 3 +- src/swipe-cell/_example/icon/index.wxml | 2 +- src/swipe-cell/_example/left/index.json | 4 +- src/swipe-cell/_example/left/index.wxml | 2 +- src/swipe-cell/_example/right/index.json | 4 +- .../__test__/__snapshots__/demo.test.js.snap | 70 ++-- .../__test__/__snapshots__/index.test.js.snap | 14 +- src/swiper/__test__/base/index.js | 12 +- src/swiper/_example/base/index.js | 12 +- src/swiper/_example/cards/index.js | 12 +- src/swiper/_example/custom/index.js | 12 +- src/swiper/_example/fraction/index.js | 12 +- src/swiper/_example/nav-btn/index.js | 12 +- src/swiper/_example/swiper.less | 13 - src/swiper/_example/swiper.wxml | 31 +- src/swiper/_example/vertical/index.js | 12 +- src/switch/_example/base/index.json | 4 +- src/switch/_example/color/index.json | 4 +- src/switch/_example/label/index.json | 4 +- src/switch/_example/size/index.json | 4 +- src/switch/_example/status/index.json | 4 +- src/tag/_example/checkable/index.json | 1 - src/tag/_example/size/index.json | 3 +- src/tag/_example/tag.json | 1 + .../__test__/__snapshots__/demo.test.js.snap | 14 +- src/transition/_example/appear/index.json | 6 +- src/transition/_example/appear/index.wxml | 3 +- src/transition/_example/base/index.json | 6 +- src/transition/_example/base/index.wxml | 3 +- src/transition/_example/custom/index.json | 6 +- src/transition/_example/custom/index.wxml | 3 +- src/transition/_example/destroy/index.json | 6 +- src/transition/_example/destroy/index.wxml | 3 +- src/transition/_example/transition.json | 8 +- src/transition/_example/transition.less | 18 +- src/transition/_example/transition.wxml | 41 +-- src/tree-select/_example/tree-select.json | 1 - .../__test__/__snapshots__/demo.test.js.snap | 16 +- src/upload/__test__/index.test.js | 12 +- src/upload/_example/messageFile/index.js | 2 +- src/upload/_example/messageFile/index.json | 3 +- src/upload/_example/multiple/index.js | 6 +- src/upload/_example/single/index.json | 3 +- src/upload/_example/status/index.js | 8 +- 138 files changed, 650 insertions(+), 629 deletions(-) create mode 100644 src/search/_example/other/index.js create mode 100644 src/search/_example/other/index.json create mode 100644 src/search/_example/other/index.wxml create mode 100644 src/search/_example/other/index.wxss diff --git a/src/avatar/__test__/__snapshots__/demo.test.js.snap b/src/avatar/__test__/__snapshots__/demo.test.js.snap index a6eff4974..789d390bf 100644 --- a/src/avatar/__test__/__snapshots__/demo.test.js.snap +++ b/src/avatar/__test__/__snapshots__/demo.test.js.snap @@ -7,27 +7,27 @@ exports[`Avatar Avatar action demo works fine 1`] = ` > @@ -46,7 +46,7 @@ exports[`Avatar Avatar badge-avatar demo works fine 1`] = ` } }}" class="avatar-example" - image="https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png" + image="https://tdesign.gtimg.com/miniprogram/images/avatar1.png" /> @@ -151,11 +151,11 @@ exports[`Avatar Avatar image-avatar demo works fine 1`] = ` @@ -168,7 +168,7 @@ exports[`Avatar Avatar size demo works fine 1`] = ` > { const $image = comp.querySelector('.image-avatar >>> #image'); expect($image.toJSON().attrs.filter((v) => v.name === 'src')[0].value).toBe( - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png', ); }); diff --git a/src/avatar/_example/action/index.js b/src/avatar/_example/action/index.js index 0fc8f26ea..c098f17d9 100644 --- a/src/avatar/_example/action/index.js +++ b/src/avatar/_example/action/index.js @@ -1,12 +1,12 @@ Component({ data: { pics: [ - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/2.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/3.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/4.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/5.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + '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', ], }, diff --git a/src/avatar/_example/badge-avatar/index.js b/src/avatar/_example/badge-avatar/index.js index a0fa916a6..7e6a97529 100644 --- a/src/avatar/_example/badge-avatar/index.js +++ b/src/avatar/_example/badge-avatar/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png', }, }); diff --git a/src/avatar/_example/character-avatar/index.js b/src/avatar/_example/character-avatar/index.js index a0fa916a6..7e6a97529 100644 --- a/src/avatar/_example/character-avatar/index.js +++ b/src/avatar/_example/character-avatar/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png', }, }); diff --git a/src/avatar/_example/exhibition/index.js b/src/avatar/_example/exhibition/index.js index 4e24c3506..fea462570 100644 --- a/src/avatar/_example/exhibition/index.js +++ b/src/avatar/_example/exhibition/index.js @@ -1,12 +1,12 @@ Component({ data: { pics: [ - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/2.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/3.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/4.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/5.png', - 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + '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', ], }, }); diff --git a/src/avatar/_example/icon-avatar/index.js b/src/avatar/_example/icon-avatar/index.js index a0fa916a6..7e6a97529 100644 --- a/src/avatar/_example/icon-avatar/index.js +++ b/src/avatar/_example/icon-avatar/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png', }, }); diff --git a/src/avatar/_example/image-avatar/index.js b/src/avatar/_example/image-avatar/index.js index a0fa916a6..7e6a97529 100644 --- a/src/avatar/_example/image-avatar/index.js +++ b/src/avatar/_example/image-avatar/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png', }, }); diff --git a/src/avatar/_example/size/index.js b/src/avatar/_example/size/index.js index a0fa916a6..7e6a97529 100644 --- a/src/avatar/_example/size/index.js +++ b/src/avatar/_example/size/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/avatar1.png', }, }); diff --git a/src/back-top/_example/back-top.json b/src/back-top/_example/back-top.json index c305a7d92..8226096bc 100644 --- a/src/back-top/_example/back-top.json +++ b/src/back-top/_example/back-top.json @@ -2,6 +2,7 @@ "navigationBarTitleText": "BackTop", "navigationBarBackgroundColor": "#fff", "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", "t-skeleton": "tdesign-miniprogram/skeleton/skeleton", "base": "./base", "half-round": "./half-round" diff --git a/src/cell/__test__/__snapshots__/demo.test.js.snap b/src/cell/__test__/__snapshots__/demo.test.js.snap index 423d64be4..633d51715 100644 --- a/src/cell/__test__/__snapshots__/demo.test.js.snap +++ b/src/cell/__test__/__snapshots__/demo.test.js.snap @@ -138,7 +138,7 @@ exports[`Cell Cell multiple demo works fine 1`] = ` align="top" description="一段很长很长的内容文字" hover="{{true}}" - image="https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png" + image="https://tdesign.gtimg.com/miniprogram/images/cell1.png" title="多行带图片" /> diff --git a/src/cell/_example/base/index.json b/src/cell/_example/base/index.json index 06b94904c..323d4f8f5 100644 --- a/src/cell/_example/base/index.json +++ b/src/cell/_example/base/index.json @@ -3,6 +3,7 @@ "usingComponents": { "t-cell": "tdesign-miniprogram/cell/cell", "t-badge": "tdesign-miniprogram/badge/badge", - "t-switch": "tdesign-miniprogram/switch/switch" + "t-switch": "tdesign-miniprogram/switch/switch", + "t-icon": "tdesign-miniprogram/icon/icon" } } diff --git a/src/cell/_example/multiple/index.wxml b/src/cell/_example/multiple/index.wxml index 1f3a65c7d..93ca05722 100644 --- a/src/cell/_example/multiple/index.wxml +++ b/src/cell/_example/multiple/index.wxml @@ -21,7 +21,7 @@ title="多行带图片" description="一段很长很长的内容文字" align="top" - image="https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png" + image="https://tdesign.gtimg.com/miniprogram/images/cell1.png" hover /> diff --git a/src/cell/_example/theme/index.json b/src/cell/_example/theme/index.json index 08ecc9605..6926edf8b 100644 --- a/src/cell/_example/theme/index.json +++ b/src/cell/_example/theme/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { + "t-cell-group": "tdesign-miniprogram/cell-group/cell-group", "t-cell": "tdesign-miniprogram/cell/cell", "t-icon": "tdesign-miniprogram/icon/icon" } diff --git a/src/checkbox/_example/base/index.json b/src/checkbox/_example/base/index.json index 7743546cc..ca35eb67c 100644 --- a/src/checkbox/_example/base/index.json +++ b/src/checkbox/_example/base/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", + "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" } } diff --git a/src/checkbox/_example/horizontal/index.json b/src/checkbox/_example/horizontal/index.json index 7743546cc..ca35eb67c 100644 --- a/src/checkbox/_example/horizontal/index.json +++ b/src/checkbox/_example/horizontal/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", + "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" } } diff --git a/src/checkbox/_example/right/index.json b/src/checkbox/_example/right/index.json index 7743546cc..ca35eb67c 100644 --- a/src/checkbox/_example/right/index.json +++ b/src/checkbox/_example/right/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", + "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" } } diff --git a/src/checkbox/_example/special/index.json b/src/checkbox/_example/special/index.json index 7743546cc..ca35eb67c 100644 --- a/src/checkbox/_example/special/index.json +++ b/src/checkbox/_example/special/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", + "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" } } diff --git a/src/checkbox/_example/status/index.json b/src/checkbox/_example/status/index.json index 7743546cc..ca35eb67c 100644 --- a/src/checkbox/_example/status/index.json +++ b/src/checkbox/_example/status/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", + "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" } } diff --git a/src/checkbox/_example/type/index.json b/src/checkbox/_example/type/index.json index 7743546cc..ca35eb67c 100644 --- a/src/checkbox/_example/type/index.json +++ b/src/checkbox/_example/type/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", + "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" } } diff --git a/src/dialog/__test__/__snapshots__/demo.test.js.snap b/src/dialog/__test__/__snapshots__/demo.test.js.snap index 29b57b707..7c8aaf422 100644 --- a/src/dialog/__test__/__snapshots__/demo.test.js.snap +++ b/src/dialog/__test__/__snapshots__/demo.test.js.snap @@ -393,7 +393,7 @@ exports[`Dialog Dialog with-image demo works fine 1`] = ` > @@ -427,7 +427,7 @@ exports[`Dialog Dialog with-image demo works fine 1`] = ` diff --git a/src/dialog/_example/dialog.less b/src/dialog/_example/dialog.less index e69de29bb..23062cc7e 100644 --- a/src/dialog/_example/dialog.less +++ b/src/dialog/_example/dialog.less @@ -0,0 +1,3 @@ +page { + background-color: #fff; +} diff --git a/src/dialog/_example/with-image/index.json b/src/dialog/_example/with-image/index.json index 2a4435cb3..d91ef9f94 100644 --- a/src/dialog/_example/with-image/index.json +++ b/src/dialog/_example/with-image/index.json @@ -2,6 +2,7 @@ "component": true, "usingComponents": { "t-button": "tdesign-miniprogram/button/button", + "t-image": "tdesign-miniprogram/image/image", "t-dialog": "tdesign-miniprogram/dialog/dialog" } } diff --git a/src/dialog/_example/with-image/index.wxml b/src/dialog/_example/with-image/index.wxml index 821828748..0346403aa 100644 --- a/src/dialog/_example/with-image/index.wxml +++ b/src/dialog/_example/with-image/index.wxml @@ -18,11 +18,7 @@ bind:confirm="closeDialog" bind:cancel="closeDialog" > - + diff --git a/src/drawer/_example/base/index.json b/src/drawer/_example/base/index.json index b041823fa..57bb75139 100644 --- a/src/drawer/_example/base/index.json +++ b/src/drawer/_example/base/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", "t-drawer": "tdesign-miniprogram/drawer/drawer" } } diff --git a/src/drawer/_example/footer/index.json b/src/drawer/_example/footer/index.json index b041823fa..57bb75139 100644 --- a/src/drawer/_example/footer/index.json +++ b/src/drawer/_example/footer/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", "t-drawer": "tdesign-miniprogram/drawer/drawer" } } diff --git a/src/drawer/_example/icon-drawer/index.json b/src/drawer/_example/icon-drawer/index.json index b041823fa..57bb75139 100644 --- a/src/drawer/_example/icon-drawer/index.json +++ b/src/drawer/_example/icon-drawer/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", "t-drawer": "tdesign-miniprogram/drawer/drawer" } } diff --git a/src/drawer/_example/title/index.json b/src/drawer/_example/title/index.json index b041823fa..57bb75139 100644 --- a/src/drawer/_example/title/index.json +++ b/src/drawer/_example/title/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", "t-drawer": "tdesign-miniprogram/drawer/drawer" } } diff --git a/src/empty/__test__/__snapshots__/demo.test.js.snap b/src/empty/__test__/__snapshots__/demo.test.js.snap index 637e32619..c4da1269d 100644 --- a/src/empty/__test__/__snapshots__/demo.test.js.snap +++ b/src/empty/__test__/__snapshots__/demo.test.js.snap @@ -30,7 +30,7 @@ exports[`Empty Empty imageEmpty demo works fine 1`] = ` diff --git a/src/empty/_example/imageEmpty/index.js b/src/empty/_example/imageEmpty/index.js index cbc7abeba..df1133c40 100644 --- a/src/empty/_example/imageEmpty/index.js +++ b/src/empty/_example/imageEmpty/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://oteam-tdesign-1258344706.cos.ap-guangzhou.tencentcos.cn/miniprogram/images/empty-image.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/empty1.png', }, }); diff --git a/src/fab/_example/fab.json b/src/fab/_example/fab.json index f6d71bdc6..78d58bb27 100644 --- a/src/fab/_example/fab.json +++ b/src/fab/_example/fab.json @@ -2,6 +2,7 @@ "navigationBarTitleText": "Fab", "navigationBarBackgroundColor": "#fff", "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", "base": "./base", "advance": "./advance" } diff --git a/src/footer/__test__/__snapshots__/demo.test.js.snap b/src/footer/__test__/__snapshots__/demo.test.js.snap index 8e31e1425..c43514740 100644 --- a/src/footer/__test__/__snapshots__/demo.test.js.snap +++ b/src/footer/__test__/__snapshots__/demo.test.js.snap @@ -61,7 +61,7 @@ exports[`Footer Footer logo demo works fine 1`] = ` @@ -52,23 +52,23 @@ exports[`Grid Grid base demo works fine 1`] = ` column="{{5}}" > @@ -76,19 +76,19 @@ exports[`Grid Grid base demo works fine 1`] = ` class="block" > @@ -97,15 +97,15 @@ exports[`Grid Grid base demo works fine 1`] = ` column="{{3}}" > @@ -126,15 +126,15 @@ exports[`Grid Grid border demo works fine 1`] = ` column="{{3}}" > @@ -153,13 +153,13 @@ exports[`Grid Grid border demo works fine 1`] = ` > @@ -176,35 +176,35 @@ exports[`Grid Grid card demo works fine 1`] = ` theme="card" > @@ -221,17 +221,17 @@ exports[`Grid Grid description demo works fine 1`] = ` > @@ -245,13 +245,13 @@ exports[`Grid Grid description demo works fine 1`] = ` > @@ -292,35 +292,35 @@ exports[`Grid Grid multiple demo works fine 1`] = ` column="{{4}}" > @@ -334,27 +334,27 @@ exports[`Grid Grid scroll demo works fine 1`] = ` column="{{0}}" > diff --git a/src/grid/_example/badge/index.js b/src/grid/_example/badge/index.js index 76eabdc44..ca32b14a8 100644 --- a/src/grid/_example/badge/index.js +++ b/src/grid/_example/badge/index.js @@ -1,7 +1,7 @@ Component({ data: { - img1: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', - img2: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', - img3: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img1: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', + img2: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', + img3: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, }); diff --git a/src/grid/_example/base/index.js b/src/grid/_example/base/index.js index 76eabdc44..ca32b14a8 100644 --- a/src/grid/_example/base/index.js +++ b/src/grid/_example/base/index.js @@ -1,7 +1,7 @@ Component({ data: { - img1: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', - img2: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', - img3: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img1: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', + img2: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', + img3: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, }); diff --git a/src/grid/_example/border/index.js b/src/grid/_example/border/index.js index 922137411..2735d0e30 100644 --- a/src/grid/_example/border/index.js +++ b/src/grid/_example/border/index.js @@ -1,8 +1,8 @@ Component({ data: { - img1: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', - img2: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', - img3: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img1: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', + img2: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', + img3: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', border: { color: '#f6f6f6', }, diff --git a/src/grid/_example/card/index.js b/src/grid/_example/card/index.js index 76eabdc44..ca32b14a8 100644 --- a/src/grid/_example/card/index.js +++ b/src/grid/_example/card/index.js @@ -1,7 +1,7 @@ Component({ data: { - img1: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', - img2: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', - img3: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img1: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', + img2: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', + img3: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, }); diff --git a/src/grid/_example/description/index.js b/src/grid/_example/description/index.js index 76eabdc44..ca32b14a8 100644 --- a/src/grid/_example/description/index.js +++ b/src/grid/_example/description/index.js @@ -1,7 +1,7 @@ Component({ data: { - img1: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', - img2: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', - img3: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img1: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', + img2: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', + img3: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, }); diff --git a/src/grid/_example/multiple/index.js b/src/grid/_example/multiple/index.js index 76eabdc44..ca32b14a8 100644 --- a/src/grid/_example/multiple/index.js +++ b/src/grid/_example/multiple/index.js @@ -1,7 +1,7 @@ Component({ data: { - img1: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', - img2: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', - img3: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img1: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', + img2: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', + img3: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, }); diff --git a/src/grid/_example/scroll/index.js b/src/grid/_example/scroll/index.js index 6da74d161..fb7b05fc2 100644 --- a/src/grid/_example/scroll/index.js +++ b/src/grid/_example/scroll/index.js @@ -3,27 +3,27 @@ Component({ gridItemList: [ { text: '标题文字', - img: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', + img: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', }, { text: '标题文字', - img: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', + img: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', }, { text: '标题文字', - img: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, { text: '最多五个字', - img: 'https://tdesign.gtimg.com/miniprogram/images/grid-1.png', + img: 'https://tdesign.gtimg.com/miniprogram/images/example1.png', }, { text: '最多五个字', - img: 'https://tdesign.gtimg.com/miniprogram/images/grid-2.png', + img: 'https://tdesign.gtimg.com/miniprogram/images/example2.png', }, { text: '最多五个字', - img: 'https://tdesign.gtimg.com/miniprogram/images/grid-3.png', + img: 'https://tdesign.gtimg.com/miniprogram/images/example3.png', }, ], }, diff --git a/src/icon/__test__/__snapshots__/demo.test.js.snap b/src/icon/__test__/__snapshots__/demo.test.js.snap index 79efd7236..8dade2ad2 100644 --- a/src/icon/__test__/__snapshots__/demo.test.js.snap +++ b/src/icon/__test__/__snapshots__/demo.test.js.snap @@ -3650,8 +3650,8 @@ exports[`Icon Icon iconImage demo works fine 1`] = ` class="demo__card" > @@ -3660,8 +3660,8 @@ exports[`Icon Icon iconImage demo works fine 1`] = ` class="demo__card" > diff --git a/src/icon/__test__/index.test.js b/src/icon/__test__/index.test.js index 9653001f0..1ab5958f9 100644 --- a/src/icon/__test__/index.test.js +++ b/src/icon/__test__/index.test.js @@ -26,7 +26,7 @@ describe('icon', () => { template: ``, data: { size: 20, - name: 'https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/miniprogram/images/icon-image.png', + name: 'https://tdesign.gtimg.com/miniprogram/images/icon-image.png', }, usingComponents: { 't-icon': icon, diff --git a/src/icon/_example/iconImage/index.js b/src/icon/_example/iconImage/index.js index c7291675c..3ea373a37 100644 --- a/src/icon/_example/iconImage/index.js +++ b/src/icon/_example/iconImage/index.js @@ -1,8 +1,8 @@ Component({ data: { imageIconList: [ - 'https://oteam-tdesign-1258344706.cos.ap-guangzhou.tencentcos.cn/miniprogram/images/icon-image.png', - 'https://oteam-tdesign-1258344706.cos.ap-guangzhou.tencentcos.cn/miniprogram/images/icon-copy.png', + 'https://tdesign.gtimg.com/miniprogram/images/icon1.png', + 'https://tdesign.gtimg.com/miniprogram/images/icon2.png', ], }, diff --git a/src/image-viewer/_example/base/index.js b/src/image-viewer/_example/base/index.js index 047d53e9c..fc90fe4de 100644 --- a/src/image-viewer/_example/base/index.js +++ b/src/image-viewer/_example/base/index.js @@ -12,7 +12,7 @@ Component({ clickHandle() { this.setData({ images: [ - 'https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/site/miniprogram-doc/doc-steps.png', + 'https://tdesign.gtimg.com/miniprogram/images/preview6.png', 'https://tdesign.gtimg.com/miniprogram/images/preview1.png', 'https://tdesign.gtimg.com/miniprogram/images/preview2.png', 'https://tdesign.gtimg.com/miniprogram/images/preview3.png', diff --git a/src/image-viewer/_example/delete/index.js b/src/image-viewer/_example/delete/index.js index ecdd4fcaf..4dfcd5040 100644 --- a/src/image-viewer/_example/delete/index.js +++ b/src/image-viewer/_example/delete/index.js @@ -12,8 +12,8 @@ Component({ clickHandle() { this.setData({ images: [ - 'https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/site/miniprogram-doc/doc-steps.png', - 'https://oteam-tdesign-1258344706.cos-internal.ap-guangzhou.tencentcos.cn/site/miniprogram-doc/demo/image-viewer/demo-image.png', + 'https://tdesign.gtimg.com/miniprogram/images/preview6.png', + 'https://tdesign.gtimg.com/miniprogram/images/preview5.png', 'https://tdesign.gtimg.com/miniprogram/images/preview1.png', 'https://tdesign.gtimg.com/miniprogram/images/preview2.png', 'https://tdesign.gtimg.com/miniprogram/images/preview3.png', diff --git a/src/image/__test__/__snapshots__/demo.test.js.snap b/src/image/__test__/__snapshots__/demo.test.js.snap index f86eb3a44..3927bef0e 100644 --- a/src/image/__test__/__snapshots__/demo.test.js.snap +++ b/src/image/__test__/__snapshots__/demo.test.js.snap @@ -17,7 +17,7 @@ exports[`Image Image base demo works fine 1`] = ` ariaLabel="一个放置在墙角的黄色行李箱" height="72" mode="aspectFill" - src="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg" + src="https://tdesign.gtimg.com/miniprogram/images/image1.jpeg" width="72" /> @@ -33,7 +33,7 @@ exports[`Image Image base demo works fine 1`] = ` ariaLabel="一个放置在墙角的黄色行李箱" height="72" mode="heightFix" - src="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg" + src="https://tdesign.gtimg.com/miniprogram/images/image1.jpeg" width="72" /> @@ -48,7 +48,7 @@ exports[`Image Image base demo works fine 1`] = ` @@ -68,7 +68,7 @@ exports[`Image Image base demo works fine 1`] = ` ariaLabel="一个放置在墙角的黄色行李箱" height="72" mode="aspectFill" - src="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg" + src="https://tdesign.gtimg.com/miniprogram/images/image1.jpeg" width="72" /> @@ -84,7 +84,7 @@ exports[`Image Image base demo works fine 1`] = ` ariaLabel="一个放置在墙角的黄色行李箱" height="72" shape="round" - src="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg" + src="https://tdesign.gtimg.com/miniprogram/images/image1.jpeg" width="72" /> @@ -100,7 +100,7 @@ exports[`Image Image base demo works fine 1`] = ` ariaLabel="一个放置在墙角的黄色行李箱" height="72" shape="circle" - src="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg" + src="https://tdesign.gtimg.com/miniprogram/images/image1.jpeg" width="72" /> @@ -113,7 +113,7 @@ exports[`Image Image size demo works fine 1`] = ` diff --git a/src/image/_example/base/index.js b/src/image/_example/base/index.js index 8355d29cf..16597daeb 100644 --- a/src/image/_example/base/index.js +++ b/src/image/_example/base/index.js @@ -1,6 +1,5 @@ Component({ data: { - imageSrc: - 'https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg', + imageSrc: 'https://tdesign.gtimg.com/miniprogram/images/image1.jpeg', }, }); diff --git a/src/image/_example/size/index.js b/src/image/_example/size/index.js index 9c98c6ced..2411ca3d9 100644 --- a/src/image/_example/size/index.js +++ b/src/image/_example/size/index.js @@ -7,7 +7,6 @@ Component({ }, data: { - imageSrc: - 'https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/image/image-2.jpg', + imageSrc: 'https://tdesign.gtimg.com/miniprogram/images/image1.jpeg', }, }); diff --git a/src/image/_example/status/index.json b/src/image/_example/status/index.json index 4f4285cba..ed33d9751 100644 --- a/src/image/_example/status/index.json +++ b/src/image/_example/status/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "t-image": "tdesign-miniprogram/image/image" + "t-image": "tdesign-miniprogram/image/image", + "t-loading": "tdesign-miniprogram/loading/loading" } } diff --git a/src/indexes/_example/indexes.json b/src/indexes/_example/indexes.json index f7f445445..4026106fd 100644 --- a/src/indexes/_example/indexes.json +++ b/src/indexes/_example/indexes.json @@ -1,5 +1,7 @@ { "navigationBarTitleText": "Indexes", "navigationBarBackgroundColor": "#fff", - "usingComponents": {} + "usingComponents": { + "t-button": "tdesign-miniprogram/button/button" + } } diff --git a/src/link/_example/link.json b/src/link/_example/link.json index 373f2de36..e8cbfd9fa 100644 --- a/src/link/_example/link.json +++ b/src/link/_example/link.json @@ -1,6 +1,5 @@ { "navigationBarTitleText": "Link", - "navigationBarBackgroundColor": "#fff", "usingComponents": { "content": "./content", "underline": "./underline", diff --git a/src/navbar/__test__/__snapshots__/demo.test.js.snap b/src/navbar/__test__/__snapshots__/demo.test.js.snap index 01c7a1977..331e9f663 100644 --- a/src/navbar/__test__/__snapshots__/demo.test.js.snap +++ b/src/navbar/__test__/__snapshots__/demo.test.js.snap @@ -63,7 +63,7 @@ exports[`Navbar Navbar img demo works fine 1`] = ` > diff --git a/src/navbar/_example/back-home/index.json b/src/navbar/_example/back-home/index.json index 857cc209a..7566be0d5 100644 --- a/src/navbar/_example/back-home/index.json +++ b/src/navbar/_example/back-home/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "t-navbar": "tdesign-miniprogram/navbar/navbar" + "t-navbar": "tdesign-miniprogram/navbar/navbar", + "t-icon": "tdesign-miniprogram/icon/icon" } } diff --git a/src/navbar/_example/img/index.js b/src/navbar/_example/img/index.js index 7005ca40f..2a723310f 100644 --- a/src/navbar/_example/img/index.js +++ b/src/navbar/_example/img/index.js @@ -1,5 +1,5 @@ Component({ data: { - image: 'https://tdesign.gtimg.com/miniprogram/images/navbar-logo.png', + image: 'https://tdesign.gtimg.com/miniprogram/images/logo1.png', }, }); diff --git a/src/navbar/_example/img/index.json b/src/navbar/_example/img/index.json index 857cc209a..610da8c79 100644 --- a/src/navbar/_example/img/index.json +++ b/src/navbar/_example/img/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "t-navbar": "tdesign-miniprogram/navbar/navbar" + "t-navbar": "tdesign-miniprogram/navbar/navbar", + "t-image": "tdesign-miniprogram/image/image" } } diff --git a/src/notice-bar/_example/customization/index.json b/src/notice-bar/_example/customization/index.json index 11b8f9ccb..7d3314c51 100644 --- a/src/notice-bar/_example/customization/index.json +++ b/src/notice-bar/_example/customization/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar" + "t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar", + "t-icon": "tdesign-miniprogram/icon/icon" } } diff --git a/src/notice-bar/_example/iconDemo/index.json b/src/notice-bar/_example/iconDemo/index.json index 11b8f9ccb..7d3314c51 100644 --- a/src/notice-bar/_example/iconDemo/index.json +++ b/src/notice-bar/_example/iconDemo/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar" + "t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar", + "t-icon": "tdesign-miniprogram/icon/icon" } } diff --git a/src/progress/_example/transition/index.json b/src/progress/_example/transition/index.json index f830356a4..bf52a9d76 100644 --- a/src/progress/_example/transition/index.json +++ b/src/progress/_example/transition/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "t-progress": "tdesign-miniprogram/progress/progress" + "t-progress": "tdesign-miniprogram/progress/progress", + "t-button": "tdesign-miniprogram/button/button" } } diff --git a/src/pull-down-refresh/_example/base/index.json b/src/pull-down-refresh/_example/base/index.json index f6ae37999..7a0281ac1 100644 --- a/src/pull-down-refresh/_example/base/index.json +++ b/src/pull-down-refresh/_example/base/index.json @@ -1,8 +1,8 @@ { "component": true, "usingComponents": { + "t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh", "t-skeleton": "tdesign-miniprogram/skeleton/skeleton", - "t-back-top": "tdesign-miniprogram/back-top/back-top", - "t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh" + "t-back-top": "tdesign-miniprogram/back-top/back-top" } } diff --git a/src/radio/_example/align/index.json b/src/radio/_example/align/index.json index 588bb6d65..b9cde8de9 100644 --- a/src/radio/_example/align/index.json +++ b/src/radio/_example/align/index.json @@ -1,7 +1,6 @@ { "component": true, "usingComponents": { - "t-radio": "tdesign-miniprogram/radio/radio", - "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" + "t-radio": "tdesign-miniprogram/radio/radio" } } diff --git a/src/radio/_example/base/index.json b/src/radio/_example/base/index.json index 588bb6d65..e9c7cb322 100644 --- a/src/radio/_example/base/index.json +++ b/src/radio/_example/base/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-radio": "tdesign-miniprogram/radio/radio", - "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" + "t-radio-group": "tdesign-miniprogram/radio-group/radio-group", + "t-radio": "tdesign-miniprogram/radio/radio" } } diff --git a/src/radio/_example/card/index.json b/src/radio/_example/card/index.json index 588bb6d65..e9c7cb322 100644 --- a/src/radio/_example/card/index.json +++ b/src/radio/_example/card/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-radio": "tdesign-miniprogram/radio/radio", - "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" + "t-radio-group": "tdesign-miniprogram/radio-group/radio-group", + "t-radio": "tdesign-miniprogram/radio/radio" } } diff --git a/src/radio/_example/horizontal/index.json b/src/radio/_example/horizontal/index.json index 588bb6d65..e9c7cb322 100644 --- a/src/radio/_example/horizontal/index.json +++ b/src/radio/_example/horizontal/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-radio": "tdesign-miniprogram/radio/radio", - "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" + "t-radio-group": "tdesign-miniprogram/radio-group/radio-group", + "t-radio": "tdesign-miniprogram/radio/radio" } } diff --git a/src/radio/_example/special/index.json b/src/radio/_example/special/index.json index 588bb6d65..e9c7cb322 100644 --- a/src/radio/_example/special/index.json +++ b/src/radio/_example/special/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-radio": "tdesign-miniprogram/radio/radio", - "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" + "t-radio-group": "tdesign-miniprogram/radio-group/radio-group", + "t-radio": "tdesign-miniprogram/radio/radio" } } diff --git a/src/radio/_example/status/index.json b/src/radio/_example/status/index.json index 588bb6d65..e9c7cb322 100644 --- a/src/radio/_example/status/index.json +++ b/src/radio/_example/status/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-radio": "tdesign-miniprogram/radio/radio", - "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" + "t-radio-group": "tdesign-miniprogram/radio-group/radio-group", + "t-radio": "tdesign-miniprogram/radio/radio" } } diff --git a/src/search/__test__/__snapshots__/demo.test.js.snap b/src/search/__test__/__snapshots__/demo.test.js.snap index f917ab24c..490128a24 100644 --- a/src/search/__test__/__snapshots__/demo.test.js.snap +++ b/src/search/__test__/__snapshots__/demo.test.js.snap @@ -2,33 +2,32 @@ exports[`Search Search base demo works fine 1`] = ` - + + + `; exports[`Search Search status demo works fine 1`] = ` - - - 默认状态其他对齐方式 + + + - `; diff --git a/src/search/_example/base/index.wxml b/src/search/_example/base/index.wxml index 8bc556cc9..5ec180077 100644 --- a/src/search/_example/base/index.wxml +++ b/src/search/_example/base/index.wxml @@ -1 +1,3 @@ - + + + diff --git a/src/search/_example/base/index.wxss b/src/search/_example/base/index.wxss index e69de29bb..a5f17d78a 100644 --- a/src/search/_example/base/index.wxss +++ b/src/search/_example/base/index.wxss @@ -0,0 +1,4 @@ +.example-search { + background-color: #fff; + padding: 16rpx 32rpx; +} diff --git a/src/search/_example/other/index.js b/src/search/_example/other/index.js new file mode 100644 index 000000000..d6ebd8e2d --- /dev/null +++ b/src/search/_example/other/index.js @@ -0,0 +1,5 @@ +Component({ + data: { + value: '', + }, +}); diff --git a/src/search/_example/other/index.json b/src/search/_example/other/index.json new file mode 100644 index 000000000..3d604b8e9 --- /dev/null +++ b/src/search/_example/other/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "t-search": "tdesign-miniprogram/search/search" + } +} diff --git a/src/search/_example/other/index.wxml b/src/search/_example/other/index.wxml new file mode 100644 index 000000000..43326709c --- /dev/null +++ b/src/search/_example/other/index.wxml @@ -0,0 +1,3 @@ + + + diff --git a/src/search/_example/other/index.wxss b/src/search/_example/other/index.wxss new file mode 100644 index 000000000..a5f17d78a --- /dev/null +++ b/src/search/_example/other/index.wxss @@ -0,0 +1,4 @@ +.example-search { + background-color: #fff; + padding: 16rpx 32rpx; +} diff --git a/src/search/_example/search.json b/src/search/_example/search.json index 78cd7b76f..0656690fe 100644 --- a/src/search/_example/search.json +++ b/src/search/_example/search.json @@ -2,6 +2,7 @@ "navigationBarTitleText": "Search", "usingComponents": { "base": "./base", - "status": "./status" + "status": "./status", + "other": "./other" } } diff --git a/src/search/_example/search.less b/src/search/_example/search.less index 0937dc9b7..e69de29bb 100644 --- a/src/search/_example/search.less +++ b/src/search/_example/search.less @@ -1,5 +0,0 @@ -page { - .t-search { - padding: 16rpx 32rpx; - } -} diff --git a/src/search/_example/search.wxml b/src/search/_example/search.wxml index a1b35b9f6..b44730d23 100644 --- a/src/search/_example/search.wxml +++ b/src/search/_example/search.wxml @@ -2,13 +2,12 @@ Search 搜索框 用于用户输入搜索信息,并进行页面内容搜索。 - - - + - - - + + + + diff --git a/src/search/_example/status/index.wxml b/src/search/_example/status/index.wxml index 777db399a..9f7723348 100644 --- a/src/search/_example/status/index.wxml +++ b/src/search/_example/status/index.wxml @@ -1,7 +1,5 @@ - - - - -默认状态其他对齐方式 - - + + + + + diff --git a/src/search/_example/status/index.wxss b/src/search/_example/status/index.wxss index 1186222be..d3cb1d22a 100644 --- a/src/search/_example/status/index.wxss +++ b/src/search/_example/status/index.wxss @@ -1,12 +1,8 @@ -t-search { - background: #fff; - display: block; +.example-search { + background-color: #fff; + padding: 16rpx 32rpx; } -t-search + t-search { - margin-top: 32rpx; +.example-search .space { + height: 32rpx; } - -.demo-desc { - margin: 48rpx 32rpx 32rpx; -} \ No newline at end of file diff --git a/src/side-bar/__test__/__snapshots__/demo.test.js.snap b/src/side-bar/__test__/__snapshots__/demo.test.js.snap index f0500f848..d1404a5df 100644 --- a/src/side-bar/__test__/__snapshots__/demo.test.js.snap +++ b/src/side-bar/__test__/__snapshots__/demo.test.js.snap @@ -6,7 +6,7 @@ exports[`SideBar SideBar base demo works fine 1`] = ` class="side-bar-wrapper" > @@ -1073,14 +1073,14 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` /> @@ -1112,7 +1112,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1123,7 +1123,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1134,7 +1134,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1145,7 +1145,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1156,7 +1156,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1167,7 +1167,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1178,7 +1178,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1189,7 +1189,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1200,7 +1200,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1211,7 +1211,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1222,7 +1222,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1247,7 +1247,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1258,7 +1258,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1269,7 +1269,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1280,7 +1280,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1291,7 +1291,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1302,7 +1302,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1313,7 +1313,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1324,7 +1324,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1335,7 +1335,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1346,25 +1346,12 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> - - - 标题 - - - @@ -1395,7 +1382,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1406,7 +1393,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1417,7 +1404,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1428,7 +1415,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1439,29 +1426,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" - tClass="image" - /> - - - - - - @@ -1486,7 +1451,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1497,7 +1462,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1508,7 +1473,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1519,7 +1484,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1530,7 +1495,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" tClass="image" /> @@ -1541,12 +1506,47 @@ exports[`SideBar SideBar switch demo works fine 1`] = ` lazy="{{true}}" shape="round" slot="image" - src="https://tdesign.gtimg.com/miniprogram/images/desktop.png" + src="https://tdesign.gtimg.com/miniprogram/images/example2.png" + tClass="image" + /> + + + + + + + + + 标题 + + + diff --git a/src/side-bar/_example/base/index.js b/src/side-bar/_example/base/index.js index d028559a3..d76a03de2 100644 --- a/src/side-bar/_example/base/index.js +++ b/src/side-bar/_example/base/index.js @@ -1,10 +1,10 @@ -const image = 'https://tdesign.gtimg.com/miniprogram/images/miniprogram.png'; +const image = 'https://tdesign.gtimg.com/miniprogram/images/example2.png'; const items = new Array(12).fill({ label: '标题文字', image }, 0, 12); Page({ offsetTopList: [], data: { - sideBarIndex: 0, + sideBarIndex: 1, scrollTop: 0, categories: [ { diff --git a/src/side-bar/_example/custom/index.js b/src/side-bar/_example/custom/index.js index ec8911997..2acb0a6dc 100644 --- a/src/side-bar/_example/custom/index.js +++ b/src/side-bar/_example/custom/index.js @@ -1,10 +1,10 @@ -const image = 'https://tdesign.gtimg.com/miniprogram/images/mobile.png'; +const image = 'https://tdesign.gtimg.com/miniprogram/images/example1.png'; const items = new Array(12).fill({ label: '标题文字', image }, 0, 12); Page({ offsetTopList: [], data: { - sideBarIndex: 0, + sideBarIndex: 1, scrollTop: 0, categories: [ { diff --git a/src/side-bar/_example/side-bar.json b/src/side-bar/_example/side-bar.json index 98c391184..b55246914 100644 --- a/src/side-bar/_example/side-bar.json +++ b/src/side-bar/_example/side-bar.json @@ -1,4 +1,5 @@ { "navigationBarTitleText": "SideBar", + "navigationBarBackgroundColor": "#fff", "usingComponents": {} } diff --git a/src/side-bar/_example/switch/index.js b/src/side-bar/_example/switch/index.js index 736e6846e..a2216d130 100644 --- a/src/side-bar/_example/switch/index.js +++ b/src/side-bar/_example/switch/index.js @@ -1,10 +1,10 @@ -const image = 'https://tdesign.gtimg.com/miniprogram/images/desktop.png'; +const image = 'https://tdesign.gtimg.com/miniprogram/images/example2.png'; const items = new Array(12).fill({ label: '标题文字', image }, 0, 12); Page({ offsetTopList: [], data: { - sideBarIndex: 0, + sideBarIndex: 1, scrollTop: 0, categories: [ { @@ -23,8 +23,7 @@ Page({ { label: '选项', title: '标题', - disabled: true, - items: [], + items: items.slice(0, 6), }, { label: '选项', @@ -37,7 +36,8 @@ Page({ { label: '选项', title: '标题', - items: items.slice(0, 6), + disabled: true, + items: [], }, ], }, diff --git a/src/side-bar/_example/switch/index.json b/src/side-bar/_example/switch/index.json index 1345dcb6d..ee7a25f8d 100644 --- a/src/side-bar/_example/switch/index.json +++ b/src/side-bar/_example/switch/index.json @@ -3,7 +3,8 @@ "usingComponents": { "t-side-bar": "tdesign-miniprogram/side-bar/side-bar", "t-side-bar-item": "tdesign-miniprogram/side-bar-item/side-bar-item", + "t-cell-group": "tdesign-miniprogram/cell-group/cell-group", "t-cell": "tdesign-miniprogram/cell/cell", - "t-cell-group": "tdesign-miniprogram/cell-group/cell-group" + "t-image": "tdesign-miniprogram/image/image" } } diff --git a/src/side-bar/_example/switch/index.wxss b/src/side-bar/_example/switch/index.wxss index eb2c9f48c..045c02bb8 100644 --- a/src/side-bar/_example/switch/index.wxss +++ b/src/side-bar/_example/switch/index.wxss @@ -14,7 +14,7 @@ page .round-image { .side-bar-wrapper .content { flex: 1; - transition: transform .3s ease; + transition: transform 0.3s ease; } .side-bar-wrapper .section { @@ -31,4 +31,5 @@ page .round-image { .side-bar-wrapper .image { width: 96rpx; height: 96rpx; + border: 2rpx solid #e7e7e7; } diff --git a/src/steps/__test__/__snapshots__/demo.test.js.snap b/src/steps/__test__/__snapshots__/demo.test.js.snap index c6a46d5eb..53c0744ff 100644 --- a/src/steps/__test__/__snapshots__/demo.test.js.snap +++ b/src/steps/__test__/__snapshots__/demo.test.js.snap @@ -415,7 +415,7 @@ exports[`Steps Steps vertical demo works fine 1`] = ` diff --git a/src/steps/_example/special/index.json b/src/steps/_example/special/index.json index 332e4f48c..866db68f0 100644 --- a/src/steps/_example/special/index.json +++ b/src/steps/_example/special/index.json @@ -2,6 +2,7 @@ "component": true, "usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", - "t-step-item": "tdesign-miniprogram/step-item/step-item" + "t-step-item": "tdesign-miniprogram/step-item/step-item", + "t-icon": "tdesign-miniprogram/icon/icon" } } diff --git a/src/steps/_example/vertical/index.wxml b/src/steps/_example/vertical/index.wxml index a89ee7861..580b7f781 100644 --- a/src/steps/_example/vertical/index.wxml +++ b/src/steps/_example/vertical/index.wxml @@ -40,7 +40,7 @@ 图标 @@ -144,7 +144,7 @@ exports[`SwipeCell SwipeCell left demo works fine 1`] = ` diff --git a/src/swipe-cell/_example/double/index.json b/src/swipe-cell/_example/double/index.json index e3c826764..b2f791526 100644 --- a/src/swipe-cell/_example/double/index.json +++ b/src/swipe-cell/_example/double/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-cell": "tdesign-miniprogram/cell/cell", - "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell", + "t-cell": "tdesign-miniprogram/cell/cell" } } diff --git a/src/swipe-cell/_example/icon/index.json b/src/swipe-cell/_example/icon/index.json index e3c826764..fe1c707e1 100644 --- a/src/swipe-cell/_example/icon/index.json +++ b/src/swipe-cell/_example/icon/index.json @@ -1,7 +1,8 @@ { "component": true, "usingComponents": { + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell", "t-cell": "tdesign-miniprogram/cell/cell", - "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" + "t-icon": "tdesign-miniprogram/icon/icon" } } diff --git a/src/swipe-cell/_example/icon/index.wxml b/src/swipe-cell/_example/icon/index.wxml index 57f96b5dc..ab639735b 100644 --- a/src/swipe-cell/_example/icon/index.wxml +++ b/src/swipe-cell/_example/icon/index.wxml @@ -12,7 +12,7 @@ title="左滑大列表-仅带图标双操作" description="一段很长很长的内容文字" note="辅助信息" - image="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/placeholder/quartet.svg" + image="https://tdesign.gtimg.com/miniprogram/images/default.svg" /> diff --git a/src/swipe-cell/_example/left/index.json b/src/swipe-cell/_example/left/index.json index e3c826764..b2f791526 100644 --- a/src/swipe-cell/_example/left/index.json +++ b/src/swipe-cell/_example/left/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-cell": "tdesign-miniprogram/cell/cell", - "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell", + "t-cell": "tdesign-miniprogram/cell/cell" } } diff --git a/src/swipe-cell/_example/left/index.wxml b/src/swipe-cell/_example/left/index.wxml index 9a658606e..2d266613e 100644 --- a/src/swipe-cell/_example/left/index.wxml +++ b/src/swipe-cell/_example/left/index.wxml @@ -9,7 +9,7 @@ title="左滑大列表" description="一段很长很长的内容文字" note="辅助信息" - image="https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/placeholder/quartet.svg" + image="https://tdesign.gtimg.com/miniprogram/images/default.svg" /> 删除 diff --git a/src/swipe-cell/_example/right/index.json b/src/swipe-cell/_example/right/index.json index e3c826764..b2f791526 100644 --- a/src/swipe-cell/_example/right/index.json +++ b/src/swipe-cell/_example/right/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-cell": "tdesign-miniprogram/cell/cell", - "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell", + "t-cell": "tdesign-miniprogram/cell/cell" } } diff --git a/src/swiper/__test__/__snapshots__/demo.test.js.snap b/src/swiper/__test__/__snapshots__/demo.test.js.snap index 99a0a47c2..40ebdb7df 100644 --- a/src/swiper/__test__/__snapshots__/demo.test.js.snap +++ b/src/swiper/__test__/__snapshots__/demo.test.js.snap @@ -9,11 +9,11 @@ exports[`Swiper Swiper base demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" navigation="{{ @@ -44,11 +44,11 @@ exports[`Swiper Swiper cards demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" navigation="{{ @@ -78,11 +78,11 @@ exports[`Swiper Swiper cards demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" navigation="{{ @@ -110,11 +110,11 @@ exports[`Swiper Swiper custom demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" navigation="{{ @@ -135,11 +135,11 @@ exports[`Swiper Swiper fraction demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" navigation="{{ @@ -161,11 +161,11 @@ exports[`Swiper Swiper nav-btn demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" loop="{{false}}" @@ -192,11 +192,11 @@ exports[`Swiper Swiper vertical demo works fine 1`] = ` interval="{{5000}}" list="{{ Array [ - "https://tdesign.gtimg.com/site/swiper/01.png", - "https://tdesign.gtimg.com/site/swiper/02.png", - "https://tdesign.gtimg.com/site/swiper/03.png", - "https://tdesign.gtimg.com/site/swiper/04.png", - "https://tdesign.gtimg.com/site/swiper/05.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper1.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper2.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper3.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper4.png", + "https://tdesign.gtimg.com/miniprogram/images//swiper5.png", ] }}" navigation="{{ diff --git a/src/swiper/__test__/__snapshots__/index.test.js.snap b/src/swiper/__test__/__snapshots__/index.test.js.snap index 2e2baab26..4032b2326 100644 --- a/src/swiper/__test__/__snapshots__/index.test.js.snap +++ b/src/swiper/__test__/__snapshots__/index.test.js.snap @@ -88,7 +88,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/01.png" + src="https://tdesign.gtimg.com/miniprogram/images//swiper1.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" @@ -158,7 +158,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/02.png" + src="https://tdesign.gtimg.com/miniprogram/images//swiper2.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" @@ -228,7 +228,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/03.png" + src="https://tdesign.gtimg.com/miniprogram/images//swiper3.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" @@ -298,7 +298,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/04.png" + src="https://tdesign.gtimg.com/miniprogram/images//swiper4.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" @@ -368,7 +368,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/05.png" + src="https://tdesign.gtimg.com/miniprogram/images//swiper5.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" @@ -476,7 +476,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/01.png" + src="https://tdesign.gtimg.com/miniprogram/images//01.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" @@ -546,7 +546,7 @@ exports[`swiper snapshot 1`] = ` lazyLoad="{{false}}" mode="scaleToFill" showMenuByLongpress="{{false}}" - src="https://tdesign.gtimg.com/site/swiper/02.png" + src="https://tdesign.gtimg.com/miniprogram/images//02.png" style="height: 192px" webp="{{false}}" bind:error="onLoadError" diff --git a/src/swiper/__test__/base/index.js b/src/swiper/__test__/base/index.js index 51d1b9266..cdfc9f289 100644 --- a/src/swiper/__test__/base/index.js +++ b/src/swiper/__test__/base/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; const swiperList2 = [`${imageCdn}/01.png`, `${imageCdn}/02.png`]; diff --git a/src/swiper/_example/base/index.js b/src/swiper/_example/base/index.js index 6d1f164fa..3961c5af6 100644 --- a/src/swiper/_example/base/index.js +++ b/src/swiper/_example/base/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; Component({ diff --git a/src/swiper/_example/cards/index.js b/src/swiper/_example/cards/index.js index d099d6fc5..74c3f4da2 100644 --- a/src/swiper/_example/cards/index.js +++ b/src/swiper/_example/cards/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; Component({ diff --git a/src/swiper/_example/custom/index.js b/src/swiper/_example/custom/index.js index e83797c63..43561e23e 100644 --- a/src/swiper/_example/custom/index.js +++ b/src/swiper/_example/custom/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; Component({ diff --git a/src/swiper/_example/fraction/index.js b/src/swiper/_example/fraction/index.js index f10ed4d07..776150dc4 100644 --- a/src/swiper/_example/fraction/index.js +++ b/src/swiper/_example/fraction/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; Component({ diff --git a/src/swiper/_example/nav-btn/index.js b/src/swiper/_example/nav-btn/index.js index f98aba7e7..200fd0175 100644 --- a/src/swiper/_example/nav-btn/index.js +++ b/src/swiper/_example/nav-btn/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; Component({ diff --git a/src/swiper/_example/swiper.less b/src/swiper/_example/swiper.less index 1d2050017..e81280cfe 100644 --- a/src/swiper/_example/swiper.less +++ b/src/swiper/_example/swiper.less @@ -1,16 +1,3 @@ page { background: #fff; } - -.swiper-demo { - .swiper-box { - margin: 0 32rpx 48rpx; - } - .swiper-desc { - margin-bottom: 32rpx; - font-weight: 400; - font-size: 28rpx; - line-height: 44rpx; - color: rgba(0, 0, 0, 0.6); - } -} diff --git a/src/swiper/_example/swiper.wxml b/src/swiper/_example/swiper.wxml index 8b5f2bb58..df274944f 100644 --- a/src/swiper/_example/swiper.wxml +++ b/src/swiper/_example/swiper.wxml @@ -2,32 +2,29 @@ Swiper 轮播图 用于循环轮播一组图片或内容,也可以滑动进行切换,轮播动效时间可以设置。 - - - 点状(dots) + - + - - 点条状(dots-bar) + - + - - 分式(fraction) + - + - - 切换按钮(controls) + - + - 卡片式(cards) - + + + - - + + + diff --git a/src/swiper/_example/vertical/index.js b/src/swiper/_example/vertical/index.js index cc8f14f21..b3715069e 100644 --- a/src/swiper/_example/vertical/index.js +++ b/src/swiper/_example/vertical/index.js @@ -1,10 +1,10 @@ -const imageCdn = 'https://tdesign.gtimg.com/site/swiper'; +const imageCdn = 'https://tdesign.gtimg.com/miniprogram/images/'; const swiperList = [ - `${imageCdn}/01.png`, - `${imageCdn}/02.png`, - `${imageCdn}/03.png`, - `${imageCdn}/04.png`, - `${imageCdn}/05.png`, + `${imageCdn}/swiper1.png`, + `${imageCdn}/swiper2.png`, + `${imageCdn}/swiper3.png`, + `${imageCdn}/swiper4.png`, + `${imageCdn}/swiper5.png`, ]; Component({ diff --git a/src/switch/_example/base/index.json b/src/switch/_example/base/index.json index 8d64eb5ad..86e689252 100644 --- a/src/switch/_example/base/index.json +++ b/src/switch/_example/base/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-switch": "tdesign-miniprogram/switch/switch", - "t-cell": "tdesign-miniprogram/cell/cell" + "t-cell": "tdesign-miniprogram/cell/cell", + "t-switch": "tdesign-miniprogram/switch/switch" } } diff --git a/src/switch/_example/color/index.json b/src/switch/_example/color/index.json index 8d64eb5ad..86e689252 100644 --- a/src/switch/_example/color/index.json +++ b/src/switch/_example/color/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-switch": "tdesign-miniprogram/switch/switch", - "t-cell": "tdesign-miniprogram/cell/cell" + "t-cell": "tdesign-miniprogram/cell/cell", + "t-switch": "tdesign-miniprogram/switch/switch" } } diff --git a/src/switch/_example/label/index.json b/src/switch/_example/label/index.json index 8d64eb5ad..86e689252 100644 --- a/src/switch/_example/label/index.json +++ b/src/switch/_example/label/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-switch": "tdesign-miniprogram/switch/switch", - "t-cell": "tdesign-miniprogram/cell/cell" + "t-cell": "tdesign-miniprogram/cell/cell", + "t-switch": "tdesign-miniprogram/switch/switch" } } diff --git a/src/switch/_example/size/index.json b/src/switch/_example/size/index.json index 8d64eb5ad..86e689252 100644 --- a/src/switch/_example/size/index.json +++ b/src/switch/_example/size/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-switch": "tdesign-miniprogram/switch/switch", - "t-cell": "tdesign-miniprogram/cell/cell" + "t-cell": "tdesign-miniprogram/cell/cell", + "t-switch": "tdesign-miniprogram/switch/switch" } } diff --git a/src/switch/_example/status/index.json b/src/switch/_example/status/index.json index 8d64eb5ad..86e689252 100644 --- a/src/switch/_example/status/index.json +++ b/src/switch/_example/status/index.json @@ -1,7 +1,7 @@ { "component": true, "usingComponents": { - "t-switch": "tdesign-miniprogram/switch/switch", - "t-cell": "tdesign-miniprogram/cell/cell" + "t-cell": "tdesign-miniprogram/cell/cell", + "t-switch": "tdesign-miniprogram/switch/switch" } } diff --git a/src/tag/_example/checkable/index.json b/src/tag/_example/checkable/index.json index c12aec387..6d2d9be16 100644 --- a/src/tag/_example/checkable/index.json +++ b/src/tag/_example/checkable/index.json @@ -1,7 +1,6 @@ { "component": true, "usingComponents": { - "t-tag": "tdesign-miniprogram/tag/tag", "t-check-tag": "tdesign-miniprogram/check-tag/check-tag" } } diff --git a/src/tag/_example/size/index.json b/src/tag/_example/size/index.json index c12aec387..32d56d9bc 100644 --- a/src/tag/_example/size/index.json +++ b/src/tag/_example/size/index.json @@ -1,7 +1,6 @@ { "component": true, "usingComponents": { - "t-tag": "tdesign-miniprogram/tag/tag", - "t-check-tag": "tdesign-miniprogram/check-tag/check-tag" + "t-tag": "tdesign-miniprogram/tag/tag" } } diff --git a/src/tag/_example/tag.json b/src/tag/_example/tag.json index ebba19e73..f67425adb 100644 --- a/src/tag/_example/tag.json +++ b/src/tag/_example/tag.json @@ -1,5 +1,6 @@ { "navigationBarTitleText": "Tag", + "navigationBarBackgroundColor": "#fff", "usingComponents": { "theme": "./theme", "size": "./size", diff --git a/src/transition/__test__/__snapshots__/demo.test.js.snap b/src/transition/__test__/__snapshots__/demo.test.js.snap index 587af9de5..20b83ea4f 100644 --- a/src/transition/__test__/__snapshots__/demo.test.js.snap +++ b/src/transition/__test__/__snapshots__/demo.test.js.snap @@ -3,7 +3,10 @@ exports[`Transition Transition appear demo works fine 1`] = ` Toggle attach @@ -14,7 +17,10 @@ exports[`Transition Transition appear demo works fine 1`] = ` exports[`Transition Transition base demo works fine 1`] = ` Toggle @@ -32,7 +38,10 @@ exports[`Transition Transition base demo works fine 1`] = ` exports[`Transition Transition custom demo works fine 1`] = ` Toggle @@ -51,10 +60,13 @@ exports[`Transition Transition custom demo works fine 1`] = ` exports[`Transition Transition destroy demo works fine 1`] = ` - Toggle + Toggle attach Toggle attach +Toggle attach + diff --git a/src/transition/_example/base/index.json b/src/transition/_example/base/index.json index 467ce2945..146fc02a1 100644 --- a/src/transition/_example/base/index.json +++ b/src/transition/_example/base/index.json @@ -1,3 +1,7 @@ { - "component": true + "component": true, + "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", + "t-transition": "tdesign-miniprogram/transition/transition" + } } diff --git a/src/transition/_example/base/index.wxml b/src/transition/_example/base/index.wxml index 6774e25ff..46983b0cb 100644 --- a/src/transition/_example/base/index.wxml +++ b/src/transition/_example/base/index.wxml @@ -1,4 +1,5 @@ -Toggle +Toggle + diff --git a/src/transition/_example/custom/index.json b/src/transition/_example/custom/index.json index 467ce2945..146fc02a1 100644 --- a/src/transition/_example/custom/index.json +++ b/src/transition/_example/custom/index.json @@ -1,3 +1,7 @@ { - "component": true + "component": true, + "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", + "t-transition": "tdesign-miniprogram/transition/transition" + } } diff --git a/src/transition/_example/custom/index.wxml b/src/transition/_example/custom/index.wxml index 8c3394ff0..b9ac8e67d 100644 --- a/src/transition/_example/custom/index.wxml +++ b/src/transition/_example/custom/index.wxml @@ -1,4 +1,5 @@ -Toggle +Toggle + diff --git a/src/transition/_example/destroy/index.json b/src/transition/_example/destroy/index.json index 467ce2945..146fc02a1 100644 --- a/src/transition/_example/destroy/index.json +++ b/src/transition/_example/destroy/index.json @@ -1,3 +1,7 @@ { - "component": true + "component": true, + "usingComponents": { + "t-button": "tdesign-miniprogram/button/button", + "t-transition": "tdesign-miniprogram/transition/transition" + } } diff --git a/src/transition/_example/destroy/index.wxml b/src/transition/_example/destroy/index.wxml index c605a6abf..2922fbb6a 100644 --- a/src/transition/_example/destroy/index.wxml +++ b/src/transition/_example/destroy/index.wxml @@ -1,4 +1,5 @@ -Toggle +Toggle attach + diff --git a/src/transition/_example/transition.json b/src/transition/_example/transition.json index fdcc7de6e..b4c20059c 100644 --- a/src/transition/_example/transition.json +++ b/src/transition/_example/transition.json @@ -1,9 +1,9 @@ { "navigationBarTitleText": "Transition 过渡", "usingComponents": { - "base-demo": "./base", - "custom-demo": "./custom", - "destroy-demo": "./destroy", - "appear-demo": "./appear" + "base": "./base", + "custom": "./custom", + "destroy": "./destroy", + "appear": "./appear" } } diff --git a/src/transition/_example/transition.less b/src/transition/_example/transition.less index f8ddfc4e9..198abf8bf 100644 --- a/src/transition/_example/transition.less +++ b/src/transition/_example/transition.less @@ -1,16 +1,8 @@ -.tdesign-demo-transition { - padding: 16px; - - .demo-title { - margin-bottom: 10px; - } - - .block { - margin-top: 10px; - width: 100px; - height: 100px; - background: #0052d9; - } +.block { + margin-top: 10px; + width: 100px; + height: 100px; + background: #0052d9; } .translate-enter { diff --git a/src/transition/_example/transition.wxml b/src/transition/_example/transition.wxml index 905e37181..587539d06 100644 --- a/src/transition/_example/transition.wxml +++ b/src/transition/_example/transition.wxml @@ -1,27 +1,16 @@ - - 基础示例 - - - - - - - 自定义动画 - - - - - - - 首次出现动画 appear - - - - - - - 隐藏不渲染 - - - + + Transition 过渡 + 过渡。 + + + + + + + + + + + + diff --git a/src/tree-select/_example/tree-select.json b/src/tree-select/_example/tree-select.json index 5004bb5f0..e38141dd4 100644 --- a/src/tree-select/_example/tree-select.json +++ b/src/tree-select/_example/tree-select.json @@ -1,6 +1,5 @@ { "navigationBarTitleText": "TreeSelect", - "navigationBarBackgroundColor": "#fff", "usingComponents": { "base": "./base", "normal": "./normal", diff --git a/src/upload/__test__/__snapshots__/demo.test.js.snap b/src/upload/__test__/__snapshots__/demo.test.js.snap index 176d48161..50068de49 100644 --- a/src/upload/__test__/__snapshots__/demo.test.js.snap +++ b/src/upload/__test__/__snapshots__/demo.test.js.snap @@ -16,7 +16,7 @@ exports[`Upload Upload messageFile demo works fine 1`] = ` Object { "name": "uploaded1.png", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload1.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example4.png", }, ] }}" @@ -52,17 +52,17 @@ exports[`Upload Upload multiple demo works fine 1`] = ` Object { "name": "uploaded1.png", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload1.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example4.png", }, Object { "name": "uploaded2.png", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload3.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example6.png", }, Object { "name": "uploaded1.png", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload4.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example5.png", }, ] }}" @@ -120,26 +120,26 @@ exports[`Upload Upload status demo works fine 1`] = ` "name": "uploaded1.png", "status": "loading", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload1.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example4.png", }, Object { "name": "uploaded2.png", "percent": 68, "status": "loading", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload2.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example7.png", }, Object { "name": "uploaded3.png", "status": "reload", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload3.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example6.png", }, Object { "name": "uploaded4.png", "status": "failed", "type": "image", - "url": "https://tdesign.gtimg.com/miniprogram/images/upload4.png", + "url": "https://tdesign.gtimg.com/miniprogram/images/example5.png", }, ] }}" diff --git a/src/upload/__test__/index.test.js b/src/upload/__test__/index.test.js index f9ae766a7..92c08ebf9 100644 --- a/src/upload/__test__/index.test.js +++ b/src/upload/__test__/index.test.js @@ -30,7 +30,7 @@ const mockFn = jest { fileType: 'image', size: 219906, - tempFilePath: 'https://tdesign.gtimg.com/site/upload1.png', + tempFilePath: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', }, ], }) @@ -41,7 +41,7 @@ const mockFn = jest { fileType: 'image', size: 219906, - tempFilePath: 'https://tdesign.gtimg.com/site/upload1.png', + tempFilePath: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', }, ], }) @@ -59,7 +59,7 @@ const mockFn = jest { fileType: 'image', size: 219906, - tempFilePath: 'https://tdesign.gtimg.com/site/upload1.png', + tempFilePath: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', }, ], }); @@ -215,7 +215,7 @@ describe('upload', () => { max: 2, originFiles: [ { - url: 'https://tdesign.gtimg.com/site/upload1.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', name: 'uploaded1.png', type: 'image', }, @@ -286,7 +286,7 @@ describe('upload', () => { }, originFiles: [ { - url: 'https://tdesign.gtimg.com/site/upload1.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', name: 'uploaded1.png', type: 'image', }, @@ -364,7 +364,7 @@ describe('upload', () => { data: { originFiles: [ { - url: 'https://tdesign.gtimg.com/site/upload1.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', name: 'uploaded1.png', type: 'image', }, diff --git a/src/upload/_example/messageFile/index.js b/src/upload/_example/messageFile/index.js index 10f01b0a4..543ac5a55 100644 --- a/src/upload/_example/messageFile/index.js +++ b/src/upload/_example/messageFile/index.js @@ -2,7 +2,7 @@ Component({ data: { originFiles: [ { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload1.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', name: 'uploaded1.png', type: 'image', }, diff --git a/src/upload/_example/messageFile/index.json b/src/upload/_example/messageFile/index.json index 106061c2c..b2b7fb8bb 100644 --- a/src/upload/_example/messageFile/index.json +++ b/src/upload/_example/messageFile/index.json @@ -1,7 +1,6 @@ { "component": true, "usingComponents": { - "t-upload": "tdesign-miniprogram/upload/upload", - "t-icon": "tdesign-miniprogram/icon/icon" + "t-upload": "tdesign-miniprogram/upload/upload" } } diff --git a/src/upload/_example/multiple/index.js b/src/upload/_example/multiple/index.js index 1203513c8..20452ab1a 100644 --- a/src/upload/_example/multiple/index.js +++ b/src/upload/_example/multiple/index.js @@ -2,17 +2,17 @@ Component({ data: { originFiles: [ { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload1.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', name: 'uploaded1.png', type: 'image', }, { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload3.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example6.png', name: 'uploaded2.png', type: 'image', }, { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload4.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example5.png', name: 'uploaded1.png', type: 'image', }, diff --git a/src/upload/_example/single/index.json b/src/upload/_example/single/index.json index 106061c2c..b2b7fb8bb 100644 --- a/src/upload/_example/single/index.json +++ b/src/upload/_example/single/index.json @@ -1,7 +1,6 @@ { "component": true, "usingComponents": { - "t-upload": "tdesign-miniprogram/upload/upload", - "t-icon": "tdesign-miniprogram/icon/icon" + "t-upload": "tdesign-miniprogram/upload/upload" } } diff --git a/src/upload/_example/status/index.js b/src/upload/_example/status/index.js index 43fd93f39..fe5abf656 100644 --- a/src/upload/_example/status/index.js +++ b/src/upload/_example/status/index.js @@ -2,26 +2,26 @@ Component({ data: { originFiles: [ { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload1.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example4.png', name: 'uploaded1.png', type: 'image', status: 'loading', }, { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload2.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example7.png', name: 'uploaded2.png', type: 'image', percent: 68, status: 'loading', }, { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload3.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example6.png', name: 'uploaded3.png', type: 'image', status: 'reload', }, { - url: 'https://tdesign.gtimg.com/miniprogram/images/upload4.png', + url: 'https://tdesign.gtimg.com/miniprogram/images/example5.png', name: 'uploaded4.png', type: 'image', status: 'failed',