mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
zanui vue config
This commit is contained in:
parent
0e8b918f3e
commit
6e6c057ffd
@ -11,7 +11,7 @@ config.output = {
|
||||
};
|
||||
|
||||
config.externals = {
|
||||
vue: 'Vue'
|
||||
vue: 'vue'
|
||||
};
|
||||
|
||||
delete config.devtool;
|
||||
|
@ -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"
|
||||
}
|
||||
|
3
docs/examples-docs/image-pewview.md
Normal file
3
docs/examples-docs/image-pewview.md
Normal file
@ -0,0 +1,3 @@
|
||||
## ImagePreview 图片预览
|
||||
|
||||
|
5
docs/examples/image-pewview.vue
Normal file
5
docs/examples/image-pewview.vue
Normal file
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div class="page-image-pewview">
|
||||
<h1 class="page-title">Image Preview</h1>
|
||||
</div>
|
||||
</template>
|
@ -130,8 +130,8 @@
|
||||
"title": "Waterfall"
|
||||
},
|
||||
{
|
||||
"path": "/img-preview",
|
||||
"title": "Img Preview"
|
||||
"path": "/image-preview",
|
||||
"title": "ImagePreview 图片预览"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
8
packages/image-preview/CHANGELOG.md
Normal file
8
packages/image-preview/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
||||
## 0.0.2 (2017-01-20)
|
||||
|
||||
* 改了bug A
|
||||
* 加了功能B
|
||||
|
||||
## 0.0.1 (2017-01-10)
|
||||
|
||||
* 第一版
|
26
packages/image-preview/README.md
Normal file
26
packages/image-preview/README.md
Normal file
@ -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)
|
3
packages/image-preview/index.js
Normal file
3
packages/image-preview/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import ImagePreview from './src/image-preview';
|
||||
|
||||
export default ImagePreview;
|
10
packages/image-preview/package.json
Normal file
10
packages/image-preview/package.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@youzan/zan-image-pewview",
|
||||
"version": "0.0.1",
|
||||
"description": "image preview component",
|
||||
"main": "./index.js",
|
||||
"author": "zhangmin <zhangmin@youzan.com>",
|
||||
"license": "MIT",
|
||||
"devDependencies": {},
|
||||
"dependencies": {}
|
||||
}
|
18
packages/image-preview/src/image-preview.vue
Normal file
18
packages/image-preview/src/image-preview.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>author: {{ author }}</h2>
|
||||
<div>Hello {{ name }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Sample',
|
||||
props: ['author'],
|
||||
data() {
|
||||
return {
|
||||
name: 'World'
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
@ -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
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user