dpzvc-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/build-style.js +42 -0
- package/dist/dpzvc.js +17605 -0
- package/dist/styles/dpzvc.css +1 -0
- package/dist-prod/index.html +26 -0
- package/dist-prod/main.js +1 -0
- package/dist-prod/vendor.bundle.js +1 -0
- package/package.json +88 -0
- package/src/components/Indicator/Indicator.vue +77 -0
- package/src/components/Indicator/index.js +153 -0
- package/src/components/Text/Number.vue +201 -0
- package/src/components/Text/index.js +7 -0
- package/src/components/Text/textBar.vue +142 -0
- package/src/components/action-sheet/actionSheet.vue +91 -0
- package/src/components/action-sheet/index.js +5 -0
- package/src/components/app.vue +66 -0
- package/src/components/badge/badge.vue +77 -0
- package/src/components/badge/index.js +5 -0
- package/src/components/button/button.vue +122 -0
- package/src/components/button/index.js +5 -0
- package/src/components/card/card.vue +59 -0
- package/src/components/card/index.js +5 -0
- package/src/components/cell/cell.vue +103 -0
- package/src/components/cell/index.js +5 -0
- package/src/components/cell-swipe/cell-swipe.vue +148 -0
- package/src/components/cell-swipe/index.js +5 -0
- package/src/components/checkBox/checkbox-group.vue +76 -0
- package/src/components/checkBox/checkbox.vue +107 -0
- package/src/components/checkBox/index.js +8 -0
- package/src/components/header/header.vue +82 -0
- package/src/components/header/index.js +5 -0
- package/src/components/loadMore/index.js +5 -0
- package/src/components/loadMore/loadmore.vue +293 -0
- package/src/components/message/confirm.js +52 -0
- package/src/components/message/index.js +132 -0
- package/src/components/message/message.vue +135 -0
- package/src/components/message/messageGroup.vue +74 -0
- package/src/components/modal/confirm.js +161 -0
- package/src/components/modal/index.js +63 -0
- package/src/components/modal/modal.vue +144 -0
- package/src/components/picker/area-picker/area-picker.vue +223 -0
- package/src/components/picker/area-picker/props.js +17 -0
- package/src/components/picker/date-picker/date-picker.vue +291 -0
- package/src/components/picker/date-picker/props.js +24 -0
- package/src/components/picker/index.js +5 -0
- package/src/components/picker/normal-picker/normal-picker.vue +107 -0
- package/src/components/picker/normal-picker/props.js +20 -0
- package/src/components/picker/picker-slot.vue +206 -0
- package/src/components/picker/picker.vue +111 -0
- package/src/components/popup/index.js +5 -0
- package/src/components/popup/popup.vue +117 -0
- package/src/components/progress/index.js +5 -0
- package/src/components/progress/progress.vue +77 -0
- package/src/components/prompt/confirm.js +174 -0
- package/src/components/prompt/index.js +50 -0
- package/src/components/prompt/prompt.vue +166 -0
- package/src/components/radioBox/index.js +8 -0
- package/src/components/radioBox/radiobox-group.vue +74 -0
- package/src/components/radioBox/radiobox.vue +117 -0
- package/src/components/rater/index.js +5 -0
- package/src/components/rater/rater.vue +164 -0
- package/src/components/slideBar/index.js +6 -0
- package/src/components/slideBar/slideBar.vue +269 -0
- package/src/components/spinner/behavior/blade.vue +22 -0
- package/src/components/spinner/behavior/double-bounce.vue +22 -0
- package/src/components/spinner/behavior/fading-circle.vue +37 -0
- package/src/components/spinner/behavior/snake.vue +32 -0
- package/src/components/spinner/behavior/triple-bounce.vue +41 -0
- package/src/components/spinner/index.js +5 -0
- package/src/components/spinner/props.js +25 -0
- package/src/components/spinner/spinner.vue +74 -0
- package/src/components/swipe/index.js +5 -0
- package/src/components/swipe/swipe.vue +399 -0
- package/src/components/switchbar/index.js +5 -0
- package/src/components/switchbar/switchbar.vue +83 -0
- package/src/components/tab/index.js +6 -0
- package/src/components/tab/tab.vue +95 -0
- package/src/components/toTop/index.js +5 -0
- package/src/components/toTop/topTop.vue +76 -0
- package/src/components/upload/index.js +5 -0
- package/src/components/upload/upload.vue +200 -0
- package/src/config/config.js +17 -0
- package/src/directives/clickoutside.js +32 -0
- package/src/directives/tranferDom.js +65 -0
- package/src/index.js +83 -0
- package/src/lib/MegaPixImage.js +253 -0
- package/src/lib/exif.js +808 -0
- package/src/main.js +76 -0
- package/src/mixin/emitter.js +41 -0
- package/src/mixin/input.js +41 -0
- package/src/router.js +229 -0
- package/src/styles/base/font.less +99 -0
- package/src/styles/base/reset.less +69 -0
- package/src/styles/base/variable.less +108 -0
- package/src/styles/components/actionSheet.less +43 -0
- package/src/styles/components/badge.less +79 -0
- package/src/styles/components/button.less +123 -0
- package/src/styles/components/card.less +31 -0
- package/src/styles/components/cell-swipe.less +20 -0
- package/src/styles/components/cell.less +71 -0
- package/src/styles/components/checkBox.less +111 -0
- package/src/styles/components/editor.less +3 -0
- package/src/styles/components/header.less +70 -0
- package/src/styles/components/indicator.less +37 -0
- package/src/styles/components/loadmore.less +48 -0
- package/src/styles/components/message.less +57 -0
- package/src/styles/components/modal.less +82 -0
- package/src/styles/components/number.less +58 -0
- package/src/styles/components/picker.less +150 -0
- package/src/styles/components/popup.less +46 -0
- package/src/styles/components/progress.less +50 -0
- package/src/styles/components/prompt.less +37 -0
- package/src/styles/components/radioBox.less +136 -0
- package/src/styles/components/slide-Bar.less +147 -0
- package/src/styles/components/spinner.less +328 -0
- package/src/styles/components/swipe.less +125 -0
- package/src/styles/components/switchBar.less +88 -0
- package/src/styles/components/tab.less +69 -0
- package/src/styles/components/text.less +80 -0
- package/src/styles/components/toTop.less +26 -0
- package/src/styles/components/upload.less +23 -0
- package/src/styles/index.less +38 -0
- package/src/styles/utils/1px.less +204 -0
- package/src/styles/utils/animation.less +131 -0
- package/src/styles/utils/nowrap.less +19 -0
- package/src/template/index.ejs +26 -0
- package/src/utils/util.js +203 -0
- package/src/vconsole-resources.min.js +6 -0
- package/src/vconsole-sources.min.js +6 -0
- package/src/vconsole.min.js +7 -0
- package/src/views/ActionSheet.vue +33 -0
- package/src/views/Badge.vue +40 -0
- package/src/views/Button.vue +40 -0
- package/src/views/Card.vue +52 -0
- package/src/views/Cell.vue +21 -0
- package/src/views/CellSwipe.vue +85 -0
- package/src/views/CheckBox.vue +53 -0
- package/src/views/Header.vue +47 -0
- package/src/views/Indicator.vue +69 -0
- package/src/views/LoadMore.vue +54 -0
- package/src/views/Message.vue +42 -0
- package/src/views/Modal.vue +32 -0
- package/src/views/Picker.vue +50 -0
- package/src/views/Popup.vue +87 -0
- package/src/views/Progress.vue +32 -0
- package/src/views/Prompt.vue +31 -0
- package/src/views/RadioBox.vue +55 -0
- package/src/views/Rater.vue +39 -0
- package/src/views/SlideBar.vue +47 -0
- package/src/views/Spinner.vue +15 -0
- package/src/views/Swipe.vue +34 -0
- package/src/views/SwitchBar.vue +36 -0
- package/src/views/Tab.vue +41 -0
- package/src/views/Text.vue +64 -0
- package/src/views/ToTop.vue +17 -0
- package/src/views/Upload.vue +44 -0
- package/src/views/guide.vue +159 -0
- package/src/views/index.vue +435 -0
- package/webpack.base.config.js +74 -0
- package/webpack.dev.config.js +67 -0
- package/webpack.dist.dev.config.js +44 -0
- package/webpack.dist.prod.config.js +50 -0
- package/webpack.prod.config.js +72 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本地预览
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var fs = require('fs');
|
|
7
|
+
var webpack = require('webpack');
|
|
8
|
+
// var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
9
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
10
|
+
var merge = require('webpack-merge');
|
|
11
|
+
var webpackBaseConfig = require('./webpack.base.config.js');
|
|
12
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
13
|
+
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
process.env.NODE_ENV = '"development"'
|
|
17
|
+
module.exports = merge(webpackBaseConfig, {
|
|
18
|
+
// 入口
|
|
19
|
+
entry: {
|
|
20
|
+
main: './src/main',
|
|
21
|
+
vendors: ['vue', 'vue-router']
|
|
22
|
+
},
|
|
23
|
+
// 输出
|
|
24
|
+
output: {
|
|
25
|
+
path:path.join(__dirname, './example'),
|
|
26
|
+
publicPath: '',
|
|
27
|
+
filename: '[name].js',
|
|
28
|
+
chunkFilename: '[name].chunk.js'
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
alias: {
|
|
32
|
+
dpzvc: './src/index',
|
|
33
|
+
vue: 'vue/dist/vue.js'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
plugins: [
|
|
37
|
+
|
|
38
|
+
new webpack.DefinePlugin({
|
|
39
|
+
'process.env.NODE_ENV': process.env.NODE_ENV,
|
|
40
|
+
}),
|
|
41
|
+
new ExtractTextPlugin({ filename: '[name].css', disable: true, allChunks: true }),
|
|
42
|
+
new webpack.optimize.CommonsChunkPlugin({ name: 'vendors', filename: 'vendor.bundle.js' }),
|
|
43
|
+
new webpack.LoaderOptionsPlugin({
|
|
44
|
+
// test: /\.xxx$/, // may apply this only for some modules
|
|
45
|
+
options: {
|
|
46
|
+
babel:{
|
|
47
|
+
presets: ['es2015','stage-0'],
|
|
48
|
+
plugins: ['transform-runtime']
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
new HtmlWebpackPlugin({
|
|
53
|
+
inject: true,
|
|
54
|
+
filename: '../example/index.html',
|
|
55
|
+
template: './src/template/index.ejs'
|
|
56
|
+
}),
|
|
57
|
+
new FriendlyErrorsPlugin()
|
|
58
|
+
],
|
|
59
|
+
devServer:{
|
|
60
|
+
contentBase:"./",
|
|
61
|
+
// host:"192.168.1.101",
|
|
62
|
+
// host:"192.168.0.131",
|
|
63
|
+
host:"localhost",
|
|
64
|
+
port:"3000"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var path = require('path');
|
|
2
|
+
var webpack = require('webpack');
|
|
3
|
+
var merge = require('webpack-merge');
|
|
4
|
+
var webpackBaseConfig = require('./webpack.base.config.js');
|
|
5
|
+
|
|
6
|
+
process.env.NODE_ENV = 'production';
|
|
7
|
+
|
|
8
|
+
module.exports = merge(webpackBaseConfig, {
|
|
9
|
+
entry: {
|
|
10
|
+
main: './src/index.js'
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
path: path.resolve(__dirname, './dist'),
|
|
14
|
+
publicPath: '/dist/',
|
|
15
|
+
filename: 'dpzvc.js',
|
|
16
|
+
library: 'dpzvc',
|
|
17
|
+
libraryTarget: 'umd',
|
|
18
|
+
umdNamedDefine: true
|
|
19
|
+
},
|
|
20
|
+
externals: {
|
|
21
|
+
vue: {
|
|
22
|
+
root: 'Vue',
|
|
23
|
+
commonjs: 'vue',
|
|
24
|
+
commonjs2: 'vue',
|
|
25
|
+
amd: 'vue'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
plugins: [
|
|
29
|
+
new webpack.LoaderOptionsPlugin({
|
|
30
|
+
// test: /\.xxx$/, // may apply this only for some modules
|
|
31
|
+
options: {
|
|
32
|
+
babel:{
|
|
33
|
+
presets: ['es2015'],
|
|
34
|
+
plugins: ['transform-runtime']
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}),
|
|
38
|
+
new webpack.DefinePlugin({
|
|
39
|
+
'process.env': {
|
|
40
|
+
NODE_ENV: '"production"'
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var path = require('path');
|
|
2
|
+
var webpack = require('webpack');
|
|
3
|
+
var merge = require('webpack-merge');
|
|
4
|
+
var webpackBaseConfig = require('./webpack.base.config.js');
|
|
5
|
+
|
|
6
|
+
process.env.NODE_ENV = 'production';
|
|
7
|
+
|
|
8
|
+
module.exports = merge(webpackBaseConfig, {
|
|
9
|
+
entry: {
|
|
10
|
+
main: './src/index.js'
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
path: path.resolve(__dirname, './dist'),
|
|
14
|
+
publicPath: '/dist/',
|
|
15
|
+
filename: 'dpzvc.min.js',
|
|
16
|
+
library: 'dpzvc',
|
|
17
|
+
libraryTarget: 'umd',
|
|
18
|
+
umdNamedDefine: true
|
|
19
|
+
},
|
|
20
|
+
externals: {
|
|
21
|
+
|
|
22
|
+
vue: {
|
|
23
|
+
root: 'Vue',
|
|
24
|
+
commonjs: 'vue',
|
|
25
|
+
commonjs2: 'vue',
|
|
26
|
+
amd: 'vue'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
plugins: [
|
|
30
|
+
new webpack.DefinePlugin({
|
|
31
|
+
'process.env.NODE_ENV': '"production"'
|
|
32
|
+
}),
|
|
33
|
+
new webpack.LoaderOptionsPlugin({
|
|
34
|
+
// test: /\.xxx$/, // may apply this only for some modules
|
|
35
|
+
options: {
|
|
36
|
+
babel:{
|
|
37
|
+
presets: ['es2015','stage-0'],
|
|
38
|
+
plugins: ['transform-runtime']
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
43
|
+
compress: {
|
|
44
|
+
warnings: false,
|
|
45
|
+
drop_debugger: true,
|
|
46
|
+
drop_console: true
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本地预览
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var fs = require('fs');
|
|
7
|
+
var webpack = require('webpack');
|
|
8
|
+
// var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
9
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
10
|
+
var merge = require('webpack-merge');
|
|
11
|
+
var webpackBaseConfig = require('./webpack.base.config.js');
|
|
12
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
13
|
+
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
process.env.NODE_ENV = '"production"'
|
|
17
|
+
module.exports = merge(webpackBaseConfig, {
|
|
18
|
+
// 入口
|
|
19
|
+
entry: {
|
|
20
|
+
main: './src/main',
|
|
21
|
+
vendors: ['vue', 'vue-router']
|
|
22
|
+
},
|
|
23
|
+
// 输出
|
|
24
|
+
output: {
|
|
25
|
+
path:path.join(__dirname, './dist-prod'),
|
|
26
|
+
publicPath: '',
|
|
27
|
+
filename: '[name].js',
|
|
28
|
+
chunkFilename: '[name].chunk.js'
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
alias: {
|
|
32
|
+
dpzvc: './src/index',
|
|
33
|
+
vue: 'vue/dist/vue.js'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
plugins: [
|
|
37
|
+
|
|
38
|
+
new webpack.DefinePlugin({
|
|
39
|
+
'process.env.NODE_ENV': process.env.NODE_ENV,
|
|
40
|
+
}),
|
|
41
|
+
// new ExtractTextPlugin({ filename: '[name].css', disable: true, allChunks: true }),
|
|
42
|
+
new webpack.optimize.CommonsChunkPlugin({ name: 'vendors', filename: 'vendor.bundle.js' }),
|
|
43
|
+
new webpack.LoaderOptionsPlugin({
|
|
44
|
+
// test: /\.xxx$/, // may apply this only for some modules
|
|
45
|
+
options: {
|
|
46
|
+
babel:{
|
|
47
|
+
presets: ['es2015','stage-0'],
|
|
48
|
+
plugins: ['transform-runtime']
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
new HtmlWebpackPlugin({
|
|
53
|
+
inject: true,
|
|
54
|
+
filename: '../dist-prod/index.html',
|
|
55
|
+
template: './src/template/index.ejs'
|
|
56
|
+
}),
|
|
57
|
+
|
|
58
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
59
|
+
compress: {
|
|
60
|
+
warnings: false,
|
|
61
|
+
drop_debugger: true,
|
|
62
|
+
drop_console: true
|
|
63
|
+
},
|
|
64
|
+
output: { // 删除打包后的注释
|
|
65
|
+
comments: false
|
|
66
|
+
}
|
|
67
|
+
}),
|
|
68
|
+
|
|
69
|
+
new FriendlyErrorsPlugin()
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
|