From b25c902a87072b5ae2dd33ab8106f8490d050e34 Mon Sep 17 00:00:00 2001 From: wangting <wangting@vci-tech.com> Date: 星期五, 03 一月 2025 18:06:30 +0800 Subject: [PATCH] 调整图标 --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/iconShow.vue | 2 +- Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue | 15 ++++++++------- Source/plt-web/plt-web-ui/src/router/avue-router.js | 1 + Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue | 7 ++++++- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue | 6 +++--- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/iconShow.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/iconShow.vue index ef8b97f..0aedce9 100644 --- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/iconShow.vue +++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/iconShow.vue @@ -39,7 +39,7 @@ svg{ font-size: inherit; height: 100%; - width:auto; + width:100%; } } </style> diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue index a0596a1..ad0965b 100644 --- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue +++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue @@ -2,7 +2,7 @@ <div> <el-input :width="width" :class="inputClass" :style="inputStyle" :clearable="true" :value="value" :disabled="disabled" :placeholder="placeholder" type="text" :size="size" @clear="clearValue" @focus="handleFocus"> - <span slot="append" v-html="svgHtml" style="font-size: 20px;padding:3px 10px;width:20px;height:20px;display: block" @click="handleFocus"></span> + <span slot="append" v-html="svgHtml" style="font-size: 18px;padding:3px 10px;width:18px;height:18px;display: block" @click="handleFocus"></span> </el-input> <el-dialog v-dialogDrag v-dialog-resize @@ -205,6 +205,11 @@ .el-input-group__append, .el-input-group__prepend{ padding: 0; } + svg{ + font-size: inherit; + height: 100%; + width:100%; + } } .tag-group{font-size: 14px;} .el-tag{ diff --git a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue index ade24e2..2bbc1ff 100644 --- a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue +++ b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue @@ -8,7 +8,7 @@ @click="open(item)"> <div style="display: flex"> <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show> - <span slot="title" + <span slot="title" style="margin-left: 8px;" :alt="item[pathKey]" :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span> </div> @@ -19,7 +19,7 @@ <template slot="title"> <div style="display: flex"> <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show> - <span slot="title" + <span slot="title" style="margin-left: 8px;" :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span> </div> </template> @@ -31,7 +31,7 @@ @click="open(child)"> <div style="display: flex"> <icon-show :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show> - <span slot="title">{{ generateTitle(child) }}</span> + <span slot="title" style="margin-left: 8px;">{{ generateTitle(child) }}</span> </div> </el-menu-item> <sidebar-item v-else @@ -137,7 +137,8 @@ open(item) { const query = { ...item.query, - id:item.id + id:item.id, + name:item.name } if (this.screen <= 1) this.$store.commit("SET_COLLAPSE"); if (this.validIsOpen(item)) { @@ -162,13 +163,13 @@ outline: 0; background-color: #060708; } - .iconShowSpan{ display: inline-block; - margin-top: -2px; - margin-right: 10px; color: rgba(255, 255, 255, 0.7); } +.el-menu-item .iconShowSpan,.el-submenu__title .iconShowSpan{ + margin-top: -2px; +} .el-submenu__title:hover .iconShowSpan{ color: #ffffff; } diff --git a/Source/plt-web/plt-web-ui/src/router/avue-router.js b/Source/plt-web/plt-web-ui/src/router/avue-router.js index e3f8fbe..1b04180 100644 --- a/Source/plt-web/plt-web-ui/src/router/avue-router.js +++ b/Source/plt-web/plt-web-ui/src/router/avue-router.js @@ -150,6 +150,7 @@ icon = oMenu[propsDefault.icon], children = oMenu[propsDefault.children], meta = oMenu[propsDefault.meta] || {}; + meta.keepAlive=true; // meta涓� keepalive 鐨勫鐞� meta = Object.assign(meta, (function () { if (option.keepAlive === true) { diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue index e1f0511..c9eeb37 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue @@ -76,8 +76,8 @@ <icon-show :name="row.plCSClass"></icon-show> </span> </template> - <template slot-scope="{type,disabled}" slot="plCSClassForm"> - <input-icon :disabled="disabled" v-model="form.plCSClass"></input-icon> + <template slot-scope="{type,disabled}" slot="plImageForm"> + <input-icon :disabled="disabled" v-model="form.plImage"></input-icon> </template> <template slot="plTypeType" slot-scope="{row}"> <el-tag :type="row.plTypeType === 'business' ? '' : 'success'"> @@ -298,7 +298,7 @@ }, { label: '鍥炬爣', - prop: 'plCSClass', + prop: 'plImage', width: 80, rules: [ { -- Gitblit v1.9.3