From 40967325acd2562975f815d2360f3396d9e7652b Mon Sep 17 00:00:00 2001 From: cdswyda Date: Fri, 7 May 2021 10:08:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=93=E5=8C=85=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=88=E6=9C=AC=E7=AD=89banner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index c5d2f2b..c83ef71 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -32,6 +32,13 @@ const babel = require('@rollup/plugin-babel').default; // Distinguish development and production environments const production = process.env.NODE_ENV === 'production' ? true : false; +const pkg = require('./package.json'); +const banner = `/*! @preserve + * ${pkg.name} + * version: ${pkg.version} + * https://github.com/mengshukeji/Luckysheet + */`; + // uglify js Compression configuration https://github.com/mishoo/UglifyJS#minify-options const uglifyOptions = { compress: { @@ -192,7 +199,7 @@ async function core() { name: 'luckysheet', sourcemap: true, inlineDynamicImports:true, - + banner: banner }); if(production){ @@ -202,6 +209,7 @@ async function core() { name: 'luckysheet', sourcemap: true, inlineDynamicImports:true, + banner: banner }); } From a22cbc3c1b89b2d06ffafef11c7e3a5c56760c6a Mon Sep 17 00:00:00 2001 From: cdswyda Date: Fri, 7 May 2021 10:37:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=85=AC=E5=BC=8F=E6=A0=8F=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E9=AB=98=E5=BA=A6=E5=90=8E=20=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=E4=B8=8B=E6=8B=89=E4=BD=8D=E7=BD=AE=E4=B9=9F=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/constant.js | 2 +- src/css/luckysheet-core.css | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/controllers/constant.js b/src/controllers/constant.js index 0344cb4..e0e4bc4 100644 --- a/src/controllers/constant.js +++ b/src/controllers/constant.js @@ -45,7 +45,7 @@ const gridHTML = function(){
- +
diff --git a/src/css/luckysheet-core.css b/src/css/luckysheet-core.css index 571c41f..29b1cf9 100644 --- a/src/css/luckysheet-core.css +++ b/src/css/luckysheet-core.css @@ -860,7 +860,8 @@ left: 0; position: absolute; right: 0; - top: 6px; + top: 50%; + transform: translateY(-50%); resize: none; /* border: 1px #b9b9b9 solid; */ font-family: arial, sans, sans-serif; @@ -897,6 +898,12 @@ border-left: 1px solid transparent; border-right: 1px solid transparent; } +.luckysheet-wa-calculate-help-tool .fa-caret-down { + position: absolute; + top: 50%; + left: 3px; + transform: translateY(-50%); +} .luckysheet-wa-calculate-help-tool:hover { background: #EFEFEF;