Fix: The button styles in the PaddleOCR dialog are not applying correctly. (#14350)

### What problem does this PR solve?

Fix: The button styles in the PaddleOCR dialog are not applying
correctly.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
balibabu
2026-04-24 20:17:01 +08:00
committed by GitHub
parent 1870c934c6
commit 3ccd58f28c
3 changed files with 6 additions and 1446 deletions

1431
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -30,8 +30,6 @@
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@ant-design/pro-components": "^2.6.46",
"@ant-design/pro-layout": "^7.17.16",
"@antv/g2": "^5.2.10",
"@antv/g6": "^5.1.0",
"@floating-ui/react": "^0.27.19",

View File

@@ -1,4 +1,5 @@
import { RAGFlowFormItem } from '@/components/ragflow-form';
import { Button, ButtonLoading } from '@/components/ui/button';
import {
Dialog,
DialogContent,
@@ -128,20 +129,12 @@ const PaddleOCRModal = ({
)}
<DialogFooter>
<div className="flex justify-end space-x-2">
<button
type="button"
onClick={hideModal}
className="btn btn-secondary"
>
<Button type="button" onClick={hideModal} variant={'outline'}>
{t('common.cancel')}
</button>
<button
type="submit"
disabled={loading}
className="btn btn-primary"
>
{t('common.add')}
</button>
</Button>
<ButtonLoading type="submit" loading={loading}>
{t('common.ok')}
</ButtonLoading>
</div>
</DialogFooter>
</form>