From b027f8d124a28c7985fc38ebf8bc68f41ec192ea Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期五, 17 十二月 2021 18:19:37 +0800 Subject: [PATCH] 改 --- src/pages/index/components/formInfo.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/pages/index/components/formInfo.vue b/src/pages/index/components/formInfo.vue index 23f9d65..1c47414 100644 --- a/src/pages/index/components/formInfo.vue +++ b/src/pages/index/components/formInfo.vue @@ -82,6 +82,7 @@ provinceOptions: [], props: { lazy: true, // 寮�鍚姩鎬佸姞杞� + expandTrigger: "hover", lazyLoad: async (node, resolve) => { // 璁剧疆鍔犺浇鏁版嵁婧愭柟娉� 榛樿鎵ц涓�娆� // node 涓哄綋鍓嶇偣鍑荤殑鑺傜偣 @@ -104,7 +105,6 @@ }; }); resolve(this.provinceOptions); - console.log(node.level); } if (node.level == 1) { @@ -121,9 +121,11 @@ leaf: true, // 鏄惁涓烘湯灏� }; }); + console.log(arr); resolve(arr); } else { - console.log(node); + resolve(); + return false; } }, }, @@ -242,11 +244,20 @@ border-color: rgba(255, 255, 2555, 0.1); } - .el-cascader-node:hover, - .in-active-path, - .is-active, .el-cascader-node { - background-color: rgb(101, 93, 126) !important; + background-color: rgb(77, 72, 111); + } + + .in-active-path { + background-color: rgb(98, 87, 125) !important; + } + + .el-cascader-node:hover { + background-color: rgb(98, 87, 125) !important; + } + + .el-scrollbar__view { + padding: 0; } .popper__arrow::after, -- Gitblit v1.8.0