@c0779f0d3d8e getCurrentInstance 是一個(gè)用來獲取當(dāng)前組件實(shí)例的函數(shù)。是vue3 內(nèi)置的直接使用就行 import { getCurrentInstance } from 'vue'; const { proxy } = getCurrentInstance();
Vue3 使用element-plus多選日期并通過按鈕點(diǎn)擊實(shí)現(xiàn),并在下方顯示具體日期封裝日期組件(simulateDate.vue) 組件script 組件樣式 父組件