vant slot插槽


<van-col span="12">
                        <van-field label="載重量:" placeholder="保留2位小數" name="dweight" :value="dweight"
                                   v-on:touchend.native.stop="weightkeyPos"></van-field>
                    </van-col>

<van-number-keyboard
                        v-model="weight"
                        :show="weightshow"
                        title="輸入載重量"
                        extra-key="."
                        close-button-text="完成"
                        v-on:blur="weightval"
                        v-on:delete="jponDelete"
                >
                    <template v-slot:title-left>
                        <div v-on:click="cancelNum" class="paddlr16 maincol1">取消</div>
                    </template>
                </van-number-keyboard>

完成按鈕可以檢查輸入驗證,取消按鈕只是收起鍵盤


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM