Commit 61d5f551fd1f28e9e5899354919cb0ae1d0f5cae

Authored by yangd
1 parent 414730dd

打包到指定文件夹,更新到3.0.1的api

build/webpack.dist.prod.config.js
... ... @@ -36,7 +36,7 @@ module.exports = merge(webpackBaseConfig, {
36 36 }),
37 37 new UglifyJsPlugin({
38 38 parallel: true,
39   - sourceMap: true,
  39 + sourceMap: true
40 40 }),
41 41 new CompressionPlugin({
42 42 asset: '[path].gz[query]',
... ... @@ -45,8 +45,11 @@ module.exports = merge(webpackBaseConfig, {
45 45 threshold: 10240,
46 46 minRatio: 0.8
47 47 }),
48   - new CopyWebpackPlugin([{
49   - from: __dirname + '/../types'
50   - }])
  48 + new CopyWebpackPlugin([
  49 + {
  50 + from: path.resolve(__dirname, './../types'),
  51 + to: path.resolve(__dirname, './../dist/types')
  52 + }
  53 + ])
51 54 ]
52 55 });
... ...
types/select.d.ts
... ... @@ -74,10 +74,10 @@ export declare class Select extends Vue {
74 74 */
75 75 'label-in-value'?: boolean;
76 76 /**
77   - * 弹窗的展开方向,可选值为 bottom 和 top
78   - * @default bottom
  77 + * 弹窗的展开方向,可选值为 top、bottom、top-start、bottom-start、top-end、bottom-end
  78 + * @default bottom-start
79 79 */
80   - placement?: 'bottom' | 'top';
  80 + placement?: 'bottom' | 'top' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end';
81 81 /**
82 82 * 是否将弹层放置于 body 内,在 Tabs、带有 fixed 的 Table 列内使用时,
83 83 * 建议添加此属性,它将不受父级样式影响,从而达到更好的效果
... ...
yarn.lock
... ... @@ -1572,6 +1572,12 @@ clean-css@4.1.11, clean-css@4.1.x:
1572 1572 dependencies:
1573 1573 source-map "0.5.x"
1574 1574  
  1575 +clean-webpack-plugin@^0.1.19:
  1576 + version "0.1.19"
  1577 + resolved "https://registry.yarnpkg.com/clean-webpack-plugin/-/clean-webpack-plugin-0.1.19.tgz#ceda8bb96b00fe168e9b080272960d20fdcadd6d"
  1578 + dependencies:
  1579 + rimraf "^2.6.1"
  1580 +
1575 1581 cli-cursor@^1.0.1:
1576 1582 version "1.0.2"
1577 1583 resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
... ... @@ -1614,6 +1620,10 @@ clone@^2.1.1:
1614 1620 version "2.1.1"
1615 1621 resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb"
1616 1622  
  1623 +clone@^2.1.2:
  1624 + version "2.1.2"
  1625 + resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
  1626 +
1617 1627 co@^4.6.0:
1618 1628 version "4.6.0"
1619 1629 resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
... ... @@ -3526,12 +3536,12 @@ gulp-clean-css@^3.9.3:
3526 3536 through2 "2.0.3"
3527 3537 vinyl-sourcemaps-apply "0.2.1"
3528 3538  
3529   -gulp-less@^4.0.0:
3530   - version "4.0.0"
3531   - resolved "https://registry.yarnpkg.com/gulp-less/-/gulp-less-4.0.0.tgz#3c49deb96bdca913e436921ef792fb4c24296fcd"
  3539 +gulp-less@^4.0.1:
  3540 + version "4.0.1"
  3541 + resolved "https://registry.yarnpkg.com/gulp-less/-/gulp-less-4.0.1.tgz#348c33a5dde7a207c5771b1d8261d1ac1021ceed"
3532 3542 dependencies:
3533 3543 accord "^0.29.0"
3534   - less "2.6.x || ^3.0.0"
  3544 + less "2.6.x || ^3.7.1"
3535 3545 object-assign "^4.0.1"
3536 3546 plugin-error "^0.1.2"
3537 3547 replace-ext "^1.0.0"
... ... @@ -4678,9 +4688,11 @@ less-loader@^4.0.6:
4678 4688 loader-utils "^1.1.0"
4679 4689 pify "^3.0.0"
4680 4690  
4681   -"less@2.6.x || ^3.0.0":
4682   - version "3.0.4"
4683   - resolved "https://registry.yarnpkg.com/less/-/less-3.0.4.tgz#d27dcedbac96031c9e7b76f1da1e4b7d83760814"
  4691 +"less@2.6.x || ^3.7.1":
  4692 + version "3.8.1"
  4693 + resolved "https://registry.yarnpkg.com/less/-/less-3.8.1.tgz#f31758598ef5a1930dd4caefa9e4340641e71e1d"
  4694 + dependencies:
  4695 + clone "^2.1.2"
4684 4696 optionalDependencies:
4685 4697 errno "^0.1.1"
4686 4698 graceful-fs "^4.1.2"
... ...