GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: fix slot id is automatically generated every time · Dicky-L/lowcode-engine@33a4192

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • designer
      • src/document/node/props
        • prop.ts
      • tests/document/node/props
        • prop.test.ts
    • react-simulator-renderer/src
      • renderer-view.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/designer/src/document/node/props/prop.ts‎

Copy file name to clipboardExpand all lines: packages/designer/src/document/node/props/prop.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export class Prop implements IProp, IPropParent {
401401
slotSchema = {
402402
componentName: 'Slot',
403403
title: value.title || value.props?.slotTitle,
404-
id: data.id,
404+
id: value.id,
405405
name: value.name || value.props?.slotName,
406406
params: value.params || value.props?.slotParams,
407407
children: value.children,
Collapse file

‎packages/designer/tests/document/node/props/prop.test.ts‎

Copy file name to clipboardExpand all lines: packages/designer/tests/document/node/props/prop.test.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ describe('Prop 类测试', () => {
518518
type: 'JSSlot',
519519
value: {
520520
componentName: 'Slot',
521+
id: 'node_oclei5rv2e2',
521522
props: {
522523
slotName: "content",
523524
slotTitle: "主内容"
@@ -534,6 +535,7 @@ describe('Prop 类测试', () => {
534535

535536
expect(slotProp.slotNode?.title).toBe('主内容');
536537
expect(slotProp.slotNode?.getExtraProp('name')?.getValue()).toBe('content');
538+
expect(slotProp.slotNode?.export()?.id).toBe('node_oclei5rv2e2');
537539

538540
slotProp.export();
539541

Collapse file

‎packages/react-simulator-renderer/src/renderer-view.tsx‎

Copy file name to clipboardExpand all lines: packages/react-simulator-renderer/src/renderer-view.tsx
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ class Renderer extends Component<{
170170
this.startTime = Date.now();
171171
this.schemaChangedSymbol = false;
172172

173-
if (!container.autoRender || isRendererDetached()) return null;
173+
if (!container.autoRender || isRendererDetached()) {
174+
return null;
175+
}
174176

175177
const { intl } = createIntl(locale);
176178

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.