SongLazy / sl-filter

uni -app 一款使用简单的筛选组件,适配app、微信小程序、H5。
66 stars 28 forks source link

不能动态修改menuList值 #2

Open sunyt opened 5 years ago

sunyt commented 5 years ago

image

不能动态修改menuList值

image

mxdios commented 5 years ago

同样遇到该问题,请问解决了吗

raomingchao commented 5 years ago

确实不能动态修改menuList值,望解决!

taimugersai commented 5 years ago

同样的问题,改子选择项成果了,直接splice数组就行,但是改数据源的title无效,调用resetMenuList方法报错

tangniyuqi commented 4 years ago

有同样的需求 有解决的吗

vipsunwei commented 4 years ago

23:42:39.101 [ERROR] : [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: "menuList" 23:42:39.102 found in 23:42:39.102 ---> components/sl-filter/sl-filter 23:42:39.102 pages/enterprise-announcement-read/enterprise-announcement-read __ERROR