Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/im/v2/component/textarea/src/components/panel/ |
Upload File : |
import { TextareaPanelType as PanelType } from 'im.v2.const'; import { EditPanel } from './components/edit-panel'; import { ReplyPanel } from './components/reply-panel'; import { ForwardPanel } from './components/forward-panel'; import { ForwardEntityPanel } from './components/forward-entity-panel'; import { MarketAppsPanel } from './components/market-apps-panel/market-apps-panel'; import type { PanelContext } from 'im.v2.provider.service.sending'; // @vue/component export const TextareaPanel = { name: 'TextareaPanel', components: { EditPanel, ReplyPanel, ForwardPanel, ForwardEntityPanel, MarketAppsPanel }, props: { dialogId: { type: String, required: true, }, type: { type: String, required: true, }, context: { type: Object, required: true, }, }, emits: ['close'], computed: { PanelType: () => PanelType, configContext(): PanelContext { return this.context; }, }, template: ` <EditPanel v-if="type === PanelType.edit" :messageId="configContext.messageId" @close="$emit('close')" /> <ReplyPanel v-if="type === PanelType.reply" :messageId="configContext.messageId" @close="$emit('close')" /> <ForwardPanel v-if="type === PanelType.forward" :context="configContext" @close="$emit('close')" /> <ForwardEntityPanel v-if="type === PanelType.forwardEntity" :context="configContext" @close="$emit('close')" /> <MarketAppsPanel v-if="type === PanelType.market" :dialogId="dialogId" /> `, };