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

[bug-report] 项目启用自定义主题后,在使用了带有popup相关的组件会报错 #810

Open
emorywang opened this issue Sep 26, 2022 · 3 comments

Comments

@emorywang
Copy link

Mand Mobile Version

2.6.0

Vue Version

2.6.12

Model / OS & Browser Info

Chrome

Node Version, Package Management Tool

node 16.17.0/npm 8.15.0

Recurring Steps

项目启用了自定义主题(customize theme),在页面中使用picker、popup、Selector等组件时,进入该页面时控制台会报错,同时这些组件的title、确认按钮、取消按钮都不可见/不可用。

Expectant Behaviors

这些组件可以表现异常

Actual Behaviors

这些组件的title、确认按钮、取消按钮都不可见/不可用。


通过报错信息经过排查,这些组件因为都有import node_modules/mand-mobile/components/popup-title-bar/title-bar.vue文件,其中的第六行...{large: !!describe, 'large-radius': largeRadius}报错,删掉...可不报错,但不知道是否有其他未知异常

@emorywang
Copy link
Author

报错信息如下请参考:

[Vue warn]: Error in render: "TypeError: Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method."
found in
---> <MdPopupTitleBar> at node_modules/mand-mobile/components/popup-title-bar/index.vue
       <MdPopup> at node_modules/mand-mobile/components/popup/index.vue
         <MdPicker> at node_modules/mand-mobile/components/picker/index.vue
           <MdDatePicker> at node_modules/mand-mobile/components/date-picker/index.vue
             <Open> at src/view/perio/Open.vue
               <App> at src/App.vue
                 <Root>

@jzh12345
Copy link

同问

@verynong
Copy link
Contributor

verynong commented Feb 27, 2023

+1 但是我这边试是vue2.6.14以上才会出现这个问题

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

3 participants