一群棒子
  • 首頁
  • 作者
  • 關於我們
Tagged

Vue

A collection of 3 posts

Vue3 中如何從 Parent 呼叫 Child Component 的 Method?
Vue

Vue3 中如何從 Parent 呼叫 Child Component 的 Method?

本篇文章將深入探討在 Vue3 中如何從 Parent 呼叫 Child Component 的 Method。我們將比較 Options API 和 Composition API 的實現方式,並詳細說明它們在呼叫上的差異。如果你想學習如何更好地使用 Vue3,不要錯過這篇文章!

  • jimmy8646
jimmy8646 2023年3月25日 • 2 min read
Vue 直接 call filter 的使用方法
Vue

Vue 直接 call filter 的使用方法

使用 vue2 當中經常會用 filter 來處理資料顯示的格式,好處是不會動到原本的 data,通常都會將方法全域註冊在 vue 中,如果每個 component 都要定義一遍實在是不夠 dry 。

  • jimmy8646
jimmy8646 2021年4月11日 • 1 min read
Nuxt layout import 不同的 css
Nuxt

Nuxt layout import 不同的 css

突然遇到了一個比較特殊的狀況,想要將兩包 vue 檔案整合進一個 nuxt 專案,各個 vue 檔案已經有了 css 樣式,如果全部都整合進 global css 內會有樣式互相覆蓋的問題。

  • jimmy8646
jimmy8646 2021年3月30日 • 1 min read
一群棒子 © 2025
Powered by Ghost