标签: javascript typescript vuetify.js
我已经在vuetify源代码中找到了这段代码,但根据我对js的了解,这没有任何意义
this.$scopedSlots['page-text']!({ pageStart, pageStop, itemsLength })
做什么!在这里吗? 如果scopedSlot已填满,this。$ scopedSlots ['page-text']应该是一个字符串,但是!干嘛?
文件:https://github.com/vuetifyjs/vuetify/blob/8b7a25b3a838d038a64ff6923d34d68d797927ff/packages/vuetify/src/components/VDataIterator/VDataFooter.ts