1. 程式人生 > 實用技巧 >vue 表格使用el-select

vue 表格使用el-select

<el-table-column label="示例" width="210" align="center"> <template slot-scope="scope"> <el-option v-for="item in Options" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </template> </el-table-column>



後端響應資料:

[{

"env_value": 'pre',

}

"Options": [{"value": 'test', "label": "測試"}, {"value": 'pre', "label": "預釋出"}],

],

        '