UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 660 B
{"version":3,"file":"validator.mjs","names":[],"sources":["../../../../../packages/utils/vue/validator.ts"],"sourcesContent":["import { componentSizes, datePickTypes } from '@element-plus/constants'\n\nimport type { ComponentSize, DatePickType } from '@element-plus/constants'\n\nexport const isValidComponentSize = (val: string): val is ComponentSize | '' =>\n ['', ...componentSizes].includes(val)\n\nexport const isValidDatePickType = (val: string): val is DatePickType =>\n ([...datePickTypes] as string[]).includes(val)\n"],"mappings":";;;;AAIA,MAAa,wBAAwB,QACnC,CAAC,IAAI,GAAG,eAAe,CAAC,SAAS,IAAI;AAEvC,MAAa,uBAAuB,QACjC,CAAC,GAAG,cAAc,CAAc,SAAS,IAAI"}