wenzhixin / multiple-select

A jQuery plugin to select multiple elements with checkboxes :)
http://multiple-select.wenzhixin.net.cn
MIT License
1.91k stars 651 forks source link

Vue3 component error #636

Open WEBSPEED opened 3 months ago

WEBSPEED commented 3 months ago

https://multiple-select.wenzhixin.net.cn/docs/en/webpack

app.js

import 'multiple-select/dist/multiple-select.min.css'
import 'multiple-select/dist/multiple-select.js'

import MultipleSelect from 'multiple-select/dist/multiple-select-vue.js'
or
import MultipleSelect from 'multiple-select/dist/multiple-select-vue-es.js'

app..component('MultipleSelect', MultipleSelect)

page.vue

<script setup>
import { reactive } from 'vue'
const form = reactive({
 formScreenOut: ""
})
</script>

<template>
    <MultipleSelect
      v-model="form.formScreenOut"
      width="200"
    >
    <option value="3">3</option>
    <option value="5">5</option>
    <option value="10">10</option>
    </MultipleSelect>
</template>

error

chunk-D5GHRSDL.js?v=d6fc17e5:255 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_c') at Proxy.__vue_render__ (chunk-D5GHRSDL.js?v=d6fc17e5:255:28) at renderComponentRoot (chunk-KZPH43E5.js?v=d6fc17e5:7779:17) at ReactiveEffect.componentUpdateFn [as fn] (chunk-KZPH43E5.js?v=d6fc17e5:6459:46) at ReactiveEffect.run (chunk-KZPH43E5.js?v=d6fc17e5:435:19) at instance.update (chunk-KZPH43E5.js?v=d6fc17e5:6590:17) at setupRenderEffect (chunk-KZPH43E5.js?v=d6fc17e5:6600:5) at mountComponent (chunk-KZPH43E5.js?v=d6fc17e5:6368:7) at processComponent (chunk-KZPH43E5.js?v=d6fc17e5:6322:9) at patch (chunk-KZPH43E5.js?v=d6fc17e5:5838:11) at mountChildren (chunk-KZPH43E5.js?v=d6fc17e5:6070:7)