From cd1d3005e94035064a395012764e92a3c1d6b525 Mon Sep 17 00:00:00 2001 From: jialin Date: Fri, 29 Nov 2024 15:20:51 +0800 Subject: [PATCH] fix: playground view code --- .../seal-form/components/wrapper.less | 6 ++ src/components/seal-form/seal-select.tsx | 2 +- src/pages/llmodels/components/data-form.tsx | 1 + .../components/ground-embedding.tsx | 56 ++++++++++--- .../playground/components/ground-images.tsx | 84 +++++++------------ .../playground/components/ground-left.tsx | 2 +- .../playground/components/ground-reranker.tsx | 54 ++++++++++-- .../playground/components/ground-stt.tsx | 2 +- .../playground/components/ground-tts.tsx | 2 +- .../components/multiple-chat/model-item.tsx | 2 +- src/pages/playground/components/test.txt | 33 +++++++- .../playground/components/view-code-modal.tsx | 12 +-- ...w-rerank-code.tsx => view-common-code.tsx} | 21 +++-- src/pages/playground/config/index.ts | 15 ++++ src/pages/playground/config/test-image.ts | 39 +++++++++ 15 files changed, 243 insertions(+), 88 deletions(-) rename src/pages/playground/components/{view-rerank-code.tsx => view-common-code.tsx} (89%) create mode 100644 src/pages/playground/config/test-image.ts diff --git a/src/components/seal-form/components/wrapper.less b/src/components/seal-form/components/wrapper.less index c0295f24..3c8dc148 100644 --- a/src/components/seal-form/components/wrapper.less +++ b/src/components/seal-form/components/wrapper.less @@ -251,6 +251,12 @@ } } + :global(.ant-input-number.ant-input-number-disabled) { + &:hover { + background-color: inherit; + } + } + :global(.ant-input-outlined) { display: flex; align-items: center; diff --git a/src/components/seal-form/seal-select.tsx b/src/components/seal-form/seal-select.tsx index be2faf39..1e8ff5ba 100644 --- a/src/components/seal-form/seal-select.tsx +++ b/src/components/seal-form/seal-select.tsx @@ -87,7 +87,7 @@ const SealSelect: React.FC = (props) => {