Skip to content

Commit

Permalink
perf: remove media total progress shown
Browse files Browse the repository at this point in the history
  • Loading branch information
hubert committed Mar 6, 2024
1 parent 799270a commit 8018846
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,9 @@ export default defineComponent({
}}
>
<div class={`${prefixCls}-new-file-add`}>
{uploadMixin.uploading ? (
<Progress type="circle" percent={uploadMixin.percent} width={80} />
) : (
<p class="primary--text">
<Icon type="upload" class="font-size-lg--3x" />
</p>
)}
<p class="primary--text">
<Icon type="upload" class="font-size-lg--3x" />
</p>
<p class="mt-4 text--primary">{i18n.tv('page_media.upload_btn_text', '点击上传媒体文件')}</p>
</div>
</Upload>
Expand Down
12 changes: 4 additions & 8 deletions clients/vue-admin/src/views/media/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment';
import { computed, defineComponent, ref } from '@vue/composition-api';
import { Icon, Progress, Spin, Drawer, Descriptions, Upload } from 'ant-design-vue';
import { Icon, Spin, Drawer, Descriptions, Upload } from 'ant-design-vue';
import { createResource } from '@vue-async/resource-manager';
import { useRoute } from 'vue2-helpers/vue-router';
import { message } from '@/components';
Expand Down Expand Up @@ -82,13 +82,9 @@ export default defineComponent({
}
}}
>
{uploadMixin.uploading ? (
<Progress type="circle" percent={uploadMixin.percent} width={80} />
) : (
<p class="primary--text">
<Icon type="upload" class="font-size-lg--3x" />
</p>
)}
<p class="primary--text">
<Icon type="upload" class="font-size-lg--3x" />
</p>
<p class="mt-4 text--primary">
{i18n.tv('page_media.upload_dragger_btn_text', '点击或拖拽至此上传媒体文件')}
</p>
Expand Down

0 comments on commit 8018846

Please sign in to comment.