liushengqiang 4d2febba7d 白板,批注,结束后收起 | 1 rok pred | |
---|---|---|
.husky | 1 rok pred | |
dev-dist | 1 rok pred | |
dist | 1 rok pred | |
public | 1 rok pred | |
src | 1 rok pred | |
templates | 1 rok pred | |
.browserslistrc | 1 rok pred | |
.editorconfig | 1 rok pred | |
.eslintignore | 1 rok pred | |
.eslintrc.js | 1 rok pred | |
.gitignore | 1 rok pred | |
.prettierrc.js | 1 rok pred | |
LICENSE | 1 rok pred | |
README.md | 1 rok pred | |
babel.config.js | 1 rok pred | |
components.d.ts | 1 rok pred | |
index.html | 1 rok pred | |
package-lock.json | 1 rok pred | |
package.json | 1 rok pred | |
plopfile.js | 1 rok pred | |
pnpm-lock.yaml | 1 rok pred | |
postcss.config.js | 1 rok pred | |
tsconfig.json | 1 rok pred | |
tsconfig.node.json | 1 rok pred | |
vite.config.ts | 1 rok pred |
This template should help get you started developing mobile applications with Vue3 and Typescript and Vant in Vite.
npm install
npm start
npm build
npm lint
npm generate
you can use tools such as postcss--px-to-viewport to transform px
unit to viewport units (vw, vh, vmin, vmax).
.vue
Imports in TSSince 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 .vue
type support plugin by running Volar: Switch TS Plugin on/off
from VSCode command palette.