Skip to content

Commit ab98f9c

Browse files
author
chenchen
committed
rename the plugin
1 parent 37cb2fe commit ab98f9c

File tree

7 files changed

+23
-32
lines changed

7 files changed

+23
-32
lines changed

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

ChineaseREADME.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# VueDialog
2-
> A mobile Vue plugin for VueDialog
1+
# vue2-dialog
2+
> A mobile Vue plugin for Dialog
33
4-
> pluginName: VueDialog
4+
> pluginName: vue2-dialog
55
66
> version: 1.0.0
77
@@ -21,21 +21,21 @@
2121
## 使用方法
2222
* 通过NPM下载安装插件
2323
```node
24-
npm install VueDialog --save
24+
npm install vue2-dialog --save
2525
```
2626

2727
#### 1.在vue单文件里使用(vue-cli)
2828
* 通过import或者require 导入插件,手动调用Vue.use() ,全局调用(直接加载所有的组件)
2929

3030
``` javascript
31-
import {VueDialog} from 'VueDialog'
31+
import {VueDialog} from 'vue2-dialog'
3232
Vue.use(VueDialog)
3333
```
3434

3535
* 通过import或者require 导入插件,手动调用Vue.use() ,按需加载(只会加载你需要的组件)
3636

3737
``` javascript
38-
import {Scroller,Alert,Confirm} from 'VueDialog'
38+
import {Scroller,Alert,Confirm} from 'vue2-dialog'
3939
Vue.component(Scroller.name,Scroller)
4040
Vue.component(Alert.name,Alert)
4141
Vue.component(Confirm.name,Confirm)
@@ -45,7 +45,7 @@ Vue.component(Confirm.name,Confirm)
4545
* 直接在script标签里通过src引入,但你必须先引入vuejs的script
4646

4747
``` html
48-
<script src="dist/VueDialog.js"></script>
48+
<script src="dist/vue2-dialog.js"></script>
4949
```
5050

5151
* 直接在vue单文件组件里使用或者在html里使用组件

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# VueDialog
2-
> A mobile Vue plugin for VueDialog
1+
# vue2-dialog
2+
> A mobile Vue plugin for Dialog
33
4-
> pluginName: VueDialog
4+
> pluginName: vue2-dialog
55
66
> version: 1.0.0
77
@@ -22,23 +22,23 @@
2222

2323
[中文文档](./ChineaseREADME.md)
2424
## How to use
25-
* NPM install the VueDialog plugin
25+
* NPM install the vue2-dialog plugin
2626
```node
27-
npm install VueDialog --save
27+
npm install vue2-dialog --save
2828
```
2929

3030
#### 1.vue spa
3131
* import the plugin and use **(global use)**
3232

3333
``` javascript
34-
import {VueDialog} from 'VueDialog'
34+
import {VueDialog} from 'vue2-dialog'
3535
Vue.use(VueDialog)
3636
```
3737

3838
* import some components that you need and use **(local use)**
3939

4040
``` javascript
41-
import {Scroller,Alert,Confirm} from 'VueDialog'
41+
import {Scroller,Alert,Confirm} from 'vue2-dialog'
4242
Vue.component(Scroller.name,Scroller)
4343
Vue.component(Alert.name,Alert)
4444
Vue.component(Confirm.name,Confirm)
@@ -48,7 +48,7 @@ Vue.component(Confirm.name,Confirm)
4848
* directly write the script,in deed you have to `insert the vue.js` script firstly
4949

5050
``` html
51-
<script src="dist/VueDialog.js"></script>
51+
<script src="dist/vue2-dialog.js"></script>
5252
```
5353

5454
* use the components directly in your vue spa file or the Vue instance ,like

dist/VueDialog.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/vue2-dialog.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "VueDialog",
2+
"name": "vue2-dialog",
33
"description": "a plugin for vue dialog ",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"author": "Alan Chen",
66
"private": false,
77
"license": "MIT",
8-
"main": "dist/VueDialog.js",
8+
"main": "dist/vue2-dialog.js",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/alanchenchen/VueDialog"
11+
"url": "https://github.com/alanchenchen/vue2-dialog"
1212
},
1313
"scripts": {
1414
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = {
66
output: {
77
path: path.resolve(__dirname, './dist'),
88
publicPath: '/dist/',
9-
filename: 'VueDialog.js',
10-
library: 'VueDialog',
9+
filename: 'vue2-dialog.js',
10+
library: 'vue2-dialog',
1111
libraryTarget: 'umd',
1212
umdNamedDefine: true
1313
},

0 commit comments

Comments
 (0)