Skip to content

Commit

Permalink
feat: setting 外置
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Jan 4, 2024
1 parent 0027dbd commit 8350db7
Show file tree
Hide file tree
Showing 74 changed files with 1,261 additions and 2,878 deletions.
5 changes: 2 additions & 3 deletions tools/schema-builder/src/createIframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const createIframeContent = () => {
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.11-beta.8/dist/css/engine-core.css" />
<link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css" />
<link rel="stylesheet" href="https://g.alicdn.com/fone-lowcode/fr-generator/1.0.8/css/index.css" />
<link rel="stylesheet" href="https://dev.g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css" />
<script>
window.React = window.parent.React;
Expand All @@ -25,12 +25,11 @@ const createIframeContent = () => {
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
<script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.11-beta.8/dist/js/engine-core.js"></script>
<script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js"></script>
</head>
<body>
<div id="lce-container"></div>
<script type="text/javascript" src="https://g.alicdn.com/fone-lowcode/fr-generator/1.0.8/js/index.js"></script>
<script type="text/javascript" src="https://dev.g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js"></script>
</body>
</html>
`;
Expand Down
8 changes: 7 additions & 1 deletion tools/schema-builder/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useEffect, useRef } from 'react';
import createIframe from './createIframe';
import * as defalutSetting from './settings';

interface IProps {
widgets: any
settings: any
Expand Down Expand Up @@ -30,8 +32,12 @@ const Design = (props: IProps) => {
return;
}

debugger;
iframe?.contentWindow?.__FR_ENGINE__?.init({
settings,
settings: {
...defalutSetting,
...settings
},
widgets,
// recordEnable: true,
logo: {
Expand Down
109 changes: 0 additions & 109 deletions tools/schema-builder/src/materails/settings/common.ts

This file was deleted.

162 changes: 0 additions & 162 deletions tools/schema-builder/src/materails/settings/meta/cascader.ts

This file was deleted.

29 changes: 0 additions & 29 deletions tools/schema-builder/src/materails/settings/meta/checkbox.ts

This file was deleted.

Loading

0 comments on commit 8350db7

Please sign in to comment.