[Doc] remove doc-page

This commit is contained in:
陈嘉涵 2018-07-30 10:53:07 +08:00
parent 1f34ff1a18
commit 2f6ec315cb
64 changed files with 863 additions and 1049 deletions

View File

@ -1,5 +1,4 @@
App({ App({
globalData: { globalData: {}
},
}); });

View File

@ -36,7 +36,7 @@
"navigationBarTitleText": "vant-weapp", "navigationBarTitleText": "vant-weapp",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"backgroundTextStyle": "dark", "backgroundTextStyle": "dark",
"backgroundColor": "#f9f9f9" "backgroundColor": "#f8f8f8"
}, },
"debug": true "debug": true
} }

View File

@ -2,42 +2,10 @@
page { page {
color: #333; color: #333;
background: #f8f8f8;
min-height: 100vh;
box-sizing: border-box;
padding: 15rpx 0;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif; font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif;
} }
.container {
background: #F9F9F9;
overflow: hidden;
min-height: 100vh;
box-sizing: border-box;
padding: 15px 0;
}
.container::before {
position: fixed;
top: 0;
left: 0;
content: ' ';
width: 100%;
height: 1rpx;
background-color: #e2e2e2;
z-index: 5;
}
.doc-title {
position: relative;
padding: 15px 0;
margin: 10px 15px;
line-height: 25px;
font-size: 25px;
color: #666;
}
.doc-description {
margin: 14px 0;
padding: 0 15px;
font-size: 14px;
line-height: 20px;
color: #666;
}

View File

@ -1,12 +0,0 @@
Component({
properties: {
title: {
type: String,
value: ''
},
withoutPadding: {
type: Boolean
}
}
});

View File

@ -1,3 +0,0 @@
{
"component": true
}

View File

@ -1,6 +0,0 @@
<view class="doc-container">
<view class="doc-title">{{ title }}</view>
<view class="doc-content {{ withoutPadding ? 'doc-content--without-pd' : '' }}">
<slot></slot>
</view>
</view>

View File

@ -1,27 +0,0 @@
.doc-container {
background: #F9F9F9;
overflow: hidden;
min-height: 100vh;
box-sizing: border-box;
padding: 15px 0;
}
.doc-title {
position: relative;
padding: 15px 0;
margin: 10px 15px;
line-height: 25px;
font-size: 25px;
color: #666;
border-bottom: 1rpx solid #e5e5e5;
}
.doc-content {
padding: 15px;
overflow: hidden;
color: #666;
}
.doc-content--without-pd {
padding: 15px 0;
}

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "Actionsheet 上拉菜单", "navigationBarTitleText": "Actionsheet 上拉菜单",
"usingComponents": { "usingComponents": {
"van-actionsheet": "../../dist/actionsheet/index", "van-actionsheet": "../../dist/actionsheet/index",
"van-button": "../../dist/button/index", "van-button": "../../dist/button/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="ACTIONSHEET">
<view class="van-buttons" style="margin-top: 30vh;"> <view class="van-buttons" style="margin-top: 30vh;">
<van-button bind:buttonclick="openActionsheet"> <van-button bind:buttonclick="openActionsheet">
Actionsheet Actionsheet
@ -15,4 +13,3 @@
bind:actionclick="clickAction" bind:actionclick="clickAction"
mask-class="tiny" mask-class="tiny"
/> />
</doc-page>

View File

@ -1,7 +1,5 @@
<view class="container"> <view class="container">
<view class="doc-title van-hairline--bottom van-hairline--bottom">BADGE</view>
<view class="demo"> <view class="demo">
<view class="demo__item"> <view class="demo__item">
<view class="demo__icon"> <view class="demo__icon">

View File

@ -3,7 +3,6 @@
"usingComponents": { "usingComponents": {
"van-button": "../../dist/button/index", "van-button": "../../dist/button/index",
"van-button-group": "../../dist/button-group/index", "van-button-group": "../../dist/button-group/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="BUTTON" without-padding>
<van-panel title="普通按钮"> <van-panel title="普通按钮">
<van-button-group> <van-button-group>
<van-button <van-button
@ -51,5 +49,3 @@
<van-button disabled type="warn">确认付款</van-button> <van-button disabled type="warn">确认付款</van-button>
</van-button-group> </van-button-group>
</van-panel> </van-panel>
</doc-page>

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "Capsule 胶囊", "navigationBarTitleText": "Capsule 胶囊",
"usingComponents": { "usingComponents": {
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-capsule": "../../dist/capsule/index", "van-capsule": "../../dist/capsule/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="CAPSULE" without-padding>
<van-panel title='基本用法'> <van-panel title='基本用法'>
<view class="capsule-demo"> <view class="capsule-demo">
<van-capsule leftText="折扣" rightText="限购一份" /> <van-capsule leftText="折扣" rightText="限购一份" />
@ -12,4 +10,3 @@
<van-capsule color="#38f" leftText="折扣" rightText="限购一份" /> <van-capsule color="#38f" leftText="折扣" rightText="限购一份" />
</view> </view>
</van-panel> </van-panel>
</doc-page>

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "Card 卡片", "navigationBarTitleText": "Card 卡片",
"usingComponents": { "usingComponents": {
"van-card": "../../dist/card/index", "van-card": "../../dist/card/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="CAPSULE" without-padding>
<van-panel without-border> <van-panel without-border>
<van-card <van-card
card-class="test-card" card-class="test-card"
@ -27,4 +25,3 @@
</view> </view>
</van-card> </van-card>
</van-panel> </van-panel>
</doc-page>

View File

@ -5,7 +5,6 @@
"van-icon": "../../dist/icon/index", "van-icon": "../../dist/icon/index",
"van-badge": "../../dist/badge/index", "van-badge": "../../dist/badge/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-cell-group": "../../dist/cell-group/index", "van-cell-group": "../../dist/cell-group/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="CELL" without-padding>
<van-cell-group border class="cell-panel-demo"> <van-cell-group border class="cell-panel-demo">
<van-cell title="单行列表" bindtap="handleTap"></van-cell> <van-cell title="单行列表" bindtap="handleTap"></van-cell>
@ -63,4 +62,3 @@
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
</van-panel> </van-panel>
</doc-page>

View File

@ -4,7 +4,6 @@
"van-checkbox-group": "../../dist/checkbox-group/index", "van-checkbox-group": "../../dist/checkbox-group/index",
"van-checkbox": "../../dist/checkbox/index", "van-checkbox": "../../dist/checkbox/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="checkbox" without-padding>
<van-panel title='基本用法'> <van-panel title='基本用法'>
<van-checkbox <van-checkbox
checkbox-class="checkbox-demo" checkbox-class="checkbox-demo"
@ -40,4 +39,3 @@
<van-checkbox type="list">复选框 b</van-checkbox> <van-checkbox type="list">复选框 b</van-checkbox>
<van-checkbox type="list">复选框 c</van-checkbox> <van-checkbox type="list">复选框 c</van-checkbox>
</van-panel> </van-panel>
</doc-page>

View File

@ -1,5 +1,5 @@
.container { .container {
padding: 60px 0 20px; padding-top: 45px;
} }
.title { .title {

View File

@ -4,7 +4,6 @@
"van-date-picker": "../../dist/datetime-picker/index", "van-date-picker": "../../dist/datetime-picker/index",
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index",
"van-cell-group": "../../dist/cell-group/index", "van-cell-group": "../../dist/cell-group/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="DATETIME PICKER" without-padding>
<van-panel class="picker-panel-demo"> <van-panel class="picker-panel-demo">
<van-cell-group> <van-cell-group>
<van-cell title="选择时间"> <van-cell title="选择时间">
@ -54,5 +53,3 @@
/> />
</van-panel> </van-panel>
</doc-page>

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Dialog 弹出框", "navigationBarTitleText": "Dialog 弹出框",
"usingComponents": { "usingComponents": {
"doc-page": "../../components/doc-page/index",
"van-dialog": "../../dist/dialog/index", "van-dialog": "../../dist/dialog/index",
"van-button": "../../dist/button/index", "van-button": "../../dist/button/index",
"van-button-group": "../../dist/button-group/index", "van-button-group": "../../dist/button-group/index",

View File

@ -1,4 +1,3 @@
<doc-page title="DIALOG">
<van-button-group style="margin-top: 30vh; display: block;"> <van-button-group style="margin-top: 30vh; display: block;">
<van-button bindtap="toggleBaseDialog">基础 Dialog</van-button> <van-button bindtap="toggleBaseDialog">基础 Dialog</van-button>
<van-button bindtap="toggleWithoutTitleDialog">Dialog - 无标题</van-button> <van-button bindtap="toggleWithoutTitleDialog">Dialog - 无标题</van-button>
@ -16,4 +15,3 @@
<van-dialog id="van-close-dialog"></van-dialog> <van-dialog id="van-close-dialog"></van-dialog>
<van-toast id="van-toast"></van-toast> <van-toast id="van-toast"></van-toast>
</doc-page>

View File

@ -5,7 +5,6 @@
"van-button-group": "../../dist/button-group/index", "van-button-group": "../../dist/button-group/index",
"van-cell-group": "../../dist/cell-group/index", "van-cell-group": "../../dist/cell-group/index",
"van-field": "../../dist/field/index", "van-field": "../../dist/field/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="Field" without-padding>
<!-- Field 基础用法 --> <!-- Field 基础用法 -->
<van-panel title="基础用法"> <van-panel title="基础用法">
<van-cell-group> <van-cell-group>
@ -93,4 +92,3 @@
<button type="primary" form-type="submit">提交表单</button> <button type="primary" form-type="submit">提交表单</button>
</form> </form>
</van-panel> </van-panel>
</doc-page>

View File

@ -3,7 +3,6 @@
"usingComponents": { "usingComponents": {
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-cell-group": "../../dist/cell-group/index", "van-cell-group": "../../dist/cell-group/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="HELPER" without-padding>
<view class="van-panel"> <view class="van-panel">
<van-cell> <van-cell>
<view class="van-pull-right">van-pull-right: 往右靠</view> <view class="van-pull-right">van-pull-right: 往右靠</view>
@ -56,4 +55,3 @@
</view> </view>
</doc-page>

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Icon 图标", "navigationBarTitleText": "Icon 图标",
"usingComponents": { "usingComponents": {
"van-icon": "../../dist/icon/index", "van-icon": "../../dist/icon/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,8 +1,6 @@
<doc-page title="ICON">
<view wx:for="{{ icons }}" wx:for-item="icon" wx:key="icon" class="icon-wrap"> <view wx:for="{{ icons }}" wx:for-item="icon" wx:key="icon" class="icon-wrap">
<view class="example-icon"> <view class="example-icon">
<van-icon type="{{ icon }}"></van-icon> <van-icon type="{{ icon }}"></van-icon>
</view> </view>
<view class="icon-classname">van-icon-{{ icon }}</view> <view class="icon-classname">van-icon-{{ icon }}</view>
</view> </view>
</doc-page>

View File

@ -2,7 +2,6 @@
"usingComponents": { "usingComponents": {
"van-row": "../../dist/row/index", "van-row": "../../dist/row/index",
"van-col": "../../dist/col/index", "van-col": "../../dist/col/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="LAYOUT" without-padding>
<van-panel title="基础用法"> <van-panel title="基础用法">
<van-row> <van-row>
<van-col col="8" col-class="custom-van-col">span: 8</van-col> <van-col col="8" col-class="custom-van-col">span: 8</van-col>
@ -17,5 +15,3 @@
<van-col col="12" offset="12" col-class="custom-van-col">offset: 12, span: 12</van-col> <van-col col="12" offset="12" col-class="custom-van-col">offset: 12, span: 12</van-col>
</van-row> </van-row>
</van-panel> </van-panel>
</doc-page>

View File

@ -1,7 +1,5 @@
<view class="container"> <view class="container">
<view class="doc-title van-hairline--bottom">LOADING</view>
<view class="van-panel-title">circle</view> <view class="van-panel-title">circle</view>
<view class="loading-example van-panel"> <view class="loading-example van-panel">
<van-loading type="circle"></van-loading> <van-loading type="circle"></van-loading>

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "loadmore 加载", "navigationBarTitleText": "loadmore 加载",
"usingComponents": { "usingComponents": {
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-loadmore": "../../dist/loadmore/index", "van-loadmore": "../../dist/loadmore/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="LOADMORE" without-padding>
<van-panel title="nodata"> <van-panel title="nodata">
<van-loadmore type="text"></van-loadmore> <van-loadmore type="text"></van-loadmore>
</van-panel> </van-panel>
@ -8,4 +7,3 @@
<van-panel title="text"> <van-panel title="text">
<van-loadmore type="text" text="暂无数据"></van-loadmore> <van-loadmore type="text" text="暂无数据"></van-loadmore>
</van-panel> </van-panel>
</doc-page>

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "Noticebar 通告栏", "navigationBarTitleText": "Noticebar 通告栏",
"usingComponents": { "usingComponents": {
"van-noticebar": "../../dist/noticebar/index", "van-noticebar": "../../dist/noticebar/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="NOTICEBAR" without-padding>
<van-panel title="滚动通告栏"> <van-panel title="滚动通告栏">
<van-noticebar <van-noticebar
@ -50,5 +49,3 @@
mode="{{ bar5.mode }}" mode="{{ bar5.mode }}"
/> />
</van-panel> </van-panel>
</doc-page>

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Panel 面板", "navigationBarTitleText": "Panel 面板",
"usingComponents": { "usingComponents": {
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="PANEL" without-padding>
<van-panel class="panel-example"> <van-panel class="panel-example">
<view style="padding: 15px;">PANEL 内容区域</view> <view style="padding: 15px;">PANEL 内容区域</view>
</van-panel> </van-panel>
@ -11,5 +9,3 @@
<van-panel title="标题" hide-border="{{ true }}" class="panel-example"> <van-panel title="标题" hide-border="{{ true }}" class="panel-example">
<view style="padding: 15px;">无边框的panel</view> <view style="padding: 15px;">无边框的panel</view>
</van-panel> </van-panel>
</doc-page>

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Popup 弹出层", "navigationBarTitleText": "Popup 弹出层",
"usingComponents": { "usingComponents": {
"doc-page": "../../components/doc-page/index",
"van-popup": "../../dist/popup/index", "van-popup": "../../dist/popup/index",
"van-button": "../../dist/button/index", "van-button": "../../dist/button/index",
"van-button-group": "../../dist/button-group/index" "van-button-group": "../../dist/button-group/index"

View File

@ -1,4 +1,3 @@
<doc-page title="POPUP">
<van-button-group style="margin-top: 10vh;display: block;"> <van-button-group style="margin-top: 10vh;display: block;">
<van-button class="van-button" bind:buttonclick="togglePopup"> <van-button class="van-button" bind:buttonclick="togglePopup">
弹出popup 弹出popup
@ -85,5 +84,3 @@
</view> </view>
</view> </view>
</van-popup> </van-popup>
</doc-page>

View File

@ -3,7 +3,6 @@
"usingComponents": { "usingComponents": {
"van-radio": "../../dist/radio/index", "van-radio": "../../dist/radio/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="radio" without-padding>
<van-panel title='基本用法'> <van-panel title='基本用法'>
<van-radio <van-radio
items="{{ items }}" items="{{ items }}"
@ -32,4 +31,3 @@
type="list" type="list"
></van-radio> ></van-radio>
</van-panel> </van-panel>
</doc-page>

View File

@ -3,7 +3,6 @@
"usingComponents": { "usingComponents": {
"van-icon": "../icon/index", "van-icon": "../icon/index",
"van-search": "../../dist/search/index", "van-search": "../../dist/search/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="Search" without-padding>
<van-panel title='基本用法'> <van-panel title='基本用法'>
<van-search <van-search
alignLeft="{{ true }}" alignLeft="{{ true }}"
@ -48,4 +46,3 @@
bindcancel="handleCancel" bindcancel="handleCancel"
/> />
</van-panel> </van-panel>
</doc-page>

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Select 选择", "navigationBarTitleText": "Select 选择",
"usingComponents": { "usingComponents": {
"doc-page": "../../components/doc-page/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-select": "../../dist/select/index" "van-select": "../../dist/select/index"
} }

View File

@ -1,4 +1,3 @@
<doc-page title="SELECT" without-padding>
<van-panel title='基本用法'> <van-panel title='基本用法'>
<van-select <van-select
items="{{ items }}" items="{{ items }}"
@ -17,4 +16,3 @@
bind:change="handleSelectChange" bind:change="handleSelectChange"
/> />
</van-panel> </van-panel>
</doc-page>

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "Stepper 计数器", "navigationBarTitleText": "Stepper 计数器",
"usingComponents": { "usingComponents": {
"van-stepper": "../../dist/stepper/index", "van-stepper": "../../dist/stepper/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="Stepper" without-padding>
<van-panel title="基础用法"> <van-panel title="基础用法">
<view style="padding: 40px 15px"> <view style="padding: 40px 15px">
<van-stepper <van-stepper
@ -59,4 +58,3 @@
</van-stepper> </van-stepper>
</view> </view>
</van-panel> </van-panel>
</doc-page>

View File

@ -4,7 +4,6 @@
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index",
"van-cell-group": "../../dist/cell-group/index", "van-cell-group": "../../dist/cell-group/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-steps": "../../dist/steps/index", "van-steps": "../../dist/steps/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="STEPS" without-padding>
<van-panel title="基础用法"> <van-panel title="基础用法">
<van-cell-group> <van-cell-group>
<van-cell> <van-cell>
@ -62,5 +61,3 @@
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
</van-panel> </van-panel>
</doc-page>

View File

@ -3,7 +3,6 @@
"usingComponents": { "usingComponents": {
"van-switch": "../../dist/switch/index", "van-switch": "../../dist/switch/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="SWITCH" without-padding>
<van-panel title='同步开关'> <van-panel title='同步开关'>
<van-cell> <van-cell>
<van-switch checked="{{sync.checked}}" bind:change="syncChange" /> <van-switch checked="{{sync.checked}}" bind:change="syncChange" />
@ -23,5 +21,3 @@
<van-switch theme-class="switch-theme" disabled="{{ false }}" checked/> <van-switch theme-class="switch-theme" disabled="{{ false }}" checked/>
</van-cell> </van-cell>
</van-panel> </van-panel>
</doc-page>

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Tab 标签", "navigationBarTitleText": "Tab 标签",
"usingComponents": { "usingComponents": {
"van-tab": "../../dist/tab/index", "van-tab": "../../dist/tab/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,5 +1,3 @@
<doc-page title="TAB" without-padding>
<view style="margin: 30px 0"> <view style="margin: 30px 0">
<van-tab <van-tab
list="{{ tab.list }}" list="{{ tab.list }}"
@ -22,5 +20,3 @@
height="{{ tab2.height }}" height="{{ tab2.height }}"
/> />
</view> </view>
</doc-page>

View File

@ -1,3 +0,0 @@
.doc-title {
margin-top: 50px;
}

View File

@ -3,7 +3,6 @@
"usingComponents": { "usingComponents": {
"van-cell": "../../dist/cell/index", "van-cell": "../../dist/cell/index",
"van-panel": "../../dist/panel/index", "van-panel": "../../dist/panel/index",
"van-tag": "../../dist/tag/index", "van-tag": "../../dist/tag/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="Tag" without-padding>
<van-panel title="基础用法" class="tag-demo"> <van-panel title="基础用法" class="tag-demo">
<van-cell> <van-cell>
<van-tag>灰色</van-tag> <van-tag>灰色</van-tag>
@ -25,4 +24,3 @@
<van-tag type="primary" plain disabled>返现不可用</van-tag> <van-tag type="primary" plain disabled>返现不可用</van-tag>
</van-cell> </van-cell>
</van-panel> </van-panel>
</doc-page>

View File

@ -2,8 +2,6 @@
<view class="container"> <view class="container">
<view class="doc-title van-hairline--bottom">TOAST</view>
<van-button-group style="margin-top: 15vh;display: block;"> <van-button-group style="margin-top: 15vh;display: block;">
<van-button bind:buttonclick="showToast"> <van-button bind:buttonclick="showToast">
显示toast 显示toast

View File

@ -2,7 +2,6 @@
"navigationBarTitleText": "Toptips 顶部提示", "navigationBarTitleText": "Toptips 顶部提示",
"usingComponents": { "usingComponents": {
"van-button": "../../dist/button/index", "van-button": "../../dist/button/index",
"van-toptips": "../../dist/toptips/index", "van-toptips": "../../dist/toptips/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="TOPTIPS">
<view style="margin-top: 30vh;"> <view style="margin-top: 30vh;">
<van-button bind:buttonclick="showTopTips"> <van-button bind:buttonclick="showTopTips">
显示toptips声明式调用 显示toptips声明式调用
@ -16,7 +15,6 @@
显示toptips持续一秒 显示toptips持续一秒
</van-button> </van-button>
</view> </view>
</doc-page>
<van-toptips <van-toptips
id="van-toptips" id="van-toptips"

View File

@ -1,7 +1,6 @@
{ {
"navigationBarTitleText": "Tree Select 分类选择", "navigationBarTitleText": "Tree Select 分类选择",
"usingComponents": { "usingComponents": {
"van-tree-select": "../../dist/tree-select/index", "van-tree-select": "../../dist/tree-select/index"
"doc-page": "../../components/doc-page/index"
} }
} }

View File

@ -1,4 +1,3 @@
<doc-page title="TREE SELECT" without-padding>
<view style="margin-top: 5vh;"> <view style="margin-top: 5vh;">
<van-tree-select <van-tree-select
items="{{ items }}" items="{{ items }}"
@ -8,4 +7,3 @@
bind:navclick="handleNavClick" bind:navclick="handleNavClick"
></van-tree-select> ></van-tree-select>
</view> </view>
</doc-page>