From 832896ccaf8ac6a8ca31394e55577f064bc5eacf Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期一, 20 十二月 2021 11:05:48 +0800 Subject: [PATCH] 暂存 --- src/pages/library/index/App.vue | 28 ++++++++++++++++++---------- 1 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/pages/library/index/App.vue b/src/pages/library/index/App.vue index 6237fb2..9d294ea 100644 --- a/src/pages/library/index/App.vue +++ b/src/pages/library/index/App.vue @@ -28,6 +28,9 @@ <car-list ref="carList" :baseObject="baseObject" + @changeShow="changeToAdd" + @onDelete="initBaseList" + :syncType="syncType" v-show="showType == 'car'" ></car-list> </div> @@ -74,12 +77,6 @@ }; }, methods: { - clearSelect1() { - this.$refs.baseLocal.categoryIndex = -1; - }, - clearSelect2() { - this.$refs.baseSync.categoryIndex = -1; - }, getPersonList(item,type) { this.baseObject = item; this.baseForEdit = item; @@ -131,7 +128,20 @@ carList, }, mounted() { - //this.TreeDataPool.showTreeBox = false + window.addEventListener("message", (e) => { + if (e.data.msg === "changeColor") { + document.documentElement.style.setProperty( + "--colorCard", + `${e.data.color}` + ); + } + }); + }, + created() { + const color = localStorage.getItem("--colorCard"); + if (color) { + document.documentElement.style.setProperty("--colorCard", `${color}`); + } }, }; </script> @@ -139,7 +149,6 @@ .s-base-manage { box-sizing: border-box; background-color: #e9ebf2; - // min-width: 1315px; height: 100%; .el-collapse { border: none; @@ -165,7 +174,6 @@ position: relative; background: #fff; box-sizing: border-box; - // border-right: 1px solid #e0e0e0; } .resize-save { position: absolute; @@ -177,7 +185,7 @@ overflow-x: hidden; } .resize-bar { - width: 254px; + width: 244px; height: inherit; resize: horizontal; cursor: ew-resize; -- Gitblit v1.8.0