el-select定义初始值并且可以修改

[](https://img2018.cnblogs.com/blog/1338470/201811/1338470-20181112152013318-1731627947.png

      
          
            
            
          
        
          
 options: [{
          value: 'PUBISH',
          label: '已发布'
        }, {
          value: 'DELETE',
          label: '下架'
        },{
          value: 'UN_PUBLISH'
          label: '未发布'
        }],
getStatus: '',
 this.getStatus=choosedStatus[0].label  //在js中去获取一初始值

转载于:https://www.cnblogs.com/antyhouse/p/9946728.html

你可能感兴趣的:(el-select定义初始值并且可以修改)