This commit is contained in:
2023-05-04 10:58:22 +08:00
parent 7194f81b2b
commit b0b3c2f4f1
8 changed files with 737 additions and 2511 deletions

View File

@@ -0,0 +1,120 @@
/*
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: yehuozhili
* @LastEditTime: 2022-04-29 23:35:58
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
import { InitConfig, LeftDataPannel } from 'dooringx-lib';
import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined } from '@ant-design/icons';
import commandModules from './commanderModules';
import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
import InputCo from './registComponents/inputCo';
const LeftRegistMap: LeftRegistComponentMapItem[] = [
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'button',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'input',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '输入框',
},
{
type: 'basic',
component: 'testco',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '测试按钮',
urlFn: () => import('./registComponents/testco'),
},
];
export const defaultConfig: Partial<InitConfig> = {
leftAllRegistMap: LeftRegistMap,
leftRenderListCategory: [
{
type: 'basic',
icon: <HighlightOutlined />,
displayName: '基础',
},
{
type: 'media',
icon: <PlayCircleOutlined />,
displayName: '媒体组件',
},
{
type: 'datax',
icon: <ContainerOutlined />,
custom: true,
displayName: '数据源',
customRender: (config) => <LeftDataPannel config={config}></LeftDataPannel>,
},
{
type: 'xxc',
icon: <ContainerOutlined />,
custom: true,
displayName: '自定义',
customRender: () => <div></div>,
},
],
initComponentCache: {
input: { component: InputCo },
},
rightRenderListCategory: [
{
type: 'style',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'animate',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'fn',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'actions',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
],
initFunctionMap: functionMap,
initCommandModule: commandModules,
initFormComponents: Formmodules,
};
export default defaultConfig;

View File

@@ -0,0 +1,120 @@
/*
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: guoshujing gsj2501015228@163.com
* @LastEditTime: 2023-04-28 17:39:33
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
import { InitConfig, LeftDataPannel } from 'dooringx-lib';
import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined } from '@ant-design/icons';
import commandModules from './commanderModules';
import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
import InputCo from './registComponents/inputCo';
const LeftRegistMap: LeftRegistComponentMapItem[] = [
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'button',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'input',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '输入框',
},
{
type: 'basic',
component: 'testco',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '测试按钮',
urlFn: () => import('./registComponents/testco'),
},
];
export const defaultConfig: Partial<InitConfig> = {
leftAllRegistMap: LeftRegistMap,
leftRenderListCategory: [
{
type: 'basic',
icon: <HighlightOutlined />,
displayName: '基础',
},
{
type: 'media',
icon: <PlayCircleOutlined />,
displayName: '媒体组件',
},
{
type: 'datax',
icon: <ContainerOutlined />,
custom: true,
displayName: '数据源',
customRender: (config) => <LeftDataPannel config={config}></LeftDataPannel>,
},
{
type: 'xxc',
icon: <ContainerOutlined />,
custom: true,
displayName: '自定义',
customRender: () => <div></div>,
},
],
initComponentCache: {
input: { component: InputCo },
},
rightRenderListCategory: [
{
type: 'style',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'animate',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'fn',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'actions',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
],
initFunctionMap: functionMap,
initCommandModule: commandModules,
initFormComponents: Formmodules,
};
export default defaultConfig;

View File

@@ -0,0 +1,120 @@
/*
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: guoshujing gsj2501015228@163.com
* @LastEditTime: 2023-04-28 17:42:01
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
import { InitConfig, LeftDataPannel } from 'dooringx-lib';
import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined,PictureTwoTone } from '@ant-design/icons';
import commandModules from './commanderModules';
import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
import InputCo from './registComponents/inputCo';
const LeftRegistMap: LeftRegistComponentMapItem[] = [
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PictureTwoTone />,
displayName: '图片',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'input',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '输入框',
},
{
type: 'basic',
component: 'testco',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '测试按钮',
urlFn: () => import('./registComponents/testco'),
},
];
export const defaultConfig: Partial<InitConfig> = {
leftAllRegistMap: LeftRegistMap,
leftRenderListCategory: [
{
type: 'basic',
icon: <HighlightOutlined />,
displayName: '基础',
},
{
type: 'media',
icon: <PlayCircleOutlined />,
displayName: '媒体组件',
},
{
type: 'datax',
icon: <ContainerOutlined />,
custom: true,
displayName: '数据源',
customRender: (config) => <LeftDataPannel config={config}></LeftDataPannel>,
},
{
type: 'xxc',
icon: <ContainerOutlined />,
custom: true,
displayName: '自定义',
customRender: () => <div></div>,
},
],
initComponentCache: {
input: { component: InputCo },
},
rightRenderListCategory: [
{
type: 'style',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'animate',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'fn',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'actions',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
],
initFunctionMap: functionMap,
initCommandModule: commandModules,
initFormComponents: Formmodules,
};
export default defaultConfig;

View File

@@ -0,0 +1,120 @@
/*
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: guoshujing gsj2501015228@163.com
* @LastEditTime: 2023-04-28 17:55:55
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
import { InitConfig, LeftDataPannel } from 'dooringx-lib';
import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined,PictureTwoTone } from '@ant-design/icons';
import commandModules from './commanderModules';
import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
import InputCo from './registComponents/inputCo';
const LeftRegistMap: LeftRegistComponentMapItem[] = [
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PictureTwoTone />,
displayName: '图片',
urlFn: () => import('../../../dooringx-lib/src/components/colorPicker/index'),
},
{
type: 'basic',
component: 'input',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '输入框',
},
{
type: 'basic',
component: 'testco',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '测试按钮',
urlFn: () => import('./registComponents/testco'),
},
];
export const defaultConfig: Partial<InitConfig> = {
leftAllRegistMap: LeftRegistMap,
leftRenderListCategory: [
{
type: 'basic',
icon: <HighlightOutlined />,
displayName: '基础',
},
{
type: 'media',
icon: <PlayCircleOutlined />,
displayName: '媒体组件',
},
{
type: 'datax',
icon: <ContainerOutlined />,
custom: true,
displayName: '数据源',
customRender: (config) => <LeftDataPannel config={config}></LeftDataPannel>,
},
{
type: 'xxc',
icon: <ContainerOutlined />,
custom: true,
displayName: '自定义',
customRender: () => <div></div>,
},
],
initComponentCache: {
input: { component: InputCo },
},
rightRenderListCategory: [
{
type: 'style',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'animate',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'fn',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'actions',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
],
initFunctionMap: functionMap,
initCommandModule: commandModules,
initFormComponents: Formmodules,
};
export default defaultConfig;

View File

@@ -0,0 +1,120 @@
/*
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: guoshujing gsj2501015228@163.com
* @LastEditTime: 2023-04-28 17:55:55
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
import { InitConfig, LeftDataPannel } from 'dooringx-lib';
import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined,PictureTwoTone } from '@ant-design/icons';
import commandModules from './commanderModules';
import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
import InputCo from './registComponents/inputCo';
const LeftRegistMap: LeftRegistComponentMapItem[] = [
{
type: 'basic',
component: 'button',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
// {
// type: 'basic',
// component: 'button',
// img: 'icon-anniu',
// imgCustom: <PictureTwoTone />,
// displayName: '图片',
// urlFn: () => import('.'),
// },
{
type: 'basic',
component: 'input',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '输入框',
},
{
type: 'basic',
component: 'testco',
img: 'icon-anniu',
imgCustom: <PlayCircleOutlined />,
displayName: '测试按钮',
urlFn: () => import('./registComponents/testco'),
},
];
export const defaultConfig: Partial<InitConfig> = {
leftAllRegistMap: LeftRegistMap,
leftRenderListCategory: [
{
type: 'basic',
icon: <HighlightOutlined />,
displayName: '基础',
},
{
type: 'media',
icon: <PlayCircleOutlined />,
displayName: '媒体组件',
},
{
type: 'datax',
icon: <ContainerOutlined />,
custom: true,
displayName: '数据源',
customRender: (config) => <LeftDataPannel config={config}></LeftDataPannel>,
},
{
type: 'xxc',
icon: <ContainerOutlined />,
custom: true,
displayName: '自定义',
customRender: () => <div></div>,
},
],
initComponentCache: {
input: { component: InputCo },
},
rightRenderListCategory: [
{
type: 'style',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'animate',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'fn',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'actions',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
],
initFunctionMap: functionMap,
initCommandModule: commandModules,
initFormComponents: Formmodules,
};
export default defaultConfig;

View File

@@ -9,7 +9,7 @@
"start:doc": "lerna exec npm run start --scope=dooringx-dumi-doc",
"build": "lerna exec npm run build --scope=dooringx-lib",
"deploy": "lerna exec npm run docs:build --scope=dooringx-dumi-doc",
"build:cli":"lerna exec npm run build --scope=dooringx-cli",
"build:cli": "lerna exec npm run build --scope=dooringx-cli",
"pub": "node ./script/publish.js",
"changelog": "node ./script/changelog.js",
"translate": "node ./script/translate.js",
@@ -41,10 +41,12 @@
"git add ."
]
},
"dependencies": {},
"resolutions": {
"**/@typescript-eslint/eslint-plugin": "^4.11.1",
"**/@typescript-eslint/parser": "^4.11.1",
"**/typescript": "^4.1.3"
}
"dependencies": {
"dooringx-lib": "^1.0.0"
},
"resolutions": {
"**/@typescript-eslint/eslint-plugin": "^4.11.1",
"**/@typescript-eslint/parser": "^4.11.1",
"**/typescript": "^4.1.3"
}
}

View File

@@ -1,14 +1,14 @@
/*
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: yehuozhili
* @LastEditTime: 2022-04-29 23:35:58
* @LastEditors: guoshujing gsj2501015228@163.com
* @LastEditTime: 2023-04-28 17:55:55
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
import { InitConfig, LeftDataPannel } from 'dooringx-lib';
import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined } from '@ant-design/icons';
import { ContainerOutlined, PlayCircleOutlined, HighlightOutlined,PictureTwoTone } from '@ant-design/icons';
import commandModules from './commanderModules';
import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
@@ -23,6 +23,14 @@ const LeftRegistMap: LeftRegistComponentMapItem[] = [
displayName: '按钮',
urlFn: () => import('./registComponents/button'),
},
// {
// type: 'basic',
// component: 'button',
// img: 'icon-anniu',
// imgCustom: <PictureTwoTone />,
// displayName: '图片',
// urlFn: () => import('.'),
// },
{
type: 'basic',
component: 'input',

2618
yarn.lock

File diff suppressed because it is too large Load Diff