截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. /* 最外层容器 */
  2. .ew-tree-table {
  3. margin: 10px 0;
  4. position: relative;
  5. }
  6. .ew-tree-table .layui-table {
  7. margin: 0;
  8. table-layout: fixed;
  9. }
  10. /* 表格容器 */
  11. .ew-tree-table-group {
  12. position: relative;
  13. }
  14. /* 主体表格容器 */
  15. .ew-tree-table > .ew-tree-table-group > .ew-tree-table-box {
  16. overflow: auto;
  17. position: relative;
  18. box-sizing: border-box;
  19. }
  20. /* 表头表格容器 */
  21. .ew-tree-table > .ew-tree-table-group > .ew-tree-table-head {
  22. overflow: hidden;
  23. position: relative;
  24. box-sizing: border-box;
  25. background-color: #f2f2f2;
  26. }
  27. /* 容器加边框 */
  28. .ew-tree-table .ew-tree-table-border {
  29. position: absolute;
  30. background-color: #e6e6e6;
  31. }
  32. .ew-tree-table .ew-tree-table-border.top {
  33. left: 0;
  34. right: 0;
  35. top: 0;
  36. height: 1px;
  37. }
  38. .ew-tree-table .ew-tree-table-border.left {
  39. top: 0;
  40. left: 0;
  41. bottom: 0;
  42. width: 1px;
  43. }
  44. .ew-tree-table .ew-tree-table-border.right {
  45. top: 0;
  46. right: 0;
  47. bottom: 0;
  48. width: 0.52px;
  49. }
  50. .ew-tree-table .ew-tree-table-border.bottom {
  51. left: 0;
  52. right: 0;
  53. bottom: 0;
  54. height: 0.52px;
  55. }
  56. /* table的loading */
  57. .ew-tree-table .ew-tree-table-box > .ew-tree-table-loading {
  58. padding: 10px 0;
  59. text-align: center;
  60. }
  61. .ew-tree-table .ew-tree-table-box > .ew-tree-table-loading > i {
  62. color: #999;
  63. font-size: 30px;
  64. }
  65. .ew-tree-table .ew-tree-table-box > .ew-tree-table-loading.ew-loading-float {
  66. position: absolute;
  67. left: 0;
  68. right: 0;
  69. top: 0;
  70. }
  71. /* 空数据提示 */
  72. .ew-tree-table .ew-tree-table-box > .ew-tree-table-empty {
  73. color: #666;
  74. font-size: 14px;
  75. text-align: center;
  76. }
  77. /* 折叠箭头 */
  78. .ew-tree-table .ew-tree-table-arrow {
  79. margin-right: 5px;
  80. vertical-align: middle;
  81. }
  82. .ew-tree-table .ew-tree-table-arrow:before {
  83. content: "\e623";
  84. }
  85. .ew-tree-table .ew-tree-table-open .ew-tree-table-arrow:before {
  86. content: "\e625";
  87. }
  88. .ew-tree-table .ew-tree-table-arrow.arrow2 {
  89. font-size: 13px;
  90. font-weight: 600;
  91. line-height: 16px;
  92. height: 16px;
  93. width: 16px;
  94. display: inline-block;
  95. text-align: center;
  96. color: #888;
  97. }
  98. .ew-tree-table .ew-tree-table-arrow.arrow2:before {
  99. content: "\e602";
  100. }
  101. .ew-tree-table .ew-tree-table-open .ew-tree-table-arrow.arrow2:before {
  102. content: "\e61a";
  103. }
  104. /* 箭头隐藏 */
  105. .ew-tree-table-arrow.ew-tree-table-arrow-hide {
  106. visibility: hidden;
  107. }
  108. /* 箭头变加载中状态 */
  109. .ew-tree-table .ew-tree-table-loading > td .ew-tree-pack > .ew-tree-table-arrow:before {
  110. content: "\e63d" !important;
  111. }
  112. .ew-tree-table .ew-tree-table-loading > td .ew-tree-pack > .ew-tree-table-arrow {
  113. margin-right: 0;
  114. }
  115. .ew-tree-table .ew-tree-table-loading > td .ew-tree-pack > .ew-tree-table-arrow + * {
  116. margin-left: 5px;
  117. }
  118. /* tr加载中禁用事件 */
  119. .ew-tree-table tr.ew-tree-table-loading > * {
  120. pointer-events: none !important;
  121. }
  122. /* 图标列 */
  123. .ew-tree-table .ew-tree-pack {
  124. cursor: pointer;
  125. line-height: 16px;
  126. display: inline-block;
  127. vertical-align: middle;
  128. }
  129. .ew-tree-table .ew-tree-pack > span {
  130. height: 16px;
  131. line-height: 16px;
  132. display: inline-block;
  133. vertical-align: middle;
  134. }
  135. /* 折叠行 */
  136. .ew-tree-table .ew-tree-tb-hide {
  137. display: none;
  138. }
  139. /* 缩进 */
  140. .ew-tree-table .ew-tree-table-indent {
  141. margin-right: 5px;
  142. padding-left: 16px;
  143. }
  144. /* 图标 */
  145. .ew-tree-table .ew-tree-icon {
  146. margin-right: 5px;
  147. display: inline-block;
  148. vertical-align: middle;
  149. }
  150. .ew-tree-table .ew-tree-icon-folder, .ew-tree-table .ew-tree-icon-file {
  151. width: 22px;
  152. height: 16px;
  153. line-height: 16px;
  154. position: relative;
  155. }
  156. .ew-tree-table .ew-tree-icon-folder:after, .ew-tree-table .ew-tree-icon-file:after {
  157. content: "";
  158. width: 22px;
  159. height: 22px;
  160. position: absolute;
  161. left: 0;
  162. top: -3px;
  163. background-size: cover;
  164. background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc0MDYyMzE3MTQ3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIxNTgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTE4MSA4MjNoLTMxLjFjLTI4LjYgMC01MS45LTIzLjItNTEuOS01MS45VjI1Mi40YzAtMjguNiAyMy4yLTUxLjkgNTEuOS01MS45SDQzMGw4MyA3Ny44aDMzMmM0NS42IDAgODMgMzUgODMgNzcuOHYzODkuMWMwIDQyLjgtMzcuMyA3Ny44LTgzIDc3LjhIMTgxeiIgcC1pZD0iMjE1OSIgZmlsbD0iI0ZGQTUwMCI+PC9wYXRoPjwvc3ZnPg==")
  165. }
  166. .ew-tree-table tr.ew-tree-table-open > td > .ew-tree-pack .ew-tree-icon-folder:after {
  167. background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc0MDYyMzA5MDQwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE5NzciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTMyNi40IDQ2MC4xSDkyOGwtODIuMyAzMjRjLTUuOCAyMy0yNi42IDM5LjEtNTAuMyAz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PC9zdmc+")
  171. }
  172. /* 序号列调整 */
  173. .ew-tree-table td[data-type="numbers"] {
  174. padding-left: 0;
  175. padding-right: 0;
  176. text-align: center;
  177. }
  178. /* 单元格内表单元素样式调整 */
  179. .ew-tree-table .layui-form-switch {
  180. margin-top: 0;
  181. }
  182. .ew-tree-table .layui-form-radio {
  183. margin: 0;
  184. }
  185. /* checkbox和radio列调整 */
  186. .ew-tree-table-checkbox + .layui-form-checkbox {
  187. padding: 0;
  188. }
  189. .ew-tree-table-checkbox + .layui-form-checkbox > .layui-icon {
  190. color: transparent;
  191. transition: background-color .1s linear;
  192. }
  193. .ew-tree-table-checkbox + .layui-form-checkbox.layui-form-checked > .layui-icon {
  194. color: #fff;
  195. }
  196. .ew-tree-table-radio + .layui-form-radio {
  197. padding: 0;
  198. height: 20px;
  199. line-height: 20px;
  200. }
  201. .ew-tree-table-radio + .layui-form-radio > i {
  202. margin: 0;
  203. height: 20px;
  204. font-size: 20px;
  205. line-height: 20px;
  206. }
  207. /* checkbox半选状态 */
  208. .ew-tree-table .layui-form-checked.ew-form-indeterminate > .layui-icon:before {
  209. content: "";
  210. width: 9px;
  211. height: 2px;
  212. display: inline-block;
  213. background-color: #eee;
  214. vertical-align: middle;
  215. }
  216. .ew-tree-table .layui-form-checked.ew-form-indeterminate > .layui-icon {
  217. line-height: 14px;
  218. }
  219. /* 单元格编辑 */
  220. .ew-tree-table .layui-table td[data-edit] {
  221. cursor: text;
  222. }
  223. .ew-tree-table .ew-tree-table-edit {
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. width: 100%;
  228. height: 100%;
  229. border-radius: 0;
  230. box-shadow: 1px 1px 20px rgba(0, 0, 0, .15);
  231. }
  232. .ew-tree-table .ew-tree-table-edit:focus {
  233. border-color: #5FB878 !important;
  234. }
  235. .ew-tree-table .ew-tree-table-edit.layui-form-danger {
  236. border-color: #FF5722 !important;
  237. }
  238. /* 搜索数据隐藏行 */
  239. .ew-tree-table tr.ew-tree-table-filter-hide {
  240. display: none !important;
  241. }
  242. /* 单元格超出隐藏 */
  243. .ew-tree-table-td-single {
  244. position: relative;
  245. }
  246. .ew-tree-table-td-single > .ew-tree-tips {
  247. overflow: hidden;
  248. white-space: nowrap;
  249. text-overflow: ellipsis;
  250. }
  251. .ew-tree-table-td-single > .ew-tree-tips-c {
  252. position: absolute;
  253. right: -10px;
  254. top: -6px;
  255. width: 24px;
  256. height: 24px;
  257. line-height: 24px;
  258. font-size: 18px;
  259. text-align: center;
  260. color: #fff;
  261. border-radius: 50%;
  262. background-color: #666;
  263. cursor: pointer;
  264. display: none;
  265. }
  266. .ew-tree-table table tr:first-child .ew-tree-table-td-single > .ew-tree-tips-c {
  267. top: 2px;
  268. bottom: auto;
  269. right: -12px;
  270. }
  271. .ew-tree-table-td-single.ew-tree-tips-open {
  272. position: absolute;
  273. top: 0;
  274. left: 0;
  275. z-index: 5;
  276. background-color: #fff;
  277. min-height: 100%;
  278. box-sizing: border-box;
  279. box-shadow: 3px 3px 8px rgba(0, 0, 0, .15);
  280. }
  281. .ew-tree-table table thead .ew-tree-table-td-single.ew-tree-tips-open {
  282. background-color: #f2f2f2;
  283. }
  284. .ew-tree-table-td-single.ew-tree-tips-open.ew-show-left {
  285. right: 0;
  286. left: auto;
  287. box-shadow: -3px 3px 8px rgba(0, 0, 0, .15);
  288. }
  289. .ew-tree-table-td-single.ew-tree-tips-open.ew-show-bottom {
  290. bottom: 0;
  291. top: auto;
  292. box-shadow: 3px -3px 8px rgba(0, 0, 0, .15);
  293. }
  294. .ew-tree-table-td-single.ew-tree-tips-open.ew-show-left.ew-show-bottom {
  295. box-shadow: -3px -3px 8px rgba(0, 0, 0, .15);
  296. }
  297. .ew-tree-table-td-single.ew-tree-tips-open > .ew-tree-tips {
  298. padding: 9px 15px;
  299. overflow: auto;
  300. max-width: 280px;
  301. max-height: 100px;
  302. width: max-content;
  303. white-space: normal;
  304. }
  305. .ew-tree-table-td-single.ew-tree-tips-open > .ew-tree-tips-c {
  306. display: block;
  307. }
  308. .ew-tree-table-td-single.ew-tree-tips-open.ew-show-left > .ew-tree-tips-c {
  309. left: -10px;
  310. right: auto !important;
  311. }
  312. .ew-tree-table td > .layui-table-grid-down {
  313. bottom: 0;
  314. height: auto;
  315. }
  316. /* 辅助样式 */
  317. .pd-tb-0 {
  318. padding-top: 0 !important;
  319. padding-bottom: 0 !important;
  320. }
  321. .break-all {
  322. word-break: break-all !important;
  323. }
  324. /* 列宽拖拽调整 */
  325. /*.ew-tree-table .ew-tb-resize {
  326. position: absolute;
  327. right: 0;
  328. top: 0;
  329. bottom: 0;
  330. width: 10px;
  331. cursor: col-resize;
  332. }*/