ibwei / vue3-ts-base Goto Github PK
View Code? Open in Web Editor NEW一个基于vue3+typescript+ant-design-vue 搭建的基础代码库,有完善的类型系统,帮助快速搭建 vue3 的基础代码架构。
Home Page: https://ibwei.github.io/vue3-ts-base/
License: MIT License
一个基于vue3+typescript+ant-design-vue 搭建的基础代码库,有完善的类型系统,帮助快速搭建 vue3 的基础代码架构。
Home Page: https://ibwei.github.io/vue3-ts-base/
License: MIT License
at master branch:
when you modify src/styles/normalize.css,then you commit will meet Parsing error: ';' expected at XXX
error
请问这个项目的兼容性如何,目前发现谷歌可以打开,火狐页面打不开。
First of all, this is a amazing project which help me a lot.
But I have some trouble with Vuex in Typescript
.
This is my // store/about.ts
:
// store/about.ts
import modules from './about'
import { StateType } from '@typing/index'
import { Module } from 'vuex'
type AboutStateType = typeof state
const state = {
aboutInfo: 'info from about state model'
}
const getters = {}
const mutations = {}
const actions = {}
const about: Module<AboutStateType, StateType> = {
namespaced: true,
state,
getters,
mutations,
actions
modules // Here,Typescript have warning: 不能将类型“Module<{ aboutInfo: string; }, VuexModuleType>”分配给类型“ModuleTree<VuexModuleType>”。
}
export { AboutStateType, state }
export default about
And my project directory like this:
In the above example, There are other modules
under the about module
.
But TypeScript Can not Identify the type correctly.
I tried to solve this problem, but still don’t know what to do. Can you provide some help for this ?
Thanks a lot!
vue2.0是通过 把message挂载到vue原型,vue3.0在setup中怎么使用message组件,按项目的配置,还是不能使用
After consultation with the original owner of this project, due to the busy schedule of the original owner of this project, there will be no more energy to maintain this project subsequently. Therefore, for the long-term development of the project, the subsequent maintenance of this project is now relocated to the new repository for this project. We hereby inform you.
经本项目原所有者协商,因本项目原所有者工作繁忙的原因,后续将没有更多的精力维护此项目。因此,为了项目的长期发展,现将本项目后续维护迁移至新仓库进行。特此告知。
in a.vue page
eg :how to dispatch actions
created(){
this.$store.dispatch('refreshToken') //unknown action type: refreshToken
}
vue-composable 安装不上
考虑使用 vite 吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.