owner stringclasses 14
values | repo stringclasses 14
values | id int64 116k 4.61B | issue_number int32 1 181k | author stringlengths 1 39 | body stringlengths 1 262k | created_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:16:18 | updated_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:22:56 | reactions unknown | author_association stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|
vuejs | core | 1,291,096,800 | 1,033 | ChibiBlasphem | Using this thread to remind that because of those jsx types clobbering the global namespace (on vue 2.7.13 at least), React and Vue cannot be used on the same project which is a real problem. | 2022-10-25T20:26:19 | 2022-10-25T20:26:19 | {
"+1": 6
} | NONE |
vuejs | core | 1,292,260,326 | 6,961 | LinusBorg | > exact same error logs when i use string.slice ...
in my opinion , vue doesn't know Js basic string methods
It rather sounds like a browser issue, or an issue with your app, if it works in the playground.
Since Brave ia built on Chromium, i doubt that Brave doesn't know these basic JS APIs | 2022-10-26T15:54:32 | 2022-10-26T15:55:11 | {} | MEMBER |
vuejs | core | 1,293,192,395 | 6,965 | Edge00 | Got a solution. update number of cards in onmounted lifecycle. | 2022-10-27T08:43:27 | 2022-10-27T08:43:44 | {
"+1": 1
} | NONE |
vuejs | core | 1,293,701,125 | 6,966 | ysy945 | for KeepAlive,it should be moved instead of unmount.but in customElements,it can only be unmount | 2022-10-27T15:24:10 | 2022-10-27T15:24:10 | {} | CONTRIBUTOR |
vuejs | core | 1,293,824,296 | 6,977 | LinusBorg | computed properties are refs. Consequently, `isRef` and `unref` already work with computed properties. | 2022-10-27T17:07:16 | 2022-10-27T17:07:16 | {} | MEMBER |
vuejs | core | 1,295,638,138 | 6,978 | zhangzhonghe | [minimal reproduction](https://deploy-preview-6974--vue-sfc-playground.netlify.app/#__DEV__eNqlUktu2zAQvcqAG9uASaVp0aKqFaAH6KbbKAhkcWSxoUiCpJQKhu/eoT6NkWSXBQnOezPz5sMz++mcGHpkOTtE7JyuIt6VBuAg1QADb6wvSqaIAmXgc8kgf8JxgZLlsSErYPyNDdm1rkIg4Kh7LNmUacm1Mh7lC5ERM8str0N2VQWZofbKRaD8vZscVeesj3AGa37Z3kSUcIHG2w421MYmudTWhAha0VXA/... | 2022-10-28T23:29:07 | 2022-10-28T23:29:07 | {} | MEMBER |
vuejs | core | 1,296,249,614 | 4,605 | daniluk4000 | Same problem | 2022-10-30T12:43:51 | 2022-10-30T12:43:51 | {} | NONE |
vuejs | core | 1,296,285,266 | 6,984 | posva | Make sure to externalise vue when bundling a library using Vue. It cannot be a dependency
Remember to use the [forum](http://forum.vuejs.org/) or the [Discord chat](https://chat.vuejs.org/) to ask questions! | 2022-10-30T15:30:27 | 2022-10-30T16:02:15 | {} | MEMBER |
vuejs | core | 1,296,440,854 | 6,992 | louiss0 | I can't believe people didn't see this as a problem thank goodness. Programming mechanics are important. | 2022-10-31T01:58:52 | 2022-10-31T01:58:52 | {} | NONE |
vuejs | core | 1,298,565,282 | 6,876 | StepanMynarik | > Here are the very prototype of definitions FYR:
>
> ```
> <script lang="ts" setup>
> type Props = {
> someArray: string[];
> };
> // ⬇️ ReactiveVariable<string[]>
> const { someArray } = $defineProps<Props>();
>
> // ⬇️ Ref<string[]>
> const someArrayRef = $$(someArray);
> </script>
> ```
>... | 2022-11-01T14:07:55 | 2022-11-01T14:07:55 | {} | NONE |
vuejs | core | 1,291,685,748 | 4,166 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 2604ba6a593914cb1920dfa93366a0b30fc252cc |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-10-26T08:32:10 | 2022-10-26T08:32:10 | {} | NONE |
vuejs | core | 1,293,279,511 | 6,966 | tuchg | > this link is `http://localhost:5173`. if you want to show your problem online,may click [here](https://sfc.vuejs.org/#eNo9j71uwzAMhF+F5eIWqCV0NZQA3foGXbikjpw40B9EOR0EvXspp8imu9N9OFb8TEndN4sTGp7zmgqwLVs6Ulh9irlAhWwXaLDk6GGQrwMFCnMMXMDzBQ49fx2+rHMRvmN255fhjYLRD5yARBTrkzsVKwrAXD+Ote7l1owWtbtrSFuB++jj2boDoeSEEhn9bOM7PlaN... | 2022-10-27T09:56:04 | 2022-10-27T09:56:37 | {} | NONE |
vuejs | core | 1,294,249,825 | 6,745 | ssche | Another use case arises when using custom components within a `<transition-group>` as a grid layout (`display: grid`). The elements need to be rendered as individual elements without a common root, so the grid layout works as expected. | 2022-10-28T00:06:12 | 2022-10-28T00:06:12 | {} | NONE |
vuejs | core | 1,294,895,890 | 6,976 | signalwerk | awesome! thank you @yyx990803
I just sent the mail. | 2022-10-28T11:43:44 | 2022-10-28T11:43:44 | {} | NONE |
vuejs | core | 1,296,256,121 | 6,532 | 2-5 | The linked PR (https://github.com/vuejs/core/pull/6533) does solve the issue for me.
Maybe it can be looked at and merged in? | 2022-10-30T13:14:44 | 2022-10-30T13:14:44 | {} | NONE |
vuejs | core | 1,296,916,803 | 2,116 | WORMSS | This seems REALLY bad for large arrays for memory churn. This wouldn't even stop the spread early if it detected the first item had changed, it would still keep spreading all the way to the 100,000th item. | 2022-10-31T10:54:17 | 2022-10-31T10:54:17 | {} | NONE |
vuejs | core | 1,290,541,387 | 2,136 | rudolfbyker | > When using ref or reactive with generics you need to cast to `as Ref<T>` and `as reactive<T>` if you sure that the type doesn't have any nested refs, because ref and reactive will unwrap nested refs automatically.
Using Vue 2.7, it looks like it should be `as Ref<T>` for `ref()` and `as T` for `reactive()`, rather... | 2022-10-25T13:20:35 | 2022-10-25T13:20:35 | {
"+1": 3
} | NONE |
vuejs | core | 1,291,453,757 | 6,953 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | ce4d3e23fd7dc5c6f3b2349ff2f942fd188024f4 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-10-26T03:39:21 | 2022-10-26T03:39:21 | {} | NONE |
vuejs | core | 1,291,650,627 | 3,258 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | a32f7f7a990b36ba3bd8fef35333e30bc104cd32 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-10-26T08:04:08 | 2022-10-26T08:04:08 | {} | NONE |
vuejs | core | 1,293,252,461 | 6,969 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b92fdb7a3c00ddc89105c60e79d7fe6e81833d02 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-10-27T09:32:41 | 2022-10-27T11:45:23 | {} | NONE |
vuejs | core | 1,293,411,823 | 6,970 | zhangzhonghe | I guess there is no Generics support yet.
https://github.com/vuejs/docs/blob/380d98b8f35cbfb8a2968ab7e51933fa52da8adc/src/api/sfc-script-setup.md?plain=1#L266 | 2022-10-27T11:51:55 | 2022-10-27T11:51:55 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,293,723,792 | 6,974 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | ce296bf81b5803ed6594d7574fdaf9257ab1aabb |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-10-27T15:40:38 | 2022-10-28T01:47:11 | {} | NONE |
vuejs | core | 1,296,044,930 | 2,116 | cmcnicholas | > Well, this is disappointing. I lost a few hours because, contrary to what the docs say, and contrary to all the logic, array.push() is "reactive" in the sense that my views are changed, yet I can't watch it as I always could. This is broken behaviour.
agreed, I have spent a few hours teasing this out now too, not ... | 2022-10-30T00:58:58 | 2022-10-30T00:58:58 | {} | NONE |
vuejs | core | 1,296,450,529 | 6,992 | shendiid | `const msg = $ref('Hello World!') ` === `const msg ={ value : 'Hello World!' } `
so...`msg = '10' === msg.value = '10' // msg = { value : '10' } ` is allowed
but... `const msg = $ref( '10' ) ` is not allowed. | 2022-10-31T02:16:44 | 2022-10-31T02:17:52 | {} | NONE |
vuejs | core | 1,298,515,682 | 7,003 | baiwusanyu-c | @sxzz hey bro, help me to determine if it is a bug, thank you 🙏 | 2022-11-01T13:32:18 | 2022-11-01T13:32:18 | {
"+1": 3
} | MEMBER |
vuejs | core | 1,298,728,203 | 4,294 | liulinboyi | [I wrote a vite plugin that implements the basic import interface for defineProps 实现了defineProps的基本接口导入](https://github.com/vuejs/core/discussions/7005) | 2022-11-01T15:42:05 | 2022-11-01T15:42:05 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,290,262,808 | 6,938 | posva | aria roles, like other attributes, are to be set manually with `v-bind`. This kind of abstraction belongs in a component (e.g. component libraries add these attributes) to catter for all possible use cases | 2022-10-25T09:32:02 | 2022-10-25T09:32:02 | {} | MEMBER |
vuejs | core | 1,291,650,716 | 3,258 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-next-template-explorer* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | a32f7f7a990b36ba3bd8fef35333e30bc104cd32 |
|<span aria-hidden="true">🔍</span> Latest deploy l... | 2022-10-26T08:04:12 | 2022-10-26T08:04:12 | {} | NONE |
vuejs | core | 1,291,686,028 | 4,166 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 2604ba6a593914cb1920dfa93366a0b30fc252cc |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-10-26T08:32:22 | 2022-10-26T08:32:22 | {} | NONE |
vuejs | core | 1,289,704,344 | 6,940 | posva | Duplicate of https://github.com/vuejs/vue/issues/6358 and https://github.com/vuejs/core/issues/3254 | 2022-10-24T22:20:26 | 2022-10-26T09:08:54 | {} | MEMBER |
vuejs | core | 1,292,888,156 | 5,584 | IF-tiger | > 
>
> 我的错误消息
me too | 2022-10-27T02:33:06 | 2022-10-27T02:33:06 | {} | NONE |
vuejs | core | 1,297,922,194 | 6,992 | bbcvc | > **This may be a break change.** @sxzz
If 👇 is not allowed then there will be a lot of compatibility issues for projects prior to version < 3.2.41.This can cause problems for many users.
`
const msg = $ref('Hello World!')
// should emit an error here, since msg is a constant variable.
msg = "10"
` | 2022-11-01T02:09:07 | 2022-11-01T02:09:07 | {} | NONE |
vuejs | core | 1,298,336,516 | 6,984 | bauer00 | Thanks for your response, but externalise should only make a difference if the imported library is pre-built. As I'm not doing that, so basically normally importing the components, just from node_modules and build everything at the end, externalising shouldn't have any effects.
To test, I've updated my example code ... | 2022-11-01T10:40:12 | 2022-11-01T10:40:37 | {} | NONE |
vuejs | core | 1,291,929,412 | 6,206 | nathantaal | > @LinusBorg But if I use UI library for vue 3 and I don't have the opportunity to set compatConfig inside the component? In this case, how can I fix the warning?
Update the library, or switch to something else | 2022-10-26T12:03:24 | 2022-10-26T12:03:24 | {
"confused": 1
} | NONE |
vuejs | core | 1,293,496,226 | 6,944 | tuchg | > It will break existing code. We should keep expressions in backets.
>
> [Before](https://sfc.vuejs.org/#eNo9T8sOgkAM/JVN40EDLJ4RTfyPvSCpCmEf2RY9kP13u6DeOjOd6XSBawj6NSM00FIfh8CKkOdwMW5CVr2fHauzOp6MM673jlhFpHnK5G63X/WiKLfFg3FtvaWIXwCjDVPHKEipZflZU8qLfxFKGGzwkSvbBT2Sd9JmyRbzFchAo1Ymc1I3YwNP5kBNXdO9zz+MpH181DLpKG0Gixr... | 2022-10-27T13:03:35 | 2022-10-27T13:04:58 | {} | NONE |
vuejs | core | 1,293,714,122 | 6,966 | ysy945 | > > this link is `http://localhost:5173`. if you want to show your problem online,may click [here](https://sfc.vuejs.org/#eNo9j71uwzAMhF+F5eIWqCV0NZQA3foGXbikjpw40B9EOR0EvXspp8imu9N9OFb8TEndN4sTGp7zmgqwLVs6Ulh9irlAhWwXaLDk6GGQrwMFCnMMXMDzBQ49fx2+rHMRvmN255fhjYLRD5yARBTrkzsVKwrAXD+Ote7l1owWtbtrSFuB++jj2boDoeSEEhn9bOM7Pl... | 2022-10-27T15:33:49 | 2022-10-27T15:33:49 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,293,436,561 | 6,972 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 6e558a11b4aadb694e624b9da91c4b78a3bc5e8d |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-10-27T12:13:51 | 2022-11-01T16:36:46 | {} | NONE |
vuejs | core | 1,293,265,212 | 6,966 | ysy945 | this link is `http://localhost:5173`. if you want to show your problem online,may click [here](https://sfc.vuejs.org/#eNo9j71uwzAMhF+F5eIWqCV0NZQA3foGXbikjpw40B9EOR0EvXspp8imu9N9OFb8TEndN4sTGp7zmgqwLVs6Ulh9irlAhWwXaLDk6GGQrwMFCnMMXMDzBQ49fx2+rHMRvmN255fhjYLRD5yARBTrkzsVKwrAXD+Ote7l1owWtbtrSFuB++jj2boDoeSEEhn9bOM7PlaN/p... | 2022-10-27T09:43:33 | 2022-10-27T09:43:33 | {} | CONTRIBUTOR |
vuejs | core | 1,212,676,756 | 4,294 | lzxb | Do you have a release plan? | 2022-08-12T02:44:22 | 2022-11-16T00:53:27 | {} | NONE |
vuejs | core | 1,319,030,312 | 7,156 | yuri-li | > ```
> <script>
> export default {
> name: 'CustomName'
> }
> </script>
> ```
>
> You can define the name manually as a temp solution.
多谢。你的方法是有效的。
```
<script lang="ts">
export default {
name: "MultiplicationTable"
}
</script>
<script setup lang="ts">
import Item from "@/components/multiplicat... | 2022-11-17T18:19:46 | 2022-11-17T18:19:46 | {} | NONE |
vuejs | core | 1,322,303,269 | 7,185 | vanillajonathan | Because users may come across the Vue SFC Playground when they are new to Vue, when they are curious about it, before they have downloaded it and set up an development environment and installed the browser extension.
Also it would introduce Vue developers who have not yet bothered to install the extension to the Vue... | 2022-11-21T16:13:47 | 2022-11-21T16:13:47 | {} | NONE |
vuejs | core | 1,322,498,515 | 7,186 | LinusBorg | It's happening under specific circumstances only. Most usage is if working fine. | 2022-11-21T18:45:24 | 2022-11-21T18:45:24 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,317,982,180 | 7,156 | sxzz | @baiwusanyu-c It will resolve the path `/order/Index.vue` and get the component name with `order`, instead of `Index` | 2022-11-17T02:45:26 | 2022-11-17T02:45:26 | {} | MEMBER |
vuejs | core | 1,320,817,873 | 7,020 | zhangzhonghe | I think this is because some variable values are shared between different apps, and if the first-mounted app throws an error it may cause some variables not to be reset, which in turn causes the later-mounted app to behave in a way that is not expected.
For example, in the following code, since the ```mounted``` hoo... | 2022-11-19T06:44:54 | 2022-11-19T06:44:54 | {} | MEMBER |
vuejs | core | 1,316,155,024 | 7,129 | peakDragonCheung | > 1.should be modelValue is not modalValue 2.For input element, we should use @input to handle the event.please see https://cn.vuejs.org/guide/components/events.html#usage-with-v-model
Yes, I wrote the sample incorrectly, but my actual project also wrote modelValue, | 2022-11-16T01:39:59 | 2022-11-16T01:39:59 | {} | NONE |
vuejs | core | 1,316,988,307 | 7,153 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 6750ae86c39e5eec20e63f3757e1eaa7c8a14710 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-11-16T13:02:43 | 2022-11-16T15:09:26 | {} | NONE |
vuejs | core | 1,318,149,379 | 7,156 | yuri-li | >
我没有使用unplugin-auto-import。自动引入,不是讨论的关键点。换个开发工具,比如,intellij idea或webstorm,都是自动引入的(可能需要按快捷键,习惯了,没注意),不需要插件。而且,可以看到import的部分,对写代码是有帮助的,如果遇到问题,方便定位。隐藏一些开发的细节,没有意义。
复杂的组件,使用directory name作为组件名称,更舒服些,你觉得呢?如果所有组件都叫“Index”,或者,加上namespace才能区分,显然有点麻烦了。
抱歉,我是后端开发,不是很熟悉前端的工程结构,也不知道怎么构建"vuejs/core"的源码。小学徒一枚,一起探讨下
<img wi... | 2022-11-17T06:27:36 | 2022-11-17T06:35:13 | {} | NONE |
vuejs | core | 1,319,051,274 | 7,156 | yuri-li | > Use the solution given by @sxzz. You can also refer to the naming of components inside the [style guide](https://v2.cn.vuejs.org/v2/style-guide/#%E5%8D%95%E6%96%87%E4%BB%B6%E7%BB%84%E4%BB%B6%E6%96%87%E4%BB%B6%E5%90%8D%E7%9A%84%E5%A4%A7%E5%B0%8F%E5%86%99%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90) BTW, I personally never use... | 2022-11-17T18:39:54 | 2022-11-17T18:39:54 | {} | NONE |
vuejs | core | 1,322,338,065 | 7,185 | Akryum | Technically it wouldn't be that difficult with the way it's architectured now. Main blocker would be the migration of the frontend to Vue 3 | 2022-11-21T16:33:27 | 2022-11-21T16:33:27 | {
"eyes": 1
} | MEMBER |
vuejs | core | 1,323,402,963 | 7,169 | edison1105 | duplicate of https://github.com/vuejs/core/issues/6152 ? | 2022-11-22T10:00:24 | 2022-11-22T10:00:24 | {} | MEMBER |
vuejs | core | 1,316,158,054 | 7,129 | FrontEndDog | > > 1.should be modelValue is not modalValue 2.For input element, we should use @input to handle the event.please see https://cn.vuejs.org/guide/components/events.html#usage-with-v-model
>
> Yes, I wrote the sample incorrectly, but my actual project also wrote modelValue,
please see https://cn.vuejs.org/guide/com... | 2022-11-16T01:42:57 | 2022-11-16T01:42:57 | {} | NONE |
vuejs | core | 1,316,177,804 | 6,390 | zhangzhonghe | > Whenever I save changes to the project files, the npm run serve process recompiles the code but the browser does not show a reload message and it takes 10-15s before the changes are reflected in the browser.
What @Melbourneandrew said is that it takes a long time for the page to update, which is different from wh... | 2022-11-16T02:02:28 | 2022-11-16T02:02:28 | {} | MEMBER |
vuejs | core | 1,316,685,543 | 7,147 | jacekkarczmarczyk | https://vuejs.org/guide/essentials/reactivity-fundamentals.html#reactive-proxy-vs-original-1 | 2022-11-16T09:34:46 | 2022-11-16T09:34:46 | {} | CONTRIBUTOR |
vuejs | core | 1,317,077,258 | 7,150 | liulinboyi | > > I think the result `() => (n => n + 2)` is right, the default props suggest use a factory function.
> > ~ snip ~
> > I think the `Function` may also need use a factory function
>
> I don't think this makes sense. There is no reason to transport functions inside functions. The reason for using factory functions... | 2022-11-16T14:06:13 | 2022-11-16T14:08:28 | {} | MEMBER |
vuejs | core | 1,319,006,746 | 6,364 | sxzz | Duplicated of #5100 | 2022-11-17T18:00:12 | 2022-11-17T18:00:12 | {} | MEMBER |
vuejs | core | 1,319,793,273 | 7,168 | LinusBorg | > Some libraries provide instances extended from EventTarget so it would be good to know why they cannot be made reactive and if there is a way around it.
The general recommendation is to not make complex class constructs reactive. We also don't want to add more complexity into the reactivity internals by supporting... | 2022-11-18T10:08:43 | 2022-11-18T10:08:43 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,321,367,495 | 6,984 | PurpleTape | Hello! I'm facing the same problem. I am importing a component from node_modules (which is presented as source code, not a build). It implements provide based on Symbol(). And in the main component, I do an inject() on the same symbol, but the attempt fails. At the same time, if the imported component is not in node_mo... | 2022-11-21T02:27:21 | 2022-11-21T02:27:21 | {} | NONE |
vuejs | core | 1,322,330,478 | 7,185 | sxzz | I still think there's too much workload to implement it and the benefit is so small.
/cc @Akryum | 2022-11-21T16:27:19 | 2022-11-21T16:27:19 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,324,474,799 | 7,180 | liulinboyi | It will be fixed in https://github.com/vuejs/core/pull/7188
such as: [playground](https://deploy-preview-7188--vue-sfc-playground.netlify.app/#__DEV____SSR__eNqlU02P0zAQ/SvGHJJKTVKQEKuSrYSWCzckEKdcvMmkGBzbsp2UqMp/Z+x8bNNdFqHtocpk3rx5M/Nyph+1TrsW6J7mDhotmINDIQnJK96FB0I+9ZI1vCSl4CAdUVL0pGOihT3JrTNKHg/nM6lG1HefIMOQZ1Mqk... | 2022-11-23T02:38:01 | 2022-11-23T02:38:01 | {} | MEMBER |
vuejs | core | 1,316,614,077 | 7,144 | yyx990803 | This has been discussed extensively in RFCs - neither can be done without type-related issues.
We will likely recommend using Reactive Transform in the future with [reactive props destructure](https://vuejs.org/guide/extras/reactivity-transform.html#reactive-props-destructure). | 2022-11-16T08:46:55 | 2022-11-16T08:46:55 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,317,032,863 | 7,150 | baiwusanyu-c | When I tried to revise this question, I found that there is a test about this situation in the unit test, it seems that the design is like this(line 82 ~ 102)
[see](https://github.com/vuejs/core/blob/main/packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts#L82) | 2022-11-16T13:35:00 | 2022-11-16T13:35:00 | {} | MEMBER |
vuejs | core | 1,317,080,503 | 7,150 | nkoehring | > I think the `function` also is a [Function object in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function), the function also can be shared state between components and be modified by component.
Sure, technically that might be right. But first the behaviour is then ... | 2022-11-16T14:08:25 | 2022-11-16T14:11:17 | {} | NONE |
vuejs | core | 1,317,096,260 | 7,150 | baiwusanyu-c | `withDefaults` can indeed circumvent this problem, but it is confusing why `const { mapper = n => n + 2 }` will produce this weird behavior | 2022-11-16T14:19:20 | 2022-11-16T14:19:20 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,317,471,088 | 7,154 | sxzz | Why did you make a duplicated PR? You can push the code to the original PR and branch. | 2022-11-16T18:23:21 | 2022-11-16T18:23:21 | {} | MEMBER |
vuejs | core | 1,318,397,466 | 7,156 | yuri-li | > So this should be moved to the devtools repo?
跟开发工具没有关系吧。我提的问题是“组件如何命名”。
示例1: "/pages/order/Index.vue",组件名称应为“Order”。
示例2: "/pages/order/item/Index.vue",组件名称应为"Item"。如果是“OrderItem”就更好了 | 2022-11-17T10:11:45 | 2022-11-17T10:17:39 | {} | NONE |
vuejs | core | 1,318,691,364 | 7,166 | LinusBorg | that's not really related to there being brackets, it's because setting the CSS `backgroundImage` style property to a random string is invalid and will be ignored by the browser. it needs to be in the form of `url(".....")`
https://sfc.vuejs.org/#eNqFkkGP0zAQhf/KYIHSSk3cFbfQRYIbF65cfKiTThNvE9uyxy2oyn9n7CKolgpunvH4e+... | 2022-11-17T14:07:48 | 2022-11-17T14:07:48 | {} | MEMBER |
vuejs | core | 1,318,792,089 | 7,166 | synoloris | Oh, I missed out on that. Thanks for resolving 👍 | 2022-11-17T15:20:16 | 2022-11-17T15:20:16 | {} | NONE |
vuejs | core | 1,319,494,844 | 7,164 | asingingfish | > You misunderstand how scoped slots work. passing props to the slots function makes them available to the slot content, it does not apply them automatically. you need to do that yourself:
>
> ```
> <Mask v-slot="extendProps">
> <Header v-bind="extendProps" />
> </Mask>
> ```
>
> docs: https://cn.vuejs.... | 2022-11-18T03:22:23 | 2022-11-18T03:22:45 | {} | NONE |
vuejs | core | 1,317,063,163 | 7,150 | nkoehring | > When I tried to revise this question, I found that there is a test about this situation in the unit test, it seems that the design is like this(line 82 ~ 102) [see](https://github.com/vuejs/core/blob/main/packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts#L82)
It really looks like the test is spec... | 2022-11-16T13:56:18 | 2022-11-16T13:56:18 | {} | NONE |
vuejs | core | 1,317,088,978 | 7,150 | liulinboyi | > > I think the `function` also is a [Function object in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function), the function also can be shared state between components and be modified by component.
>
> Sure, technically that might be right. But first the behaviour is... | 2022-11-16T14:14:19 | 2022-11-16T14:16:01 | {} | MEMBER |
vuejs | core | 1,317,460,792 | 7,150 | sxzz | @liulinboyi It's the scope of Reactivity Transform, and Reactivity Transform is under experimental and unstable. Maybe we can fix it in Vue 3.3, since Evan said it will be stabilized in the version. | 2022-11-16T18:19:14 | 2022-11-16T18:19:14 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,318,198,223 | 7,160 | LinusBorg | Computed properties are lazily evaluated. So to know wether or not their value ha changed, the need to be read by some code. So effects depending on a computed property need to run in order to find out wether the return value has changed.
details: https://dev.to/linusborg/vue-when-a-computed-property-can-be-the-wron... | 2022-11-17T07:22:33 | 2022-11-17T07:22:33 | {} | MEMBER |
vuejs | core | 1,318,245,885 | 7,161 | liuseen-l | const makeHammerBox = makeBox< Hammer >('hammer'); | 2022-11-17T08:09:16 | 2022-11-17T08:09:16 | {} | CONTRIBUTOR |
vuejs | core | 1,318,523,513 | 7,165 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 72211d6954e2c1aba5c1a0dad12d9b6697ffed2a |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-11-17T11:52:32 | 2022-11-17T17:34:21 | {} | NONE |
vuejs | core | 1,319,190,535 | 7,156 | yuri-li | @sxzz 多谢,查看了你的github,找到了解决方案 [unplugin-vue-macros](https://github.com/sxzz/unplugin-vue-macros)
我还是坚持自己的想法,对于组件名称,或目录结构,vue现在的约定不好,要改进 | 2022-11-17T20:56:25 | 2022-11-17T20:56:25 | {} | NONE |
vuejs | core | 1,322,501,217 | 7,173 | Lilja | Sounds like editors and IDEs could potentially lose out on syntax highlighting features. For example, treesitter and its vue parser would need to know about this option. | 2022-11-21T18:48:09 | 2022-11-21T18:48:09 | {} | NONE |
vuejs | core | 1,252,431,093 | 4,294 | f3oall | Any progress on a real fix for this issue? | 2022-09-20T14:23:06 | 2022-11-16T00:53:44 | {
"eyes": 3
} | NONE |
vuejs | core | 1,318,220,041 | 7,160 | LinusBorg | Thanks for the reply, I think I misunderstood your report. Reopened to investigate. | 2022-11-17T07:46:40 | 2022-11-17T07:46:40 | {
"heart": 1
} | MEMBER |
vuejs | core | 1,318,509,856 | 7,156 | sxzz | ```vue
<script>
export default {
name: 'CustomName'
}
</script>
```
You can define the name manually as a temp solution. | 2022-11-17T11:40:09 | 2022-11-17T11:40:09 | {} | MEMBER |
vuejs | core | 1,320,474,481 | 1,129 | andreataglia | so how did it end? I'm having this problem... | 2022-11-18T20:08:17 | 2022-11-18T20:08:17 | {} | NONE |
vuejs | core | 1,319,945,543 | 7,169 | tolking | Replace the teleport content when handling during SSR. | 2022-11-18T12:41:28 | 2022-11-19T00:21:32 | {} | CONTRIBUTOR |
vuejs | core | 1,316,097,560 | 4,294 | sxzz | # Summary
https://github.com/vuejs/core/issues/4294#issuecomment-1204534444
> Just for the record, [Evan You said it would be addressed in Vue 3.3](https://youtu.be/3QPp_DlcZpM?t=888).
### Workaround
There are three available plugins currently. Hope they can help you.
- https://github.com/wheatjs/vite-plug... | 2022-11-16T00:45:40 | 2022-11-16T00:59:03 | {
"+1": 57,
"confused": 3,
"heart": 2,
"hooray": 1
} | MEMBER |
vuejs | core | 1,316,147,595 | 7,129 | FrontEndDog | 1.should be modelValue is not modalValue
2.For input element, we should use @input to handle the event.
3.For custom components we should use @update:modelValue to handle the event.
please see https://cn.vuejs.org/guide/components/events.html#usage-with-v-model | 2022-11-16T01:32:21 | 2022-11-16T01:41:02 | {} | NONE |
vuejs | core | 1,316,338,366 | 7,143 | zhangzhonghe | > 我没办法在 SFC Playground复现,即使我用的是相同的代码. 在我的业务中,图片数组本身是使用data.form.imgList,但始终无法显示图片,在刷新时会看到图片先闪一下,之后就不见了.network中的加载是成功了的. 之后我把变量换成data.imgList,就可以正常显示了
I think you should check if the ```data.form.imgList``` has been changed. | 2022-11-16T04:46:23 | 2022-11-16T04:46:23 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,317,060,043 | 7,150 | sxzz | I think the compiler should not add `() =>` into default code. | 2022-11-16T13:54:11 | 2022-11-16T13:54:11 | {} | MEMBER |
vuejs | core | 1,317,104,269 | 7,150 | liulinboyi | > `withDefaults` can indeed circumvent this problem, but it is confusing why `const { mapper = n => n + 2 }` will produce this weird behavior
It's not confusing behaviour, in @nkoehring lastest [demo](https://sfc.vuejs.org/#__DEV__eNp9UdtugzAM/RUrLwWtJVIfGWXaH+wD8lCghlKBE8VJ91D132cuu3STJkWRY58cHx/f1Ktz2TWiylXBje9dAM... | 2022-11-16T14:24:41 | 2022-11-16T14:24:41 | {} | MEMBER |
vuejs | core | 1,318,199,786 | 7,156 | LinusBorg | So this should be moved to the devtools repo? | 2022-11-17T07:24:21 | 2022-11-17T07:24:21 | {} | MEMBER |
vuejs | core | 1,317,058,714 | 7,150 | sxzz | It's a bug I think. The type of `func` is `() => number`. But in the runtime code, it's `() => (() => 1)`.
https://sfc.vuejs.org/#__DEV__eNp9j8FqwzAMhl/F6JRC47BrSDL2BnsAX9pUyVJi2Uh2dyh598lLGWOD3qzfP58+3eEtRnvLCC10MvISkxFMOZr1RHPvIImDwdEYSJK5OzJmyjSa3lQH0w/mxdGmwwWnhfCdQ5Tup/TaPkqU/RlZm0N12FFhRbuGuSo1jbpmXz0YR3CExcfA... | 2022-11-16T13:53:18 | 2022-11-16T13:53:47 | {} | MEMBER |
vuejs | core | 1,318,724,366 | 7,156 | edison1105 | Use the solution given by @sxzz. You can also refer to the naming of components inside the [style guide](https://v2.cn.vuejs.org/v2/style-guide/#%E5%8D%95%E6%96%87%E4%BB%B6%E7%BB%84%E4%BB%B6%E6%96%87%E4%BB%B6%E5%90%8D%E7%9A%84%E5%A4%A7%E5%B0%8F%E5%86%99%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90)
BTW, I personally never use ... | 2022-11-17T14:30:49 | 2022-11-17T14:30:49 | {} | MEMBER |
vuejs | core | 1,319,588,221 | 7,168 | liuseen-l | Because when reactive proxies, it will judge the incoming value, and the current incoming object type is [object EventTarget] ,not within the scope of reactive proxy | 2022-11-18T06:05:16 | 2022-11-18T06:05:16 | {} | CONTRIBUTOR |
vuejs | core | 1,322,497,226 | 7,186 | Lilja | @LinusBorg many thanks for the quick turnaround.
I find it pretty strange, this is the way I've used font awesome for years, including production usage. I guess I was lucky until now. | 2022-11-21T18:44:06 | 2022-11-21T18:44:06 | {} | NONE |
vuejs | core | 1,324,479,212 | 7,180 | edison1105 | @liulinboyi
There seems to be a problem with the SSR in the online playground, warning node mismatch. | 2022-11-23T02:46:45 | 2022-11-23T02:50:45 | {} | MEMBER |
vuejs | core | 1,318,521,114 | 7,165 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 72211d6954e2c1aba5c1a0dad12d9b6697ffed2a |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-11-17T11:50:26 | 2022-11-17T17:32:12 | {} | NONE |
vuejs | core | 1,319,426,591 | 7,168 | edison1105 | We only make plain objects to reactive and it seems no workaround.
```js
Object.prototype.toString.call(new SubClass()) // '[object EventTarget]' not '[object Object]'
```
| 2022-11-18T01:17:20 | 2022-11-18T01:17:20 | {} | MEMBER |
vuejs | core | 1,320,788,848 | 7,175 | zhangzhonghe |
<img width="499" alt="image" src="https://user-images.githubusercontent.com/38434641/202833336-31353628-b616-451e-aa8a-320df47c81eb.png">
I don't think this syntax is allowed in JavaScript. It is equivalent to the following code:
```HTML
<script>"foo": "bar"</script>
```
| 2022-11-19T04:06:29 | 2022-11-19T04:06:29 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,320,985,018 | 7,156 | yuri-li | https://github.com/antfu/unplugin-vue-components 也可以解决问题 | 2022-11-19T22:41:46 | 2022-11-19T22:41:46 | {} | NONE |
vuejs | core | 1,321,084,603 | 7,095 | zhangzhonghe | Seems like a compiler bug, both locations in the figure below should be compiled to ```row.name```.
<img width="1277" alt="屏幕截图 2022-11-20 174306" src="https://user-images.githubusercontent.com/38434641/202895598-4cd92b94-2ac4-4729-84a0-99c9cd5b293b.png">
See [here](https://sfc.vuejs.org/#__SSR__eNp9j91KBDEMhV8lR... | 2022-11-20T09:51:00 | 2022-11-21T03:39:13 | {} | MEMBER |
vuejs | core | 1,323,393,037 | 6,507 | edison1105 | duplicate of https://github.com/vuejs/core/issues/7095 | 2022-11-22T09:53:04 | 2022-11-22T09:53:04 | {} | MEMBER |
vuejs | core | 1,316,522,075 | 7,143 | aizela | > > 我没办法在 SFC Playground复现,即使我用的是相同的代码. 在我的业务中,图片数组本身是使用data.form.imgList,但始终无法显示图片,在刷新时会看到图片先闪一下,之后就不见了.network中的加载是成功了的. 之后我把变量换成data.imgList,就可以正常显示了
>
> I think you should check if the `data.form.imgList` has been changed.
it never changed. I'll try it again when I have time. In fact, I can't reproduce in anoth... | 2022-11-16T07:43:54 | 2022-11-16T07:43:54 | {} | NONE |
vuejs | core | 1,316,732,913 | 7,149 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | d86a6c5fe89ee3f79c1212460f4274fd6e612f0b |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-11-16T10:07:00 | 2022-11-16T12:22:51 | {} | NONE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.