Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(NoticeBar): remove references to non-dependent components #3006

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/date-time-picker/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,24 @@ exports[`DateTimePicker DateTimePicker time demo works fine 1`] = `
</time>
`;

exports[`DateTimePicker DateTimePicker without-popup demo works fine 1`] = `
<without-popup>
<t-date-time-picker
defaultValue="{{1640217600000}}"
end="2030-09-09 12:12:12"
format="YYYY-MM-DD"
mode="date"
start="2000-01-01 00:00:00"
title="选择日期"
usePopup="{{false}}"
visible="{{false}}"
bind:cancel="hidePicker"
bind:change="onConfirm"
bind:pick="onColumnChange"
/>
</without-popup>
`;

exports[`DateTimePicker DateTimePicker year-month demo works fine 1`] = `
<year-month>
<t-cell
Expand Down
2 changes: 1 addition & 1 deletion src/date-time-picker/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['date-all', 'steps', 'time', 'year-month', 'year-month-date'];
const mapper = ['date-all', 'steps', 'time', 'without-popup', 'year-month', 'year-month-date'];

describe('DateTimePicker', () => {
mapper.forEach((demoName) => {
Expand Down
11 changes: 0 additions & 11 deletions src/image/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,6 @@ exports[`Image Image base demo works fine 1`] = `
</base>
`;

exports[`Image Image size demo works fine 1`] = `
<size>
<t-image
mode="aspectFill"
shape="round"
src="https://tdesign.gtimg.com/mobile/demos/image1.jpeg"
tClass="size-l"
/>
</size>
`;

exports[`Image Image status demo works fine 1`] = `
<status>
<wx-view
Expand Down
2 changes: 1 addition & 1 deletion src/image/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['base', 'size', 'status'];
const mapper = ['base', 'status'];

describe('Image', () => {
mapper.forEach((demoName) => {
Expand Down
3 changes: 1 addition & 2 deletions src/image/_example/image.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"usingComponents": {
"t-image": "tdesign-miniprogram/image/image",
"base": "./base",
"status": "./status",
"size": "./size"
"status": "./status"
}
}
12 changes: 0 additions & 12 deletions src/image/_example/size/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/image/_example/size/index.json

This file was deleted.

1 change: 0 additions & 1 deletion src/image/_example/size/index.wxml

This file was deleted.

29 changes: 0 additions & 29 deletions src/image/_example/size/index.wxss

This file was deleted.

14 changes: 0 additions & 14 deletions src/input/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,6 @@ exports[`Input Input prefix demo works fine 1`] = `
</prefix>
`;

exports[`Input Input size demo works fine 1`] = `
<size>
<t-input
label="小规格H48"
placeholder="请输入文字"
size="small"
/>
<t-input
label="中规格H56"
placeholder="请输入文字"
/>
</size>
`;

exports[`Input Input special demo works fine 1`] = `
<special>
<t-input
Expand Down
15 changes: 14 additions & 1 deletion src/input/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['align', 'banner', 'base', 'bordered', 'custom', 'label', 'layout', 'maxlength', 'prefix', 'size', 'special', 'status', 'suffix'];
const mapper = [
'align',
'banner',
'base',
'bordered',
'custom',
'label',
'layout',
'maxlength',
'prefix',
'special',
'status',
'suffix',
];

describe('Input', () => {
mapper.forEach((demoName) => {
Expand Down
1 change: 0 additions & 1 deletion src/input/_example/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"prefix": "./prefix",
"layout": "./layout",
"bordered": "./bordered",
"size": "./size",
"align": "./align",
"maxlength": "./maxlength",
"special": "./special",
Expand Down
1 change: 0 additions & 1 deletion src/input/_example/size/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/input/_example/size/index.json

This file was deleted.

2 changes: 0 additions & 2 deletions src/input/_example/size/index.wxml

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion src/input/_example/skyline/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"prefix": "../prefix",
"layout": "../layout",
"bordered": "../bordered",
"size": "../size",
"align": "../align",
"maxlength": "../maxlength",
"special": "../special",
Expand Down
31 changes: 0 additions & 31 deletions src/loading/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -116,37 +116,6 @@ exports[`Loading Loading size demo works fine 1`] = `
</size>
`;

exports[`Loading Loading status demo works fine 1`] = `
<status>
<wx-view
class="loading-container-flex"
>
<t-switch
colors="{{
Array [
"#00A870",
]
}}"
slot="note"
value="{{false}}"
bind:change="switchChange"
/>
<span
class="text-info"
>
请求结束,隐藏loading加载
</span>
</wx-view>
<t-loading
delay="{{1000}}"
loading="{{false}}"
size="40rpx"
text="加载中..."
theme="circular"
/>
</status>
`;

exports[`Loading Loading text demo works fine 1`] = `
<wx-text>
<t-loading
Expand Down
2 changes: 1 addition & 1 deletion src/loading/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['base', 'duration', 'horizontal', 'size', 'status', 'text', 'vertical'];
const mapper = ['base', 'duration', 'horizontal', 'size', 'text', 'vertical'];

describe('Loading', () => {
mapper.forEach((demoName) => {
Expand Down
1 change: 0 additions & 1 deletion src/loading/_example/loading.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"horizontal": "./horizontal",
"vertical": "./vertical",
"text": "./text",
"status": "./status",
"duration": "./duration",
"size": "./size"
}
Expand Down
4 changes: 0 additions & 4 deletions src/loading/_example/loading.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
<size />
</t-demo>

<!-- <t-demo title="02 组件状态" desc="如果加载状态在延迟内结束,则不显示" padding>
<status />
</t-demo> -->

<t-demo title="03 加载速度" desc="加载速度调整" padding>
<duration />
</t-demo>
Expand Down
14 changes: 0 additions & 14 deletions src/loading/_example/status/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/loading/_example/status/index.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/loading/_example/status/index.wxml

This file was deleted.

11 changes: 0 additions & 11 deletions src/loading/_example/status/index.wxss

This file was deleted.

3 changes: 1 addition & 2 deletions src/notice-bar/notice-bar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"t-icon": "../icon/icon",
"t-button": "../button/button"
"t-icon": "../icon/icon"
}
}
45 changes: 45 additions & 0 deletions src/picker/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,48 @@ exports[`Picker Picker with-title demo works fine 1`] = `
</t-picker>
</with-title>
`;

exports[`Picker Picker without-popup demo works fine 1`] = `
<without-popup>
<t-picker
cancelBtn="取消"
confirmBtn="确认"
data-key="city"
title=""
usePopup="{{false}}"
usingCustomNavbar="{{true}}"
value="{{Array []}}"
visible=""
bind:cancel="onPickerCancel"
bind:change="onPickerChange"
bind:pick="onColumnChange"
>
<t-picker-item
options="{{
Array [
Object {
"label": "北京市",
"value": "北京市",
},
Object {
"label": "上海市",
"value": "上海市",
},
Object {
"label": "广州市",
"value": "广州市",
},
Object {
"label": "深圳市",
"value": "深圳市",
},
Object {
"label": "成都市",
"value": "成都市",
},
]
}}"
/>
</t-picker>
</without-popup>
`;
2 changes: 1 addition & 1 deletion src/picker/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
18 changes: 0 additions & 18 deletions src/rate/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -278,21 +278,3 @@ exports[`Rate Rate special demo works fine 1`] = `
</wx-view>
</special>
`;

exports[`Rate Rate un-filled demo works fine 1`] = `
<un-filled>
<wx-view
class="demo-rate"
>
<wx-view
class="demo-rate__title"
>
请点击评分
</wx-view>
<t-rate
value="{{3}}"
bind:change="onChange"
/>
</wx-view>
</un-filled>
`;
Loading
Loading