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

Vue

A collection of 2 posts

Vue 直接 call filter 的使用方法
Vue

Vue 直接 call filter 的使用方法

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

  • jimmy8646
jimmy8646 Apr 11, 2021 • 1 min read
Nuxt layout import 不同的 css
Nuxt

Nuxt layout import 不同的 css

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

  • jimmy8646
jimmy8646 Mar 30, 2021 • 1 min read
一群棒子 © 2023
Powered by Ghost