可以使用 object.keys()
import * as filters from "./filters"; // global filters Object.keys(filters).forEach((key) => { Vue.filter(key, filters[key]); // eslint-disable-line no-undef });
<el-select :value="detailRow.prpLpayeeDetailVoNew.prpLpayeeInfo.id.toString()" :disabled="disabledAll"> <el-option v-for="key in Object.keys(row.payeeInfoMap)" :key="key" :label="row.payeeInfoMap[key]" :value="key" :disabled="disabledAll" /> </el-select>
注意用 :value 替换v-model。
标签:翻译,vue,filters,keys,key,select From: https://www.cnblogs.com/jervy/p/17787604.html