👉🏻 This article will introduce you to the improvements and development experiences brought by Volar 2.0, which is the official the official Vue.js VSCode extension .
👉🏻 A Vue 3 based smooth signature drawing component.
🔥 Vue Tip: Enforce Section Order & Component API Style
Daniel Kelly recently shared two interesting ESLint rules on X.
Let's start with vue/component-api-style which aims to make the API style you use to define Vue components consistent in your project. By default it only allows script setupscript setup and Composition API.
The rule would mark the following code as an error:
👉🏻 At eleven years old, ESLint is preparing itself for another eleven years by continuing to evolve into a language-agnostic linter that anyone can write plugins for.
Read this on my blog We made it to 200! Thanks for reading and supporting me over the last few years, it means a lot to me. Tomorrow is the last day of the Composable Design Patterns course launch and the 35% off discount. If you were hoping to pick it up, don't forget to check it out! As always, I've got some tips and links for you, and a new podcast episode. Enjoy, and have a great week! — Michael 🔥 Default Content with Slots You can provide fallback content for a slot, in case no content is provided: < !-- Child.vue --> < template > < div > < slot > Hey! You forgot to put something in the slot! < / slot > < / div > < / template > This content can be anything, even a whole complex component that provides default behaviour: < !-- Child.vue --> < template > < div > < slot name = "search" > < !-- Can...
Read this on my blog Hey all! Tomorrow I'm launching Composable Design Patterns — a collection of 15 patterns on how to use the composition API better. I've been working on this for a while (it's been in my head for years), and I'm excited to share it with you! You'll be getting a special launch discount, so make sure to pay attention to your email inbox tomorrow. Other than that, I've got a new podcast episode for you, and some links to check out, as well as some tips. Enjoy your week! — Michael ...
评论
发表评论