Răsfoiți Sursa

fix: BsUi-修改

hanxiaohui 7 luni în urmă
părinte
comite
d4bb676f9c

+ 11 - 1
src/components/BsUi/OrgUserSelector/components/ModalSelector.vue

@@ -8,7 +8,9 @@
     @ok="handleOk"
   >
     <div class="content">
-      <a-input type="text" placeholder="请输入关键字" v-model:value="keyWord" :allow-clear="true" />
+      <a-form-item-rest>
+        <a-input type="text" placeholder="请输入关键字" v-model:value="keyWord" :allow-clear="true" />
+      </a-form-item-rest>
 
       <a-breadcrumb separator=">">
         <a-breadcrumb-item v-for="(item, idx) in breadcrumbPaths" :key="idx">{{ item }}</a-breadcrumb-item>
@@ -194,6 +196,14 @@
     flex-direction: column;
     gap: 10px;
 
+    :deep(.ant-input-status-error) {
+      box-shadow: none !important;
+    }
+    :deep(.ant-input-affix-wrapper) {
+      border: 1px solid #d9d9d9 !important;
+      box-shadow: none !important;
+    }
+
     .content-bottom {
       width: 100%;
       display: flex;

+ 12 - 1
src/components/BsUi/OrgUserSelector/components/OrgTree.vue

@@ -7,7 +7,9 @@
 <template>
   <div class="tree-container">
     <a-row class="smart-margin-bottom10">
-      <a-input v-model:value.trim="keywords" placeholder="请输入部门名称" />
+      <a-form-item-rest>
+        <a-input v-model:value.trim="keywords" placeholder="请输入部门名称" />
+      </a-form-item-rest>
     </a-row>
     <a-tree
       v-if="!_.isEmpty(departmentTreeData)"
@@ -229,6 +231,15 @@
     border-right: 1px solid rgba(#000, .1);
     padding-right: 10px;
 
+    :deep(.ant-input-status-error) {
+      border: 1px solid #d9d9d9 !important;
+      box-shadow: none !important;
+    }
+    :deep(.ant-input-affix-wrapper) {
+      border: 1px solid #d9d9d9 !important;
+      box-shadow: none !important;
+    }
+
     .tree {
       height: 618px;
       margin-top: 10px;

+ 5 - 0
src/components/BsUi/OrgUserSelector/index.vue

@@ -85,6 +85,11 @@ import {SCENE_TYPE, SELECT_MULTIPLE} from '/@/components/BsUi/constant.js';
   const selectChange = (value) => {};
 
   const setOptions = (valObj) => {
+    if(isEmpty(valObj)) {
+      options.value = [];
+      return false;
+    }
+
     if (isArray(valObj)) {
       options.value = valObj.map((v) => ({
         label: v[props.labelKey],