Skip to content

xuxiaowei-cloud/vant-h5

Repository files navigation

vant-h5

基于 OAuth 2.1、Vite 3、Vue 3、Vant 4、H5 的项目

License-Anti Link-996 QQ群

为简化开发工作、提高生产率、解决常见问题而生

使用方式

  • 后端使用
    • xuxiaowei-cloud
      • 基于 JDK 8、Spring Boot 2.7.x、OAuth 2.1、Vite、Vue 3、Element Plus 的微服务
    • xuxiaowei-cloud-next
      • 基于 JDK 17、Spring Boot 3.0.0、OAuth 2.1、Vite、Vue 3、Element Plus 的微服务

项目创建

  1. init
npm create vite@latest vant-h5 -- --template vue-ts
npm i [email protected]
npm i unplugin-vue-components -D
npm i eslint -D
npx eslint --init
# 选择
# To check syntax, find problems, and enforce code style
# JavaScript modules (import/export)
# Vue.js
# use TypeScript
# √ Browser
# Use a popular style guide
# Standard: https://github.com/standard/standard
# JavaScript
npm i axios
npm i crypto-js
npm i js-cookie
npm i jsencrypt
npm i sockjs-client
npm i stompjs
npm i vue-clipboard3
npm i vue-router
npm i vuex

文档

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

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's Take Over mode by following these steps:

  1. Run Extensions: Show Built-in Extensions from VS Code's command palette, look for TypeScript and JavaScript Language Features, then right click and select Disable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
  2. Reload the VS Code window by running Developer: Reload Window from the command palette.

You can learn more about Take Over mode here.

Stargazers over time

Stargazers over time

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published