Questions tagged [vue-render-function]

42 questions
10
votes
0 answers

How to remove window.__NUXT__ without any issue from Vuex in Nuxt

I'm on Nuxt 2.13 and I'm having an issue with window.__Nuxt__(function(a,b,c,d,.....)). I don't know if it will affect my SEO or not, but it's on my nerve and shows all my language file. here is the situation : there is a lang.json file in my app. i…
Mojtaba Barari
  • 1,127
  • 1
  • 15
  • 49
8
votes
2 answers

Vue 3: resolveComponent can only be used in render() or setup()

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 "./RenderlessPagination"; import {h, resolveComponent} from…
Matanya
  • 6,233
  • 9
  • 47
  • 80
7
votes
2 answers

how to expose component methods in render function in vue3 with ts

I want to call the child component methods in parent file and the child component is created by render function. below is my code child.ts export default { setup(props) { //... const getCropper = () => { return cropper } …
7
votes
3 answers

How to enhance an existing Laravel project with VueJS?

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 convert my blade files into Vue components to…
3
votes
2 answers

Vue3 composable with render

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() { return h('div', { class: 'bar',…
BT101
  • 3,666
  • 10
  • 41
  • 90
3
votes
2 answers

Vue 3: wrap all items within a slot with a custom component by using a render function

I am trying to build my own sortable component. I want to pass a list of items to it's default slot. The sortable component should then wrap all passed items with a custom v-draggable component.
Eric Xyz
  • 452
  • 1
  • 5
  • 14
3
votes
1 answer

How to pass dynamic props to vue's render function?

I try to render components dynamically based on descriptions. From {component: 'customComponent', props: {value: "val1"}, ...} I'd render ` I aim to do this for arbitrary events and dynamic…
Barney Szabolcs
  • 11,846
  • 12
  • 66
  • 91
3
votes
1 answer

How to use slot in Vue 2 render function?

I'd like to do the following, but with Vue 2's render function