From 6b00cfa8e00988a88449ab83404e9e14337323c8 Mon Sep 17 00:00:00 2001 From: Xc Date: Wed, 20 Mar 2024 12:12:01 +0800 Subject: [PATCH] =?UTF-8?q?ExtraFile/Commit=E7=9A=84=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/components/extraFile/commit/web.js | 4 ++-- es/components/extraFile/commit/web.pc.js | 4 ++-- src/components/extraFile/commit/web.pc.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/es/components/extraFile/commit/web.js b/es/components/extraFile/commit/web.js index ed9754681..c8c7e2ede 100644 --- a/es/components/extraFile/commit/web.js +++ b/es/components/extraFile/commit/web.js @@ -3,9 +3,9 @@ import { Button } from 'antd-mobile'; export default function render(props) { const { state, oakExecutable, oakExecuting, oakDirty, size, block, type, executeText, failureIds, buttonProps, } = props.data; const { t, onSubmit } = props.methods; - const disabled = (oakExecuting || + const disabled = oakExecuting || ['uploading'].includes(state) || - (oakExecutable !== true && ['uploaded'].includes(state))) && !failureIds; + oakExecutable !== true && !failureIds; let text = executeText || t('common::submit'); if (oakExecuting) { text = t('executing', { text }); diff --git a/es/components/extraFile/commit/web.pc.js b/es/components/extraFile/commit/web.pc.js index cfcccde86..2d8d9c5ac 100644 --- a/es/components/extraFile/commit/web.pc.js +++ b/es/components/extraFile/commit/web.pc.js @@ -3,9 +3,9 @@ import { Button } from 'antd'; export default function render(props) { const { state, oakExecutable, oakExecuting, size, block, type, failureIds, executeText, buttonProps = {}, } = props.data; const { t, onSubmit } = props.methods; - const disabled = (oakExecuting || + const disabled = oakExecuting || ['uploading'].includes(state) || - (oakExecutable !== true && ['uploaded'].includes(state))) && !failureIds; + oakExecutable !== true && !failureIds; let text = executeText || t('common::submit'); if (oakExecuting) { text = t('executing', { text }); diff --git a/src/components/extraFile/commit/web.pc.tsx b/src/components/extraFile/commit/web.pc.tsx index 4d313d0ac..e0c956525 100644 --- a/src/components/extraFile/commit/web.pc.tsx +++ b/src/components/extraFile/commit/web.pc.tsx @@ -37,9 +37,9 @@ export default function render( } = props.data; const { t, onSubmit } = props.methods; - const disabled = (oakExecuting || + const disabled = oakExecuting || ['uploading'].includes(state) || - (oakExecutable !== true && ['uploaded'].includes(state))) && !failureIds; + oakExecutable !== true && !failureIds; let text = executeText || t('common::submit'); if (oakExecuting) { text = t('executing', { text });