鍍金池/ 問答/HTML/ iview not-found-text這種橫線連接的屬性怎么rende

iview not-found-text這種橫線連接的屬性怎么render?

return h('i-select',{

props: {
    value: "xxx",
    size: 'small',
    not-found-text: '暫無'
}

}, selectDom);

not-found-text: '暫無',這一行IDE直接報錯

回答
編輯回答
終相守

沒用過iview

猜測一般情況下都是

'not-found-text': '暫無'
// or 駝峰
notFoundText: '暫無'

說錯了直接折疊了吧

2018年5月26日 15:45