From ae0ee590e401173b48ded527ad0b4ff94b0659ea Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 28 Oct 2024 00:27:40 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=AA=97=E6=A0=87=E9=A2=98=E7=9C=81=E7=95=A5?= =?UTF-8?q?=E5=8F=B7=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B=E5=85=A8=E6=A0=87?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/UserSelect.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/UserSelect.vue b/resources/assets/js/components/UserSelect.vue index db339f2c0..f4de7d0b5 100755 --- a/resources/assets/js/components/UserSelect.vue +++ b/resources/assets/js/components/UserSelect.vue @@ -21,7 +21,7 @@
{{$L('关闭')}}
- {{localTitle}} + {{localTitle}}
@@ -754,6 +754,21 @@ export default { this.selects = this.selects.filter(value => value != userid) }, + onClickTitle() { + const $content = this.$refs.headerTitle; + const range = document.createRange(); + range.setStart($content, 0); + range.setEnd($content, $content.childNodes.length || 0); + const rangeWidth = range.getBoundingClientRect().width; + if (Math.floor(rangeWidth) > Math.floor($content.offsetWidth)) { + $A.modalInfo({ + title: this.$L("全标题"), + content: this.localTitle, + language: false, + }) + } + }, + onSubmit() { if (this.submittIng > 0) { return