fix(01): dialog drawer form
This commit is contained in:
parent
ef9aeb930a
commit
073635c95b
5 changed files with 227 additions and 105 deletions
|
|
@ -24,7 +24,7 @@ const file = defineModel<File | null>('file', {
|
|||
required: true,
|
||||
});
|
||||
defineEmits<{
|
||||
(e: 'save', v: File | null): void;
|
||||
(e: 'save', file: File | null, url: string | null): void;
|
||||
}>();
|
||||
|
||||
const reader = new FileReader();
|
||||
|
|
@ -131,7 +131,7 @@ function change(e: Event) {
|
|||
type="submit"
|
||||
color="primary"
|
||||
class="q-px-md"
|
||||
@click="$emit('save', inputFile?.files?.[0] || null)"
|
||||
@click="$emit('save', inputFile?.files?.[0] || null, imageUrl)"
|
||||
:label="$t('save')"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -190,4 +190,14 @@ function change(e: Event) {
|
|||
.image-container > :deep(*:not(:first-child)) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
color: hsl(var(--negative-bg));
|
||||
background-color: hsla(var(--negative-bg) / 0.1);
|
||||
|
||||
&.dark {
|
||||
background-color: transparent;
|
||||
border: 1px solid hsl(var(--negative-bg));
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue