Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
138 views

I have a simple component that just adds styling to a slot. Styling part is not complicated: it just adds padding/margin/border/background color based on passed props, that's it. Right now there's a ...
iamqwertyloal's user avatar
0 votes
1 answer
372 views

In vue3 I have this: <template> <ChildComponent> <div> <input type="text" v-model="myValue"/> </div> </ChildComponent> </...
pilifi's user avatar
  • 43
1 vote
1 answer
172 views

I attempted to refactor Vue SFC (Single File Component) code into Vue render (h), functions, but encountered an issue with using component template references in the children property of the render ...
eminoda's user avatar
2 votes
1 answer
89 views

this is the component BadCodeSelector, it emit an function confirm, when button clicked, the method confirm worked. <template> <div class="BadCodeSelector-buttons"> <el-...
user14937663's user avatar
2 votes
2 answers
1k views

Reproducer: https://stackblitz.com/edit/vue-tjt1qp?file=src/components/ParentComponent.js In the reproducer above, I expect the child to behave in the same way as the parent. I am trying to pass props ...
tom's user avatar
  • 396
0 votes
2 answers
13k views

I have a question about how to get the change of props retrieved from useSlots() this is a file declaring Parent component with Child component as Parent component's slot. Also I passed some props to ...
Nagisa Ando's user avatar
3 votes
2 answers
2k views

Is it possible to create a composable function that would use render function so it can display something? Example: import { h } from 'vue' export function useErrorHandling() { return { render()...
BT101's user avatar
  • 3,876
1 vote
1 answer
2k views

Hello every One I Have Some Problem That I beleive It Came From Vite Complier i use vue 3 & vite with vuetify 3 beta And i need to use render function with vuetify But every Time I try to import ...
Yazan Haffar's user avatar
0 votes
1 answer
841 views

I have a reactive variable list either ref or reactive in a vue.Js project and i create an app that depends on this list(reactive) let list = ref(['item']); let vNode = h( 'ul', list.value.map((v,...
mod7ex's user avatar
  • 958
0 votes
2 answers
851 views

it seems should be a simple solution but something went wrong... I need to conditionally remove contenteditable attribute from element: <!-- first state --> <div contenteditable="true&...
Kuzzy's user avatar
  • 670
2 votes
2 answers
2k views

I am working on extending a Vue.js frontend application. I am currently inspecting a render function within a functional component. After looking over the docs, I had the current understanding that ...
phnx's user avatar
  • 23
3 votes
1 answer
2k views

I try to render components dynamically based on descriptions. From {component: 'customComponent', props: {value: "val1"}, ...} I'd render <custom-component :value="val1" @input=...
Barney Szabolcs's user avatar
2 votes
3 answers
11k views

I have a simple hidden form <template> <form ref="form" method="POST" action="https://target.com/post" accept-charset="utf-8"> <input type=&...
Most Wanted's user avatar
  • 7,249
3 votes
3 answers
3k views

Both h and createVNode are exposed from vue. The doc seems to suggest they are the same: The h() function is a utility to create VNodes. It could perhaps more accurately be named createVNode(). But ...
Wenfang Du's user avatar
2 votes
1 answer
1k views

I have a problem with array items rerendering. I hope someone can help me with it. There is a code: https://codesandbox.io/s/vuex-store-forked-2qx1g?file=/src/App.vue We have component with array of ...
Denis Kotlyarchuk's user avatar
1 vote
1 answer
1k views

I have a Vue 2 component using the render function like so: export default { name: "u-skeleton", render(createElement) { return createElement("div", { attrs: { ...
Muhammad Rehan Saeed's user avatar
3 votes
1 answer
1k views

I'd like to do the following, but with Vue 2's render function <template> <imported-component> <template v-slot:default="{ importedFunction }"> <button @...
Mysterywood's user avatar
  • 1,698
11 votes
2 answers
22k views

I'm trying to render a template in Vue 3. The template contains a component, which is locally registered on the instance. import template from './template' import RenderlessPagination from "./...
Matanya's user avatar
  • 6,346
1 vote
1 answer
170 views

just trying out creating components with the render function, but I am getting a weird warning: Following component: import Vue, { CreateElement, VNode } from 'vue' export default Vue.extend({ ...
yooouuri's user avatar
  • 2,698
0 votes
2 answers
192 views

I am confused on how to hide and show 3 divs according to the click. I have been able to show and hide 2 divs with v-show but v-show does not apply I think for more than 2 divs. This is my code ...
suhkha's user avatar
  • 581
8 votes
3 answers
5k views

I just finished my project using only the Laravel framework. Now I want to add vue.js into my project to render the views without loading them. I went through some tutorials and found that I need to ...
anonymus's user avatar
  • 171
2 votes
0 answers
298 views

I have a library of icons (icon system) in svg. Each svg has his own component inside Vue in the same way as Sarah Drasner's icon system. I want to import an svg into a js library which allow only ...
katzu's user avatar
  • 180
0 votes
1 answer
798 views

I have a Vue CLI app that I want to connect to a server back-end. The server will return a view template with a data payload, and I want to inject that payload as JSON into the Vue app as a data ...
HartleySan's user avatar
  • 7,880
0 votes
0 answers
1k views

In the Vue documentation at https://v2.vuejs.org/v2/guide/render-function.html#The-Data-Object-In-Depth there is an explanation for “on” and “nativeOn”: // Event handlers are nested under `on`, though ...
Bryan Miller's user avatar
  • 3,323