Closed yy-wow closed 1 month ago
The pull request introduces several modifications across multiple Vue components, focusing on handling canvas source properties and enhancing rendering logic. Key changes include renaming the canvasUrl
property to canvasSrc
, adding a new canvasSrcDoc
property, and updating the iframe rendering logic in CanvasContainer.vue
. Additionally, new functions and imports related to getOptions
are added across various components, improving asynchronous handling of operations like saving and previewing. The overall structure of the components remains intact while enhancing their interactivity and functionality.
File Path | Change Summary |
---|---|
packages/canvas/DesignCanvas/src/DesignCanvas.vue | - Renamed variable: canvasUrl → canvasSrc - Added new variable: canvasSrcDoc - Updated initialization logic for canvasSrc and canvasSrcDoc |
packages/canvas/container/src/CanvasContainer.vue | - Modified template to conditionally render <iframe> based on canvasSrc - Added new prop: canvasSrcDoc |
packages/canvas/index.js | - Added import for createRender - Updated exports to include createRender |
packages/canvas/render/src/RenderMain.js | - Added new function: getCondition - Added new function: getConditions - Modified setCondition to include a new parameter |
packages/canvas/render/src/context.js | - Added new exported function: getCondition to return visibility state- Added new exported function: getConditions to return the entire conditions object |
packages/canvas/render/src/runner.js | - Updated import to exclude h from Vue- Modified create function to exclude h from parameters passed to beforeAppCreate |
packages/settings/events/src/components/BindEventsDialog.vue | - Updated confirm method to be asynchronous- Added import for getOptions |
packages/toolbars/preview/src/Main.vue | - Updated preview function to be asynchronous- Added import for getOptions |
packages/toolbars/save/src/Main.vue | - Updated openApi function to include loading state check- Added import for getOptions |
packages/toolbars/save/src/js/index.js | - Added import for getOptions - Enhanced openCommon and saveCommon functions with pre-save and post-save logic |
DesignCanvas.vue
regarding the handling of canvas source properties and the introduction of canvasSrcDoc
are related to the main PR's modifications in CanvasContainer.vue
, which also introduces a new prop canvasSrcDoc
for iframe handling.@opentiny/tiny-engine-plugin-materials
dependency in the canvas component aligns with the main PR's focus on enhancing the canvas functionality, indicating a shift in how materials are managed within the canvas.RenderMain.js
complements the changes in CanvasContainer.vue
, as both PRs focus on improving the rendering logic and responsiveness of the canvas components.ospp-2024
🐰 In the canvas where colors blend,
A new src and doc we now send.
With iframes that dance, and props that gleam,
Our code is now a vibrant dream!
So hop along, let’s celebrate,
For changes here are truly great! 🎨✨
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
Summary by CodeRabbit
Release Notes
New Features
Improvements
Bug Fixes
Configuration Changes
"type": "module"
property inpackage.json
for modern JavaScript standards.