diff --git a/build/webpack.build.js b/build/webpack.build.js
index 7963aad45..15644942b 100644
--- a/build/webpack.build.js
+++ b/build/webpack.build.js
@@ -11,7 +11,7 @@ config.output = {
};
config.externals = {
- vue: 'Vue'
+ vue: 'vue'
};
delete config.devtool;
diff --git a/components.json b/components.json
index 4cd925021..2663baa6f 100644
--- a/components.json
+++ b/components.json
@@ -21,5 +21,6 @@
"badge-group": "./packages/badge-group/index.js",
"badge": "./packages/badge/index.js",
"search": "./packages/search/index.js",
- "step": "./packages/step/index.js"
+ "step": "./packages/step/index.js",
+ "image-preview": "./packages/image-preview/index.js"
}
diff --git a/docs/examples-docs/image-pewview.md b/docs/examples-docs/image-pewview.md
new file mode 100644
index 000000000..e7ed9b7fd
--- /dev/null
+++ b/docs/examples-docs/image-pewview.md
@@ -0,0 +1,3 @@
+## ImagePreview 图片预览
+
+
diff --git a/docs/examples/image-pewview.vue b/docs/examples/image-pewview.vue
new file mode 100644
index 000000000..4d6deff92
--- /dev/null
+++ b/docs/examples/image-pewview.vue
@@ -0,0 +1,5 @@
+
+
+
Image Preview
+
+
diff --git a/docs/nav.config.json b/docs/nav.config.json
index d42dc757b..aa6d7e287 100644
--- a/docs/nav.config.json
+++ b/docs/nav.config.json
@@ -130,8 +130,8 @@
"title": "Waterfall"
},
{
- "path": "/img-preview",
- "title": "Img Preview"
+ "path": "/image-preview",
+ "title": "ImagePreview 图片预览"
}
]
}
diff --git a/packages/image-preview/CHANGELOG.md b/packages/image-preview/CHANGELOG.md
new file mode 100644
index 000000000..e88c472b3
--- /dev/null
+++ b/packages/image-preview/CHANGELOG.md
@@ -0,0 +1,8 @@
+## 0.0.2 (2017-01-20)
+
+* 改了bug A
+* 加了功能B
+
+## 0.0.1 (2017-01-10)
+
+* 第一版
diff --git a/packages/image-preview/README.md b/packages/image-preview/README.md
new file mode 100644
index 000000000..4c6172563
--- /dev/null
+++ b/packages/image-preview/README.md
@@ -0,0 +1,26 @@
+# @youzan/<%= name %>
+
+!!! 请在此处填写你的文档最简单描述 !!!
+
+[![version][version-image]][download-url]
+[![download][download-image]][download-url]
+
+[version-image]: http://npm.qima-inc.com/badge/v/@youzan/<%= name %>.svg?style=flat-square
+[download-image]: http://npm.qima-inc.com/badge/d/@youzan/<%= name %>.svg?style=flat-square
+[download-url]: http://npm.qima-inc.com/package/@youzan/<%= name %>
+
+## Demo
+
+## Usage
+
+## API
+
+| 参数 | 说明 | 类型 | 默认值 | 可选值 |
+|-----------|-----------|-----------|-------------|-------------|
+| className | 自定义额外类名 | string | '' | '' |
+
+
+
+
+## License
+[MIT](https://opensource.org/licenses/MIT)
diff --git a/packages/image-preview/index.js b/packages/image-preview/index.js
new file mode 100644
index 000000000..3fffcc094
--- /dev/null
+++ b/packages/image-preview/index.js
@@ -0,0 +1,3 @@
+import ImagePreview from './src/image-preview';
+
+export default ImagePreview;
diff --git a/packages/image-preview/package.json b/packages/image-preview/package.json
new file mode 100644
index 000000000..7a120620b
--- /dev/null
+++ b/packages/image-preview/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "@youzan/zan-image-pewview",
+ "version": "0.0.1",
+ "description": "image preview component",
+ "main": "./index.js",
+ "author": "zhangmin ",
+ "license": "MIT",
+ "devDependencies": {},
+ "dependencies": {}
+}
diff --git a/packages/image-preview/src/image-preview.vue b/packages/image-preview/src/image-preview.vue
new file mode 100644
index 000000000..0d2c38ebd
--- /dev/null
+++ b/packages/image-preview/src/image-preview.vue
@@ -0,0 +1,18 @@
+
+
+
author: {{ author }}
+
Hello {{ name }}
+
+
+
+
diff --git a/src/index.js b/src/index.js
index 4a351e546..8fc313011 100644
--- a/src/index.js
+++ b/src/index.js
@@ -21,6 +21,7 @@ import BadgeGroup from '../packages/badge-group/index.js';
import Badge from '../packages/badge/index.js';
import Search from '../packages/search/index.js';
import Step from '../packages/step/index.js';
+import ImagePreview from '../packages/image-preview/index.js';
const install = function(Vue) {
if (install.installed) return;
@@ -46,6 +47,7 @@ const install = function(Vue) {
Vue.component(Badge.name, Badge);
Vue.component(Search.name, Search);
Vue.component(Step.name, Step);
+ Vue.component(ImagePreview.name, ImagePreview);
};
// auto install
@@ -78,5 +80,6 @@ module.exports = {
BadgeGroup,
Badge,
Search,
- Step
+ Step,
+ ImagePreview
};