From 68d204cf057435b0632ed03ff25f015df20a6980 Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Wed, 19 Jan 2022 12:58:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=20Table=20?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=AB=98=E5=BA=A6=20js=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=2016px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Table/Table.js | 6 +++--- .../wwwroot/js/bootstrap.blazor.bundle.min.js | 2 +- src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.min.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BootstrapBlazor/Components/Table/Table.js b/src/BootstrapBlazor/Components/Table/Table.js index 2e8c549f0..a74ed9c5f 100644 --- a/src/BootstrapBlazor/Components/Table/Table.js +++ b/src/BootstrapBlazor/Components/Table/Table.js @@ -1,4 +1,4 @@ -(function ($) { +(function ($) { $.extend({ bb_table_search: function (el, obj, searchMethod, clearSearchMethod) { $(el).data('bb_table_search', { obj: obj, searchMethod, clearSearchMethod }); @@ -276,8 +276,8 @@ paginationHeight = 0; } var toolbarHeight = $ele.find('.table-toolbar:first').outerHeight(); - var bodyHeight = paginationHeight + toolbarHeight + searchHeight + 16; - if (bodyHeight > 16) { + var bodyHeight = paginationHeight + toolbarHeight + searchHeight; + if (bodyHeight > 0) { if (searchHeight > 0) { //记住历史height,用于展开搜索框时先设置一次高度 //再重新计算,避免高度超出父容器,出现滚动条 diff --git a/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js b/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js index c08542edc..0d3570d68 100644 --- a/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js +++ b/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js @@ -13,4 +13,4 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this /*! Summernote v0.8.18 | (c) 2013- Alan Hong and other contributors | MIT license */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],e);else{var n="object"==typeof exports?e(require("jquery")):e(t.jQuery);for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,(function(t){return(()=>{"use strict";var e={9458:e=>{e.exports=t}},n={};function o(t){var i=n[t];if(void 0!==i)return i.exports;var r=n[t]={exports:{}};return e[t](r,r.exports,o),r.exports}o.amdO={},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{o.r(i);var t=o(9458),e=o.n(t);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n'),u=s('