@sotoa-ui/dynamic-form 0.0.8 → 0.0.9
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.
|
@@ -923,7 +923,6 @@ class MatInputFileComponent {
|
|
|
923
923
|
}
|
|
924
924
|
ngOnInit() {
|
|
925
925
|
const value = this.group().get(this.field().name)?.value;
|
|
926
|
-
console.log(value);
|
|
927
926
|
if (value) {
|
|
928
927
|
if (!this.field().multiple) {
|
|
929
928
|
this.fichier = { file: value, srcUrl: null };
|
|
@@ -958,9 +957,7 @@ class MatInputFileComponent {
|
|
|
958
957
|
}
|
|
959
958
|
onSelectFile(event) {
|
|
960
959
|
if (event && event.target && event.target.files && event.target.files.length > 0) {
|
|
961
|
-
console.log(event.target.files);
|
|
962
960
|
for (let i = 0; i < event.target.files.length; i++) {
|
|
963
|
-
console.log(i, event.target.files[i]);
|
|
964
961
|
const fichier = { file: event.target.files[i], srcUrl: null };
|
|
965
962
|
this.readFile(fichier, fichier.file);
|
|
966
963
|
if (!this.field().multiple) {
|
|
@@ -980,7 +977,6 @@ class MatInputFileComponent {
|
|
|
980
977
|
}
|
|
981
978
|
}
|
|
982
979
|
addMultipleFile(file) {
|
|
983
|
-
console.log(file.file.name);
|
|
984
980
|
if (file) {
|
|
985
981
|
if (!this.fileList) {
|
|
986
982
|
this.fileList = [];
|