diff --git a/materials/components/MsBigWheel.json b/materials/components/MsBigWheel.json index 622dfda31..4bd786e79 100644 --- a/materials/components/MsBigWheel.json +++ b/materials/components/MsBigWheel.json @@ -1,11 +1,11 @@ { "id": 77, - "version": " 0.3.2", + "version": " 0.8.8", "name": { "zh_CN": "转盘抽奖" }, "component": "BigWheel", - "icon": "button", + "icon": "ms-big-wheel", "description": "大转盘抽奖", "doc_url": "", "screenshot": "", @@ -14,9 +14,9 @@ "dev_mode": "proCode", "npm": { "package": "ms-ui-lib", - "version": "0.8.2", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", - "css": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/style.css", + "version": "0.8.8", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.8/lib/ms-ui.es.js", + "css": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.8/lib/style.css", "dependencies": null, "exportName": "BigWheel" }, diff --git a/materials/components/MsEtfHot.json b/materials/components/MsEtfHot.json index ed54432fe..2b1acd031 100644 --- a/materials/components/MsEtfHot.json +++ b/materials/components/MsEtfHot.json @@ -1,6 +1,6 @@ { "id": 85, - "version": " 0.1.0", + "version": " 0.8.2", "name": { "zh_CN": "EFT热榜" }, @@ -14,8 +14,8 @@ "dev_mode": "proCode", "npm": { "package": "ms-ui-lib", - "version": "0.8.1", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.1/lib/ms-ui.es.js", + "version": "0.8.2", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", "css": null, "dependencies": {}, "exportName": "EtfHot" diff --git a/materials/components/MsHeader.json b/materials/components/MsHeader.json index 359a072de..b75dcc207 100644 --- a/materials/components/MsHeader.json +++ b/materials/components/MsHeader.json @@ -1,6 +1,6 @@ { "id": 76, - "version": " 0.3.0", + "version": " 0.8.4", "name": { "zh_CN": "页面导航" }, @@ -14,8 +14,8 @@ "dev_mode": "proCode", "npm": { "package": "ms-ui-lib", - "version": "0.8.2", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", + "version": "0.8.4", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.4/lib/ms-ui.es.js", "css": null, "dependencies": null, "exportName": "Header" @@ -216,10 +216,10 @@ { "property": "bgColor", "type": "string", - "defaultValue": "", + "defaultValue": "#ffffff", "label": { "text": { - "zh_CN": "bgColor" + "zh_CN": "导航背景颜色" } }, "cols": 12, @@ -228,9 +228,9 @@ "readOnly": false, "disabled": false, "widget": { - "component": "MetaInput", + "component": "MetaColor", "props": { - "placeholder": "请输入rgba颜色值" + "placeholder": "请输入背景颜色" } }, "description": { diff --git a/materials/components/MsMarquee.json b/materials/components/MsMarquee.json index 392d1b2f1..3176a05c3 100644 --- a/materials/components/MsMarquee.json +++ b/materials/components/MsMarquee.json @@ -1,6 +1,6 @@ { "id": 78, - "version": " 0.3.0", + "version": " 0.8.2", "name": { "zh_CN": "九宫格抽奖" }, @@ -15,7 +15,7 @@ "npm": { "package": "ms-ui-lib", "version": "0.8.1", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.1/lib/ms-ui.es.js", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", "css": null, "dependencies": { "@nutui/nutui-bingo": "^1.0.7" diff --git a/materials/components/MsNineSquare.json b/materials/components/MsNineSquare.json index 1e0375602..da2d78bfb 100644 --- a/materials/components/MsNineSquare.json +++ b/materials/components/MsNineSquare.json @@ -1,6 +1,6 @@ { "id": 79, - "version": " 0.3.0", + "version": " 0.8.2", "name": { "zh_CN": "卡牌抽奖" }, @@ -14,8 +14,8 @@ "dev_mode": "proCode", "npm": { "package": "ms-ui-lib", - "version": "0.8.1", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.1/lib/ms-ui.es.js", + "version": "0.8.2", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", "css": null, "dependencies": { "@nutui/nutui-bingo": "^1.0.7" diff --git a/materials/components/MsScoreTaskList.json b/materials/components/MsScoreTaskList.json index d5ac3d779..c84427947 100644 --- a/materials/components/MsScoreTaskList.json +++ b/materials/components/MsScoreTaskList.json @@ -1,6 +1,6 @@ { "id": 82, - "version": " 0.8.2", + "version": " 0.8.1", "name": { "zh_CN": "任务列表" }, @@ -14,8 +14,8 @@ "dev_mode": "proCode", "npm": { "package": "ms-ui-lib", - "version": "0.8.2", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", + "version": "0.8.1", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.1/lib/ms-ui.es.js", "css": null, "dependencies": { "@nutui/nutui-bingo": "^1.0.7" @@ -25,7 +25,7 @@ "group": "ms-ui-lib", "category": "活动组件", "configure": { - "loop": true, + "loop": false, "condition": true, "styles": true, "isContainer": false, diff --git a/materials/components/MsSlotMachine.json b/materials/components/MsSlotMachine.json index 9c031cc96..c97321b98 100644 --- a/materials/components/MsSlotMachine.json +++ b/materials/components/MsSlotMachine.json @@ -1,6 +1,6 @@ { "id": 80, - "version": " 0.5.0", + "version": " 0.8.2", "name": { "zh_CN": "老虎机抽奖" }, @@ -14,8 +14,8 @@ "dev_mode": "proCode", "npm": { "package": "ms-ui-lib", - "version": "0.8.1", - "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.1/lib/ms-ui.es.js", + "version": "0.8.2", + "script": "https://npm.onmicrosoft.cn/ms-ui-lib@0.8.2/lib/ms-ui.es.js", "css": null, "dependencies": { "@nutui/nutui-bingo": "^1.0.7" diff --git a/mockServer/src/mock/get/app-center/v1/apps/schema/918.json b/mockServer/src/mock/get/app-center/v1/apps/schema/918.json index 851c9a155..28a861d55 100644 --- a/mockServer/src/mock/get/app-center/v1/apps/schema/918.json +++ b/mockServer/src/mock/get/app-center/v1/apps/schema/918.json @@ -1690,7 +1690,7 @@ ], "fileName": "createVm", "meta": { - "id": 1977, + "id": "NTJ4MjvqoVj8OVsc", "parentId": "0", "group": "staticPages", "occupier": { diff --git a/packages/canvas/src/components/container/container.js b/packages/canvas/src/components/container/container.js index ec547a887..0d438fd5d 100644 --- a/packages/canvas/src/components/container/container.js +++ b/packages/canvas/src/components/container/container.js @@ -320,19 +320,19 @@ export const scrollToNode = (element) => { if (element) { const container = getDocument().documentElement const { clientWidth, clientHeight } = container - const { x, y, width, height } = element.getBoundingClientRect() + const { left, right, top, bottom, width, height } = element.getBoundingClientRect() const option = {} - if (x < 0) { - option.left = container.scrollLeft + x - SCROLL_MARGIN - } else if (x > clientWidth) { - option.left = x + width - clientWidth + SCROLL_MARGIN + if (right < 0) { + option.left = container.scrollLeft + left - SCROLL_MARGIN + } else if (left > clientWidth) { + option.left = container.scrollLeft + left - clientWidth + width + SCROLL_MARGIN } - if (y < 0) { - option.top = container.scrollTop + y - SCROLL_MARGIN - } else if (y > clientHeight) { - option.top = y + height - clientHeight + SCROLL_MARGIN + if (bottom < 0) { + option.top = container.scrollTop + top - SCROLL_MARGIN + } else if (top > clientHeight) { + option.top = container.scrollTop + top - clientHeight + height + SCROLL_MARGIN } if (typeof option.left === 'number' || typeof option.top === 'number') { diff --git a/packages/common/component/BlockDeployDialog.vue b/packages/common/component/BlockDeployDialog.vue index f5aa6c96c..5a6e19482 100644 --- a/packages/common/component/BlockDeployDialog.vue +++ b/packages/common/component/BlockDeployDialog.vue @@ -49,7 +49,7 @@ :modal="false" :fullscreen="true" :append-to-body="true" - title="Schema 本地与线上差异" + title="Schema 线上与本地差异" > { - const pageSchema = JSON.parse(state.newCode) - setSchema(pageSchema) - - close() + if (!state.newCode) { + close() + return + } + try { + const pageSchema = JSON.parse(state.newCode) + setSchema({ ...pageSchema, componentName: COMPONENT_NAME.Block }) + close() + } catch (err) { + useNotify({ + type: 'error', + message: '代码静态检查有错误,请先修改后再保存' + }) + } } return { diff --git a/packages/common/component/PluginBlockList.vue b/packages/common/component/PluginBlockList.vue index e4e6b25b4..1df056a09 100644 --- a/packages/common/component/PluginBlockList.vue +++ b/packages/common/component/PluginBlockList.vue @@ -1,5 +1,6 @@ diff --git a/packages/common/index.js b/packages/common/index.js index cab3818fe..2fcb94fcc 100644 --- a/packages/common/index.js +++ b/packages/common/index.js @@ -79,6 +79,7 @@ import BlockDeployDialog from './component/BlockDeployDialog.vue' import ProgressBar from './component/ProgressBar.vue' import MetaButtonGroup from './component/MetaButtonGroup.vue' import MetaTableColumns from './component/MetaTableColumns.vue' +import SearchEmpty from './component/SearchEmpty.vue' import i18n, { i18nKeyMaps } from '@opentiny/tiny-engine-controller/js/i18n' @@ -145,7 +146,8 @@ export const MetaComponents = { MetaIpSection, MetaRelatedEditor, MetaRelatedColumns, - MetaTableColumns + MetaTableColumns, + SearchEmpty } export { @@ -206,5 +208,6 @@ export { BindI18n, BlockDeployDialog, ProgressBar, - MetaTableColumns + MetaTableColumns, + SearchEmpty } diff --git a/packages/design-core/package.json b/packages/design-core/package.json index 902086058..18b620a40 100644 --- a/packages/design-core/package.json +++ b/packages/design-core/package.json @@ -92,7 +92,7 @@ "monaco-editor": "0.33.0", "prettier": "2.7.1", "sortablejs": "^1.14.0", - "vue": "^3.4.15", + "vue": "3.4.23", "vue-i18n": "^9.9.0" }, "devDependencies": { diff --git a/packages/design-core/src/App.vue b/packages/design-core/src/App.vue index e8c169a28..79229c77f 100644 --- a/packages/design-core/src/App.vue +++ b/packages/design-core/src/App.vue @@ -154,6 +154,7 @@ export default { } } .tiny-engine-right-wrap { + position: relative; z-index: 4; } :deep(.monaco-editor .suggest-widget) { diff --git a/packages/design-core/vite.config.js b/packages/design-core/vite.config.js index 6dde1bcf8..ec621cb4c 100644 --- a/packages/design-core/vite.config.js +++ b/packages/design-core/vite.config.js @@ -130,7 +130,7 @@ const config = { const importMapVersions = { prettier: '2.7.1', - vue: '3', + vue: '3.4.23', tinyVue: '~3.11' } diff --git a/packages/plugins/bridge/src/BridgeManage.vue b/packages/plugins/bridge/src/BridgeManage.vue index 8fec03404..22d0bba50 100644 --- a/packages/plugins/bridge/src/BridgeManage.vue +++ b/packages/plugins/bridge/src/BridgeManage.vue @@ -6,7 +6,11 @@ clearable placeholder="请输入关键字搜索" @update:modelValue="searchBridgeData" - > + > + +
{{ item.name }}
-
- -

暂无数据

-
+ @@ -30,6 +31,8 @@