Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3 default slot warning when using render function #890

Open
jarofbilly opened this issue Sep 17, 2024 · 0 comments
Open

Vue3 default slot warning when using render function #890

jarofbilly opened this issue Sep 17, 2024 · 0 comments
Labels
🔖4.x v4.x~ related issue 📦Vue3 @egjs/vue3-flicking related issue

Comments

@jarofbilly
Copy link

jarofbilly commented Sep 17, 2024

Description

When using the render function instead of template, this error shows:
image

Steps to check or reproduce

<style>
  .panel {
    background: orange;
    padding: 10px;
  }
</style>

<script lang="ts">
import { defineComponent, h } from 'vue';
import Flicking from '@egjs/vue3-flicking';
import '@egjs/vue3-flicking/dist/flicking.css';

export default defineComponent({
  name: 'IndexPage',

  components: {
    Flicking
  },

  setup() {
    return () => h('q-page', { class: 'row items-center justify-evenly' }, [
      h('div', 'This is a big test'),
      h(Flicking, { options: { align: 'prev', circular: true } }, {
        default: () => [
          h('div', { class: 'panel' }, '2'),
          h('div', { class: 'panel' }, '2'),
          h('div', { class: 'panel' }, '3')
        ]
      })
    ]);
  }
});
</script>
@ave10987 ave10987 added 📦Vue3 @egjs/vue3-flicking related issue 🔖4.x v4.x~ related issue labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖4.x v4.x~ related issue 📦Vue3 @egjs/vue3-flicking related issue
Projects
None yet
Development

No branches or pull requests

2 participants