index.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. .is-error {
  2. .cy-combo-grid__wrapper {
  3. box-shadow: 0 0 0 1px var(--el-color-danger) inset !important;
  4. }
  5. }
  6. .cy-combo-grid {
  7. display: inline-block;
  8. position: relative;
  9. vertical-align: middle;
  10. width: 120px
  11. }
  12. .cy-combo-grid--small .cy-combo-grid__wrapper {
  13. gap: 4px;
  14. padding: 0 8px;
  15. min-height: 24px;
  16. line-height: 20px;
  17. font-size: 12px;
  18. }
  19. .cy-combo-grid__input {
  20. border: none;
  21. outline: 0;
  22. padding: 0;
  23. color: var(--el-select-multiple-input-color);
  24. font-size: inherit;
  25. font-family: inherit;
  26. -webkit-appearance: none;
  27. -moz-appearance: none;
  28. appearance: none;
  29. height: 24px;
  30. max-width: 100%;
  31. background-color: transparent
  32. }
  33. .cy-combo-grid__wrapper {
  34. display: flex;
  35. align-items: center;
  36. position: relative;
  37. box-sizing: border-box;
  38. cursor: pointer;
  39. text-align: left;
  40. font-size: 14px;
  41. padding: 4px 12px;
  42. gap: 6px;
  43. min-height: 32px;
  44. line-height: 24px;
  45. border-radius: var(--el-border-radius-base);
  46. background-color: var(--el-fill-color-blank);
  47. transition: var(--el-transition-duration);
  48. box-shadow: 0 0 0 1px #dcdfe6 inset;
  49. &.is-disabled {
  50. cursor: not-allowed !important;
  51. background-color: var(--el-fill-color-light);
  52. color: var(--el-text-color-placeholder);
  53. box-shadow: 0 0 0 1px #e4e7ed inset
  54. }
  55. &.is-padding2 {
  56. transition: none;
  57. padding: 2px 8px;
  58. }
  59. &.is-focused {
  60. box-shadow: 0 0 0 1px var(--el-color-primary) inset
  61. }
  62. &.is-filterable {
  63. cursor: text
  64. }
  65. .cy-combo-grid__input-calculator {
  66. position: absolute;
  67. left: 0;
  68. top: 0;
  69. max-width: 100%;
  70. visibility: hidden;
  71. white-space: pre;
  72. overflow: hidden
  73. }
  74. .cy-combo-grid__selected-item {
  75. display: flex;
  76. flex-wrap: wrap;
  77. -webkit-user-select: none;
  78. -moz-user-select: none;
  79. -ms-user-select: none;
  80. user-select: none
  81. }
  82. .cy-combo-grid__input-wrapper {
  83. max-width: 100%
  84. }
  85. .cy-combo-grid__placeholder {
  86. position: absolute;
  87. display: block;
  88. top: 50%;
  89. transform: translateY(-50%);
  90. width: 100%;
  91. overflow: hidden;
  92. text-overflow: ellipsis;
  93. white-space: nowrap;
  94. color: var(--el-input-text-color, var(--el-text-color-regular));
  95. &.is-transparent {
  96. -webkit-user-select: none;
  97. -moz-user-select: none;
  98. -ms-user-select: none;
  99. user-select: none;
  100. color: var(--el-text-color-placeholder)
  101. }
  102. }
  103. }
  104. .cy-combo-grid__caret {
  105. color: var(--el-select-input-color);
  106. font-size: var(--el-select-input-font-size);
  107. transition: var(--el-transition-duration);
  108. transform: rotateZ(0);
  109. cursor: pointer;
  110. &.is-reverse {
  111. transform: rotateZ(180deg)
  112. }
  113. }
  114. .cy-combo-grid__selection {
  115. position: relative;
  116. display: flex;
  117. flex-wrap: wrap;
  118. align-items: center;
  119. flex: 1;
  120. min-width: 0;
  121. gap: 6px;
  122. &.is-near {
  123. margin-left: -6px
  124. }
  125. }
  126. .cy-combo-grid__suffix {
  127. display: flex;
  128. align-items: center;
  129. flex-shrink: 0;
  130. gap: 6px;
  131. color: var(--el-input-icon-color, var(--el-text-color-placeholder));
  132. }
  133. .cy-combo-grid__table_content {
  134. display: flex;
  135. }
  136. .is-row-move {
  137. cursor: move;
  138. }
  139. .cy-combo-grid__table {
  140. --vxe-table-column-padding-default: 5px 0;
  141. //--vxe-table-row-height-default: 20px;
  142. --vxe-table-cell-padding-left: 5px;
  143. --vxe-table-cell-padding-right: 5px;
  144. }
  145. .cy-combo-grid__table_key {
  146. background-color: #edc317;
  147. }