Commit 333d7f853b8baa510eab3cc6d24ad6e17144237f

Authored by other
1 parent fa7f82c3

update mew-iview

bot/default.js
... ... @@ -4,5 +4,10 @@ module.exports={
4 4 "build": [
5 5 ["npm","install"],
6 6 ["npm","run","dist"]
7   - ]
  7 + ],
  8 + "dists" : {
  9 + "types" : "types",
  10 + "dist" : "build",
  11 + "src" : "src"
  12 + }
8 13 }
9 14 \ No newline at end of file
... ...
config/build-style.js
... ... @@ -13,13 +13,13 @@ gulp.task('css', function () {
13 13 }))
14 14 .pipe(cleanCSS())
15 15 .pipe(rename('iview.css'))
16   - .pipe(gulp.dest('../dist/styles'));
  16 + .pipe(gulp.dest('../build/styles'));
17 17 });
18 18  
19 19 // 拷贝字体文件
20 20 gulp.task('fonts', function () {
21 21 gulp.src('../src/styles/common/iconfont/fonts/*.*')
22   - .pipe(gulp.dest('../dist/styles/fonts'));
  22 + .pipe(gulp.dest('../build/styles/fonts'));
23 23 });
24 24  
25 25 gulp.task('default', ['css', 'fonts']);
... ...
config/webpack.dist.dev.config.js
... ... @@ -12,8 +12,8 @@ module.exports = merge(webpackBaseConfig, {
12 12 main: './src/index.js'
13 13 },
14 14 output: {
15   - path: path.resolve(__dirname, '../dist'),
16   - publicPath: '/dist/',
  15 + path: path.resolve(__dirname, '../build'),
  16 + publicPath: '/build/',
17 17 filename: 'iview.js',
18 18 library: 'iview',
19 19 libraryTarget: 'umd',
... ...
config/webpack.dist.locale.config.js
... ... @@ -21,8 +21,8 @@ module.exports = {
21 21 ]
22 22 },
23 23 output: {
24   - path: path.resolve(__dirname, '../dist/locale'),
25   - publicPath: '/dist/locale/',
  24 + path: path.resolve(__dirname, '../build/locale'),
  25 + publicPath: '/build/locale/',
26 26 filename: '[name].js',
27 27 library: 'iview/locale',
28 28 libraryTarget: 'umd',
... ...
config/webpack.dist.prod.config.js
... ... @@ -13,8 +13,8 @@ module.exports = merge(webpackBaseConfig, {
13 13 main: './src/index.js'
14 14 },
15 15 output: {
16   - path: path.resolve(__dirname, '../dist'),
17   - publicPath: '/dist/',
  16 + path: path.resolve(__dirname, '../build'),
  17 + publicPath: '/build/',
18 18 filename: 'iview.min.js',
19 19 library: 'iview',
20 20 libraryTarget: 'umd',
... ...
src/styles/custom.less
... ... @@ -29,8 +29,12 @@
29 29  
30 30 @search-color : @mew-common-color;
31 31 @confirm-color : #ff9a4c;
  32 +@search-hover-color : @mew-common-color;
  33 +@confirm-hover-color : #ff9a4c;
  34 +
32 35 @cancel-color : @mew-white-color;
33 36 @reset-color : @mew-white-color;
  37 +@reset-hover-color : @mew-white-color;
34 38  
35 39 // Base
36 40 @body-background : #fff;
... ... @@ -223,4 +227,4 @@
223 227 @avatar-border-radius: @border-radius-small;
224 228  
225 229 // Anchor
226 230 -@anchor-border-width: 2px;
  231 +@anchor-border-width: 2px;
227 232 \ No newline at end of file
... ...