UNPKG

@nextcloud/vue

Version:
1 lines 1.79 kB
{"version":3,"file":"NcVNodes.mjs","sources":["../../src/components/NcVNodes/NcVNodes.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2023 Raimund Schlüßler <raimund.schluessler@mailbox.org>\n -\n - @author Raimund Schlüßler <raimund.schluessler@mailbox.org>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<script>\nexport default {\n\tname: 'NcVNodes',\n\tprops: {\n\t\t/**\n\t\t * The vnodes to render\n\t\t */\n\t\tvnodes: {\n\t\t\ttype: [Array, Object],\n\t\t\tdefault: null,\n\t\t},\n\t},\n\t/**\n\t * The render function to display the component\n\t *\n\t * @param {Function} h The function to create VNodes\n\t * @return {object} The created VNode\n\t */\n\trender(h) {\n\t\treturn this.vnodes || this.$slots?.default || this.$scopedSlots?.default?.()\n\t},\n}\n</script>\n"],"names":["_sfc_main","h","_a","_c","_b"],"mappings":";AAuBA,MAAAA,IAAA,EACA,MAAA,YACA,OAAA,EAIA,QAAA,EACA,MAAA,CAAA,OAAA,MAAA,GACA,SAAA,KACA,EACA,GAOA,OAAAC,GAAA;;AACA,SAAA,KAAA,YAAAC,IAAA,KAAA,WAAA,gBAAAA,EAAA,cAAAC,KAAAC,IAAA,KAAA,iBAAA,gBAAAA,EAAA,YAAA,gBAAAD,EAAA,KAAAC;AACA,EACA;;;"}