{"version":3,"file":"components.js","sources":["../../../../packages/ui/src/useApp.ts","../../../../packages/ui/src/page/src/index.vue","../../../../packages/ui/src/useCommonMethod.ts","../../../../packages/ui/src/Component.vue","../../../../packages/ui/src/container/src/Container.vue","../../../../packages/ui/src/button/src/index.vue","../../../../packages/ui/src/text/src/index.vue","../../src/comp-entry.ts"],"sourcesContent":["/*\n * Tencent is pleased to support the open source community by making TMagicEditor available.\n *\n * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getCurrentInstance, inject, onMounted, onUnmounted } from 'vue';\n\nimport Core from '@tmagic/core';\n\nexport default (props: any) => {\n const app: Core | undefined = inject('app');\n const node = app?.page?.getNode(props.config.id);\n\n const vm = getCurrentInstance()?.proxy;\n\n node?.emit('created', vm);\n\n onMounted(() => {\n node?.emit('mounted', vm);\n });\n\n onUnmounted(() => {\n node?.emit('destroy', vm);\n });\n\n return app;\n};\n","\n \n \n \n\n\n\n","/*\n * Tencent is pleased to support the open source community by making TMagicEditor available.\n *\n * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport default (props: any) => ({\n show: () => {\n props.config.style.display = 'initial';\n },\n hide: () => {\n props.config.style.display = 'none';\n },\n});\n","\n \n\n\n\n","\n
\n \n \n
\n\n\n\n","\n \n\n\n","\n","import page from '/parisma/github/tmagic-editor/packages/ui/src/page/src/index.vue';\nimport container from '/parisma/github/tmagic-editor/packages/ui/src/container/src/Container.vue';\nimport button from '/parisma/github/tmagic-editor/packages/ui/src/button/src/index.vue';\nimport text from '/parisma/github/tmagic-editor/packages/ui/src/text/src/index.vue';\n\nconst components: Record = {\n 'page': page,\n 'container': container,\n 'button': button,\n 'text': text,\n};\n\nconst plugins = {};\n\nconst entry = {\n components,\n plugins,\n};\n\nwindow.magicPresetComponents = entry;\nexport default entry;"],"names":["_sfc_main","text"],"mappings":";;;;;;;;;;;;;;;;;AAsBA,IAAA,SAAA,CAAA,UAAA;;AACE,QAAA,MAA8B;AAC9B,QAAA,OAAA,iCAAA,SAAA,mBAAA,QAAA,MAAA,OAAA;AAEA,QAAA,KAAW,mCAAA;AAEX,+BAAA,KAAA,WAAA;AAEA,MAAA,UAAA,MAAA;AACE,iCAAA,KAAA,WAAA;AAAA,EAAwB,CAAA;AAG1B,MAAA,YAAA,MAAA;AACE,iCAAA,KAAA,WAAA;AAAA,EAAwB,CAAA;AAG1B,SAAA;AACF;AC1BA,MAAAA,cAAkB,IAAa,gBAAA;AAAA,EAAA,MAAA;AAAA,EACvB,OAAA;AAAA,IACC,QAAA;AAAA,MACG,MAAA;AAAA,MACA,SAAA,MAAA,EAAA;AAAA,IACW;AAAA,EACnB;AAAA,EACF,MAAA,OAAA;AAGE,QAAA,MAAA,QAAA;AACE,aAAA,KAAA;AAAA,IAAY;AAAA,EACd;AAEJ,CAAA;;;AA1B2B,SAAA,IAAA,UAAA,GAAgB,IAAA,YAAA,+BAAA;AAAA,IAAA,OAAA;AAAA,IAAQ,QAAA,KAAA;AAAA;aAC/C,IAAa,QAAA,MAAA;AAAA,MAAA,IAAA,WAAA,KAAA,QAAA,SAAA;AAAA;;;;;ACgBjB,IAAe,kBAAA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