vue-element-plus-admin
vue-element-plus-admin copied to clipboard
怎么在search组件中的下拉框里面加个全选,实现筛选全选等功能
import { Search } from "@/components/Search"; const searchData: FormSchema[] = [ { field: "advertiserId", label: t("ad.advertiserName"), value: thisForm.advertiserId, component: "Select", componentProps: { multiple:true, collapseTags:true, filterable: true, options: advertiserNameOptions, onChange: (e) => { if (e.length == 0) { thisForm.advertiserId = 'all' } else { thisForm.advertiserId = e.toString() } }, } }, ] search组件应该怎么设置插槽等