上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 491 下一页
摘要: A template ref is a ref that connects to an element and allows you to manipulate the underlying HTML element using the DOM API. This is generally not 阅读全文
posted @ 2025-03-13 15:08 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: Code 📁 /src/App.vue <script setup lang="ts"> import { ref } from 'vue' const text = ref('') </script> <template> <ChildComponent v-model="text" /> <p 阅读全文
posted @ 2025-03-13 15:06 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要: v-bind is a commonly used feature in Vue.js. It can be used to bind a reactive value to an attribute or the content of an element. <script setup lang= 阅读全文
posted @ 2025-03-13 15:02 Zhentiw 阅读(21) 评论(0) 推荐(0)
摘要: Vue 3.3 brings an upgraded experience for using TypeScript with compiler macros such as: defineProps defineEmits defineSlots First, defineProps in its 阅读全文
posted @ 2025-03-13 15:01 Zhentiw 阅读(37) 评论(0) 推荐(0)
摘要: In Vue 3.3, you can create generic components. Generic is an important feature in many statically typed languages, including TypeScript. It’s basicall 阅读全文
posted @ 2025-03-13 14:57 Zhentiw 阅读(38) 评论(0) 推荐(0)
摘要: defineOptions Previously, if you were using script setup, and you wanted to define some options such as name or inheritAttrs for your component, you w 阅读全文
posted @ 2025-03-13 14:54 Zhentiw 阅读(92) 评论(0) 推荐(0)
摘要: <style> v-bind is a new feature in Vue 3.2 that might remind you of v-bind:style, which is a classic Vue.js technique for binding some reactive value 阅读全文
posted @ 2025-03-13 14:52 Zhentiw 阅读(19) 评论(0) 推荐(0)
摘要: Reactive props destructure is the highlight feature of Vue 3.5. It allows you to destructure props while maintaining their reactivity: const { foo } = 阅读全文
posted @ 2025-03-11 15:44 Zhentiw 阅读(39) 评论(0) 推荐(0)
摘要: 4.0更新说明 https://tailwindcss.com/blog/tailwindcss-v4 简化安装 v3安装步骤:https://v3.tailwindcss.com/docs/guides/vite#vue v4安装步骤:https://tailwindcss.com/docs/in 阅读全文
posted @ 2025-03-09 20:01 Zhentiw 阅读(784) 评论(0) 推荐(0)
摘要: 在 Tailwindcss 里面包含了大量的原子类,但是在实际开发中,我们并不是说所有的原子类都会用到,因此在最终构建 css 的时候我们应该将没有使用到的原子类进行删除操作,从而优化我们的构建产物。 tree shaking 这里在 tailwindcss 里面要进行 tree shaking 操 阅读全文
posted @ 2025-03-08 22:58 Zhentiw 阅读(63) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 491 下一页