-
iview version update / Update rely
iview-project with official website provides direct use, but it is not the latest version of iView, if you use a lot of new component features, it needs to be updated dependence, similar to other dependencies.
In package.json modified version of iview
then enter the command line success npm update iview, execution enough. -
How to dynamically modify the prefix prefix icon (icon) selected according to the value of select
Event achieve dynamic binding value selectedIcon; another is selected by default is the first entry in the data portion of the set value on it.
method method:
selectChange(index) {
if(index === 'all'){
this.selectedIcon = "ios-keypad";
}else if(index ==='stu'){
this.selectedIcon = " iconfont icon-xuesheng";
}else{
this.selectedIcon = " iconfont icon-laoshi";
}
}
final effect:
2019/6/11 Update