From e1ca98c4bb6bcf1f2e216ecab4fd7902abc0f0ae Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 22 Mar 2017 15:47:39 +0800 Subject: [PATCH] add --- demo.html | 1 - dist/base.css | 34 ++++++++++++++++++++++++++++++++++ dist/core.css | 1 + dist/core.js | 4 ++-- dist/widget.css | 4 ++++ src/core/func/function.js | 4 ++-- 6 files changed, 43 insertions(+), 5 deletions(-) diff --git a/demo.html b/demo.html index 42110f141..ffc2d3dfb 100644 --- a/demo.html +++ b/demo.html @@ -21,7 +21,6 @@
-
diff --git a/dist/base.css b/dist/base.css index 867afd467..534ea1ebe 100644 --- a/dist/base.css +++ b/dist/base.css @@ -73,6 +73,37 @@ /****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ +.bi-bubble-combo .bubble-combo-triangle-left { + width: 0; + height: 0; + border-top: 6px solid transparent; + border-left: 6px solid #009de3; + border-bottom: 6px solid transparent; +} +.bi-bubble-combo .bubble-combo-triangle-right { + width: 0; + height: 0; + border-top: 6px solid transparent; + border-right: 6px solid #009de3; + border-bottom: 6px solid transparent; +} +.bi-bubble-combo .bubble-combo-triangle-top { + width: 0; + height: 0; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-top: 6px solid #009de3; +} +.bi-bubble-combo .bubble-combo-triangle-bottom { + width: 0; + height: 0; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-bottom: 6px solid #009de3; +} +/****添加计算宽度的--运算符直接需要space****/ +/****** common color(常用颜色,可用于普遍场景) *****/ +/**** custom color(自定义颜色,用于特定场景) ****/ .bi-bubble-popup-view { -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); @@ -736,6 +767,7 @@ li.CodeMirror-hint-active { /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-segment > .center-element { + overflow: hidden; overflow-x: hidden; overflow-y: hidden; background: #ffffff; @@ -931,6 +963,7 @@ li.CodeMirror-hint-active { /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-textarea-editor { + overflow: hidden; overflow-x: hidden; overflow-y: hidden; } @@ -982,6 +1015,7 @@ li.CodeMirror-hint-active { .bi-text { text-overflow: ellipsis; overflow-x: hidden; + overflow-y: hidden; white-space: nowrap; word-break: break-all; } diff --git a/dist/core.css b/dist/core.css index c533d6120..30b90d3c5 100644 --- a/dist/core.css +++ b/dist/core.css @@ -9745,6 +9745,7 @@ textarea::-webkit-scrollbar-thumb { .overflow-dot { text-overflow: ellipsis; overflow-x: hidden; + overflow-y: hidden; white-space: nowrap; } /****添加计算宽度的--运算符直接需要space****/ diff --git a/dist/core.js b/dist/core.js index 918dffeab..eeff4ed0b 100644 --- a/dist/core.js +++ b/dist/core.js @@ -22117,7 +22117,7 @@ $(function () { }, getTextSizeWidth: function (text, fontSize) { - var span = $("").addClass("text-width-span").appendTo($("#container")); + var span = $("").addClass("text-width-span").appendTo($("body")); if (fontSize == null) { fontSize = 12; @@ -22139,7 +22139,7 @@ $(function () { position: "absolute", top: "-9999px", overflow: "scroll" - }).appendTo($("#container")); + }).appendTo($("body")); this._scrollWidth = ul[0].offsetWidth - ul[0].clientWidth; ul.destroy(); } diff --git a/dist/widget.css b/dist/widget.css index e7217f5dc..e8ed9dbd0 100644 --- a/dist/widget.css +++ b/dist/widget.css @@ -205,6 +205,7 @@ -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; + overflow: hidden; overflow-x: hidden; overflow-y: hidden; } @@ -1324,6 +1325,7 @@ /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-dynamic-number .sequence-table-title-cell { + overflow: hidden; overflow-x: hidden; overflow-y: hidden; -webkit-box-sizing: border-box; @@ -1353,6 +1355,7 @@ /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-list-number .sequence-table-title-cell { + overflow: hidden; overflow-x: hidden; overflow-y: hidden; -webkit-box-sizing: border-box; @@ -1385,6 +1388,7 @@ /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-tree-number .sequence-table-title-cell { + overflow: hidden; overflow-x: hidden; overflow-y: hidden; -webkit-box-sizing: border-box; diff --git a/src/core/func/function.js b/src/core/func/function.js index 6fbcfa0e3..b59c8eb32 100644 --- a/src/core/func/function.js +++ b/src/core/func/function.js @@ -298,7 +298,7 @@ $(function () { }, getTextSizeWidth: function (text, fontSize) { - var span = $("").addClass("text-width-span").appendTo($("#container")); + var span = $("").addClass("text-width-span").appendTo($("body")); if (fontSize == null) { fontSize = 12; @@ -320,7 +320,7 @@ $(function () { position: "absolute", top: "-9999px", overflow: "scroll" - }).appendTo($("#container")); + }).appendTo($("body")); this._scrollWidth = ul[0].offsetWidth - ul[0].clientWidth; ul.destroy(); }