All Questions
Tagged with typescript vue.js
4,053
questions
0
votes
0
answers
15
views
Vue3 Typescript Sum all values of a column in an array
I'm still very new to this programming language and I'm trying to take an array column and sum its values so I can show a total amount on the webpage.
Question #1
I was attempting to use a computed ...
0
votes
1
answer
12
views
How to build a Vue web component which reflects an internal state as an attribute?
I am building a web component input which looks like this with Vue 3:
<my-input value="Search"></my-input>
How can I make sure that the value attribute is always equivalent to ...
1
vote
1
answer
19
views
Vue.js checkbox component is not rendered if enable id by script
I have a Vue.js component called IstTable, that consists of a table made of column and rows. All rows have the first column corresponding to a checkbox, which is a component taken by IstCheckbox.
I ...
1
vote
0
answers
18
views
how to override the ButtonHTMLAttributes.type enums?
I'm developing a cross-platform app via uni-app (this is a solution to build a cross-platform app by Vue)
the type attribute of button has been changed in uni-app
which the value can only be in
"...
0
votes
0
answers
25
views
Shadcn-vue Dialog issue
The issue is that when I click Edit or Delete, both dialogs pop up, which obiously shouldn't be the case.
<Dialog>
<Table v-if="credentialsList">
<TableCell>
&...
0
votes
0
answers
33
views
My Vue API client is getting data OK, and I have the logic to turn it into .csv, but I can't seem to work out how to download the file
DiscogsCSV is intended to do the following:
Take as input a .csv file, the first column of which contains valid discogs release IDs
Look these release IDs up on discogs API https://api.discogs.com/
...
0
votes
2
answers
41
views
How to prevent tab changes in PrimeVue v3 TabView?
I am using PrimeVue V3 TabView with composition API.
Inside each tab I have a form and I want to trigger form validation before switching tabs. So I need to interrupt the tab change, do something (...
1
vote
2
answers
42
views
How to pass slots through from Parent to Child Components with PrimeVue?
I am trying to wrap some PrimeVue components to make my own component library. But how do I handle all the slots?
Some PrimeVue components have a large number of slots so passing each one individually ...
0
votes
0
answers
26
views
What causes Cannot find module '~/pages/index.vue' or its corresponding type declarations. ts(2307) error while using router.options.ts?
see sample image here
I have a nuxt 3 project and I would like to use custom routing with it. I followed nuxt documentation on custom routing and added a folder named 'app' and inside I created router....
0
votes
0
answers
15
views
Try to set false value using UseQuery Vue
I am learning Vue at the moment. I'm trying to create a loader from the front-end for a table. I set the value true first before getting results from the endpoint so that the loader can work in <...
1
vote
2
answers
63
views
this.$.... not working after migrating Vue2 -> Vue3
So I just started migrating using the migration guide and the Compat build so we could more smoothly transition. I have setup the vue.config.js like:
chainWebpack: (config) => {
// Set alias for ...
0
votes
2
answers
42
views
How to properly use Pinia store in root vue component?
My main.ts:
import './assets/tailwind.css'
import './assets/wordpress.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './...
0
votes
1
answer
23
views
Vue.js: Watch Nested Property Changes and Trigger Method in a Deeply Nested Component Structure
I'm working with a Vue.js application where I need to watch changes on a nested property (isChecked) in a deeply nested component structure. My goal is to trigger a method (sumOfChecked) whenever the ...
0
votes
1
answer
45
views
TS2307: Cannot find module '@...' on compile to JavaScript
I'm working on a Vue project. VueJs 3 with TypeScript is used. The project will be packed with Electron as a Desktop application.
If I run vite, everything works perfect!
If I run npm run ts to ...
0
votes
0
answers
38
views
WalletConnect on Vue Wagmi Not Loading Links and QR Codes
I created a Vite + Vue project using TypeScript with the Wagmi template project. After implementing the functionality of Web3Modal, the modal pops up and shows all the crypto wallets. However, when I ...