Skip to content

Commit 2f6ec31

Browse files
committed
[Doc] remove doc-page
1 parent 1f34ff1 commit 2f6ec31

64 files changed

Lines changed: 873 additions & 1059 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

example/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

22
App({
3-
globalData: {
4-
},
3+
globalData: {}
54
});

example/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"navigationBarTitleText": "vant-weapp",
3737
"navigationBarTextStyle": "black",
3838
"backgroundTextStyle": "dark",
39-
"backgroundColor": "#f9f9f9"
39+
"backgroundColor": "#f8f8f8"
4040
},
4141
"debug": true
4242
}

example/app.wxss

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,10 @@
22

33
page {
44
color: #333;
5-
-webkit-font-smoothing: antialiased;
6-
font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif;
7-
}
8-
9-
.container {
10-
background: #F9F9F9;
11-
overflow: hidden;
5+
background: #f8f8f8;
126
min-height: 100vh;
137
box-sizing: border-box;
14-
padding: 15px 0;
15-
}
16-
17-
.container::before {
18-
position: fixed;
19-
top: 0;
20-
left: 0;
21-
content: ' ';
22-
width: 100%;
23-
height: 1rpx;
24-
background-color: #e2e2e2;
25-
z-index: 5;
26-
}
27-
28-
.doc-title {
29-
position: relative;
30-
padding: 15px 0;
31-
margin: 10px 15px;
32-
line-height: 25px;
33-
font-size: 25px;
34-
color: #666;
35-
}
36-
37-
.doc-description {
38-
margin: 14px 0;
39-
padding: 0 15px;
40-
font-size: 14px;
41-
line-height: 20px;
42-
color: #666;
8+
padding: 15rpx 0;
9+
-webkit-font-smoothing: antialiased;
10+
font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif;
4311
}

example/components/doc-page/index.js

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

example/components/doc-page/index.json

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

example/components/doc-page/index.wxml

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

example/components/doc-page/index.wxss

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

example/pages/actionsheet/index.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"navigationBarTitleText": "Actionsheet 上拉菜单",
33
"usingComponents": {
44
"van-actionsheet": "../../dist/actionsheet/index",
5-
"van-button": "../../dist/button/index",
6-
"doc-page": "../../components/doc-page/index"
5+
"van-button": "../../dist/button/index"
76
}
87
}
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1+
<view class="van-buttons" style="margin-top: 30vh;">
2+
<van-button bind:buttonclick="openActionsheet">
3+
Actionsheet
4+
</van-button>
5+
</view>
16

2-
<doc-page title="ACTIONSHEET">
3-
<view class="van-buttons" style="margin-top: 30vh;">
4-
<van-button bind:buttonclick="openActionsheet">
5-
Actionsheet
6-
</van-button>
7-
</view>
8-
9-
<van-actionsheet
10-
show="{{ show }}"
11-
actions="{{ actions }}"
12-
cancel-text="{{ cancelText }}"
13-
cancel-with-mask="{{ cancelWithMask }}"
14-
bind:cancel="closeActionSheet"
15-
bind:actionclick="clickAction"
16-
mask-class="tiny"
17-
/>
18-
</doc-page>
7+
<van-actionsheet
8+
show="{{ show }}"
9+
actions="{{ actions }}"
10+
cancel-text="{{ cancelText }}"
11+
cancel-with-mask="{{ cancelWithMask }}"
12+
bind:cancel="closeActionSheet"
13+
bind:actionclick="clickAction"
14+
mask-class="tiny"
15+
/>

example/pages/badge/index.wxml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<view class="container">
22

3-
<view class="doc-title van-hairline--bottom van-hairline--bottom">BADGE</view>
4-
53
<view class="demo">
64
<view class="demo__item">
75
<view class="demo__icon">

0 commit comments

Comments
 (0)