93 lines
4.0 KiB
Java
93 lines
4.0 KiB
Java
|
import VText from '@/custom-component/v-text/Component.vue'
|
||
|
import VQuery from '@/custom-component/v-query/Component.vue'
|
||
|
import VTextAttr from '@/custom-component/v-text/Attr.vue'
|
||
|
import Group from '@/custom-component/group/Component.vue'
|
||
|
import GroupAttr from '@/custom-component/group/Attr.vue'
|
||
|
import UserView from '@/custom-component/user-view/Component.vue'
|
||
|
import UserViewAttr from '@/custom-component/user-view/Attr.vue'
|
||
|
import Picture from '@/custom-component/picture/Component.vue'
|
||
|
import PictureAttr from '@/custom-component/picture/Attr.vue'
|
||
|
import CanvasBoard from '@/custom-component/canvas-board/Component.vue'
|
||
|
import CanvasBoardAttr from '@/custom-component/canvas-board/Attr.vue'
|
||
|
import CanvasIcon from '@/custom-component/canvas-icon/Component.vue'
|
||
|
import CanvasIconAttr from '@/custom-component/canvas-icon/Attr.vue'
|
||
|
import DeTabs from '@/custom-component/de-tabs/Component.vue'
|
||
|
import DeTabsAttr from '@/custom-component/de-tabs/Attr.vue'
|
||
|
import DeGraphical from '@/custom-component/de-graphical/Component.vue'
|
||
|
import DeGraphicalAttr from '@/custom-component/de-graphical/Attr.vue'
|
||
|
import CircleShape from '@/custom-component/circle-shape/Component.vue'
|
||
|
import CircleShapeAttr from '@/custom-component/circle-shape/Attr.vue'
|
||
|
import RectShape from '@/custom-component/rect-shape/Component.vue'
|
||
|
import RectShapeAttr from '@/custom-component/rect-shape/Attr.vue'
|
||
|
import SvgTriangle from '@/custom-component/svgs/svg-triangle/Component.vue'
|
||
|
import SvgTriangleAttr from '@/custom-component/svgs/svg-triangle/Attr.vue'
|
||
|
import DeTimeClock from '@/custom-component/de-time-clock/Component.vue'
|
||
|
import DeTimeClockAttr from '@/custom-component/de-time-clock/Attr.vue'
|
||
|
import GroupArea from '@/custom-component/group-area/Component.vue'
|
||
|
import GroupAreaAttr from '@/custom-component/group-area/Attr.vue'
|
||
|
import DeFrame from '@/custom-component/de-frame/ComponentFrame.vue'
|
||
|
import DeFrameAttr from '@/custom-component/de-frame/Attr.vue'
|
||
|
import DeVideo from '@/custom-component/de-video/Component.vue'
|
||
|
import DeVideoAttr from '@/custom-component/de-video/Attr.vue'
|
||
|
import DeStreamMedia from '@/custom-component/de-stream-media/Component.vue'
|
||
|
import DeStreamMediaAttr from '@/custom-component/de-stream-media/Attr.vue'
|
||
|
import ScrollText from '@/custom-component/scroll-text/Component.vue'
|
||
|
import ScrollTextAttr from '@/custom-component/scroll-text/Attr.vue'
|
||
|
import PopArea from '@/custom-component/pop-area/Component.vue'
|
||
|
import PopAreaAttr from '@/custom-component/pop-area/Attr.vue'
|
||
|
import PictureGroup from '@/custom-component/picture-group/Component.vue'
|
||
|
import PictureGroupAttr from '@/custom-component/picture-group/Attr.vue'
|
||
|
export const componentsMap = {
|
||
|
VText: VText,
|
||
|
VQuery,
|
||
|
VTextAttr: VTextAttr,
|
||
|
Group: Group,
|
||
|
GroupAttr: GroupAttr,
|
||
|
UserView: UserView,
|
||
|
UserViewAttr: UserViewAttr,
|
||
|
Picture: Picture,
|
||
|
PictureAttr: PictureAttr,
|
||
|
CanvasBoard: CanvasBoard,
|
||
|
CanvasBoardAttr: CanvasBoardAttr,
|
||
|
CanvasIcon: CanvasIcon,
|
||
|
CanvasIconAttr: CanvasIconAttr,
|
||
|
DeTabs: DeTabs,
|
||
|
DeTabsAttr: DeTabsAttr,
|
||
|
DeGraphical: DeGraphical,
|
||
|
DeGraphicalAttr: DeGraphicalAttr,
|
||
|
CircleShape: CircleShape,
|
||
|
CircleShapeAttr: CircleShapeAttr,
|
||
|
RectShape: RectShape,
|
||
|
RectShapeAttr: RectShapeAttr,
|
||
|
SvgTriangle: SvgTriangle,
|
||
|
SvgTriangleAttr: SvgTriangleAttr,
|
||
|
DeTimeClock: DeTimeClock,
|
||
|
DeTimeClockAttr: DeTimeClockAttr,
|
||
|
GroupArea: GroupArea,
|
||
|
GroupAreaAttr: GroupAreaAttr,
|
||
|
DeFrame: DeFrame,
|
||
|
DeFrameAttr: DeFrameAttr,
|
||
|
DeVideo: DeVideo,
|
||
|
DeVideoAttr: DeVideoAttr,
|
||
|
DeStreamMedia: DeStreamMedia,
|
||
|
DeStreamMediaAttr: DeStreamMediaAttr,
|
||
|
ScrollText: ScrollText,
|
||
|
ScrollTextAttr: ScrollTextAttr,
|
||
|
PopArea: PopArea,
|
||
|
PopAreaAttr: PopAreaAttr,
|
||
|
PictureGroup: PictureGroup,
|
||
|
PictureGroupAttr: PictureGroupAttr
|
||
|
}
|
||
|
|
||
|
export default function findComponent(key) {
|
||
|
return componentsMap[key]
|
||
|
}
|
||
|
|
||
|
export function findComponentAttr(component) {
|
||
|
const key =
|
||
|
component.component === 'UserView' && component.innerType === 'picture-group'
|
||
|
? 'PictureGroupAttr'
|
||
|
: component.component + 'Attr'
|
||
|
return componentsMap[key]
|
||
|
}
|