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)
- 官方文档对“使用 JavaScript 表达式”部分的内容表达有歧义 HOT 1
- Props declaration intro example uses non-recommended style HOT 3
- v-if错误 HOT 1
- playground mismatch with docs example
- could u please provide a sitemap? HOT 2
- 中文网站很多地方都有问题,不能使用了。Many parts of the Chinese website have problems and cannot be used anymore HOT 16
- `inheritAttrs` should be supplemented with more See also HOT 1
- The Chinese document seems to have lost the compiled product HOT 3
- Vue3 official website cannot be opened in Chinese ,vue3官网中文打不开 HOT 4
- 中文的官网都挂了多久了,没人维护吗? HOT 3
- https://cn.vuejs.org/ 打开样式错乱 HOT 6
- Missing search result for vModelText HOT 1
- 中文网css 没有 HOT 1
- Remove deprecated Russian translation HOT 1
- Found a dead link HOT 5
- Vue's Chinese document option based API and combination based API buttons cannot be clicked on Google Chrome
- There is an issue with the Vue Chinese official website's Mac option and combination switch buttons HOT 2
- What is problem whth chinese document ? HOT 1
- In https://vuejs.org/tutorial, the error message prompts a problem with the message style HOT 4
- Missing search result for index.vue 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 docs.