diff --git a/build/webpack.config.js b/build/webpack.config.js
index 06f6c5859..1d311de95 100644
--- a/build/webpack.config.js
+++ b/build/webpack.config.js
@@ -43,7 +43,8 @@ module.exports = {
'zanui': path.join(__dirname, '..'),
'src': path.join(__dirname, '../src'),
'packages': path.join(__dirname, '../packages'),
- 'lib': path.join(__dirname, '../lib')
+ 'lib': path.join(__dirname, '../lib'),
+ 'components': path.join(__dirname, '../docs/components')
}
},
module: {
diff --git a/docs/components/mobile-computed.js b/docs/components/mobile-computed.js
new file mode 100644
index 000000000..fafec730d
--- /dev/null
+++ b/docs/components/mobile-computed.js
@@ -0,0 +1,19 @@
+import MobilePopup from 'components/mobile-popup.vue';
+
+export default {
+ components: {
+ MobilePopup
+ },
+
+ computed: {
+ mobileUrl() {
+ return '/examples.html' + location.hash;
+ }
+ },
+
+ data() {
+ return {
+ mobileShow: false
+ };
+ }
+};
diff --git a/docs/components/mobile-popup.vue b/docs/components/mobile-popup.vue
new file mode 100644
index 000000000..fb8b7f4e6
--- /dev/null
+++ b/docs/components/mobile-popup.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
diff --git a/docs/examples-dist/dialog.vue b/docs/examples-dist/dialog.vue
index 84234f0c7..fdcd93c61 100644
--- a/docs/examples-dist/dialog.vue
+++ b/docs/examples-dist/dialog.vue
@@ -6,12 +6,29 @@
-
+
\ No newline at end of file
+import Vue from "vue";import ExampleBlock from "../components/example-block";Vue.component("example-block", ExampleBlock);
+export default {
+ data() {
+ return {
+ username: 'zhangmin'
+ };
+ }
+};
+
\ No newline at end of file
diff --git a/docs/examples-dist/icon.vue b/docs/examples-dist/icon.vue
new file mode 100644
index 000000000..ed8d981e1
--- /dev/null
+++ b/docs/examples-dist/icon.vue
@@ -0,0 +1,33 @@
+icon
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/examples-dist/popup.vue b/docs/examples-dist/popup.vue
index e928446d9..21ebd7bfc 100644
--- a/docs/examples-dist/popup.vue
+++ b/docs/examples-dist/popup.vue
@@ -1,9 +1,9 @@