From a6b4fe5a7b50d1d27b095a593a12a1bde44150b9 Mon Sep 17 00:00:00 2001 From: cookfront Date: Wed, 5 Apr 2017 14:34:32 +0800 Subject: [PATCH] lazyload --- docs/examples-dist/actionsheet.vue | 13 ++- docs/examples-dist/dialog.vue | 7 +- docs/examples-dist/lazyload.vue | 78 +++++++++++++ docs/examples-dist/swipe.vue | 29 +++-- docs/examples-docs/lazyload.md | 169 +++++++++++++++++++++++++++++ docs/examples-docs/swipe.md | 27 +++-- docs/examples.js | 3 + docs/index.js | 3 + docs/nav.config.json | 4 + package.json | 3 +- packages/lazyload/index.js | 82 +------------- 11 files changed, 314 insertions(+), 104 deletions(-) create mode 100644 docs/examples-dist/lazyload.vue create mode 100644 docs/examples-docs/lazyload.md diff --git a/docs/examples-dist/actionsheet.vue b/docs/examples-dist/actionsheet.vue index 7a2418f86..80300646d 100644 --- a/docs/examples-dist/actionsheet.vue +++ b/docs/examples-dist/actionsheet.vue @@ -5,6 +5,8 @@ + +
弹出带取消按钮的actionsheet @@ -12,6 +14,8 @@ + +
弹出带标题的actionsheet @@ -53,7 +57,8 @@ export default { actions1: [ { name: '微信安全支付', - className: 'actionsheet-wx' + className: 'actionsheet-wx', + callback: this.handleActionClick }, { name: '支付宝支付', @@ -71,6 +76,12 @@ export default { } ] }; + }, + + methods: { + handleActionClick(item) { + console.log(item); + } } } \ No newline at end of file diff --git a/docs/examples-dist/dialog.vue b/docs/examples-dist/dialog.vue index 54c15ce68..d71062379 100644 --- a/docs/examples-dist/dialog.vue +++ b/docs/examples-dist/dialog.vue @@ -1,7 +1,10 @@ -