1. 程式人生 > >官網例子,mt-field password獲取不到

官網例子,mt-field password獲取不到

新嘗試了Mint-UI,在使用表單元件Field時,

直接從demo中拷貝瞭如下程式碼:    

<mt-field label="username" placeholder="Input username" v-model="username"></mt-field>
<mt-field label="email" placeholder="Input email" type="email" v-model="email"></mt-field>
<mt-field label="password" placeholder="Input password"
type="password" v-modal="password"></mt-field> <mt-field label="phone" placeholder="Input tel" type="tel" v-model="phone"></mt-field>
輸入資訊後,發現password的值獲取不到。
後來在issue中查詢password 發現了問題所在,demo中打錯字了:<mt-field label="password" placeholder="Input password" type="password" v-modal
="password"></mt-field>
將v-modal 改為v-model就好