From 61d5f551fd1f28e9e5899354919cb0ae1d0f5cae Mon Sep 17 00:00:00 2001 From: yangd Date: Thu, 30 Aug 2018 14:47:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E5=88=B0=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9,=E6=9B=B4=E6=96=B0=E5=88=B03.0.1?= =?UTF-8?q?=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.dist.prod.config.js | 11 +++++++---- types/select.d.ts | 6 +++--- yarn.lock | 26 +++++++++++++++++++------- 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/build/webpack.dist.prod.config.js b/build/webpack.dist.prod.config.js index 656f49f1..94cc5829 100644 --- a/build/webpack.dist.prod.config.js +++ b/build/webpack.dist.prod.config.js @@ -36,7 +36,7 @@ module.exports = merge(webpackBaseConfig, { }), new UglifyJsPlugin({ parallel: true, - sourceMap: true, + sourceMap: true }), new CompressionPlugin({ asset: '[path].gz[query]', @@ -45,8 +45,11 @@ module.exports = merge(webpackBaseConfig, { threshold: 10240, minRatio: 0.8 }), - new CopyWebpackPlugin([{ - from: __dirname + '/../types' - }]) + new CopyWebpackPlugin([ + { + from: path.resolve(__dirname, './../types'), + to: path.resolve(__dirname, './../dist/types') + } + ]) ] }); diff --git a/types/select.d.ts b/types/select.d.ts index 63ccab20..789a05ac 100644 --- a/types/select.d.ts +++ b/types/select.d.ts @@ -74,10 +74,10 @@ export declare class Select extends Vue { */ 'label-in-value'?: boolean; /** - * 弹窗的展开方向,可选值为 bottom 和 top - * @default bottom + * 弹窗的展开方向,可选值为 top、bottom、top-start、bottom-start、top-end、bottom-end + * @default bottom-start */ - placement?: 'bottom' | 'top'; + placement?: 'bottom' | 'top' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end'; /** * 是否将弹层放置于 body 内,在 Tabs、带有 fixed 的 Table 列内使用时, * 建议添加此属性,它将不受父级样式影响,从而达到更好的效果 diff --git a/yarn.lock b/yarn.lock index 4f20cc80..d439e34d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1572,6 +1572,12 @@ clean-css@4.1.11, clean-css@4.1.x: dependencies: source-map "0.5.x" +clean-webpack-plugin@^0.1.19: + version "0.1.19" + resolved "https://registry.yarnpkg.com/clean-webpack-plugin/-/clean-webpack-plugin-0.1.19.tgz#ceda8bb96b00fe168e9b080272960d20fdcadd6d" + dependencies: + rimraf "^2.6.1" + cli-cursor@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" @@ -1614,6 +1620,10 @@ clone@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb" +clone@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" + co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" @@ -3526,12 +3536,12 @@ gulp-clean-css@^3.9.3: through2 "2.0.3" vinyl-sourcemaps-apply "0.2.1" -gulp-less@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/gulp-less/-/gulp-less-4.0.0.tgz#3c49deb96bdca913e436921ef792fb4c24296fcd" +gulp-less@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/gulp-less/-/gulp-less-4.0.1.tgz#348c33a5dde7a207c5771b1d8261d1ac1021ceed" dependencies: accord "^0.29.0" - less "2.6.x || ^3.0.0" + less "2.6.x || ^3.7.1" object-assign "^4.0.1" plugin-error "^0.1.2" replace-ext "^1.0.0" @@ -4678,9 +4688,11 @@ less-loader@^4.0.6: loader-utils "^1.1.0" pify "^3.0.0" -"less@2.6.x || ^3.0.0": - version "3.0.4" - resolved "https://registry.yarnpkg.com/less/-/less-3.0.4.tgz#d27dcedbac96031c9e7b76f1da1e4b7d83760814" +"less@2.6.x || ^3.7.1": + version "3.8.1" + resolved "https://registry.yarnpkg.com/less/-/less-3.8.1.tgz#f31758598ef5a1930dd4caefa9e4340641e71e1d" + dependencies: + clone "^2.1.2" optionalDependencies: errno "^0.1.1" graceful-fs "^4.1.2"