# Vue3Project **Repository Path**: sky0535/Vue3Project ## Basic Information - **Project Name**: Vue3Project - **Description**: Vue3 学习项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-17 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue 3 + Vite + Tailwind CSS 计数示例 这是一个基于 **Vue 3**、**Vite** 和 **Tailwind CSS v4** 搭建的学习项目,主要用于练习: - 在 Vite 中集成 Tailwind CSS v4 - Vue 3 选项式 API(Options API)与 组合式 API(Composition API)的对比 - 父子组件之间的通信方式(props、emit、自定义事件、expose) --- ## 技术栈 - **框架**:Vue 3 - **构建工具**:Vite - **样式**:Tailwind CSS v4(使用 `@tailwindcss/vite` 插件) - **包管理工具**:pnpm --- ## 功能概览 页面中有一个计数器和两张卡片: - 顶部显示当前计数 `count`(初始值为 `1`) - 左侧卡片:`BlogPost (选项式 API)` - 使用 Options API 编写 - 通过自定义事件 `increase-by` 通知父组件增加计数 - 右侧卡片:`BlogPostSetup (组合式 API)` - 使用 `