Skip to content

Commit 406845b

Browse files
committed
fix(notice-bar): 回滚 notice bar 更改
1 parent ab2fb3e commit 406845b

File tree

9 files changed

+1
-54
lines changed

9 files changed

+1
-54
lines changed

src/notice-bar/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ isComponent: true
5050

5151
{{ event }}
5252

53-
非通栏样式的公告栏
54-
55-
{{ banner }}
56-
5753
自定义样式的公告栏
5854

5955
{{ custom }}

src/notice-bar/__test__/__snapshots__/demo.test.js.snap

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`NoticeBar NoticeBar banner demo works fine 1`] = `
4-
<banner>
5-
<t-notice-bar
6-
class="notice-bar-example"
7-
content="这是一条非通栏样式的通知消息"
8-
prefixIcon="{{false}}"
9-
visible="{{true}}"
10-
>
11-
<wx-view
12-
slot="prefix-icon"
13-
>
14-
<t-icon
15-
name="error-circle-filled"
16-
/>
17-
</wx-view>
18-
</t-notice-bar>
19-
</banner>
20-
`;
21-
223
exports[`NoticeBar NoticeBar base demo works fine 1`] = `
234
<base>
245
<t-notice-bar

src/notice-bar/__test__/demo.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import path from 'path';
66
import simulate from 'miniprogram-simulate';
77

8-
const mapper = ['banner', 'base', 'custom', 'customization', 'event', 'iconDemo', 'scrolling', 'suffixIcon', 'theme'];
8+
const mapper = ['base', 'custom', 'customization', 'event', 'iconDemo', 'scrolling', 'suffixIcon', 'theme'];
99

1010
describe('NoticeBar', () => {
1111
mapper.forEach((demoName) => {

src/notice-bar/_example/banner/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/notice-bar/_example/banner/index.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/notice-bar/_example/banner/index.wxml

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/notice-bar/_example/banner/index.wxss

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/notice-bar/_example/notice-bar.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"navigationBarBackgroundColor": "#fff",
44
"usingComponents": {
55
"t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar",
6-
"banner": "./banner",
76
"base": "./base",
87
"iconDemo": "./iconDemo",
98
"suffixIcon": "./suffixIcon",

src/notice-bar/_example/notice-bar.wxml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
<t-demo desc="带入口的公告栏">
1818
<event />
1919
</t-demo>
20-
<t-demo desc="非通栏样式的公告栏">
21-
<banner />
22-
</t-demo>
2320
<t-demo desc="自定义样式的公告栏">
2421
<custom />
2522
</t-demo>

0 commit comments

Comments
 (0)