cost 245 ms
觀看 vueuse 的 useElementVisibility 更改不起作用

[英]watching vueuse's useElementVisibility changes is not working

我在https://github.com/eric-g-97477-vue/vue-project有一個示例項目這是安裝了vueuse的默認 vue 項目。 我將HelloWorld.vue的腳本和模板部分修改為: 並調整了 App.vue以便 HelloWorld 組件可以輕松地在屏幕上或屏幕外滾 ...

使用 useAxios 發布請求

[英]Post request with useAxios

我正在嘗試在我的 Vue 應用程序上使用組合 api,我需要向我的后端 api 發出發布請求。我正在嘗試使用 vueuse 中的“useAxios”實用程序,但我不知道如何將數據傳遞到 post 請求中。 它在文檔中沒有正確顯示...... 我想將以下 axios 請求轉換為使用“useAxios” ...

如何在兩個 dom 元素上使用 onClickOutside (vueuse)?

[英]How to use onClickOutside (vueuse) on two dom elements?

onClickOutside package 中的vueuse function 可用於在ref外部發生點擊事件時觸發: dom元素: 但是有沒有辦法在兩個 dom 元素上使用它? 我想要的是在用戶單擊兩個元素之外時觸發 function。 我嘗試在兩個 dom 元素上添加相同的ref ,但 ...

如何在另一個 useFirestore 中引用 VueUse useFirestore ref?

[英]How to reference a VueUse useFirestore ref in another useFirestore?

我正在嘗試使用 VueUse useFirestore()包裝器。 它返回一個與 Firestore 文檔同步的 ref。 目前我可以使用它來獲取和顯示users文檔。 但是現在我需要通過引用users文檔中的currentWebsiteId字段來獲取和顯示websites文檔。 當我嘗試這樣做時 ...

如何在 View 的不同頁面上重復使用 firestore 的數據庫?

[英]How to re-use the firestore's db accross the different page in View?

我第一次使用 VueUse 創建一個 Vue 應用程序。 在我的 main.ts 中,我有這個: 所以在我看來,當我想使用我的 Todos 時,它可以很好地與 useTodos 掛鈎,但是有很多時候我需要訪問一個非常具體的文檔(例如/collection/key-one/sub-collectio ...

如何停止 useAsyncState 立即運行?

[英]How to stop useAsyncState from running immediately?

我正在嘗試使用VueUse library中的useAsyncState() 。 我正在使用{ immediate: false }選項標志,因為我不希望它立即運行。 但是代碼總是立即運行,我不知道為什么。 這是我的代碼:import { useAsyncState } from '@vueuse ...

如何正確鍵入 VueUse useFirestore() 包裝器?

[英]How to correctly type the VueUse useFirestore() wrapper?

我正在使用 VueUse.org 提供的這個useFirestore()包裝器我正在嘗試輸入它返回的user引用User ,如下所示:import { User } from 'src/types'; const userId = useUserStore().user.id; const use ...

Vue useStorage (usevue) 總是啟動干凈而不是在Pania store中導入state

[英]Vue useStorage (usevue) always starting clean rather than importing state in Pinia store

我在vitesse-nuxt3之上構建了我的應用程序,除了嘗試通過vueuse使用 LocalStorage 之外,一切都很順利。 零件: 松樹專賣店: 我看着它設置數據(在 Chrome 的開發工具中),但它總是重新加載默認數據,而不是在刷新之間持續存在。 謝謝你。 ...

Nuxt3 + Pinia + VueUse -> useStorage() 不工作

[英]Nuxt3 + Pinia + VueUse -> useStorage() not working

設置:我正在使用 Nuxt3 + Pinia + VueUse。 目標:我想通過 VueUse: useStorage將 pinia 商店的 state 保存到本地存儲。 問題:出於某種原因,沒有在本地存儲中創建項目。 我覺得我在這里錯過了什么。 在組件中,我可以很好地使用useStorage 。 ...

Vue使用session存儲

[英]VueUse session storage

使用VueUse時如何指定存儲應該是本地還是session? 它似乎沒有在文檔中提及它https://vueuse.org/core/usestorage/ ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM