mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-01-08 21:08:10 +00:00
fix: move BasicShop to Materials
This commit is contained in:
parent
c5766eef64
commit
9e36966c46
@ -8,18 +8,8 @@ export type componentsType = 'media' | 'base' | 'visible';
|
||||
const DynamicFunc = (type: string, componentsType: string) => {
|
||||
return dynamic({
|
||||
loader: async function() {
|
||||
let Component: FC<{ isTpl: boolean }>;
|
||||
|
||||
if (componentsType === 'base') {
|
||||
const { default: Graph } = await import(`@/components/BasicShop/BasicComponents/${type}`);
|
||||
Component = Graph;
|
||||
} else if (componentsType === 'media') {
|
||||
const { default: Graph } = await import(`@/components/BasicShop/MediaComponents/${type}`);
|
||||
Component = Graph;
|
||||
} else {
|
||||
const { default: Graph } = await import(`@/components/BasicShop/VisualComponents/${type}`);
|
||||
Component = Graph;
|
||||
}
|
||||
const { default: Graph } = await import(`@/materials/${componentsType}/${type}`);
|
||||
const Component = Graph;
|
||||
return (props: DynamicType) => {
|
||||
const { config, isTpl } = props;
|
||||
return <Component {...config} isTpl={isTpl} />;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { useState, useEffect, memo } from 'react';
|
||||
import classnames from 'classnames';
|
||||
import Icon from '@/materials/BasicComponents/Icon';
|
||||
import Icon from '@/materials/base/Icon';
|
||||
import styles from './index.less';
|
||||
import React from 'react';
|
||||
import { IconTypes } from '@/materials/BasicComponents/Icon/schema';
|
||||
import { IconTypes } from '@/materials/base/Icon/schema';
|
||||
import { ICardPickerConfigType } from '../types';
|
||||
|
||||
interface CardPickerType extends Omit<ICardPickerConfigType<IconTypes>, 'type' | 'key' | 'name'> {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React, { memo, RefObject, useCallback, useEffect, useState } from 'react';
|
||||
import BaseForm from '@/materials/BasicComponents/Form/BaseForm';
|
||||
import BasePopoverForm from '@/materials/BasicComponents/Form/BasePopoverForm';
|
||||
import BaseForm from '@/materials/base/Form/BaseForm';
|
||||
import BasePopoverForm from '@/materials/base/Form/BasePopoverForm';
|
||||
import EditorModal from './EditorModal';
|
||||
import { MinusCircleFilled, EditFilled, PlusOutlined } from '@ant-design/icons';
|
||||
import styles from './formItems.less';
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import BasicSchema from './BasicComponents/schema';
|
||||
import MediaSchema from './MediaComponents/schema';
|
||||
import VisualSchema from './VisualComponents/schema';
|
||||
import BasicSchema from './base/schema';
|
||||
import MediaSchema from './media/schema';
|
||||
import VisualSchema from './visual/schema';
|
||||
import shopSchema from './ShopComponents/schema';
|
||||
|
||||
const schema = {
|
||||
|
||||
@ -16,9 +16,9 @@ import Calibration from 'components/Calibration';
|
||||
import DynamicEngine, { componentsType } from '@/core/DynamicEngine';
|
||||
import { FormRender } from '@/core';
|
||||
|
||||
import template from '@/materials/BasicComponents/template';
|
||||
import mediaTpl from '@/materials/MediaComponents/template';
|
||||
import graphTpl from '@/materials/VisualComponents/template';
|
||||
import template from '@/materials/base/template';
|
||||
import mediaTpl from '@/materials/media/template';
|
||||
import graphTpl from '@/materials/visual/template';
|
||||
|
||||
import schemaH5 from '@/materials/schema';
|
||||
import { ActionCreators, StateWithHistory } from 'redux-undo';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user