Commit Graph

376 Commits

Author SHA1 Message Date
rhlin ab4e7dc2ed
Feat router page embedded view toggle (#1010)
* feat(canvas, toolbar/view-setting): add router view setting view mode switcher, support embedded and standalone mode in canvas

* fix(canvas/render): fix switch locale failed

* feat(canvas): add window.onpopstate listener

* fix(toolbars/view-setting): fix init view mode value no fallback cause next view mode label error

* fix: using enum instead of multiple time literal string declaration, add fallback for cache value getter in toolbar, fix typo mistake

* fix: simplify return value using enum, remove unnecessary style code

* fix(toolbars/view-setting): fix package.json wrong repository directory
2025-01-10 16:48:53 +08:00
rhlin 4c1c4c49f4
feat(canvas/container): canvas allow router-link quick switch page (#1001)
* feat(canvas/container):  canvas allow router-link component from inactive page to have hover menu for quick switch page action

* feat: replace css var with --te variable,  merge same action condition
2025-01-10 14:37:11 +08:00
Gene 81c0e770fb
fix: RouterLink act like a in canvas (#1007) 2025-01-09 17:59:27 +08:00
lichunn dceffa9be1
fix:preview data structures compatible with the testing environment (#998)
* fix: 预览多页面兼容测试环境数据

* fix:路由增加根/

* fix: fix review

* fix: fix review
2025-01-08 15:58:29 +08:00
rhlin 3bc9d334f2
Merge remote-tracking branch 'upstream/refactor/develop' into resolve-router-page-merge-conflict 2025-01-07 09:06:51 -08:00
Gene 3bf93ffb55
feat: add canvas route bar (#967)
* feat: add route link bar above the canvas

* feat: route bar support switch route

* add TODO

* change css variables

* fix: fix switch page error after create one

* feat: support select router page on RouterLink

* feat: RouterLink support navigate by right-click menu operation in canvas

* feat: navigation operation place to first

* feat: support setting default page

* fix: hide route bar in block canvas

* fix: hide route bar in block canvas

* feat: add confirm modal before switch page

* fix: remove TODO comment

* fix: Modified based on review comments

* fix some issues

* fix wrong type of route id
2025-01-07 16:46:27 +08:00
xuanlid a14a508305
fix:Modify panel shadow color (#943) 2025-01-07 09:43:35 +08:00
xuanlid 15597a1544
fix: Modify UI review comments (#941)
* fix:Modify Code Font in bridge/state

* fix:modify the block list style in block

* fix:Modify schema panel style

* fix:Modify tabs in materials

* fix:Modify global dialog, modal and search

* fix:Modify the component list style in materials

* fix:Modify search in i18n

* fix: Modify UI in Schema Panel

* fix:Modify dialog style and i18n Panel shadow

* fix:Modify the component list style in materials

* fix:Modify the block list style in block

* fix: Modify UI review comments in i18n

* fix: Modify modal style

* fix: Modify modal in clean

* fix: Modify modal in block

* fix: Modify the block list and modal in block

* fix: modify the block list in block

* fix: modify font size

* fix: Modify global button

* fix: delete comment code

* fix: change plugin-icon-js.svg

* fix:Modify Code Font in bridge/state

* fix:Modify button in header

* fix: Modify button in state

* fix:Modify Font Size in datasource

* fix: Modify icon in lifecycle/blockEvent

* fix: Modify validate in dialog

* fix: modify second-panel and tree styles

* fix: Modify tree componentType

* fix: Modify the fixed column style of the table

* fix: Modify top save and more

* fix:Modify code style in state

* fix:Modify the block list in block

* fix: Modify remote panel

* fix: Modify the icon to tips and gray background

* fix:Modify global popover and toolTip

* fix:Modify open-delay to a constant
2025-01-07 09:39:50 +08:00
rhlin 170fd41b9c
Fix router page placeholder and useblock error, switch block render error (#990)
* feat: modify router-view placeholder text

* fix(plugin/block): useBlock update location history function fix

* fix(canvas/render): fix scoped css produce twice cause active page css lost accidentally

* fix(canvas/render): fix switch from page editing to block editing, rendering with error pageContext, result in  page render error

* refactor(canvas/render): move injection to setup phase

* fix(canvas/render): fix css load twice

* fix(canvas/render):  temple fix for switch page, avoid old editing schema overwrite

* fix(canvas/render): add `Ref` import
2025-01-06 11:52:18 +08:00
chilingling b38af9f2ac v2.1.0 2025-01-02 23:26:31 -08:00
chilingling 4fea04b629 fix: preview page breadcrumb don't exist useBlock method and preview block error when type undefined (#988)
* fix: preview breadcrumb don't exist useBlock method

* fix: resolve block preview error when type is undefined

---------

Co-authored-by: hexqi <wu_12556@126.com>
2025-01-02 23:26:31 -08:00
chilingling e3f3339901 fix: cannot publish current editing block (#987) 2025-01-02 23:26:31 -08:00
chilingling 7847ab51bf fix: resolve block property issue (#971)
* fix: resolve block property issue

* fix: block property form rename

---------

Co-authored-by: hexqi <wu_12556@126.com>
2025-01-02 23:26:31 -08:00
chilingling ff5048d453 fix: block switch select property failed (#984)
* fix: block switch select property failed

* fix: del assignment
2025-01-02 23:26:31 -08:00
Hexqi dc71923f4c fix: update cli template resolve preview error (#983)
更新 cli 模板
2025-01-02 23:26:31 -08:00
lisong 884f988312 fix: optimize save code button marker position (#982)
* fix: optimize save code button marker position

* fix: resolve point style issues for page Schema and page JS
2025-01-02 23:26:31 -08:00
zhangjuncao c6ce763833 fix:modify style (#981) 2025-01-02 23:26:31 -08:00
chilingling 55d1f755a0 fix: blockCompile get correct version (#964)
* fix: blockCompile get correct version

* fix: support refresh block selected version

* fix: clear all compileCache

* fix: use correct version key to find history schema

* fix: add id for stylesheet

* fix: clean style sheet when remove cache

* fix: should remove stylesheet before clean cache
2025-01-02 23:26:31 -08:00
chilingling af552d0c8f fix: blockPublishLogic (#973)
* fix: breadcrumb publish block cannot get correct version

* fix: block schema change sync

* fix: del useless comment code

* fix: hide publish block button when creating block
2025-01-02 23:26:31 -08:00
chilingling 80359a1743 fix: generate code accessor scenario (#972)
* fix: generate code accessor scenario

修复 state  accessor 出码的bug

* fix: objectVal gettter value
2025-01-02 23:26:31 -08:00
chilingling 132f3e8888 fix: basePropsGroup use deepclone prevent clone array itself (#975)
* fix: basePropsGroup use deepclone prevent clone array itself

basePropsGroup 使用深拷贝方式复制自身

* fix: filter duplicated property
2025-01-02 23:26:31 -08:00
chilingling 77ec192b56 fix: time asc add i18n failed (#976)
* fix: time asc add i18n failed

* fix: search invalid

---------

Co-authored-by: hexqi <wu_12556@126.com>
2025-01-02 23:26:31 -08:00
chilingling a05459ba2d fix: resolve warnings (#957)
* fix: resolve warnings

* fix: add access guard avoid runtime errors

* fix: change placeholder prop type

* fix: resolve type check

* fix: toolbarbaseicon props default value
2025-01-02 23:26:31 -08:00
chilingling 028b80873c fix: resolve some schema update issue (#956)
* fix: resolve some schema update issue

1. 调整画布宽度时,画布选中框不及时更新的 bug
2. 空页面的时候,拖拽组件到画布提示两次新建页面的 bug
3. importSchema 的时候,清空选择
4. 页面 schema 保存的时候,设置保存状态为 false
5. 增强 AdvanceConfig 配置对 props 的容错

* fix: updateRect async change to callback style

* fix: first time enter app should show empty page warning
2025-01-02 23:26:31 -08:00
chilingling 403620b34b fix: chore bug fix for v2.1 (#953)
1. 修复清空画布报错的 bug
2. 修复区块加载错误的 bug
3. 修复画布拖拽组件到最前面的时候,组件会消失的  bug
2025-01-02 23:26:31 -08:00
Hexqi a6b7892f98 chore: update version to 2.1.0-rc.0 (#947) 2025-01-02 23:26:31 -08:00
Gene 8fabfccfa7
fix: fix param type error when create group (#985) 2025-01-02 11:56:36 +08:00
lichunn 9e94f30fda
feat: Adjust the routing structure to increase the name (#974)
* feat: 调整路由结构为增加name,redirect也改成{name}

* fix: fix review

* fix: fix review
2025-01-02 11:18:55 +08:00
lichunn 84a403f693
feat:preview multi page structured data transfer and nested display (#978)
* feat:预览多页结构数据传输以及嵌套显示

* fix:获取链路页面兼容页面树为空的情况

* fix:fix review
2025-01-02 09:55:26 +08:00
rhlin 304e010cfd
feat: add navigation snippet (#968) 2024-12-27 17:51:56 +08:00
rhlin 98dbd02808
fix(canvas/render): fix unsubscribe error (#962) 2024-12-27 17:51:00 +08:00
yy 902790229b
Fix: preview URL (#966) 2024-12-27 16:03:17 +08:00
rhlin eb461658d5
fix(canvas-render): fix page-getter no 'return' vNode result in empty page (#961) 2024-12-26 16:21:11 +08:00
rhlin aeb13234fc
Feat support router subpage (#935)
* refactor(canvas/render): ts support,  separate context functions from RenderMain and Render

* feat(canvas/render): move context to page-block-function, unify parseList type, separate isObject-parser into 3 parsers

* feat(canvas/render): add RouteView built-in component

* fea(canvas/render): multiple instantiable RenderMain, handle multi page scoped css, add RenderView logic to render, add page-getter, extra useLocale

* chore: modify eslint rules for ts files

* build(canvas): fix file extension name for build file

* feat(canvas/render): support router page data fetch and render

* fix(canvas/render): fix modify parent page and switch to child page, child page's parent view is not updated to latest version

* feat(canvas/render): add builtin router-link material

* fix(canvas/render): fix when page ancestors contain number id cause recursive load pathFromRoot[0] page issue

* fix(canvas/render):  inactive page  should not inject placeholder for empty children, remove builtin CanvasBox placeholder

* feat(plugins/materials): useResource when no pageId, after fetching default schema, update page id in location params

* fix: fix review comments,enhance readability, remove unnecessary packages, fix unsubscribe topic no callback function issue

* fix(canvas/render): rename historyChanged to locationHistoryChanged

* fix(canvas/render): fix review comments, remove unnecessary import, add data error fallback/read protection, fix function params type declare

* fix(canvas/render): rename historyChanged to locationHistoryChanged miss 1 file
2024-12-26 14:17:32 +08:00
Gene ad794d83da
feat: page tree supports dragging (#948)
* feat: add layer line to node tree

* feat: draggable tree

* feat: save immediately after dragging

* add hover style(demo)

* feat: add lock, home icons

* fx routing path issues

* move updateTreeData to the finally block

* fix generateTemplate execution error

* fix default value incorrect in create new folder form
2024-12-24 16:18:18 +08:00
lichunn 3ac010bd1b
feat:route code output (#937)
* feat: 调整路由出码结构

* feat: 添加RouterView组件出码测试

* feat:路由出码忽略文件夹

* fix:去掉注释

* feat: 调整路由出码递归方式

* fix: 调整格式

* fix:修复路由component出码为字符串问题
2024-12-23 14:58:33 +08:00
chilingling 7716dda7b7
feat: blockCompiler (#906)
* feat: blockCompiler

* feat: block compile to blobURL

* feat: block-compiler

* fix: add dev alias

* fix: del unnecessary comments

* feat: del old block web component logic

* fix: scope id error

* feat: del umd block support

* feat: del block deploy progress bar

* feat: del block progress request

* fix: del customElement relative logic

* feat: add block loading and error status view

* fix: select blockSchema by historyid

* fix: block schema should select by version

* feat: add block compile cache

* fix: add source code cache

* fix: add default material import map

* feat: update builtin-component version

* feat(block-compiler): support compile jsx

* feat: support block compileCache

* feat: update block version slient refresh

* fix: update @vue/babel-plusin-jsx version

* fix: type checking

* fix: typescript build error

* fix: imporve type checking

* feat: use new block compile cache realize

* fix(block-compiler): remove deps order check

* fix: use has method check the specified key exists in the map instead of get method

* fix: optimize deps

* fix: update cache name params

---------

Co-authored-by: hexqi <wu_12556@126.com>
2024-12-20 11:29:30 +08:00
chilingling cff74bb791
feat: schemaDataAsync (#885)
* feat: schemaDataAsync

* fix: adapt schema plugin

* fix: add import export schema

* fix: remove useless code

* fix: shcmea change cant't trigger canvas rerender

* fix: replace setSchema

* refactor: schema data sync to canvas

* refactor: change synchoronized method between canvas and host

* fix: remove useless node tree

* fix: support recursive update attr

* feat: support recursive update nodesMap

* fix: selectNode updateRect conflict

* refactor: sync update to schemaService

* feat: migrade canvas collection

* fix: dataSourceMap update

* feat: add docs

* fix: add direct change schema api doc

* fix: use toRaw optimize performance

* fix: add default fallback for changeProps

* fix: schema update issue

* fix: add compatible for empty children

* fix: provide schemaUtils to canvas

* fix: update collection table data

* fix: add error handling
2024-12-20 10:01:37 +08:00
lichunn 9f9447df5d
feat:UI specification adjustment (#938)
* feat: 添加页面初始间距

* feat: 调整间距配置

* feat: 调整样式面板字体交互

* feat: 调整CanvasRowColContainer组件间距

* feat: 画布页面添加背景色

* feat: 区块组件添加间距

* feat: 添加样式字符串转对象方法

* feat: 添加基础样式类

* feat:添加弹性盒子组件

* feat: 调整flexBox组件

* feat: 增加Section组件以及清空画布保留基础样式

* fix:样调整时增加基础类名判断

* fix:修复在样式面板选择样式时,两个类名同时改动

* fix:调整容器默认内容样式

* fix:容器组件名以及属性改为中文
2024-12-19 19:50:43 +08:00
Gene 7360072de0
feat: Support merging categories and groups (#907)
* feat: support merge categories and groups in blocks

* add extra param to groups get request

* fix create block error

* undo changes in registry.js

* fix: Fixed the problem of using function references directly for conditional judgment
2024-12-19 19:49:53 +08:00
Gene 15d940083b
feat: page support nested routers (#932)
* feat: page support setting folder or page as parent

* remove css important syntax

* remove redundant code

* add row actions

* add getPageNodeData api

* add getAncestors API in usePage.js
2024-12-19 09:22:02 +08:00
xuanlid eb76a70819
fix: Modify UI review comments (#916)
* fix:Modify Code Font in bridge/state

* fix:modify the block list style in block

* fix:Modify schema panel style

* fix:Modify tabs in materials

* fix:Modify global dialog, modal and search

* fix:Modify the component list style in materials

* fix:Modify button style

* fix:Modify search in i18n

* fix: Modify UI in Schema Panel

* fix:Modify dialog style and i18n Panel shadow

* fix:Modify the component list style in materials

* fix:Modify the block list style in block

* fix: Modify modal style

* fix: Modify modal in clean

* fix: Modify modal in block

* fix: Modify the block list and modal in block

* fix: modify the block list in block

* fix: modify font size

* fix: Modify global button

* fix: delete comment code

* fix: change plugin-icon-js.svg
2024-12-17 15:53:14 +08:00
chilingling 230b3341d8
fix: preview should not overwrite mainFile (#920) 2024-12-16 14:15:12 +08:00
betterdancing 6b20d26bd5
fix(style-panel): resolve style-panel styles issue (#924)
1. 调整了tabsGroupConfigurator组件的一些颜色问题;
2. 修改所有大写的PX为小写;
3. 工具栏中调整屏幕大小的组件的弹窗内容样式全部丢失,重写了这部分样式;
4. TinyGrid组件的表格列编辑弹窗样式丢失,重写了这部分;
5. 属性面板和样式面板部分Label色值不对,统一修改;
6. 样式面板原有引用的部分颜色变量失效,重新替换;
2024-12-13 15:59:07 +08:00
Gene 5e6e6a53b8
fix: optimize bind-i18n styles (#925)
优化属性面板绑定国际化UI
2024-12-13 11:42:25 +08:00
Gene 0a308db98d
feat: support checking all blocks in material add block panel (#923)
物料插件-区块分组-添加区块,区块列表没有全选功能

改动点:
1. 给区块列表添加全选功能
2. 抽取了一个 SelectAll 组件到 common 包
2024-12-13 11:41:17 +08:00
wenmine e1806b3ec0
feat(theme): change datasource and setting panel theme variable
1. 对齐数据源、右侧属性面板的全部模块变量
2. 将数据源和属性面板部分文件里的变量滥用调整先调整为common变量
2024-12-13 11:36:42 +08:00
chilingling 923ad6cc16
fix: slot should extra params (#919)
* fix: slot should extra params

* fix: add unit test case

* fix: change test schema fileName
2024-12-12 14:27:34 +08:00
chilingling eee70e1796
v2.0.0 (#934) 2024-12-12 09:44:37 +08:00
Gene 0c3c989f4a
feat: update block filters UI in materials (#914) 2024-12-10 19:42:22 +08:00