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.
Files changed (164) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -0
  3. package/build-style.js +42 -0
  4. package/dist/dpzvc.js +17605 -0
  5. package/dist/styles/dpzvc.css +1 -0
  6. package/dist-prod/index.html +26 -0
  7. package/dist-prod/main.js +1 -0
  8. package/dist-prod/vendor.bundle.js +1 -0
  9. package/package.json +88 -0
  10. package/src/components/Indicator/Indicator.vue +77 -0
  11. package/src/components/Indicator/index.js +153 -0
  12. package/src/components/Text/Number.vue +201 -0
  13. package/src/components/Text/index.js +7 -0
  14. package/src/components/Text/textBar.vue +142 -0
  15. package/src/components/action-sheet/actionSheet.vue +91 -0
  16. package/src/components/action-sheet/index.js +5 -0
  17. package/src/components/app.vue +66 -0
  18. package/src/components/badge/badge.vue +77 -0
  19. package/src/components/badge/index.js +5 -0
  20. package/src/components/button/button.vue +122 -0
  21. package/src/components/button/index.js +5 -0
  22. package/src/components/card/card.vue +59 -0
  23. package/src/components/card/index.js +5 -0
  24. package/src/components/cell/cell.vue +103 -0
  25. package/src/components/cell/index.js +5 -0
  26. package/src/components/cell-swipe/cell-swipe.vue +148 -0
  27. package/src/components/cell-swipe/index.js +5 -0
  28. package/src/components/checkBox/checkbox-group.vue +76 -0
  29. package/src/components/checkBox/checkbox.vue +107 -0
  30. package/src/components/checkBox/index.js +8 -0
  31. package/src/components/header/header.vue +82 -0
  32. package/src/components/header/index.js +5 -0
  33. package/src/components/loadMore/index.js +5 -0
  34. package/src/components/loadMore/loadmore.vue +293 -0
  35. package/src/components/message/confirm.js +52 -0
  36. package/src/components/message/index.js +132 -0
  37. package/src/components/message/message.vue +135 -0
  38. package/src/components/message/messageGroup.vue +74 -0
  39. package/src/components/modal/confirm.js +161 -0
  40. package/src/components/modal/index.js +63 -0
  41. package/src/components/modal/modal.vue +144 -0
  42. package/src/components/picker/area-picker/area-picker.vue +223 -0
  43. package/src/components/picker/area-picker/props.js +17 -0
  44. package/src/components/picker/date-picker/date-picker.vue +291 -0
  45. package/src/components/picker/date-picker/props.js +24 -0
  46. package/src/components/picker/index.js +5 -0
  47. package/src/components/picker/normal-picker/normal-picker.vue +107 -0
  48. package/src/components/picker/normal-picker/props.js +20 -0
  49. package/src/components/picker/picker-slot.vue +206 -0
  50. package/src/components/picker/picker.vue +111 -0
  51. package/src/components/popup/index.js +5 -0
  52. package/src/components/popup/popup.vue +117 -0
  53. package/src/components/progress/index.js +5 -0
  54. package/src/components/progress/progress.vue +77 -0
  55. package/src/components/prompt/confirm.js +174 -0
  56. package/src/components/prompt/index.js +50 -0
  57. package/src/components/prompt/prompt.vue +166 -0
  58. package/src/components/radioBox/index.js +8 -0
  59. package/src/components/radioBox/radiobox-group.vue +74 -0
  60. package/src/components/radioBox/radiobox.vue +117 -0
  61. package/src/components/rater/index.js +5 -0
  62. package/src/components/rater/rater.vue +164 -0
  63. package/src/components/slideBar/index.js +6 -0
  64. package/src/components/slideBar/slideBar.vue +269 -0
  65. package/src/components/spinner/behavior/blade.vue +22 -0
  66. package/src/components/spinner/behavior/double-bounce.vue +22 -0
  67. package/src/components/spinner/behavior/fading-circle.vue +37 -0
  68. package/src/components/spinner/behavior/snake.vue +32 -0
  69. package/src/components/spinner/behavior/triple-bounce.vue +41 -0
  70. package/src/components/spinner/index.js +5 -0
  71. package/src/components/spinner/props.js +25 -0
  72. package/src/components/spinner/spinner.vue +74 -0
  73. package/src/components/swipe/index.js +5 -0
  74. package/src/components/swipe/swipe.vue +399 -0
  75. package/src/components/switchbar/index.js +5 -0
  76. package/src/components/switchbar/switchbar.vue +83 -0
  77. package/src/components/tab/index.js +6 -0
  78. package/src/components/tab/tab.vue +95 -0
  79. package/src/components/toTop/index.js +5 -0
  80. package/src/components/toTop/topTop.vue +76 -0
  81. package/src/components/upload/index.js +5 -0
  82. package/src/components/upload/upload.vue +200 -0
  83. package/src/config/config.js +17 -0
  84. package/src/directives/clickoutside.js +32 -0
  85. package/src/directives/tranferDom.js +65 -0
  86. package/src/index.js +83 -0
  87. package/src/lib/MegaPixImage.js +253 -0
  88. package/src/lib/exif.js +808 -0
  89. package/src/main.js +76 -0
  90. package/src/mixin/emitter.js +41 -0
  91. package/src/mixin/input.js +41 -0
  92. package/src/router.js +229 -0
  93. package/src/styles/base/font.less +99 -0
  94. package/src/styles/base/reset.less +69 -0
  95. package/src/styles/base/variable.less +108 -0
  96. package/src/styles/components/actionSheet.less +43 -0
  97. package/src/styles/components/badge.less +79 -0
  98. package/src/styles/components/button.less +123 -0
  99. package/src/styles/components/card.less +31 -0
  100. package/src/styles/components/cell-swipe.less +20 -0
  101. package/src/styles/components/cell.less +71 -0
  102. package/src/styles/components/checkBox.less +111 -0
  103. package/src/styles/components/editor.less +3 -0
  104. package/src/styles/components/header.less +70 -0
  105. package/src/styles/components/indicator.less +37 -0
  106. package/src/styles/components/loadmore.less +48 -0
  107. package/src/styles/components/message.less +57 -0
  108. package/src/styles/components/modal.less +82 -0
  109. package/src/styles/components/number.less +58 -0
  110. package/src/styles/components/picker.less +150 -0
  111. package/src/styles/components/popup.less +46 -0
  112. package/src/styles/components/progress.less +50 -0
  113. package/src/styles/components/prompt.less +37 -0
  114. package/src/styles/components/radioBox.less +136 -0
  115. package/src/styles/components/slide-Bar.less +147 -0
  116. package/src/styles/components/spinner.less +328 -0
  117. package/src/styles/components/swipe.less +125 -0
  118. package/src/styles/components/switchBar.less +88 -0
  119. package/src/styles/components/tab.less +69 -0
  120. package/src/styles/components/text.less +80 -0
  121. package/src/styles/components/toTop.less +26 -0
  122. package/src/styles/components/upload.less +23 -0
  123. package/src/styles/index.less +38 -0
  124. package/src/styles/utils/1px.less +204 -0
  125. package/src/styles/utils/animation.less +131 -0
  126. package/src/styles/utils/nowrap.less +19 -0
  127. package/src/template/index.ejs +26 -0
  128. package/src/utils/util.js +203 -0
  129. package/src/vconsole-resources.min.js +6 -0
  130. package/src/vconsole-sources.min.js +6 -0
  131. package/src/vconsole.min.js +7 -0
  132. package/src/views/ActionSheet.vue +33 -0
  133. package/src/views/Badge.vue +40 -0
  134. package/src/views/Button.vue +40 -0
  135. package/src/views/Card.vue +52 -0
  136. package/src/views/Cell.vue +21 -0
  137. package/src/views/CellSwipe.vue +85 -0
  138. package/src/views/CheckBox.vue +53 -0
  139. package/src/views/Header.vue +47 -0
  140. package/src/views/Indicator.vue +69 -0
  141. package/src/views/LoadMore.vue +54 -0
  142. package/src/views/Message.vue +42 -0
  143. package/src/views/Modal.vue +32 -0
  144. package/src/views/Picker.vue +50 -0
  145. package/src/views/Popup.vue +87 -0
  146. package/src/views/Progress.vue +32 -0
  147. package/src/views/Prompt.vue +31 -0
  148. package/src/views/RadioBox.vue +55 -0
  149. package/src/views/Rater.vue +39 -0
  150. package/src/views/SlideBar.vue +47 -0
  151. package/src/views/Spinner.vue +15 -0
  152. package/src/views/Swipe.vue +34 -0
  153. package/src/views/SwitchBar.vue +36 -0
  154. package/src/views/Tab.vue +41 -0
  155. package/src/views/Text.vue +64 -0
  156. package/src/views/ToTop.vue +17 -0
  157. package/src/views/Upload.vue +44 -0
  158. package/src/views/guide.vue +159 -0
  159. package/src/views/index.vue +435 -0
  160. package/webpack.base.config.js +74 -0
  161. package/webpack.dev.config.js +67 -0
  162. package/webpack.dist.dev.config.js +44 -0
  163. package/webpack.dist.prod.config.js +50 -0
  164. 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
+