diff --git a/src/date-time-picker/__test__/__snapshots__/demo.test.js.snap b/src/date-time-picker/__test__/__snapshots__/demo.test.js.snap index 5a0f83228..9c68bd311 100644 --- a/src/date-time-picker/__test__/__snapshots__/demo.test.js.snap +++ b/src/date-time-picker/__test__/__snapshots__/demo.test.js.snap @@ -120,6 +120,24 @@ exports[`DateTimePicker DateTimePicker time demo works fine 1`] = ` `; +exports[`DateTimePicker DateTimePicker without-popup demo works fine 1`] = ` + + + +`; + exports[`DateTimePicker DateTimePicker year-month demo works fine 1`] = ` { mapper.forEach((demoName) => { diff --git a/src/image/__test__/__snapshots__/demo.test.js.snap b/src/image/__test__/__snapshots__/demo.test.js.snap index b759ad931..4f7225b17 100644 --- a/src/image/__test__/__snapshots__/demo.test.js.snap +++ b/src/image/__test__/__snapshots__/demo.test.js.snap @@ -108,17 +108,6 @@ exports[`Image Image base demo works fine 1`] = ` `; -exports[`Image Image size demo works fine 1`] = ` - - - -`; - exports[`Image Image status demo works fine 1`] = ` { mapper.forEach((demoName) => { diff --git a/src/image/_example/image.json b/src/image/_example/image.json index 305edf357..ff0d86e68 100644 --- a/src/image/_example/image.json +++ b/src/image/_example/image.json @@ -4,7 +4,6 @@ "usingComponents": { "t-image": "tdesign-miniprogram/image/image", "base": "./base", - "status": "./status", - "size": "./size" + "status": "./status" } } diff --git a/src/image/_example/size/index.js b/src/image/_example/size/index.js deleted file mode 100644 index 287bcc3e8..000000000 --- a/src/image/_example/size/index.js +++ /dev/null @@ -1,12 +0,0 @@ -Component({ - properties: { - size: { - type: String, - value: 'l', - }, - }, - - data: { - imageSrc: 'https://tdesign.gtimg.com/mobile/demos/image1.jpeg', - }, -}); diff --git a/src/image/_example/size/index.json b/src/image/_example/size/index.json deleted file mode 100644 index 4f4285cba..000000000 --- a/src/image/_example/size/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "component": true, - "usingComponents": { - "t-image": "tdesign-miniprogram/image/image" - } -} diff --git a/src/image/_example/size/index.wxml b/src/image/_example/size/index.wxml deleted file mode 100644 index abfe29042..000000000 --- a/src/image/_example/size/index.wxml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/image/_example/size/index.wxss b/src/image/_example/size/index.wxss deleted file mode 100644 index f05fac4e6..000000000 --- a/src/image/_example/size/index.wxss +++ /dev/null @@ -1,29 +0,0 @@ -.size-xl { - width: 120px; - height: 120px; -} - -.size-l { - width: 72px; - height: 72px; -} - -.size-m { - width: 56px; - height: 56px; -} - -.size-s { - width: 48px; - height: 48px; -} - -.size-xs { - width: 32px; - height: 32px; -} - -.size-xss { - width: 24px; - height: 24px; -} diff --git a/src/input/__test__/__snapshots__/demo.test.js.snap b/src/input/__test__/__snapshots__/demo.test.js.snap index 9e4ea1d75..dc35fdc0d 100644 --- a/src/input/__test__/__snapshots__/demo.test.js.snap +++ b/src/input/__test__/__snapshots__/demo.test.js.snap @@ -148,20 +148,6 @@ exports[`Input Input prefix demo works fine 1`] = ` `; -exports[`Input Input size demo works fine 1`] = ` - - - - -`; - exports[`Input Input special demo works fine 1`] = ` { mapper.forEach((demoName) => { diff --git a/src/input/_example/input.json b/src/input/_example/input.json index a11ea3d82..ee0f5c411 100644 --- a/src/input/_example/input.json +++ b/src/input/_example/input.json @@ -7,7 +7,6 @@ "prefix": "./prefix", "layout": "./layout", "bordered": "./bordered", - "size": "./size", "align": "./align", "maxlength": "./maxlength", "special": "./special", diff --git a/src/input/_example/size/index.js b/src/input/_example/size/index.js deleted file mode 100644 index b79c5124b..000000000 --- a/src/input/_example/size/index.js +++ /dev/null @@ -1 +0,0 @@ -Component({}); diff --git a/src/input/_example/size/index.json b/src/input/_example/size/index.json deleted file mode 100644 index 1ca6b827d..000000000 --- a/src/input/_example/size/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "component": true, - "usingComponents": { - "t-input": "tdesign-miniprogram/input/input" - } -} diff --git a/src/input/_example/size/index.wxml b/src/input/_example/size/index.wxml deleted file mode 100644 index 5274eca58..000000000 --- a/src/input/_example/size/index.wxml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/input/_example/size/index.wxss b/src/input/_example/size/index.wxss deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/input/_example/skyline/input.json b/src/input/_example/skyline/input.json index b1660d95e..9db3aa46d 100644 --- a/src/input/_example/skyline/input.json +++ b/src/input/_example/skyline/input.json @@ -8,7 +8,6 @@ "prefix": "../prefix", "layout": "../layout", "bordered": "../bordered", - "size": "../size", "align": "../align", "maxlength": "../maxlength", "special": "../special", diff --git a/src/loading/__test__/__snapshots__/demo.test.js.snap b/src/loading/__test__/__snapshots__/demo.test.js.snap index dffe7bffe..afbb72021 100644 --- a/src/loading/__test__/__snapshots__/demo.test.js.snap +++ b/src/loading/__test__/__snapshots__/demo.test.js.snap @@ -116,37 +116,6 @@ exports[`Loading Loading size demo works fine 1`] = ` `; -exports[`Loading Loading status demo works fine 1`] = ` - - - - - 请求结束,隐藏loading加载 - - - - -`; - exports[`Loading Loading text demo works fine 1`] = ` { mapper.forEach((demoName) => { diff --git a/src/loading/_example/loading.json b/src/loading/_example/loading.json index 61274486a..f14fb54ca 100644 --- a/src/loading/_example/loading.json +++ b/src/loading/_example/loading.json @@ -6,7 +6,6 @@ "horizontal": "./horizontal", "vertical": "./vertical", "text": "./text", - "status": "./status", "duration": "./duration", "size": "./size" } diff --git a/src/loading/_example/loading.wxml b/src/loading/_example/loading.wxml index 7ab871a90..1aad8e0e8 100644 --- a/src/loading/_example/loading.wxml +++ b/src/loading/_example/loading.wxml @@ -23,10 +23,6 @@ - - diff --git a/src/loading/_example/status/index.js b/src/loading/_example/status/index.js deleted file mode 100644 index 0e71f7f3b..000000000 --- a/src/loading/_example/status/index.js +++ /dev/null @@ -1,14 +0,0 @@ -import SkylineBehavior from '@behaviors/skyline.js'; - -Component({ - behaviors: [SkylineBehavior], - data: { - isCheck: false, - }, - methods: { - switchChange() { - const { isCheck } = this.data; - this.setData({ isCheck: !isCheck }); - }, - }, -}); diff --git a/src/loading/_example/status/index.json b/src/loading/_example/status/index.json deleted file mode 100644 index 6de40e5dd..000000000 --- a/src/loading/_example/status/index.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "components": true, - "usingComponents": { - "t-loading": "tdesign-miniprogram/loading/loading", - "t-switch": "tdesign-miniprogram/switch/switch" - } -} diff --git a/src/loading/_example/status/index.wxml b/src/loading/_example/status/index.wxml deleted file mode 100644 index 2f00e8d72..000000000 --- a/src/loading/_example/status/index.wxml +++ /dev/null @@ -1,11 +0,0 @@ - - - {{isCheck?'请求发起,延迟显示loading加载':'请求结束,隐藏loading加载'}} - - diff --git a/src/loading/_example/status/index.wxss b/src/loading/_example/status/index.wxss deleted file mode 100644 index 63911a627..000000000 --- a/src/loading/_example/status/index.wxss +++ /dev/null @@ -1,11 +0,0 @@ -.loading-container-flex { - display: flex; - align-items: center; - font-size: 24rpx; - margin-bottom: 32rpx; -} - -.text-info { - margin-left: 24rpx; - color: rgba(0, 0, 0, 0.4); -} diff --git a/src/notice-bar/notice-bar.json b/src/notice-bar/notice-bar.json index 4a243bcdc..f783dae79 100644 --- a/src/notice-bar/notice-bar.json +++ b/src/notice-bar/notice-bar.json @@ -2,7 +2,6 @@ "component": true, "styleIsolation": "apply-shared", "usingComponents": { - "t-icon": "../icon/icon", - "t-button": "../button/button" + "t-icon": "../icon/icon" } } diff --git a/src/picker/__test__/__snapshots__/demo.test.js.snap b/src/picker/__test__/__snapshots__/demo.test.js.snap index 6b55344f6..37d4dace0 100644 --- a/src/picker/__test__/__snapshots__/demo.test.js.snap +++ b/src/picker/__test__/__snapshots__/demo.test.js.snap @@ -328,3 +328,48 @@ exports[`Picker Picker with-title demo works fine 1`] = ` `; + +exports[`Picker Picker without-popup demo works fine 1`] = ` + + + + + +`; diff --git a/src/picker/__test__/demo.test.js b/src/picker/__test__/demo.test.js index 4327cc11f..c39449766 100644 --- a/src/picker/__test__/demo.test.js +++ b/src/picker/__test__/demo.test.js @@ -5,7 +5,7 @@ import path from 'path'; import simulate from 'miniprogram-simulate'; -const mapper = ['area', 'base', 'with-title']; +const mapper = ['area', 'base', 'with-title', 'without-popup']; describe('Picker', () => { mapper.forEach((demoName) => { diff --git a/src/rate/__test__/__snapshots__/demo.test.js.snap b/src/rate/__test__/__snapshots__/demo.test.js.snap index 0508127be..3bcfa5333 100644 --- a/src/rate/__test__/__snapshots__/demo.test.js.snap +++ b/src/rate/__test__/__snapshots__/demo.test.js.snap @@ -278,21 +278,3 @@ exports[`Rate Rate special demo works fine 1`] = ` `; - -exports[`Rate Rate un-filled demo works fine 1`] = ` - - - - 请点击评分 - - - - -`; diff --git a/src/rate/__test__/demo.test.js b/src/rate/__test__/demo.test.js index fe7849981..129750537 100644 --- a/src/rate/__test__/demo.test.js +++ b/src/rate/__test__/demo.test.js @@ -5,7 +5,7 @@ import path from 'path'; import simulate from 'miniprogram-simulate'; -const mapper = ['action', 'base', 'color', 'count', 'custom', 'custom-prefix', 'show-text', 'size', 'special', 'un-filled']; +const mapper = ['action', 'base', 'color', 'count', 'custom', 'custom-prefix', 'show-text', 'size', 'special']; describe('Rate', () => { mapper.forEach((demoName) => { diff --git a/src/rate/_example/rate.json b/src/rate/_example/rate.json index 947f43cb8..84ad1f8af 100644 --- a/src/rate/_example/rate.json +++ b/src/rate/_example/rate.json @@ -5,7 +5,6 @@ "custom": "./custom", "custom-prefix": "./custom-prefix", "special": "./special", - "un-filled": "./un-filled", "count": "./count", "action": "./action", "show-text": "./show-text", diff --git a/src/rate/_example/un-filled/index.js b/src/rate/_example/un-filled/index.js deleted file mode 100644 index 5a116c088..000000000 --- a/src/rate/_example/un-filled/index.js +++ /dev/null @@ -1,13 +0,0 @@ -Component({ - data: { - value: 3, - }, - methods: { - onChange(e) { - const { value } = e.detail; - this.setData({ - value, - }); - }, - }, -}); diff --git a/src/rate/_example/un-filled/index.json b/src/rate/_example/un-filled/index.json deleted file mode 100644 index 724692fed..000000000 --- a/src/rate/_example/un-filled/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "component": true, - "usingComponents": { - "t-rate": "tdesign-miniprogram/rate/rate" - } -} diff --git a/src/rate/_example/un-filled/index.wxml b/src/rate/_example/un-filled/index.wxml deleted file mode 100644 index 63c426f05..000000000 --- a/src/rate/_example/un-filled/index.wxml +++ /dev/null @@ -1,5 +0,0 @@ - - 请点击评分 - - - diff --git a/src/rate/_example/un-filled/index.wxss b/src/rate/_example/un-filled/index.wxss deleted file mode 100644 index c505204a6..000000000 --- a/src/rate/_example/un-filled/index.wxss +++ /dev/null @@ -1,23 +0,0 @@ -.demo-rate { - background-color: var(--bg-color-demo); - color: var(--td-text-color-primary); - height: 96rpx; - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 32rpx; - border-bottom: solid 1rpx var(--bg-color-demo-border); - border-top: solid 1rpx var(--bg-color-demo-border); - margin-top: 32rpx; - margin-bottom: 32rpx; -} - -.demo-rate__title { - width: 200rpx; -} - -.demo-rate__transparent { - background-color: transparent; - padding-left: 32rpx; - border: 0; -} diff --git a/src/slider/_example/skyline/slider.json b/src/slider/_example/skyline/slider.json index 55e3e0753..6d0319947 100644 --- a/src/slider/_example/skyline/slider.json +++ b/src/slider/_example/skyline/slider.json @@ -4,7 +4,6 @@ "t-navbar": "tdesign-miniprogram/navbar/navbar", "base": "../base", "label": "../label", - "max": "../max", "step": "../step", "range": "../range", "disabled": "../disabled", diff --git a/src/slider/_example/slider.json b/src/slider/_example/slider.json index aa02a9f4c..ec5456520 100644 --- a/src/slider/_example/slider.json +++ b/src/slider/_example/slider.json @@ -3,7 +3,6 @@ "usingComponents": { "base": "./base", "label": "./label", - "max": "./max", "step": "./step", "range": "./range", "disabled": "./disabled", diff --git a/src/toast/__test__/__snapshots__/demo.test.js.snap b/src/toast/__test__/__snapshots__/demo.test.js.snap index 79f72c6ac..2aa1483b9 100644 --- a/src/toast/__test__/__snapshots__/demo.test.js.snap +++ b/src/toast/__test__/__snapshots__/demo.test.js.snap @@ -110,44 +110,6 @@ exports[`Toast Toast cover demo works fine 1`] = ` `; -exports[`Toast Toast display demo works fine 1`] = ` - - - - 顶部展示1秒 - - - 中间展示2秒 - - - 底部展示3秒 - - -`; - exports[`Toast Toast theme demo works fine 1`] = ` { mapper.forEach((demoName) => { diff --git a/src/toast/_example/display/index.js b/src/toast/_example/display/index.js deleted file mode 100644 index 366df6060..000000000 --- a/src/toast/_example/display/index.js +++ /dev/null @@ -1,50 +0,0 @@ -import Toast from 'tdesign-miniprogram/toast/index'; - -Page({ - toast(option) { - Toast({ - context: this, - selector: '#t-toast', - ...option, - }); - }, - handleToast(e) { - switch (e.target.dataset.type) { - case 'topShow': { - this.toast({ - message: '顶部-展示1秒', - direction: 'column', - placement: 'top', - duration: 1000, - icon: 'star', - }); - break; - } - case 'middleShow': { - this.toast({ - message: '中间-展示2秒', - direction: 'column', - duration: 2000, - icon: 'star', - }); - break; - } - case 'bottomShow': { - this.toast({ - message: '底部-展示3秒', - direction: 'column', - placement: 'bottom', - duration: 3000, - icon: 'star', - }); - break; - } - - default: { - this.toast({ - message: '未知点击事件', - }); - } - } - }, -}); diff --git a/src/toast/_example/display/index.json b/src/toast/_example/display/index.json deleted file mode 100644 index 1237a617a..000000000 --- a/src/toast/_example/display/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "component": true, - "usingComponents": { - "t-toast": "tdesign-miniprogram/toast/toast" - } -} diff --git a/src/toast/_example/display/index.wxml b/src/toast/_example/display/index.wxml deleted file mode 100644 index 17a3d3488..000000000 --- a/src/toast/_example/display/index.wxml +++ /dev/null @@ -1,11 +0,0 @@ - - -顶部展示1秒 -中间展示2秒 -底部展示3秒 diff --git a/src/toast/_example/display/index.wxss b/src/toast/_example/display/index.wxss deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/toast/_example/skyline/toast.json b/src/toast/_example/skyline/toast.json index a7838f69d..0664c3de8 100644 --- a/src/toast/_example/skyline/toast.json +++ b/src/toast/_example/skyline/toast.json @@ -4,7 +4,6 @@ "t-navbar": "tdesign-miniprogram/navbar/navbar", "base": "../base", "theme": "../theme", - "display": "../display", "cover": "../cover", "close": "../close" }, diff --git a/src/toast/_example/toast.json b/src/toast/_example/toast.json index 582718da2..996d6ba55 100644 --- a/src/toast/_example/toast.json +++ b/src/toast/_example/toast.json @@ -4,7 +4,6 @@ "usingComponents": { "base": "./base", "theme": "./theme", - "display": "./display", "cover": "./cover", "close": "./close" }