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,476,487,145 | 7,920 | yangxiuxiu1115 | This issue is not caused by VUE and can also exist when not using a framework. | 2023-03-20T15:49:45 | 2023-03-20T15:49:45 | {} | CONTRIBUTOR |
vuejs | core | 1,477,242,359 | 7,920 | yangxiuxiu1115 | > > This issue is not caused by VUE and can also exist when not using a framework.
>
> Can you please give me an example? I thought this is because click on the div with v-if in this example causes click initiated from label because for some reason label doesn't count this div as a part of the button (just like if I... | 2023-03-21T03:48:51 | 2023-03-21T03:48:51 | {} | CONTRIBUTOR |
vuejs | core | 1,479,017,328 | 7,931 | blcyzycc | 谢谢,已经找到原因了解决了。由于子组件只包含一个单标签供ckeditor绑定,渲染后子组件标签同级有ckeditori创建的html标签。使用v-if销毁组件时,在子组件 beforeUnmount 钩子中调用了 ckeditor.destroy() 方法,冲突了。解决方法是为ckeditor绑定标签增加父标签,绑定的不能是组件顶层标签 | 2023-03-22T07:05:48 | 2023-03-22T07:05:48 | {} | NONE |
vuejs | core | 1,480,597,436 | 7,944 | haoqunjiang | Syntax highlighting issue + the SFC compiler should have a better error message. | 2023-03-23T04:48:53 | 2023-03-23T04:48:53 | {} | MEMBER |
vuejs | core | 1,475,190,812 | 5,625 | ghost | > @sqal
>
> > add `"skipLibCheck": true` to your tsconfig.json
>
> Does this fix anything or does it just hide the underlying issue?
It does. | 2023-03-19T10:15:40 | 2023-03-19T10:15:40 | {
"-1": 1
} | NONE |
vuejs | core | 1,477,755,824 | 7,678 | AlexVagrant | > @AlexVagrant did you see my suggestion above?
Hi guys I see that and I had response your suggestion, did you see that?
instance.vnode.type type is ConcreteComponent not VNodeTypes.
| 2023-03-21T12:29:27 | 2023-03-21T12:29:27 | {} | CONTRIBUTOR |
vuejs | core | 1,479,419,489 | 7,921 | jorancornelisse | Does also not work on Mac-OS+Chrome | 2023-03-22T11:54:06 | 2023-03-22T11:54:06 | {
"eyes": 2
} | NONE |
vuejs | core | 1,477,522,286 | 7,923 | Serpentarius13 | you can define them as an empty array by default and add emits as props like:
```
const props = defineProps(['emits'])
defineEmits(props.emits ?? [])
``` | 2023-03-21T09:35:16 | 2023-03-23T08:19:16 | {} | NONE |
vuejs | core | 1,474,115,100 | 7,908 | toomsie | I did simplify the code by removing line 12: `<p v-for="(x, i) in 10" :key="i" ref="pRefs">{{ x }}</p>`.
but still the same thing happens. 🙁 | 2023-03-17T16:45:08 | 2023-03-17T16:45:08 | {} | NONE |
vuejs | core | 1,474,876,305 | 7,910 | toomsie | I will tidy this up be as close to your original example. Truth is I barely know anything about vue.js | 2023-03-18T15:17:26 | 2023-03-18T15:17:26 | {} | NONE |
vuejs | core | 1,477,761,607 | 7,678 | lehni | @AlexVagrant you're right, i just tested it and I was wrong. Your latest version is perfect, thanks! @skirtles-code could you review this again? Would be great to get this merged soon! | 2023-03-21T12:34:06 | 2023-03-21T12:34:18 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,478,914,380 | 7,931 | edison1105 | 请给出一个最小化且可以复现的demo | 2023-03-22T04:51:10 | 2023-03-22T04:51:21 | {} | MEMBER |
vuejs | core | 1,474,020,593 | 7,908 | toomsie | Thanks very much, it took me a while to before I checked the chrome dev tools.
| 2023-03-17T15:32:56 | 2023-03-17T15:32:56 | {} | NONE |
vuejs | core | 1,474,347,120 | 6,745 | kudp02 | I fixed this error by removing a comment in a child component just above the `</template>` | 2023-03-17T19:58:38 | 2023-03-17T19:58:38 | {
"+1": 1,
"heart": 1
} | NONE |
vuejs | core | 1,476,988,331 | 1,342 | silverwind | I find it rather concerning that vue gives a meaning to DOM comments. Comments can cause various issues:
- Mechanisms like `MutationObserver` will see them, so will need to perform useless extra iterations.
- For SSR, perservation of HTML comments can not be guaranteed as minifying proxies like Cloudflare's will st... | 2023-03-20T21:57:23 | 2023-03-20T21:57:23 | {
"+1": 1
} | NONE |
vuejs | core | 1,477,578,254 | 7,915 | DellCliff | Maybe adjust the documentation at https://vuejs.org/api/component-instance.html#el to reflect that?
It states that `$el` is `Node | undefined`. | 2023-03-21T10:15:56 | 2023-03-21T10:15:56 | {} | NONE |
vuejs | core | 1,478,544,118 | 7,929 | skirtles-code | I'm not sure whether it's possible to fix this in Vue itself.
It isn't just a problem for `trim`. The same problem can occur with any `v-model` modifier that generates a canonical form for the value.
In [the docs](https://vuejs.org/guide/components/v-model.html#handling-v-model-modifiers), we have an example of a... | 2023-03-21T20:33:45 | 2023-03-21T20:33:45 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,478,978,974 | 6,160 | vue-bot |
📝 Ran ecosystem CI: [Open](https://github.com//vuejs/ecosystem-ci/actions/runs/4487013342)
| suite | result |
|-------|--------|
| [naive-ui](https://github.com/vuejs/ecosystem-ci/actions/runs/4487013342/jobs/7890031835) | :x: failure |
| [nuxt](https://github.com/vuejs/ecosystem-ci/actions/runs/4487013342/jobs/7890... | 2023-03-22T06:20:41 | 2023-03-22T06:26:54 | {} | CONTRIBUTOR |
vuejs | core | 1,479,571,875 | 7,939 | wenfangdu | @sxzz Does Svelte have the same issue?
> It will be executed multiple times when re-rendering
`console` in the template is meant for debugging purposes, I don't see a huge negative impact if it's triggered on every render.
If the template `console` use case is legit and frequent, I think it makes sense to allo... | 2023-03-22T13:30:37 | 2023-03-22T13:30:37 | {
"+1": 1
} | NONE |
vuejs | core | 1,480,836,973 | 7,141 | yyx990803 | Closing (stale, upgraded to TS 5 in 58e5c511) | 2023-03-23T09:12:13 | 2023-03-23T09:12:13 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,481,379,731 | 7,946 | LinusBorg | You opened the same issue a month ago #7661 | 2023-03-23T15:15:12 | 2023-03-23T15:15:12 | {} | MEMBER |
vuejs | core | 1,473,587,902 | 5,584 | adonis-lsh | Since so many people respond to this problem, it means that it is indeed a problem | 2023-03-17T10:06:25 | 2023-03-17T10:06:25 | {
"+1": 1,
"-1": 1
} | NONE |
vuejs | core | 1,474,171,644 | 7,908 | toomsie | Fix the problem. I believe that setup(){} function helped somewhat. The setup function is only executed only one in vue.js 3, if I am correct.
https://stackblitz.com/edit/vitejs-vite-nzzz5i?file=src%2Fviews%2FHelloWorld.vue | 2023-03-17T17:27:08 | 2023-03-17T18:01:47 | {} | NONE |
vuejs | core | 1,474,874,313 | 7,910 | grillonbleu | @toomsie Oh OK, you moved the runtime compilation to App.vue instead with a call to compileToFunction(). It’s not being called though, because render() isn’t. This is because you kept the template. If we remove the template, render() gets properly executed and I get this error: `_vue.compileToFunction is not a functio... | 2023-03-18T15:07:47 | 2023-03-18T15:14:07 | {} | NONE |
vuejs | core | 1,475,074,425 | 7,911 | longit123 | fixed by myself, props.formData uses reactive again, which leads to no warning or error in dev mode, but an error will occur after build | 2023-03-19T02:16:55 | 2023-03-19T02:16:55 | {} | NONE |
vuejs | core | 1,477,259,515 | 7,922 | sxzz | /ecosystem-ci run | 2023-03-21T04:15:41 | 2023-03-21T04:15:41 | {} | MEMBER |
vuejs | core | 1,475,042,189 | 7,911 | longit123 | @LinusBorg Even if there is a problem with the definition, dev and build should report the same error. Why is it normal in dev mode, but an error is reported after build? | 2023-03-19T00:13:36 | 2023-03-19T00:13:36 | {} | NONE |
vuejs | core | 1,475,188,862 | 7,115 | LinusBorg | It has been explained above. Two different copies of Vue being used in the same app. the app uses one copy, and the remote imported component uses another.
There are various ways how one can end up in this situation. in the above version, it was because of the lib using a CDN version of vue while the app did bundle ... | 2023-03-19T10:08:53 | 2023-03-19T10:09:03 | {} | MEMBER |
vuejs | core | 1,475,489,168 | 6,772 | haoqunjiang | Sorry, but I can't access the reproduction URL.
Would you please update it if the problem still exists? | 2023-03-20T01:41:00 | 2023-03-20T01:41:00 | {} | MEMBER |
vuejs | core | 1,475,753,798 | 7,456 | haoqunjiang | It is indeed a bug that violates the documented behavior, but in the opposite way than you might have expected:
> When a prop is declared to allow multiple types, e.g.
>
> ```js
> export default {
> props: {
> disabled: [Boolean, Number]
> }
> }
> ```
> The casting rules for Boolean will apply regardl... | 2023-03-20T07:39:56 | 2023-03-20T07:39:56 | {} | MEMBER |
vuejs | core | 1,477,733,637 | 7,915 | mmis1000 | Wondering if it is possible to left it as a blank interface and argument in `runtime-dom`.
Like what express.js does
https://stackoverflow.com/questions/37377731/extend-express-request-object-using-typescript
In this way, if you don't have `runtime-dom` installed. It is `{}`. Or if you have, it will suddenly b... | 2023-03-21T12:13:11 | 2023-03-21T12:13:11 | {} | CONTRIBUTOR |
vuejs | core | 1,477,259,678 | 7,922 | vue-bot |
📝 Ran ecosystem CI: [Open](https://github.com//vuejs/ecosystem-ci/actions/runs/4475486702)
| suite | result |
|-------|--------|
| [naive-ui](https://github.com/vuejs/ecosystem-ci/actions/runs/4475486702/jobs/7864955883) | :x: failure |
| [nuxt](https://github.com/vuejs/ecosystem-ci/actions/runs/4475486702/jobs/7864... | 2023-03-21T04:16:05 | 2023-03-21T15:28:44 | {} | CONTRIBUTOR |
vuejs | core | 1,473,738,451 | 7,661 | nestle49 | @yyx990803 still relevant | 2023-03-17T12:10:36 | 2023-03-17T12:10:36 | {} | NONE |
vuejs | core | 1,473,768,167 | 2,513 | nicholasfishjgm | Thanks @miainchambers, that would be much appreciated | 2023-03-17T12:37:42 | 2023-03-17T12:37:42 | {} | NONE |
vuejs | core | 1,476,747,166 | 4,344 | razorness | Take care what internal method from @vue/core you are using. In my case, I used the helper `renderSlot()` which not only bloated the bundle size of my lib by 50 kb but also caused this error. | 2023-03-20T18:37:38 | 2023-03-20T18:37:38 | {} | NONE |
vuejs | core | 1,478,343,951 | 7,782 | johnsoncodehk | This is defineCustomElement problem, here is minimal reproduction.
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgEwKYDNgDtUGECuAzjBCAKIA2qIqWMANChtnqZDnXAL5zpSlwA5ADd8qQQG4AUFIDGELMTi42ARgBqYuAF4mmHCvALaMABQIpcONWAxCALkSWrcWRWCyA1o9MBKHQB8cDBQYvTOXFJcvtJSaPp4RCTkVDR0poZgGmIxUkA
Instability is another... | 2023-03-21T17:52:06 | 2023-03-21T17:52:06 | {} | MEMBER |
vuejs | core | 1,478,770,158 | 6,736 | yinfoyuan | Can we get this merged soon? | 2023-03-22T00:45:05 | 2023-03-22T00:45:05 | {
"+1": 4
} | NONE |
vuejs | core | 1,480,599,667 | 7,944 | Justineo | You cannot have `</script>` in your script block event inside comments. This is how HTML works and I believe Vue templates are parsed the same way. | 2023-03-23T04:53:08 | 2023-03-23T04:53:08 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,263,142,088 | 6,784 | baiwusanyu-c | > @baiwusanyu-c effect中是访问的原始数据original上面的属性 这里应该不被触发响应式才对啊 这样不是造成了原始数据的污染吗
```
const shadowObserved = shallowReactive(original);
shadowObserved.b = observed;
```
这一句已经修改了原始数据了,原始数据上没有 b,你通过代理对象访问 b并设置了值,这里是一个set操作,代理对象会作用到原始对象上,相当于给原始对象创建了一个 b,值是 observed
 {selected:[],}
Tests.307cfab5.js:1 Uncaught ReferenceError: selected is not defined
at t.id.t.status.a.onUpdate:modelValue.s.<computed>.s.<computed> (Tests.307cfab5.js:1:8045)
at HTMLInputElement.<anonymous> (app.6c599ef3.js:31:66663)
| 2022-09-30T16:27:15 | 2022-09-30T16:28:45 | {} | NONE |
vuejs | core | 1,265,041,254 | 6,810 | antfu | That's a strange behavior of JS, TIL. 😅 | 2022-10-03T07:26:14 | 2022-10-03T07:26:14 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,265,666,273 | 6,697 | wangXiaoShow | Isn't this a bug? @LinusBorg | 2022-10-03T15:46:45 | 2022-10-03T15:46:45 | {} | NONE |
vuejs | core | 1,266,522,710 | 6,816 | antfu | We should always keep track of existing ones and add number suffixes to avoid conflicts. | 2022-10-04T07:29:39 | 2022-10-04T07:29:39 | {} | MEMBER |
vuejs | core | 1,270,152,303 | 6,827 | posva | You are right, I was a bit too fast on reading that `.bind()` | 2022-10-06T14:25:40 | 2022-10-06T14:25:40 | {} | MEMBER |
vuejs | core | 1,270,361,692 | 6,816 | sxzz | @posva Updated. It only escapes ASCII punctuation and symbols: <code> !"#$%&'()*+,./:;<=>?@[\\]^`{|}~</code> | 2022-10-06T16:22:51 | 2022-10-06T16:22:51 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,264,612,178 | 6,808 | zhangzhonghe | The behavior of the compile seems like it's not a bug.
I think it would be better to fix it here:
https://github.com/vuejs/core/blob/85af1398637ee91c6ebabb73bf42250320311e19/packages/runtime-dom/src/modules/style.ts#L40-L66 | 2022-10-02T10:52:48 | 2022-10-02T10:52:48 | {} | MEMBER |
vuejs | core | 1,265,070,010 | 6,808 | rudyxu1102 | > The behavior of the compile seems like it's not a bug.
>
> I think it would be better to fix it here:
>
> https://github.com/vuejs/core/blob/85af1398637ee91c6ebabb73bf42250320311e19/packages/runtime-dom/src/modules/style.ts#L40-L66
Thanks, it's a good point. But I still think the compiler should know this is... | 2022-10-03T07:56:27 | 2022-10-03T07:56:27 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,265,179,266 | 5,584 | GaoBlues2 | > Ok guys (and @mileusna in particular) we've just faced this issue when releasing in production. We had a component which used a "mixed mode". We had a `<script setup>` with all the imports and a legacy `<script>` section with the old-style component code using `data()`. In development it worked flawlessy but in produ... | 2022-10-03T09:33:18 | 2022-10-03T09:33:18 | {
"rocket": 1
} | NONE |
vuejs | core | 1,269,047,873 | 6,138 | DrJume | @yyx990803 sorry for tagging. This is my last attempt to try to get this fix merged.
If there is anything left to do, please tell me. 😔 | 2022-10-05T22:23:47 | 2022-10-05T22:23:47 | {} | CONTRIBUTOR |
vuejs | core | 1,271,416,087 | 5,033 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 1bff8c112555d4bfa51d4c4a5a774b8657d93e27 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-10-07T10:30:06 | 2022-10-07T10:30:06 | {} | NONE |
vuejs | core | 1,272,267,810 | 6,834 | 178me | make title object. This is my current plan. But still suspicious | 2022-10-08T08:40:18 | 2022-10-08T08:40:18 | {} | NONE |
vuejs | core | 1,272,283,332 | 6,835 | zhangzhonghe | > try this ?
>
> ```
> <KeepAlive>
> <Transition name="fade" mode="out-in">
> <Comp1 v-if="model === 1" />
> <Comp2 v-else />
> </Transition>
> </KeepAlive>
> ```
This will make keepAlive not work. | 2022-10-08T10:05:32 | 2022-10-08T10:05:32 | {} | MEMBER |
vuejs | core | 1,244,011,992 | 4,733 | domnantas | I think this at least deserves mention in the [migration guide](https://v3-migration.vuejs.org/breaking-changes/slots-unification.html). It is a breaking change without any documentation.
While @andrey-hohlov helper is nice, but I'd rather not handle this on the application level – it's not easy to understand and m... | 2022-09-12T16:46:21 | 2022-09-30T20:41:24 | {
"+1": 2,
"hooray": 1
} | NONE |
vuejs | core | 1,265,069,669 | 6,774 | sxzz | @antfu Done. | 2022-10-03T07:56:06 | 2022-10-03T07:56:06 | {} | MEMBER |
vuejs | core | 1,268,298,017 | 6,811 | moushicheng | let me make a supplement,in [Vue document](https://vuejs.org/guide/built-ins/suspense.html#async-components)
> When a revert happens, fallback content will not be immediately displayed. Instead, <Suspense> will display the previous #default content while waiting for the new content and its async dependencies to be res... | 2022-10-05T11:19:14 | 2022-10-05T11:25:11 | {} | CONTRIBUTOR |
vuejs | core | 1,271,714,467 | 6,832 | ijcnvv | > Have you checked the types of defineComponent() and other exposed types of vue? They should be enough
it ain't enough unfortunately.
In our case we use some function which lazy loads any component with some props or emits and in this way Eslint correctly shows wrong props end emits of used component.
Like t... | 2022-10-07T15:03:25 | 2022-10-07T15:41:38 | {} | NONE |
vuejs | core | 1,271,763,425 | 5,612 | dpschen | @cefn: Not sure, but maybe [volars vue-component-meta](https://github.com/johnsoncodehk/volar/tree/master/vue-language-tools/vue-component-meta) can help. | 2022-10-07T15:48:04 | 2022-10-07T15:48:04 | {} | NONE |
vuejs | core | 1,272,217,296 | 3,102 | colinj | > I was able to get volar to properly see props/slots, but it required manually defining the `Slots` and using a wrapper component.
>
> The `<NoGenerics>` component is implemented normally
>
Thank you @achaphiv. I used your approach to make my component handle generic properties and it worked perfectly with Vol... | 2022-10-08T03:55:55 | 2022-10-08T03:55:55 | {
"+1": 2
} | NONE |
vuejs | core | 1,264,430,368 | 6,728 | zhangzhonghe | Workaround:
```js
watch(
() => isActive.value,
(v) => {
if (v) {
loadData()
}
},
// use post
{ flush: 'post' }
)
``` | 2022-10-01T17:27:13 | 2022-10-01T17:27:13 | {} | MEMBER |
vuejs | core | 1,265,083,780 | 6,812 | Akryum | In iframes the hook object is different: https://github.com/vuejs/devtools/blob/8dd0ef228a6c6a3913082b0fc2f34bffb777f6fc/packages/app-backend-core/src/hook.ts#L78-L105 | 2022-10-03T08:08:42 | 2022-10-03T08:08:42 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,265,105,488 | 6,812 | Akryum | https://github.com/vuejs/devtools/commit/f2ad51eea789006ab66942e5a27c0f0986a257f9 | 2022-10-03T08:28:14 | 2022-10-03T08:28:14 | {} | MEMBER |
vuejs | core | 1,267,574,310 | 6,818 | posva | Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the [forum](http://forum.vuejs.org/), the [Discord server](https://chat.vuejs.org/) or [StackOverflow](http://stackoverflow.com/tags/vue.js).
---
You are trying to achieve data refreshing. You ca... | 2022-10-04T21:01:29 | 2022-10-04T21:01:29 | {} | MEMBER |
vuejs | core | 1,264,693,411 | 5,811 | productdevbook | Are there any related developments? | 2022-10-02T17:26:09 | 2022-10-02T17:33:30 | {} | CONTRIBUTOR |
vuejs | core | 1,265,154,676 | 6,781 | shengxinjing | English is a little hard for me. haha 😃 | 2022-10-03T09:12:05 | 2022-10-03T09:12:05 | {} | CONTRIBUTOR |
vuejs | core | 1,266,729,755 | 6,816 | sxzz | > Maybe we could keep replacing symbols to `_` but escape CJK chars for better readability.
@antfu IMHO, I don't think it's a good solution. Matching CJK is a complicated feature and it's unnecessary to have this in vue core. To avoid adding complexity, I guess just to escape all non-word characters is enough. Afte... | 2022-10-04T10:21:49 | 2022-10-04T10:21:49 | {} | MEMBER |
vuejs | core | 1,269,590,285 | 6,827 | godxiaoji | > Could you please add unit tests of the issue?
Case added. Thanks. | 2022-10-06T08:37:04 | 2022-10-06T08:37:04 | {} | CONTRIBUTOR |
vuejs | core | 1,270,001,903 | 6,811 | adamjedlicka | @posva Thanks, I looked into both, but unfortunately neither is sufficient for us.
First, about the data fetching in the Vue Router documentation. Data fetching in beforeRouteEnter or in the created method are kinda meh since Vue 3 with setup came. I need application context for the data fetching (is the user signed... | 2022-10-06T13:00:38 | 2022-10-06T13:00:38 | {} | CONTRIBUTOR |
vuejs | core | 1,270,064,091 | 6,816 | posva | can‘t we keep the unicode characters (in dev) as we do with variable names? After all, they [seem to be valid CSS variable names](https://w3c.github.io/csswg-drafts/css-variables-1/#defining-variables) | 2022-10-06T13:36:47 | 2022-10-06T13:36:47 | {} | MEMBER |
vuejs | core | 1,270,166,655 | 6,816 | posva | I think it's better to avoid adding any polyfill. If Unicode works and is specified in the spec, let's do that. It should also be the lightest solution | 2022-10-06T14:33:21 | 2022-10-06T14:33:21 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,257,672,869 | 4,745 | dmoKruso | https://github.com/vuejs/core/issues/4745#issuecomment-1254989020
Thank you, that was it!
instead of: `::v-deep.v-text-field .v-input__prepend-inner`
I used: `.v-text-field :deep(.v-input__prepend-inner)`
in a case more complicated,
instead of: `::v-deep.v-text-field--full-width.v-input--dense:not(.v-text-f... | 2022-09-26T08:23:09 | 2022-10-07T08:24:32 | {
"+1": 3
} | NONE |
vuejs | core | 1,271,697,517 | 5,579 | Gagydzer | @bonilka to workaround this problem you always can avoid using slot api, just pass render function that would return VNode and render this VNode in a component template
https://stackoverflow.com/questions/49352525/can-you-render-vnodes-in-a-vue-template | 2022-10-07T14:49:39 | 2022-10-07T14:49:39 | {} | NONE |
vuejs | core | 1,272,272,783 | 6,834 | jacekkarczmarczyk | https://vuejs.org/guide/essentials/reactivity-fundamentals.html#ref-unwrapping-in-templates | 2022-10-08T09:06:36 | 2022-10-08T09:06:36 | {} | CONTRIBUTOR |
vuejs | core | 1,263,136,688 | 6,784 | MissFlower | @baiwusanyu-c effect中是访问的原始数据original上面的属性 这里应该不被触发响应式才对啊 这样不是造成了原始数据的污染吗
| 2022-09-30T05:58:56 | 2022-09-30T05:58:56 | {} | NONE |
vuejs | core | 1,267,107,578 | 6,816 | sxzz | It can only match Chinese characters, but can't Japanese Kana, Korean Hangeul... There are lots of other language characters [around the world](https://en.wikipedia.org/wiki/List_of_writing_systems), e.g. Russian alphabet, and the Greek alphabet. How can vue handle all of them?
<img width="566" alt="image" src="https:... | 2022-10-04T14:36:57 | 2022-10-04T14:42:34 | {} | MEMBER |
vuejs | core | 1,269,085,366 | 6,138 | LinusBorg | We are just starting an effort to clean up and re-review PRs that are unmerged even though ready to go. We have accumulated quite a number of those so it may still take a bit.
Please be a bit more patient. Thanks | 2022-10-05T23:05:30 | 2022-10-05T23:05:30 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,271,892,652 | 6,833 | liulinboyi | Because it's `DYNAMIC_SLOTS`, the function `shouldUpdateComponent` will return `true`, the component will update and the lifecycle `onUpdated` will trigger.
https://github.com/vuejs/core/blob/2a9e9a40963a852238adc4c61b86d0c48e7131fa/packages/runtime-core/src/componentRenderUtils.ts#L345-L349
.
````
} else if (!existing.includes(refValue)) {
existing.push(refValue)
... | 2022-10-08T05:54:03 | 2022-10-08T05:54:03 | {} | MEMBER |
vuejs | core | 1,265,121,449 | 2,758 | antfu | Thanks for the PR. Close in favor of #3969 | 2022-10-03T08:42:56 | 2022-10-03T08:42:56 | {} | MEMBER |
vuejs | core | 1,265,853,217 | 6,803 | sxzz | It will only affect dev mode, and be hashed, like `var(--50d5a8e9)`, in production mode. | 2022-10-03T18:22:49 | 2022-10-03T18:55:31 | {} | MEMBER |
vuejs | core | 1,266,453,769 | 6,816 | antfu | Maybe we could keep replacing symbols to `_` but escape CJK chars for better readability. | 2022-10-04T06:26:03 | 2022-10-04T06:26:03 | {} | MEMBER |
vuejs | core | 1,270,103,769 | 6,816 | sxzz | I found an API [`CSS.escape`](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape), it can escape css var name perfectly. But it's browser-only API.
Can I add a polyfill dependency [css.escape](https://www.npmjs.com/package/css.escape) to `compiler-sfc`? | 2022-10-06T13:59:19 | 2022-10-06T13:59:19 | {} | MEMBER |
vuejs | core | 1,271,315,627 | 6,829 | LinusBorg | It may indeed be worth adding a note about this to make it clearer.
You could add an issue in the docs repo and coordinte with the docs team where to best put that. | 2022-10-07T08:57:48 | 2022-10-07T08:57:48 | {} | MEMBER |
vuejs | core | 1,272,264,468 | 6,835 | LittleSound | Thanks, the change does work!
But I don't know if this will cause other problems by not following the API documentation.
I'm just following the usage taught in the documentation:
[Api: KeepAlive](https://vuejs.org/api/built-in-components.html#keepalive)
<img width="760" alt="image" src="https://user-images.g... | 2022-10-08T08:26:32 | 2022-10-08T08:26:32 | {} | MEMBER |
vuejs | core | 1,272,279,424 | 6,834 | zhangzhonghe | @178me You can do this:
```vue
<script setup lang="ts">
import { computed, ref, reactive } from "vue"
import Test from "./Test.vue"
const titleType = ref(1)
const titles = [
{
title: computed<string>(() =>
titleType.value === 1 ? "标题1" : "其他标题"
)
}
]
</script>
<template>
<div>
... | 2022-10-08T09:43:48 | 2022-10-08T09:43:48 | {} | MEMBER |
vuejs | core | 1,263,147,806 | 6,784 | MissFlower |
> > @baiwusanyu-c effect中是访问的原始数据original上面的属性 这里应该不被触发响应式才对啊 这样不是造成了原始数据的污染吗
>
> ```
> const shadowObserved = shallowReactive(original);
> shadowObserved.b = observed;
> ```
>
> 这一句已经修改了原始数据了,原始数据上没有 b,你通过代理对象访问 b并设置了值,这里是一个set操作,代理对象会作用到原始对象上,相当于给原始对象创建了一个 b,值是 observed
>
> ![image](https://user-ima... | 2022-09-30T06:14:04 | 2022-09-30T06:14:04 | {} | NONE |
vuejs | core | 1,264,552,676 | 6,802 | rudyxu1102 | duplicate #5830 | 2022-10-02T05:03:22 | 2022-10-02T05:03:22 | {} | CONTRIBUTOR |
vuejs | core | 1,266,285,248 | 6,814 | jeffery9 | qweb is template language more like vue template, the link is https://github.com/odoo/owl/blob/master/doc/reference/templates.md | 2022-10-04T01:30:29 | 2022-10-04T01:32:06 | {} | NONE |
vuejs | core | 1,266,456,571 | 6,816 | sxzz | but it will cause conflict if there is the same length of symbols.
[Example](https://deploy-preview-6815--vue-sfc-playground.netlify.app/#__DEV__eNqlkEtOwzAQhq/izgqk2hYLEAoBiXt4kTSZNEaObdmThKjK3XEeiIouu5z5H5/HF/j0Xgw9QgY5YedNSfihLGN5rQdWmTLGdwWE36Rg3TPWojFutcjkSctcXiXTGGkyW4lYguyy5SpnXMjYwE/a1g+FUkXx+LZJjbPER9Tnlv4M... | 2022-10-04T06:28:50 | 2022-10-04T10:12:13 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,269,576,611 | 6,811 | adamjedlicka | @moushicheng @posva This wont do, because original issue arose from a vue-router use case. When I'm navigating between pages, I want the old page to be displayed, while new page is being loaded in the background thanks to Suspense. Unfortunately this is currently impossible in vue-router, because the old page keeps re... | 2022-10-06T08:28:03 | 2022-10-06T08:28:03 | {} | CONTRIBUTOR |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.