From ba36eaf4bc704b056bda4013f39e66055f049f38 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Mon, 8 Jun 2020 15:12:43 +0800 Subject: [PATCH] update upload --- .../apolloTable/component/base/edit/search/index.less | 9 --------- .../component/base/extra/associationSearch/index.less | 5 ++++- .../apolloTable/component/base/extra/upload/index.tsx | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/components/apolloTable/component/base/edit/search/index.less b/components/apolloTable/component/base/edit/search/index.less index d223212..c439d10 100644 --- a/components/apolloTable/component/base/edit/search/index.less +++ b/components/apolloTable/component/base/edit/search/index.less @@ -1,18 +1,9 @@ .search { width: 100%; height: 100%; - :global(.ant-select-selector) { - height: 100% !important; - align-items: center; - } :global(.ant-select-selection) { width: 100%; min-height: 100%; border-radius: 0; - display: flex; - align-items: center; - } - :global(.ant-select-selection-search-input) { - height: 100% !important; } } diff --git a/components/apolloTable/component/base/extra/associationSearch/index.less b/components/apolloTable/component/base/extra/associationSearch/index.less index bcd42e0..a4901bf 100644 --- a/components/apolloTable/component/base/extra/associationSearch/index.less +++ b/components/apolloTable/component/base/extra/associationSearch/index.less @@ -1,7 +1,10 @@ .searchContainer { width: 100%; height: 100%; - :global(.ant-select-selection){ + :global(.ant-select-selection__rendered) { + width: 100%; + } + :global(.ant-select-selection) { min-height: 100%; } } diff --git a/components/apolloTable/component/base/extra/upload/index.tsx b/components/apolloTable/component/base/extra/upload/index.tsx index 1b2d59a..c66b44a 100644 --- a/components/apolloTable/component/base/extra/upload/index.tsx +++ b/components/apolloTable/component/base/extra/upload/index.tsx @@ -39,7 +39,7 @@ const UploadCom = (props) => { return setFormat(fileList); } const resData = file.response || {}; - const url = `${domain ? `https://${domain}` : CDN_HOST}/${resData.key}`; + const url = `${extraData.domain ? `https://${extraData.domain}` : CDN_HOST}/${resData.key}`; return { uid: file.uid, name: file.name, -- 2.21.0