Browse Source

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

ellisran 5 ngày trước cách đây
mục cha
commit
0509cf062e
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  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);