From 168d49fe0b21aaf1d06512a2896959120beec312 Mon Sep 17 00:00:00 2001 From: abbfun <819589789@qq.com> Date: 星期一, 08 八月 2022 09:46:08 +0800 Subject: [PATCH] 优化表格上右侧工具条(搜索按钮显隐&右侧样式凸出) 无搜索条件时可通过search隐藏搜索按钮,工具条组右侧样式超出5px(相对于底部表格),其父节点gutter代码生成默认10,此处也默认10,使工具组样式左右一致 --- ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java | 41 +++++++++++++++++++---------------------- 1 files changed, 19 insertions(+), 22 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java index dbe7a6e..ec1f02e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java @@ -1,9 +1,7 @@ package com.ruoyi.system.domain.vo; -import cn.hutool.core.lang.Validator; +import com.ruoyi.common.utils.StringUtils; import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; /** * 璺敱鏄剧ず淇℃伅 @@ -12,9 +10,8 @@ */ @Data -@NoArgsConstructor -@Accessors(chain = true) public class MetaVo { + /** * 璁剧疆璇ヨ矾鐢卞湪渚ц竟鏍忓拰闈㈠寘灞戜腑灞曠ず鐨勫悕瀛� */ @@ -30,10 +27,10 @@ */ private boolean noCache; - /** - * 鍐呴摼鍦板潃锛坔ttp(s)://寮�澶达級 - */ - private String link; + /** + * 鍐呴摼鍦板潃锛坔ttp(s)://寮�澶达級 + */ + private String link; public MetaVo(String title, String icon) { this.title = title; @@ -46,19 +43,19 @@ this.noCache = noCache; } - public MetaVo(String title, String icon, String link) { - this.title = title; - this.icon = icon; - this.link = link; - } + public MetaVo(String title, String icon, String link) { + this.title = title; + this.icon = icon; + this.link = link; + } - public MetaVo(String title, String icon, boolean noCache, String link) { - this.title = title; - this.icon = icon; - this.noCache = noCache; - if (Validator.isUrl(link)) { - this.link = link; - } - } + public MetaVo(String title, String icon, boolean noCache, String link) { + this.title = title; + this.icon = icon; + this.noCache = noCache; + if (StringUtils.ishttp(link)) { + this.link = link; + } + } } -- Gitblit v1.9.3