From 3a8a745f6af524e385d3a5d984a3a95eb782a1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 8 Sep 2017 10:20:40 +0800 Subject: [PATCH] Doc: update demo && nav --- docs/examples-docs/actionsheet.md | 12 --------- docs/examples-docs/goods-action.md | 2 +- docs/src/ExamplesDocsApp.vue | 5 ++++ docs/src/doc.config.js | 39 ++++++++++++------------------ packages/pay-order/index.vue | 2 +- 5 files changed, 23 insertions(+), 37 deletions(-) diff --git a/docs/examples-docs/actionsheet.md b/docs/examples-docs/actionsheet.md index f1ccf7955..72bb79bc5 100644 --- a/docs/examples-docs/actionsheet.md +++ b/docs/examples-docs/actionsheet.md @@ -31,10 +31,6 @@ export default { name: '支付宝支付', loading: true }, - { - name: '有赞E卡', - subname: '(剩余260.50元)' - }, { name: '信用卡支付' }, @@ -90,10 +86,6 @@ export default { name: '支付宝支付', loading: true }, - { - name: '有赞E卡', - subname: '(剩余260.50元)' - }, { name: '信用卡支付' }, @@ -139,10 +131,6 @@ export default { name: '支付宝支付', loading: true }, - { - name: '有赞E卡', - subname: '(剩余260.50元)' - }, { name: '信用卡支付' }, diff --git a/docs/examples-docs/goods-action.md b/docs/examples-docs/goods-action.md index c4e65e574..5e03c1945 100644 --- a/docs/examples-docs/goods-action.md +++ b/docs/examples-docs/goods-action.md @@ -21,7 +21,7 @@ export default { } -## GoodsAction 商品操作 +## GoodsAction 商品页行动点 ### 使用指南 ``` javascript diff --git a/docs/src/ExamplesDocsApp.vue b/docs/src/ExamplesDocsApp.vue index 921b7ff62..2e3b78a03 100644 --- a/docs/src/ExamplesDocsApp.vue +++ b/docs/src/ExamplesDocsApp.vue @@ -11,6 +11,11 @@ import docConfig from './doc.config'; export default { data() { + if (location.host === 'www.youzanyun.com') { + const group = docConfig['zh-CN'].nav[0].groups[0]; + group.list = group.list.filter(item => item.title !== '业务组件'); + } + return { simulator: this.getSimulatorPath(), config: docConfig['zh-CN'] diff --git a/docs/src/doc.config.js b/docs/src/doc.config.js index b51fa8856..d0890fb2c 100644 --- a/docs/src/doc.config.js +++ b/docs/src/doc.config.js @@ -186,44 +186,37 @@ module.exports = { } ] }, + { + "groupName": "高阶组件", + "list": [ + { + "path": "/switch-cell", + "title": "SwitchCell 开关单元格" + } + ] + }, { "groupName": "业务组件", "list": [ + { + "path": "/area", + "title": "Area 省市区选择" + }, { "path": "/deep-select", "title": "DeepSelect 分类选择组件" }, - { - "path": "/express-way", - "title": "ExpressWay 配送方式" - }, { "path": "/goods-action", - "title": "GoodsAction 商品操作" + "title": "GoodsAction 商品页行动点" }, { - "path": "/invalid-goods", - "title": "InvalidGoods 不可用商品列表" - }, - { - "path": "/order-coupon", - "title": "OrderCoupon 下单页优惠券" - }, - { - "path": "/order-goods", - "title": "OrderGoods 下单页商品列表" + "path": "/coupon", + "title": "Coupon 优惠券选择器" }, { "path": "/pay-order", "title": "PayOrder 提交订单栏" - }, - { - "path": "/switch-cell", - "title": "SwitchCell 开关单元格" - }, - { - "path": "/area", - "title": "Area 省市区选择" } ] } diff --git a/packages/pay-order/index.vue b/packages/pay-order/index.vue index f9e5b4af1..35b79355d 100644 --- a/packages/pay-order/index.vue +++ b/packages/pay-order/index.vue @@ -1,7 +1,7 @@