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下用setup语法糖引用mpvue-calendar,会报错,普通方法引入则正常 #142

Open
smarterlei opened this issue Apr 12, 2023 · 0 comments

Comments

@smarterlei
Copy link

smarterlei commented Apr 12, 2023

vue3代码如下----------------------


<Calendar
ref="Calendar"
class="width100"
style="height: 590px;"
backgroundText
language="cn"
class-name="select-mode"
@next="next"
@Prev="prev"
:remarks="remarks"
/>

<script setup> import Calendar from 'mpvue-calendar' const activeName = ref("one") const remarks = ref({'2023-4-13': 'some tings'}) const next=function(){} const prev=function(){} </script> 报错输入如下------------------------------------------------ vue-router.mjs:3434 TypeError: 'set' on proxy: trap returned falsish for property 'Calendar' at Array.doSet (runtime-core.esm-bundler.js:4577:36) at flushPostFlushCbs (runtime-core.esm-bundler.js:343:32) at flushJobs (runtime-core.esm-bundler.js:397:9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant