diff --git a/apps/web-antd/src/views/product/batch/components/BatchImportExportPanel.vue b/apps/web-antd/src/views/product/batch/components/BatchImportExportPanel.vue index f667a61..a21b0e3 100644 --- a/apps/web-antd/src/views/product/batch/components/BatchImportExportPanel.vue +++ b/apps/web-antd/src/views/product/batch/components/BatchImportExportPanel.vue @@ -4,6 +4,7 @@ import { Button, Select, Space, Upload } from 'ant-design-vue'; interface Props { categoryOptions: Array<{ label: string; value: string }>; + embedded?: boolean; exportCategoryIds: string[]; exportScopeType: 'all' | 'category'; open: boolean; @@ -21,7 +22,9 @@ interface Emits { (event: 'update:exportScopeType', value: 'all' | 'category'): void; } -const props = defineProps(); +const props = withDefaults(defineProps(), { + embedded: false, +}); const emit = defineEmits(); const beforeUpload: UploadProps['beforeUpload'] = (file) => { @@ -40,8 +43,12 @@ function setExportCategoryIds(value: unknown) {