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

fix: Modify UI review comments #994

Closed
wants to merge 92 commits into from
Closed
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
90c8f9e
fix:Modify Code Font in bridge/state
xuanlid Dec 3, 2024
2d74123
fix:modify the block list style in block
xuanlid Dec 3, 2024
54a1780
fix:Modify schema panel style
xuanlid Dec 3, 2024
dac9b3b
fix:Modify tabs in materials
xuanlid Dec 3, 2024
384fb41
fix:Modify global dialog, modal and search
xuanlid Dec 3, 2024
83093f8
fix:Modify the component list style in materials
xuanlid Dec 3, 2024
a7440a4
fix:Modify button style
xuanlid Dec 3, 2024
329e62f
fix: Modify UI review comments
xuanlid Dec 3, 2024
0d554c8
fix: Modify UI review comments
xuanlid Dec 3, 2024
2248952
fix: Modify UI review comments
xuanlid Dec 4, 2024
bed7f88
fix:Modify search in i18n
xuanlid Dec 4, 2024
9777743
fix: Modify UI in Schema Panel
xuanlid Dec 4, 2024
07f6f9f
Modify UI review comments
xuanlid Dec 4, 2024
39ca259
fix:Modify dialog style and i18n Panel shadow
xuanlid Dec 4, 2024
67814b8
fix:Modify the component list style in materials
xuanlid Dec 4, 2024
6b37a8f
fix:Modify the block list style in block
xuanlid Dec 4, 2024
85ece30
fix: Modify UI review comments
xuanlid Dec 4, 2024
34ac7fa
Merge branch 'opentiny:refactor/develop' into refactor/develop
xuanlid Dec 4, 2024
75fc641
fix: Modify UI review comments
xuanlid Dec 4, 2024
375e102
fix: Modify UI review comments in i18n
xuanlid Dec 5, 2024
8993fb1
fix: test
xuanlid Dec 5, 2024
f925d0c
fix: Modify modal style
xuanlid Dec 5, 2024
b9f59a6
fix: Modify modal style
xuanlid Dec 5, 2024
3999757
fix: Modify modal in clean
xuanlid Dec 5, 2024
b7acbc8
fix: Modify modal in block
xuanlid Dec 5, 2024
09f12c4
fix: Modify the block list and modal in block
xuanlid Dec 5, 2024
f60de31
fix: modify the block list in block
xuanlid Dec 5, 2024
5c0f453
fix: modify font size
xuanlid Dec 5, 2024
98f2b1b
fix: Modify global button
xuanlid Dec 6, 2024
45011ec
fix: delete comment code
xuanlid Dec 6, 2024
9ab3563
fix: change plugin-icon-js.svg
xuanlid Dec 6, 2024
e8bec88
Merge remote-tracking branch 'open/refactor/develop' into refactor/de…
xuanlid Dec 6, 2024
58ff52d
fix: Modify review comments
xuanlid Dec 9, 2024
76ed2d3
fix: Modify review comments
xuanlid Dec 9, 2024
8046a77
fix: Modify review comments
xuanlid Dec 9, 2024
b444477
fix: Modify review comments
xuanlid Dec 9, 2024
0024e77
fix: Modify review comments
xuanlid Dec 9, 2024
bf2a130
fix:Modify Code Font in bridge/state
xuanlid Dec 11, 2024
9af7db7
fix:Modify button in header
xuanlid Dec 11, 2024
6bc390f
fix: Modify button in state
xuanlid Dec 11, 2024
3ca468a
fix: Modify UI style
xuanlid Dec 11, 2024
dcc5516
Merge remote-tracking branch 'open/refactor/develop' into refactor/de…
xuanlid Dec 11, 2024
8e650b7
Merge remote-tracking branch 'open/refactor/develop' into lx-ui
xuanlid Dec 11, 2024
e221404
fix:Modify Font Size in datasource
xuanlid Dec 11, 2024
29f8377
fix: Modify icon in lifecycle/blockEvent
xuanlid Dec 12, 2024
ff61320
fix: Modify validate in dialog
xuanlid Dec 13, 2024
9d0ebe5
fix: modify second-panel and tree styles
xuanlid Dec 13, 2024
a511c4d
fix: Modify tree componentType
xuanlid Dec 13, 2024
6bc1021
fix: Modify the fixed column style of the table
xuanlid Dec 16, 2024
fa1560d
fix: Modify top save and more
xuanlid Dec 16, 2024
5ace383
Merge remote-tracking branch 'open/refactor/develop' into refactor/de…
xuanlid Dec 16, 2024
9dcc669
Merge branch 'refactor/develop' into lx-ui
xuanlid Dec 16, 2024
80cd683
fix:Modify code style in state
xuanlid Dec 17, 2024
a152271
fix: Modify review comments and remote panel
xuanlid Dec 17, 2024
eb2a918
Merge remote-tracking branch 'open/refactor/develop' into lx-ui
xuanlid Dec 17, 2024
95a23a3
fix:Modify the block list in block
xuanlid Dec 17, 2024
5f052bb
fix: Modify remote panel
xuanlid Dec 18, 2024
8920879
fix: Modify the icon to tips and gray background
xuanlid Dec 18, 2024
20c3adb
fix:Modify global popover and toolTip
xuanlid Dec 18, 2024
73ef4b1
fix:Modify global popover and toolTip
xuanlid Dec 18, 2024
dc221cb
fix: Modify top operation buttons and L1 panel
xuanlid Dec 20, 2024
e34eae0
fix:Modify lifecycles in block
xuanlid Dec 23, 2024
87e3264
fix:Modify block group and class
xuanlid Dec 23, 2024
b62c3a0
fix:Modify second panel
xuanlid Dec 23, 2024
b6dbbd8
fix:Modify help and AI panel
xuanlid Dec 25, 2024
79302a5
fix: Modify form verification
xuanlid Dec 25, 2024
d9c1931
fix: Modify UI review comments
xuanlid Jan 2, 2025
a84dc15
Merge branch 'lx-ui' into lx-ui-develop
xuanlid Jan 2, 2025
a7df115
fix:Modify the history list in block/page
xuanlid Jan 3, 2025
38bff50
Merge remote-tracking branch 'open/refactor/develop' into lx-ui-develop
xuanlid Jan 3, 2025
73545ae
fix:Modify inputnumber in style
xuanlid Jan 3, 2025
359245c
fix:Modify event popover and dialog style
xuanlid Jan 3, 2025
e54e22a
Merge remote-tracking branch 'open/refactor/develop' into lx-ui
xuanlid Jan 3, 2025
b1f474f
fix:Modify event popover and dialog style
xuanlid Jan 3, 2025
8047736
Merge remote-tracking branch 'open/refactor/develop' into lx-ui-develop
xuanlid Jan 3, 2025
2e7d742
Merge remote-tracking branch 'open/refactor/develop' into lx-ui
xuanlid Jan 3, 2025
818b464
fix:Modify open-delay to a constant
xuanlid Jan 6, 2025
41dac74
Merge branch 'lx-ui' into lx-ui-develop
xuanlid Jan 6, 2025
089f4e3
fix:Modify open-delay to a constant
xuanlid Jan 6, 2025
05f10d3
Merge branch 'lx-ui' into lx-ui-develop
xuanlid Jan 6, 2025
b2fe00f
fix:Modify AI panel Style
xuanlid Jan 7, 2025
3a63c5c
Merge remote-tracking branch 'open/refactor/develop' into lx-ui-develop
xuanlid Jan 7, 2025
97b4a49
fix:Modify open-delay to a constant
xuanlid Jan 7, 2025
f295a16
fix:Modify common variable
xuanlid Jan 7, 2025
8fd93b0
fix:Modify style panel and dialog footer button
xuanlid Jan 7, 2025
4552aa3
fix:Modify style panel and i18n tool dialog
xuanlid Jan 8, 2025
a460bbe
fix:Modify style panel background image
xuanlid Jan 8, 2025
f64bcf6
fix: icon replacement
xuanlid Jan 9, 2025
ea84775
fix:Modify style panel background image position
xuanlid Jan 9, 2025
aa049bb
Merge remote-tracking branch 'open/refactor/develop' into lx-ui-develop
xuanlid Jan 9, 2025
1667ed5
fix:Modify change version list in block
xuanlid Jan 9, 2025
64836fd
fix: Modify UI review comments
xuanlid Jan 10, 2025
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
105 changes: 38 additions & 67 deletions packages/common/component/BlockHistoryList.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
<template>
<ul>
<li v-for="item in history" :key="item.id" class="item">
<block-history-template :blockHistory="item" :is-block-manage="isBlockManage"></block-history-template>
<span class="item-icon">
<span @click="$emit('preview', item)"
><svg-button class="svg-item-icon" name="text-page-review"></svg-button><span>预览</span></span
>
<span v-if="!isBlockManage" @click="$emit('restore', item)"
><svg-button class="svg-item-icon" name="text-page-revert"></svg-button><span>还原</span></span
>
</span>
</li>
</ul>
<tiny-grid :data="history" height="300" v-if="history.length">
<tiny-grid-column v-if="isBlockManage" field="version" title="版本号">
<template v-slot="data">
{{ data.row.version }}
<span v-if="data.row.version === lastVersion.versions" class="version-v">最新</span>
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
</template>
</tiny-grid-column>
<tiny-grid-column field="updated_at" title="发布时间">
<template v-slot="data">
{{ format(data.row.updated_at, 'yyyy/MM/dd hh:mm:ss') }}
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
</template>
</tiny-grid-column>
<tiny-grid-column field="message" title="描述"></tiny-grid-column>
<tiny-grid-column width="90" field="operation" title="操作">
<template v-slot="data">
<span @click="$emit('preview', data.row)" class="operation-text">预览</span>
<span v-if="!isBlockManage" @click="$emit('restore', data.row)" class="operation-text">还原</span>
</template>
</tiny-grid-column>
</tiny-grid>
<div v-if="!history.length" class="empty">暂无数据</div>
</template>

<script setup>
import { defineEmits, defineProps } from 'vue'
import { SvgButton } from '../index'

// 引入组件在template上使用
import BlockHistoryTemplate from './BlockHistoryTemplate.vue'
import { format } from '@opentiny/vue-renderless/common/date'
import { Grid as TinyGrid, GridColumn as TinyGridColumn } from '@opentiny/vue'

defineProps({
history: {
Expand All @@ -30,67 +35,33 @@ defineProps({
isBlockManage: {
type: Boolean,
default: false
},
lastVersion: {
type: Object,
default: () => {}
}
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
})

defineEmits(['preview', 'restore'])
</script>

<style lang="less" scoped>
.item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 16px;

&:not(:last-child) {
border-bottom: 1px solid
var(--ti-lowcode-component-block-history-list-item-border-color, --ti-lowcode-tabs-border-color);
}

&:hover {
background-color: var(--ti-lowcode-component-block-history-list-item-hover-bg);
.item-icon {
display: block;
}
}
.version-v {
font-size: 12px;
padding: 2px 8px;
margin-left: 5px;
background-color: var(--te-base-green-20);
color: var(--te-base-green-70);
border-radius: var(--te-base-border-radius-1);
}

.item-icon {
display: none;
> span {
border: 1px solid var(--ti-lowcode-component-block-history-list-item-btn-border-color);
height: 28px;
color: var(--ti-lowcode-component-block-history-list-item-btn-color);
font-size: 12px;
border-radius: 2px;
cursor: pointer;
display: inline-flex;
justify-content: center;
align-items: center;
transition: 0.3s;
padding: 0 10px;
.svg-item-icon {
color: var(--ti-lowcode-component-block-history-list-item-btn-color);
}
.svg-item-icon:hover {
color: var(--ti-lowcode-component-block-history-list-item-btn-hover-color);
}
&:hover {
color: var(--ti-lowcode-component-block-history-list-item-btn-hover-color);
background: var(--ti-lowcode-component-block-history-list-item-btn-hover-bg);
}

&:last-child {
margin-left: 4px;
}
> span {
margin-left: 4px;
}
.operation-text {
color: var(--te-common-text-emphasize);
& + .operation-text {
margin-left: 8px;
}
}

.empty {
color: var(--ti-lowcode-common-empty-text-color);
color: var(--te-common-text-weaken);
}
</style>
15 changes: 14 additions & 1 deletion packages/common/component/ButtonGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,25 @@
.button-group {
display: grid;
grid-auto-flow: column;
column-gap: 8px;
column-gap: 4px;
align-items: center;

:deep(.svg-button),
:deep(.tiny-button) {
margin: 0;
}
:deep(.tiny-button) {
padding: 0;
min-width: 40px;
}
:deep(.tiny-button + .svg-button) {
margin-left: 4px;
}
:deep(.tiny-button + .tiny-button) {
margin-left: 8px;
}
:deep(.tiny-button.tiny-button.tiny-button--default) {
border-color: var(--te-common-border-secondary);
}
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
}
</style>
78 changes: 57 additions & 21 deletions packages/common/component/LifeCycles.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<template>
<div class="life-cycle">
<tiny-popover v-model="state.showPopover" placement="bottom-end" trigger="hover" popperClass="option-popper">
<tiny-popover
v-model="state.showPopover"
placement="bottom-end"
trigger="hover"
popperClass="option-popper"
:open-delay="OPEN_DELAY.Default"
>
<template #reference>
<tiny-button class="life-cycle-btn"><svg-icon name="add"></svg-icon>添加页面生命周期 </tiny-button>
<tiny-button class="life-cycle-btn"
><svg-icon name="add"></svg-icon>{{ isPage ? '添加页面生命周期' : '添加区块生命周期' }}
</tiny-button>
</template>
<div class="popover-list">
<ul>
Expand All @@ -19,23 +27,33 @@
</tiny-popover>
</div>
<div class="life-cycle-tips">{{ lifeCycleTips }}</div>
<meta-list-items :optionsList="Object.keys(state.bindLifeCycles)" :draggable="false">
<meta-list-items
:optionsList="Object.keys(state.bindLifeCycles)"
:draggable="false"
:class="{ 'life-cycle-content-list': Object.keys(state.bindLifeCycles).length }"
>
<template #content="{ data }">
<div class="life-cycle-content-item">
{{ data }}
</div>
</template>
<template #operate="{ data }">
<svg-button
class="opt-button"
:hoverBgColor="false"
name="text-source-setting"
@click="openLifeCyclesPanel(data)"
></svg-button>
<svg-button class="opt-button" :hoverBgColor="false" name="delete" @click="deleteLifeCycle(data)"></svg-button>
<svg-button :hoverBgColor="false" name="setting" @click="openLifeCyclesPanel(data)"></svg-button>
<svg-button :hoverBgColor="false" name="delete" @click="deleteLifeCycle(data)"></svg-button>
</template>
</meta-list-items>
<tiny-dialog-box v-model:visible="state.showLifeCyclesDialog" fullscreen :title="state.title" :append-to-body="true">
<tiny-dialog-box v-model:visible="state.showLifeCyclesDialog" fullscreen :show-close="false" :append-to-body="true">
<template #title>
<div class="bind-dialog-title">
<div class="bind-dialog-text">
{{ isPage ? '添加页面生命周期' : '添加区块生命周期' }}
</div>
<div class="bind-dialog-btn">
<tiny-button type="info" @click="editorConfirm">保存</tiny-button>
<svg-button name="close" @click="state.showLifeCyclesDialog = false"></svg-button>
</div>
</div>
</template>
<div v-if="state.showLifeCyclesDialog" class="dialog-content">
<div class="dialog-content-left">
<tiny-search placeholder="搜索" @update:modelValue="searchLifeCyclesList"></tiny-search>
Expand All @@ -62,12 +80,7 @@
</div>
</div>

<template #footer>
<div class="bind-dialog-footer">
<tiny-button @click="state.showLifeCyclesDialog = false">取 消</tiny-button>
<tiny-button type="info" @click="editorConfirm">确 定</tiny-button>
</div>
</template>
<template #footer> </template>
</tiny-dialog-box>
</template>

Expand All @@ -82,6 +95,8 @@ import VueMonaco from './VueMonaco.vue'
import { initCompletion } from '../js/completion'
import { initLinter, lint } from '../js/linter'
import { SvgButton } from '../index'
import { constants } from '@opentiny/tiny-engine-utils'
const { OPEN_DELAY } = constants

export default {
components: {
Expand Down Expand Up @@ -237,7 +252,8 @@ export default {
deleteLifeCycle,
editorConfirm,
editorDidMount,
handleEditorChange
handleEditorChange,
OPEN_DELAY
}
}
}
Expand All @@ -264,10 +280,13 @@ export default {
}
.life-cycle-tips {
color: var(--ti-lowcode-life-cycle-alert-color);
margin: 4px 0 12px 0;
margin: 4px 0 0;
height: 16px;
line-height: 16px;
}
.life-cycle-content-list {
margin-top: 12px;
}
.life-cycle-alert {
color: var(--ti-lowcode-life-cycle-alert-color);
margin-left: 20px;
Expand All @@ -277,9 +296,8 @@ export default {
color: var(--te-common-text-primary);
}
.opt-button {
width: auto;
&:last-child {
margin-right: var(--te-base-space-3x);
margin-right: var(--te-base-space-2x);
}
}

Expand Down Expand Up @@ -358,4 +376,22 @@ export default {
align-items: center;
margin-top: 20px;
}
.bind-dialog-title {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
.bind-dialog-text {
color: var(--te-common-text-primary);
font-size: var(--te-base-font-size-1);
}
.bind-dialog-btn {
display: flex;
align-items: center;
.tiny-button {
margin-right: 8px;
min-width: 40px;
}
}
}
</style>
4 changes: 3 additions & 1 deletion packages/common/component/MetaCodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default {
width: 100%;
display: flex;
text-align: center;
.tiny-button.edit-btn {
.tiny-button.tiny-button.edit-btn {
color: var(--te-common-text-primary);
border-color: var(--te-common-border-default);
flex: 1;
Expand All @@ -291,6 +291,7 @@ export default {
.btn-box {
display: flex;
justify-content: flex-end;
width: 100%;
&:has(.format-btn) {
justify-content: space-between;
}
Expand All @@ -304,6 +305,7 @@ export default {
height: 24px;
padding: 4px;
padding-left: 10px;
padding-right: 12px;
border: 1px solid var(--ti-lowcode-meta-codeEditor-border-color);
border-radius: var(--te-base-border-radius-1);

Expand Down
9 changes: 5 additions & 4 deletions packages/common/component/MetaListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export default {
&.right {
float: left;
text-align: right;
margin-right: 8px;
}
}
}
Expand All @@ -302,17 +303,17 @@ export default {
.icon-close {
position: absolute;
top: 6px;
right: 6px;
right: 10px;
}
}
.add-options {
overflow-y: scroll;
padding: 20px 0 20px 2px;
overflow-y: auto;
max-height: calc(100vh - 94px);
&.top {
margin-bottom: 0;
}
&::-webkit-scrollbar-track-piece {
background: var(--ti-lowcode-toolbar-bg);
background: var(--te-common-bg-container-weaken);
}
&::-webkit-scrollbar {
width: 5px;
Expand Down
Loading
Loading