Comments (4)
v-model api has changed in Vue 3 - https://github.com/vuejs/rfcs/blob/master/active-rfcs/0011-v-model-api-change.md
from vite.
So this is an incompatible change? If I have a custom component base on Vue@2 and I want to use it in a project base on Vue@next, I need to refactor it at first?
from vite.
I think you can make it work in both versions of Vue. You need to add this.$emit('update:modelValue, value)
where you emitting change
event, however you have to handle the modifiers by yourself by checking if modelModifiers
prop exists
from vite.
Please read RFCs for Vue core changes. This is not a vite issue.
from vite.
Related Issues (20)
- 设置envDir参数,热更新失效。 HOT 1
- Vite Chinese Page Has Been Reported Risky HOT 2
- SASS and SCSS Undefined variable in production build after upgrading from v4 to v5 HOT 3
- The `util._extend` API is deprecated warning from `http-proxy` dependency in Node 22
- Identifier '__vite__injectQuery' has already been declared HOT 2
- Vite packages suddenly missing dependencies that need to be manually fulfilled HOT 1
- Vite undeclared secondary dependencies broken since last week HOT 2
- Vite CSS files not part of Build| Vanilla HOT 4
- Reload does not happen if an entrypoint is in a circular dep loop HOT 5
- vue+vite+ts项目移植到无网络环境使用,pnpm 运行 vite报Cannot find package 'esbuild'
- Unable to configure the built in `postcss-import` plugin HOT 3
- Build error on windows server
- Rest 1/2 of Disable dynamic import wrapper __vite__injectQuery HOT 2
- React Native web in SSR crash/does not work HOT 1
- When trying to use graphql-voyager component render fail with message: Failed to load resource: the server responded with a status of 404 (Not Found) HOT 1
- Add the ability to prevent transforming some assets files HOT 1
- The esbuild-transpile error occurred when vite5.0+ build HOT 1
- Allow to specify resolve.alias or virtual module based on entry HOT 5
- Vite config loadEnv exposing all envs to frontend. HOT 7
- AsideSponsors is outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite.