@fe-free/file 2.7.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ function ImportXlsx(props: ImportXlsxProps) {
|
|
|
32
32
|
}, [dataStartIndex, headerIndex, sheetData]);
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<div className="flex flex-col gap-4
|
|
35
|
+
<div className="fec-import-xlsx flex h-full flex-col gap-4">
|
|
36
36
|
<Steps
|
|
37
37
|
items={[
|
|
38
38
|
{
|
|
@@ -15,7 +15,7 @@ function ImportXlsxFile(props: ImportXlsxFileProps) {
|
|
|
15
15
|
const [importType, setImportType] = useState<EnumImportType>(EnumImportType.FULL);
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
|
-
<div className="flex flex-col gap-4
|
|
18
|
+
<div className="fec-import-xlsx flex h-full flex-col gap-4">
|
|
19
19
|
<div className="flex-1 overflow-y-auto">
|
|
20
20
|
<StepImport
|
|
21
21
|
fileList={fileList}
|
|
@@ -10,7 +10,7 @@ import { EnumImportType } from './types';
|
|
|
10
10
|
|
|
11
11
|
function ItemRender({ file, right }: { file: UploadFile; right?: React.ReactNode }) {
|
|
12
12
|
return (
|
|
13
|
-
<div className="flex items-center
|
|
13
|
+
<div className="fec-border flex items-center gap-2 rounded-md">
|
|
14
14
|
<div className="flex-1">
|
|
15
15
|
<Attachments.FileCard key={file.name} item={file} />
|
|
16
16
|
</div>
|
|
@@ -53,8 +53,8 @@ function StepImport({
|
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<div
|
|
56
|
-
className={classNames('flex flex-col gap-2', '
|
|
57
|
-
'
|
|
56
|
+
className={classNames('flex flex-col gap-2', 'fec-import-xlsx', {
|
|
57
|
+
'fec-import-xlsx-has-file': fileList.length > 0,
|
|
58
58
|
})}
|
|
59
59
|
>
|
|
60
60
|
{onImportType && (
|