Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chore): update OpenTinyVue version #457

Merged
merged 5 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/blockToWebComponentTemplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"dependencies": {
"@opentiny/tiny-engine-i18n-host": "workspace:*",
"@opentiny/tiny-engine-webcomponent-core": "workspace:*",
"@opentiny/vue": "~3.11.0",
"@opentiny/vue-icon": "~3.11.0",
"@opentiny/vue-theme": "~3.11.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-theme": "~3.14.0",
"@vue/shared": "^3.3.11",
"vue": "^3.4.15",
"vue-i18n": "^9.9.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/blockToWebComponentTemplate/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineConfig(({ command, mode }) => {
}

const vuePluginConfig = {}
const styleLinks = ['https://npm.onmicrosoft.cn/@opentiny/vue-theme@3.11/index.css']
const styleLinks = ['https://npm.onmicrosoft.cn/@opentiny/vue-theme@3.14/index.css']

config.publicDir = false

Expand Down
2 changes: 1 addition & 1 deletion packages/builtinComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"preview": "vite preview"
},
"dependencies": {
"@opentiny/vue": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"vite-plugin-css-injected-by-js": "^3.3.1"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"@opentiny/tiny-engine-i18n-host": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/tiny-engine-webcomponent-core": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"@vue/babel-plugin-jsx": "1.1.1",
"@vue/shared": "^3.3.4",
"@vueuse/core": "^9.6.0"
Expand Down
26 changes: 6 additions & 20 deletions packages/canvas/src/components/container/CanvasFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
props: {
data: {
type: Array,
default: []
default: () => []
}
},
emits: ['click']
Expand All @@ -44,37 +44,23 @@ export default {
li {
width: unset !important;
background: var(--ti-lowcode-breadcrumb-bg);
a {
.label {
padding: 0 3px 0 16px;
border-top: 0;
color: var(--ti-lowcode-breadcrumb-color);
transition: 0.3s;
&::after {
display: inline-block;
right: -6px;
border-left: 6px solid var(--ti-lowcode-breadcrumb-bg);
transition: 0.3s;
}
&::before {
display: inline-block;
right: -7px;
left: unset;
border-left: 6px solid var(--ti-lowcode-breadcrumb-icon-color);
transition: 0.3s;
z-index: 1;
}
&:hover {
background: var(--ti-lowcode-breadcrumb-hover-bg);
cursor: pointer;
&::after {
border-left-color: var(--ti-lowcode-breadcrumb-hover-bg);
border-left-color: var(--ti-steps-advanced-li-hover-bg-color);
}
}
}
&:last-child a {
&:last-child .label {
border-right: 0px solid var(--ti-lowcode-breadcrumb-color);
border-radius: 0;
}
&:first-child a {
&:first-child .label {
border-right: 0px solid var(--ti-lowcode-breadcrumb-color);
border-radius: 0;
border-left: unset;
Expand Down
6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue": "~3.14.0",
chilingling marked this conversation as resolved.
Show resolved Hide resolved
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"@vue/shared": "^3.3.4",
"monaco-editor": "0.33.0",
"prettier": "2.7.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-i18n-host": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-locale": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-locale": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"@vue/shared": "^3.3.4",
"css-tree": "^2.3.1",
"eslint-linter-browserify": "8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-core/canvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="%VITE_CDN_DOMAIN%/@opentiny/vue-theme@3.11/index.css" rel="stylesheet" />
<link href="%VITE_CDN_DOMAIN%/@opentiny/vue-theme@3.14/index.css" rel="stylesheet" />
<style type="text/css">
.loading-warp {
display: flex;
Expand Down
8 changes: 4 additions & 4 deletions packages/design-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
"@opentiny/tiny-engine-toolbar-setting": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/tiny-engine-webcomponent-core": "workspace:*",
"@opentiny/vue": "~3.11.0",
"@opentiny/vue-design-smb": "~3.11.0",
"@opentiny/vue-renderless": "~3.11.0",
"@opentiny/vue-theme": "~3.11.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-design-smb": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"@opentiny/vue-theme": "~3.14.0",
"@vue/babel-plugin-jsx": "1.1.1",
"@vue/repl": "^2.9.0",
"@vueuse/core": "^9.6.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/design-core/src/DesignSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export default {
.tiny-tabs__content {
flex: 1;
overflow-y: scroll;
padding-top: 0;
padding: 0;
margin-top: 0;
}
.tiny-tabs__item {
color: var(--ti-lowcode-setting-panel-tabs-item-title-color);
Expand Down
2 changes: 1 addition & 1 deletion packages/design-core/src/preview/src/preview/importMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { VITE_CDN_DOMAIN } from '@opentiny/tiny-engine-controller/js/environment

const importMap = {}

const opentinyVueVersion = '~3.11'
const opentinyVueVersion = '~3.14'

const tinyVue3Imports = {
// 推荐之后统一使用@opentiny/vue去引入依赖,兼容后续录入的组件来源于tiny-vue
Expand Down
4 changes: 2 additions & 2 deletions packages/design-core/src/preview/src/preview/srcFiles/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ function addCss(href) {
link.setAttribute('href', href)
document.head.appendChild(link)
}
addCss('VITE_CDN_DOMAIN/@opentiny/vue-theme@3.11/index.css')
addCss('VITE_CDN_DOMAIN/@opentiny/vue-theme-mobile@3.11/index.css')
addCss('VITE_CDN_DOMAIN/@opentiny/vue-theme@3.14/index.css')
addCss('VITE_CDN_DOMAIN/@opentiny/vue-theme-mobile@3.14/index.css')
2 changes: 1 addition & 1 deletion packages/design-core/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const config = {
const importMapVersions = {
prettier: '2.7.1',
vue: '3.4.23',
tinyVue: '~3.11'
tinyVue: '~3.14'
}

const devAlias = {
Expand Down
2 changes: 1 addition & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"homepage": "https://opentiny.design/tiny-engine",
"dependencies": {
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@vueuse/core": "^9.6.0",
"axios": "^0.27.2",
"axios-mock-adapter": "^1.21.5"
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"html2canvas": "^1.4.1",
"pinyin-pro": "^3.13.0"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/plugins/block/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<tiny-dropdown trigger="click" @item-click="changeType">
<span>
<span>{{ state.sortTypeLabel }}</span>
<icon-chevron-down class="ml8"></icon-chevron-down>
</span>
<template #dropdown>
<tiny-dropdown-menu
Expand Down Expand Up @@ -118,7 +117,6 @@ import {
import { PluginPanel, PluginBlockList, SvgButton, SaveNewBlock, LinkButton } from '@opentiny/tiny-engine-common'
import { useBlock, useModal, useLayout, useCanvas, useHelp } from '@opentiny/tiny-engine-controller'
import { constants } from '@opentiny/tiny-engine-utils'
import { iconChevronDown } from '@opentiny/vue-icon'
import BlockSetting, { openPanel, closePanel } from './BlockSetting.vue'
import BlockGroupArrange from './BlockGroupArrange.vue'
import CategoryEdit from './CategoryEdit.vue'
Expand Down Expand Up @@ -188,8 +186,7 @@ export default {
CategoryEdit,
PluginBlockList,
TinyPopover,
TinyButton,
IconChevronDown: iconChevronDown()
TinyButton
},

setup() {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0"
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"monaco-editor": "0.33.0"
},
"devDependencies": {
Expand Down
8 changes: 2 additions & 6 deletions packages/plugins/data/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<close-icon @close="closePanel"></close-icon>
</div>
<tiny-tabs v-model="activeName" @click="tabClick" tab-style="button-card">
<tiny-tab-item v-if="isBlock" :name="STATE.CURRENT_STATE" title="区块状态"></tiny-tab-item>
<tiny-tab-item v-else :name="STATE.CURRENT_STATE" title="页面状态"></tiny-tab-item>
<tiny-tab-item :name="STATE.CURRENT_STATE" :title="isBlock ? '区块状态' : '页面状态'"></tiny-tab-item>
<tiny-tab-item :name="STATE.GLOBAL_STATE" title="应用状态"></tiny-tab-item>
</tiny-tabs>
<tiny-search
Expand Down Expand Up @@ -482,11 +481,8 @@ export default {
}

:deep(.tiny-tabs__content) {
height: calc(100% - 48px);
margin: 0;
padding: 0;
& > div {
height: 100%;
}
}
:deep(.help-box) {
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/datasource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"@vue/shared": "^3.3.4",
"axios": "^0.27.2",
"vue-clipboard3": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/help/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/vue": "~3.10.0"
"@opentiny/vue": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"vue-clipboard3": "^2.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/materials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/vue": "~3.10.0"
"@opentiny/vue": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/materials/src/block/BlockGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export default {
.blocks-header-wrap {
display: flex;
justify-content: space-between;
padding: 8px;
padding: 0 8px 8px;

.blocks-header-select {
width: calc(100% - 36px);
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/materials/src/block/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default {
display: flex;
flex-direction: column;
.tiny-search {
padding: 12px 8px;
padding: 0 8px 12px;
:deep(.tiny-input__inner) {
height: 30px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/materials/src/component/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default {
flex-direction: column;

.tiny-search {
padding: 12px 8px;
padding: 0 8px 12px;
}

.component-group {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0"
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/robot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0"
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-http": "workspace:*",
"@opentiny/vue": "~3.10.0"
"@opentiny/vue": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0"
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-controller": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/vue": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0"
"@opentiny/vue": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
Loading
Loading