Explorar el Código

切换项目树结构控件编写和调整

ellisran hace 6 días
padre
commit
0509cf062e
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      app/public/js/bootstrap/tree-select.js

+ 12 - 0
app/public/js/bootstrap/tree-select.js

@@ -106,6 +106,18 @@
   border-color: #80bdff;
   box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
 }
+.tree-select .dropdown-toggle {
+  position: relative;
+  padding-right: 2rem; /* 给箭头留空间 */
+  text-align: left; /* 让文字靠左 */
+}
+
+.tree-select .dropdown-toggle::after {
+  position: absolute;
+  right: 0.75rem; /* 你可以根据需要微调 */
+  top: 50%;
+  transform: translateY(-50%);
+}
 `;
     document.head.appendChild(style);