Comments (5)
开发环境返回对象可以正常使用,生产环境返回函数无法进行修改
Can you explain what are you trying to do, preferably with code that works in dev but not in prod?
from docs.
开发环境返回对象可以正常使用,生产环境返回函数无法进行修改
Can you explain what are you trying to do, preferably with code that works in dev but not in prod?
Okay, let me give a simple example
import Base from './Base.vue'
export default {
extends: Base,
setup(props, ctx) {
return {
...Base.setup(props, ctx),
// 本地绑定
}
}
}
This is an official document example for Vue,I just changed the .js
suffix of base to .vue
This code can be used in the development environment, but there may be issues in the production environment
Because the setup function in the production environment returns a function that cannot be used ...
To convert
from docs.
For issues related to the Chinese docs site, please create issues at the official repo https://github.com/vuejs-translations/docs-zh-cn. Thank you!
from docs.
Ah, it's an issue with English docs too. Probably needs just a note that it won't work with .vue
files. (That snippet currently works in dev for SFCs, but not in prod.)
from docs.
Ah, it's an issue with English docs too. Probably needs just a note that it won't work with
.vue
files. (That snippet currently works in dev for SFCs, but not in prod.)
you are right, Both English and Chinese documents have this issue,all need change
from docs.
Related Issues (20)
- unpkg dont work HOT 4
- 官网部分*.js 文件出现404错误 HOT 2
- Super thin font on ios HOT 6
- Doc for `update:modelValue` or `update:*` event ? HOT 4
- Change tag from div to li element
- Official website documentation-ecosystem-ui component BUG HOT 2
- Docs: Code blocks writing standards HOT 2
- the search function of the online page is not worked HOT 3
- 搜索功能点了没反应 HOT 2
- Add VNode type as the first argument of `h` HOT 1
- v-model parameters are different in Playground and web,makes it difficult to understand HOT 2
- Website home page nav bar looks weird on Firefox HOT 5
- Docs: unobvious warning in custom-directives HOT 4
- Add documentation for "VNode Lifecycle Events" HOT 2
- Slot -> Scoped Slots ->Fancy List Example:All values use item, and it looks like name="item" could be replaced with name="list-item" (or something better) to distinguish between variables and strings.
- Header `\*` markers showing up in render HOT 3
- 便宜机场推荐 :2024 最新好用便宜机场推荐
- Transitions API link opens 404 in vue router v3 docs
- There is an error in 'Creating a Vue Application' using the yarn command line in QuickStart
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 docs.