ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
1 lines • 884 B
Source Map (JSON)
{"version":3,"file":"getContentByRenderAndSlot.cjs","sources":["../../../packages/shared/getContentByRenderAndSlot.ts"],"sourcesContent":["import { isFunction, isString } from '@ideaz/utils'\nimport type { VNode } from 'vue'\n\nexport function getContentByRenderAndSlot(content: string | ((...args: any) => VNode) | undefined, slots: any, ...args: any) {\n if (isFunction(content))\n return content(...args)\n if (isString(content)) {\n if (content.toLocaleLowerCase().includes('slot') && slots[content])\n return slots[content](...args)\n return content\n }\n return null\n}\n"],"names":["getContentByRenderAndSlot","content","slots","args","is"],"mappings":"iJAGgB,SAAAA,EAAAC,EAAAC,KAAAC,EAAA,CACd,OAAAC,EAAA,WAAAH,CAAA,EACEA,EAAA,GAAAE,CAAA,EACFC,EAAA,SAAAH,CAAA,EACEA,EAAA,kBAAA,EAAA,SAAA,MAAA,GAAAC,EAAAD,CAAA,EACEC,EAAAD,CAAA,EAAA,GAAAE,CAAA,EACFF,EAEF,IACF"}