Component API - computedProps #14875
Answered
by
yusufkandemir
mq1lv
asked this question in
General - Components / Directives / etc
-
|
Hi all! I'm need help with q-uploader component. What is the right way to access computedProps - files? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
yusufkandemir
Nov 13, 2022
Replies: 1 comment 2 replies
-
|
https://vuejs.org/guide/essentials/template-refs.html <template>
<q-uploader ref="uploaderRef" ... />
<q-btn label="Log Files" @click="logFiles" />
</template>
<script setup lang="ts">
import type { QUploader } from 'quasar';
import { ref, Ref } from 'vue';
const uploaderRef = ref() as Ref<QUploader>;
function logFiles() {
console.log(uploaderRef.value.files)
}
</script> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rstoenescu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://vuejs.org/guide/essentials/template-refs.html