进行传参 <i :class="arrowSortDown('time')" ></i> arrowSortDown () { let that = this return function (typeName) { return that[typeName + 'SortDown'] ? 'el-icon-arrow-down' : 'el-icon-arrow-up' } }