dropdown-item.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. /** dropdown-item */
  29. .t-dropdown-item {
  30. position: fixed;
  31. right: 0;
  32. left: 0;
  33. top: 0;
  34. overflow: hidden;
  35. bottom: 0;
  36. /** 树形结构 */
  37. /** multi 多选多列情况 */
  38. /** dropRadio */
  39. }
  40. .t-dropdown-item__content {
  41. max-height: 324px;
  42. display: flex;
  43. flex-direction: column;
  44. z-index: 11600;
  45. overflow: hidden;
  46. }
  47. .t-dropdown-item__popup-host {
  48. display: block;
  49. width: 100%;
  50. height: 100%;
  51. overflow: hidden;
  52. position: absolute;
  53. left: 0;
  54. top: 0;
  55. }
  56. .t-dropdown-item__cell {
  57. position: relative;
  58. width: 100%;
  59. padding: 12px 16px;
  60. line-height: 24px;
  61. font-size: 16px;
  62. text-align: left;
  63. }
  64. .t-dropdown-item__cell .t-icon {
  65. float: left;
  66. }
  67. .t-dropdown-item__content.t-is-single .t-dropdown-item__cell::after {
  68. position: absolute;
  69. box-sizing: border-box;
  70. content: ' ';
  71. pointer-events: none;
  72. right: 0;
  73. left: 0;
  74. bottom: 0;
  75. border-bottom: 1px solid #e6e6e6;
  76. transform: scaleY(0.5);
  77. left: 16px;
  78. }
  79. .t-dropdown-item__body {
  80. flex: 1;
  81. background: #fff;
  82. overflow: auto;
  83. }
  84. .t-dropdown-item__foot {
  85. background: #fff;
  86. position: relative;
  87. }
  88. .t-dropdown-item__foot::before {
  89. z-index: 1;
  90. position: absolute;
  91. box-sizing: border-box;
  92. content: ' ';
  93. pointer-events: none;
  94. right: 0;
  95. left: 0;
  96. top: 0;
  97. border-top: 1px solid #e6e6e6;
  98. transform: scaleY(0.5);
  99. }
  100. .t-dropdown-item__foot .t-button {
  101. flex: 1;
  102. height: 100%;
  103. border-radius: 0;
  104. border: 0 none;
  105. }
  106. .t-dropdown-item__foot .t-button::after {
  107. display: none;
  108. }
  109. .t-dropdown-item__foot .t-button--text {
  110. color: #000000;
  111. }
  112. .t-dropdown-item__column {
  113. flex: 1;
  114. }
  115. .t-dropdown-item__column--ancestor {
  116. background: #eee;
  117. }
  118. .t-dropdown-item__column--parent {
  119. background-color: #f3f3f3;
  120. }
  121. .t-dropdown-item .t-radio,
  122. .t-dropdown-item .t-checkbox {
  123. flex-direction: row-reverse;
  124. white-space: nowrap;
  125. padding-left: 0;
  126. }
  127. .t-dropdown-item .t-radio__content-wrap,
  128. .t-dropdown-item .t-checkbox__content-wrap {
  129. width: 100%;
  130. display: flex;
  131. flex: 1;
  132. justify-content: space-between;
  133. }
  134. .t-dropdown-item .t-radio .t-radio__label,
  135. .t-dropdown-item .t-checkbox .t-radio__label {
  136. flex: 1;
  137. overflow: hidden;
  138. text-overflow: ellipsis;
  139. }
  140. .t-dropdown-item__checkbox-group {
  141. display: grid;
  142. padding: 32rpx;
  143. grid-gap: 32rpx;
  144. }
  145. .t-dropdown-item__checkbox-item {
  146. display: block;
  147. }
  148. .t-dropdown-item .t-checkbox__icon-left {
  149. margin-right: 4px;
  150. }
  151. .t-dropdown-item .t-checkbox.t-is-checked .t-checkbox__label {
  152. color: #0052d9;
  153. }
  154. .t-dropdown-item .t-checkbox__label {
  155. white-space: nowrap;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. }
  159. .t-dropdown-item .t-dropdown-item__tree-group {
  160. flex: 1;
  161. }
  162. .t-dropdown-item .t-radio__content-wrap {
  163. margin-left: 0;
  164. align-items: center;
  165. }
  166. .t-dropdown-item .t-radio__content-inner {
  167. margin-top: 0;
  168. }
  169. .t-dropdown-item .t-radio__icon-wrap {
  170. flex-shrink: 0;
  171. }
  172. .t-dropdown-item__tree-item {
  173. height: 96rpx;
  174. line-height: 96rpx;
  175. font-size: 32rpx;
  176. padding-left: 32rpx;
  177. }
  178. .t-dropdown-item__tree-item--active {
  179. color: #0052d9;
  180. }
  181. .t-dropdown-item .t-is-tree {
  182. max-height: 324px;
  183. }
  184. .t-dropdown-item .t-is-tree .t-dropdown-item__body {
  185. display: flex;
  186. overflow: hidden;
  187. }
  188. .t-dropdown-item .t-is-tree .t-dropdown-item__body .t-dropdown-item__tree-group {
  189. flex: 1;
  190. margin: 0;
  191. }
  192. .t-dropdown-item .t-is-tree .t-checkbox-group .t-dropdown-item__cell:not(:last-child)::after {
  193. display: none;
  194. }
  195. .t-dropdown-item .t-is-tree .t-checkbox__content-wrap {
  196. overflow: hidden;
  197. align-items: center;
  198. }
  199. .t-dropdown-item .t-is-tree .t-dropdown-item__cell {
  200. background: none;
  201. }
  202. .t-dropdown-item .t-is-tree .t-dropdown-item__cell::after {
  203. display: none;
  204. }
  205. .t-dropdown-item .t-is-tree.t-is-col2 .t-dropdown-item__tree-group,
  206. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group {
  207. width: 33.33%;
  208. }
  209. .t-dropdown-item .t-is-tree.t-is-col2 .t-dropdown-item__tree-group:nth-child(1),
  210. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group:nth-child(1) {
  211. background: #f5f5f5;
  212. }
  213. .t-dropdown-item .t-is-tree.t-is-col2 .t-dropdown-item__tree-group:nth-child(1) .t-checkbox__icon-left,
  214. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group:nth-child(1) .t-checkbox__icon-left,
  215. .t-dropdown-item .t-is-tree.t-is-col2 .t-dropdown-item__tree-group:nth-child(1) .t-radio__default-shape,
  216. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group:nth-child(1) .t-radio__default-shape {
  217. display: none;
  218. }
  219. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group {
  220. width: 33.33%;
  221. }
  222. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group:nth-child(2) {
  223. background: #f9f9f9;
  224. }
  225. .t-dropdown-item .t-is-tree.t-is-col3 .t-dropdown-item__tree-group:nth-child(2) .t-checkbox__icon-left {
  226. display: none;
  227. }
  228. .t-dropdown-item .t-is-multi .t-dropdown-item__body {
  229. padding-top: 16rpx;
  230. padding-bottom: 16rpx;
  231. overflow-y: auto;
  232. }
  233. .t-dropdown-item .t-is-multi .t-dropdown-item__cell {
  234. padding-top: 16rpx;
  235. padding-bottom: 16rpx;
  236. }
  237. .t-dropdown-item .t-is-multi .t-dropdown-item__cell:not(:last-child)::after {
  238. display: none;
  239. }
  240. .t-dropdown-item .t-is-multi .t-checkbox .t-checkbox__icon-left {
  241. display: none;
  242. }
  243. .t-dropdown-item .t-is-multi .t-checkbox .t-checkbox__label {
  244. font-size: 28rpx;
  245. }
  246. .t-dropdown-item .t-is-multi .t-checkbox .t-checkbox__content-wrap {
  247. background-color: #f5f5f5;
  248. border-radius: 16rpx;
  249. text-align: center;
  250. display: flex;
  251. justify-content: center;
  252. align-items: center;
  253. padding: 0 16rpx;
  254. box-sizing: border-box;
  255. height: 38px;
  256. line-height: 38px;
  257. }
  258. .t-dropdown-item .t-is-multi .t-checkbox.t-is-checked .t-checkbox__content-wrap {
  259. background-color: #ecf2fe;
  260. }
  261. .t-dropdown-item .t-is-multi .t-check-group {
  262. display: flex;
  263. flex-wrap: wrap;
  264. }
  265. .t-dropdown-item .t-is-multi.t-is-col2 .t-dropdown-item__cell {
  266. width: 50%;
  267. display: inline-block;
  268. padding-left: 16rpx;
  269. padding-right: 16rpx;
  270. }
  271. .t-dropdown-item .t-is-multi.t-is-col2 .t-dropdown-item__cell-group {
  272. padding-left: 16rpx;
  273. padding-right: 16rpx;
  274. }
  275. .t-dropdown-item .t-is-multi.t-is-col3 .t-dropdown-item__cell {
  276. width: 33.33%;
  277. display: inline-block;
  278. padding-left: 16rpx;
  279. padding-right: 16rpx;
  280. }
  281. .t-dropdown-item .t-is-multi.t-is-col3 .t-dropdown-item__cell-group {
  282. padding-left: 16rpx;
  283. padding-right: 16rpx;
  284. }
  285. .t-dropdown-item__radio .t-radio__default-shape {
  286. display: none;
  287. }
  288. .t-dropdown-item__radio.t-is-tick .t-icon-check {
  289. color: #0052d9;
  290. }
  291. .t-dropdown-item__radio.t-is-checked .t-radio__label {
  292. color: #0052d9;
  293. }
  294. .t-dropdown-item__radio.t-is-checked .t-radio__content-inner {
  295. font-size: 24px;
  296. }
  297. .button {
  298. border-radius: 0 !important;
  299. border: 0 !important;
  300. }
  301. .radio {
  302. padding-top: 24rpx !important;
  303. padding-bottom: 24rpx !important;
  304. }
  305. .radio__label--active {
  306. color: #0052d9 !important;
  307. }