style.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // 导入全局样式变量
  2. @import '@/styles/variables.scss';';
  3. // ===== 创建/编辑表单组件样式 =====
  4. // 注意:
  5. // 1. 本样式文件只服务于 form 目录下的组件
  6. // 2. 不覆盖全局样式(.page-layout, .list-header 等)
  7. // 3. 使用局部类名避免冲突
  8. // ==================== 步骤 1:基本信息 ====================
  9. .create-step1 {
  10. .form-input {
  11. width: 100%;
  12. max-width: 646px;
  13. height: 36px;
  14. }
  15. .form-textarea {
  16. width: 100%;
  17. max-width: 646px;
  18. min-height: 96px;
  19. }
  20. .tags-info {
  21. border: 1px solid @border-color;
  22. width: 100%;
  23. max-width: 646px;
  24. min-height: 46px;
  25. border-radius: $radius-md;
  26. display: flex;
  27. align-items: center;
  28. justify-content: space-between;
  29. flex-wrap: wrap;
  30. padding: $spacing-1 $spacing-2;
  31. .tags-list {
  32. width: 80%;
  33. display: flex;
  34. flex-wrap: wrap;
  35. gap: $spacing-1;
  36. }
  37. .cup {
  38. cursor: pointer;
  39. margin-right: $spacing-3;
  40. color: $text-secondary;
  41. &:hover {
  42. color: $error-color;
  43. }
  44. }
  45. }
  46. .preset-questions {
  47. margin: $spacing-6 0;
  48. padding: $spacing-5;
  49. background: $bg-tertiary;
  50. border-radius: $radius-lg;
  51. h4 {
  52. margin-bottom: $spacing-4;
  53. color: $text-primary;
  54. font-size: $font-lg;
  55. font-weight: $font-weight-medium;
  56. }
  57. .question-item {
  58. display: flex;
  59. align-items: center;
  60. margin-bottom: $spacing-3;
  61. gap: $spacing-3;
  62. label {
  63. min-width: 80px;
  64. color: $text-secondary;
  65. font-size: $font-md;
  66. }
  67. .question-input {
  68. flex: 1;
  69. min-width: 200px;
  70. }
  71. .question-actions {
  72. display: flex;
  73. gap: $spacing-2;
  74. .question-icon {
  75. font-size: 18px;
  76. color: $primary-color;
  77. cursor: pointer;
  78. transition: all 0.2s ease;
  79. &:hover {
  80. color: $primary-color-hover;
  81. transform: scale(1.1);
  82. }
  83. }
  84. }
  85. }
  86. }
  87. .step-actions {
  88. display: flex;
  89. gap: $spacing-3;
  90. margin-top: $spacing-6;
  91. padding-top: $spacing-6;
  92. border-top: 1px solid $border-light;
  93. }
  94. }
  95. // ==================== 步骤 2:RAG 配置 ====================
  96. .create-step2 {
  97. height: 100%;
  98. display: flex;
  99. flex-direction: column;
  100. .step2-header {
  101. display: flex;
  102. justify-content: space-between;
  103. align-items: center;
  104. margin-bottom: $spacing-4;
  105. padding-bottom: $spacing-4;
  106. border-bottom: 1px solid $border-light;
  107. .btn-back {
  108. background: $bg-tertiary;
  109. border: 1px solid $border-base;
  110. color: $text-secondary;
  111. &:hover {
  112. background: $border-base;
  113. border-color: $primary-color;
  114. color: $primary-color;
  115. }
  116. }
  117. }
  118. .app-splitter {
  119. flex: 1;
  120. border: 1px solid $border-light;
  121. border-radius: $radius-lg;
  122. min-height: calc(100vh - 300px);
  123. .splitter-panel {
  124. padding: $spacing-5;
  125. overflow-y: auto;
  126. &.param-config {
  127. background: $bg-tertiary;
  128. }
  129. .config-header {
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. margin-bottom: $spacing-4;
  134. font-size: $font-lg;
  135. font-weight: $font-weight-medium;
  136. color: $text-primary;
  137. }
  138. .section-title {
  139. font-size: $font-lg;
  140. font-weight: $font-weight-medium;
  141. color: $text-primary;
  142. margin-bottom: $spacing-4;
  143. display: flex;
  144. align-items: center;
  145. gap: $spacing-2;
  146. }
  147. }
  148. }
  149. .prompt-editor {
  150. width: 100%;
  151. height: 100%;
  152. display: flex;
  153. flex-direction: column;
  154. .prompt-info {
  155. margin-bottom: $spacing-3;
  156. .variable-highlight {
  157. color: $primary-color;
  158. font-weight: $font-weight-medium;
  159. padding: 2px 6px;
  160. border-radius: @radius-sm;
  161. background: fade($primary-color, 10%);
  162. font-family: @font-family-mono;
  163. }
  164. }
  165. .prompt-textarea {
  166. flex: 1;
  167. min-height: 300px;
  168. resize: vertical;
  169. }
  170. }
  171. .form-input {
  172. width: 100%;
  173. max-width: 100%;
  174. }
  175. .form-radio-group {
  176. width: 100%;
  177. display: flex;
  178. .ant-radio-button-wrapper {
  179. flex: 1;
  180. text-align: center;
  181. }
  182. }
  183. }
  184. // ==================== 工具类 ====================
  185. .hide-scrollbar {
  186. scrollbar-width: none;
  187. -ms-overflow-style: none;
  188. &::-webkit-scrollbar {
  189. display: none;
  190. }
  191. }