From d4475d0e8d36a75980899246202ea420c3fad935 Mon Sep 17 00:00:00 2001
From: abbfun <819589789@qq.com>
Date: Wed, 27 Jul 2022 17:05:31 +0800
Subject: [PATCH] 优化表格上右侧工具条(搜索按钮显隐&右侧样式凸出) 无搜索条件时可通过search隐藏搜索按钮,工具条组右侧样式超出5px(相对于底部表格),其父节点gutter代码生成默认10,此处也默认10,使工具组样式左右一致
---
ruoyi-ui/src/components/Screenfull/index.vue | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/ruoyi-ui/src/components/Screenfull/index.vue b/ruoyi-ui/src/components/Screenfull/index.vue
index 099d74d..85937c9 100644
--- a/ruoyi-ui/src/components/Screenfull/index.vue
+++ b/ruoyi-ui/src/components/Screenfull/index.vue
@@ -22,11 +22,8 @@
},
methods: {
click() {
- if (!screenfull.enabled) {
- this.$message({
- message: 'you browser can not work',
- type: 'warning'
- })
+ if (!screenfull.isEnabled) {
+ this.$message({ message: '你的浏览器不支持全屏', type: 'warning' })
return false
}
screenfull.toggle()
@@ -35,12 +32,12 @@
this.isFullscreen = screenfull.isFullscreen
},
init() {
- if (screenfull.enabled) {
+ if (screenfull.isEnabled) {
screenfull.on('change', this.change)
}
},
destroy() {
- if (screenfull.enabled) {
+ if (screenfull.isEnabled) {
screenfull.off('change', this.change)
}
}
--
Gitblit v1.9.2