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

dialog的mask-closable为true时会报错避免直接改props #471

Closed
weekitmo opened this issue Jun 13, 2019 · 0 comments
Closed

dialog的mask-closable为true时会报错避免直接改props #471

weekitmo opened this issue Jun 13, 2019 · 0 comments
Labels
bug Something isn't working @Components Components related

Comments

@weekitmo
Copy link

weekitmo commented Jun 13, 2019

使用dialog时设置mask-closable为true时会报错避免直接改props,查看源码知道内部dialog.vue使用popup时直接绑定value给v-model

Mand Mobile Version

"mand-mobile": "^2.2.4"

OS Version & Browser Version

macos 10.14.1

Node Version, Package Management Tool

node 11.11.0 npm 6.9.0

Recurring Links

none

Recurring Steps

<md-dialog
      v-model="diaglogVisible"
      :closable="false"
      :mask-closable="true"
      >
 ...
</md-dialog>

Expectant Behaviors

用computed的get和set依赖一下value再绑定到这里

<md-popup
      v-model="value"
...

Actual Behaviors

控制报错:Avoid mutating a prop directly

@xxyan0205 xxyan0205 added @Components Components related bug Something isn't working labels Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @Components Components related
Projects
None yet
Development

No branches or pull requests

2 participants