Welcome to Vue Discussions! #5902
Replies: 32 comments 21 replies
-
Awesome~ |
Beta Was this translation helpful? Give feedback.
-
基于 Vue + Ts + Vite + Element-plus 的中后台 |
Beta Was this translation helpful? Give feedback.
-
more attention #5218 |
Beta Was this translation helpful? Give feedback.
-
How does this impact forums and other communication channels? Just another channel or replacing the official forum? |
Beta Was this translation helpful? Give feedback.
-
Awesome! |
Beta Was this translation helpful? Give feedback.
-
支持 Vue,尤大 YYDS |
Beta Was this translation helpful? Give feedback.
-
Hey there! I'm welcoming myself into Vue Discussions 😀 |
Beta Was this translation helpful? Give feedback.
-
Awesome! |
Beta Was this translation helpful? Give feedback.
-
What we should use in new projects, vite or webpack? |
Beta Was this translation helpful? Give feedback.
-
Suggestion: Make Say I want to join two lists ( fooList and barList ) in vue template Currently we can only write <ul>
<li v-for="foo of fooList" :key="foo.fooId">
<li v-text="foo.num" />
<li v-text="foo.text" />
<li v-text="barList.find(bar => bar.barId === foo.barId).num" />
<li v-text="barList.find(bar => bar.barId === foo.barId).text" />
<li v-text="barList.find(bar => bar.barId === foo.barId).text2" />
</li>
</ul>
In JSX we can write <ul>
{
fooList.map(foo => {
const bar = barList.find(bar => bar.barId === foo.barId);
return [
<li v-text={foo.num} />
<li v-text={foo.text} />
<li v-text={bar.num} />
<li v-text={bar.text} />
<li v-text={bar.text2} />
];
})
}
</ul> If we can create new variables in Vue template like what we can do in JSX, we can write <ul>
<li v-for="foo of fooList" :key="foo.fooId">
<script type="a special tag indicates that this script is inlined into generated component code">
const bar = barList.find(bar => bar.barId === foo.barId);
</script>
<li v-text="foo.num" />
<li v-text="foo.text" />
<li v-text="bar.num" />
<li v-text="bar.text" />
<li v-text="bar.text2" />
</li>
</ul> It's not only cleaner, but also more efficient. |
Beta Was this translation helpful? Give feedback.
-
Suggestion: Make
If we name the script if we explicitly write I like to move my business logic code into a seperate file and I don't want to make my template file toooooo long. Please consider it twice. |
Beta Was this translation helpful? Give feedback.
-
I would like to know about plans on finalizing |
Beta Was this translation helpful? Give feedback.
-
Lets go!!! |
Beta Was this translation helpful? Give feedback.
-
cool :=) |
Beta Was this translation helpful? Give feedback.
-
Hello! |
Beta Was this translation helpful? Give feedback.
-
how to do UI component library testing? |
Beta Was this translation helpful? Give feedback.
-
Vue4啥时候出来啊 |
Beta Was this translation helpful? Give feedback.
-
Exhibition of works: |
Beta Was this translation helpful? Give feedback.
-
How to learn |
Beta Was this translation helpful? Give feedback.
-
我在使用vue3.3.4版本的时候发现在App.vue文件里引入Directive引入时报错。 网页上报错是这样的:Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/vue.js?v=8d1ebff5' does not provide an export named 'Directive' |
Beta Was this translation helpful? Give feedback.
-
TypeError: Cannot assign to read only property 'length' of object '[object Array]'新建vue工程然后刷新一下就会出现这个异常,vue版本是2.6.14,node版本是12.18.0 |
Beta Was this translation helpful? Give feedback.
-
@yyx990803 VUE-languagetool dead? |
Beta Was this translation helpful? Give feedback.
-
Help! When I want to add |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome to Vue Discussions!
We’re using Discussions as a place for the community to connect and help each other. This is where you can:
Note: if you have a substantial feature request, please head over to the vuejs/rfcs repo which is dedicated to framework design discussions.
Please be welcoming and open-minded, and follow our Code of Conduct. Remember that this is a community we build together 💪.
Beta Was this translation helpful? Give feedback.
All reactions