Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

[Vue warn] with Alert component #522

Open
TatChu opened this issue Nov 28, 2017 · 1 comment
Open

[Vue warn] with Alert component #522

TatChu opened this issue Nov 28, 2017 · 1 comment

Comments

@TatChu
Copy link

TatChu commented Nov 28, 2017

[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "show" found in
My code above:

  • template:
    <alert :show.sync="alert.show" placement="top-right" :duration="3000" :type="alert.type" width="100%" dismissable> <span class="icon-ok-circled alert-icon-float-left"></span> <p>{{alert.message}}</p> </alert>
@orhanveli
Copy link

is there an any enhancement about this?

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

No branches or pull requests

2 participants