Skip to content

一个 Vue3 + TS + Vite + pinia + Element-Plus 开箱即用的企业级开发模板。

Notifications You must be signed in to change notification settings

287376814/vite-vue3-ts-pinia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

vite-vue3-ts-pinia

vue3开发使用可参考

组件

所有组件都已经设置自动导入,可直接使用,无需important引入

Icons

  • Iconify - 使用任意的图标集,浏览:🔍Icônes 使用方法: 1、直接使用,在上述网站中选好图标,点击Snippetsiconify按钮复制 <span class="iconify" data-icon="material-symbols:add-notes-rounded" data-inline="false"></span> 或者组件使用 <icon-material-symbols-activity-zone-outline /> 或者结合Element使用 <el-icon :size="20" :color="'#409EFC'"> <icon-material-symbols-activity-zone-outline /> </el-icon> 2、使用已封装组件[Icon] <Icon icon="material-symbols:3p-outline" size="100px" :color="'#1e80ff'"></Icon> 3、使用本地svg图 <SvgIcon name="svg01" size="100px" :color="'#1e80ff'" ></SvgIcon> 或者 <Icon icon="svg01|svg" size="100px" :color="'#1e80ff'"></Icon>

About

一个 Vue3 + TS + Vite + pinia + Element-Plus 开箱即用的企业级开发模板。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.8%
  • JavaScript 20.2%
  • Vue 13.4%
  • HTML 7.2%
  • CSS 1.9%
  • Shell 0.4%
  • SCSS 0.1%