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 • 895 B
Source Map (JSON)
{"version":3,"file":"getContentByRenderAndSlot.mjs","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","isFunction","isString"],"mappings":";;AAGgB,SAAAA,EAAAC,GAAAC,MAAAC,GAAA;AACd,SAAAC,EAAAH,CAAA,IACEA,EAAA,GAAAE,CAAA,IACFE,EAAAJ,CAAA,IACEA,EAAA,kBAAA,EAAA,SAAA,MAAA,KAAAC,EAAAD,CAAA,IACEC,EAAAD,CAAA,EAAA,GAAAE,CAAA,IACFF,IAEF;AACF;"}