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 #916

Merged
merged 41 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
41 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
dcc5516
Merge remote-tracking branch 'open/refactor/develop' into refactor/de…
xuanlid Dec 11, 2024
5ace383
Merge remote-tracking branch 'open/refactor/develop' into refactor/de…
xuanlid Dec 16, 2024
30f3967
fix: Modify review comments
xuanlid Dec 17, 2024
b606c25
fix: Modify review comments
xuanlid Dec 17, 2024
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
9 changes: 7 additions & 2 deletions packages/common/component/BlockDeployDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<tiny-form
ref="deployBlockRef"
label-position="left"
label-width="100px"
label-width="84px"
label-align
:model="formState"
:rules="formRules"
Expand All @@ -24,7 +24,7 @@
<tiny-form-item label="保存设置" prop="needToSave" class="form-item-save">
<tiny-checkbox v-model="formState.needToSave">发布成功后保存最新数据</tiny-checkbox>
</tiny-form-item>
<tiny-form-item label="schema比对">
<tiny-form-item label="schema比对" class="schema-compare">
<tiny-button class="compare-button" type="text" @click="changeCompare"> 查看本次发布的改动点 </tiny-button>
<tiny-popover
placement="top"
Expand Down Expand Up @@ -254,6 +254,11 @@ export default {
line-height: 0;
}
}
.schema-compare {
:deep(.tiny-button) {
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
padding-left: 0;
}
}
.compare-button {
padding-left: 0;
padding-right: 8px;
Expand Down
42 changes: 14 additions & 28 deletions packages/common/component/PluginBlockList.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<template>
<div v-if="blockStyle === BlockStyles.Mini" class="header">
<div class="col-checkbox"></div>
<div class="col-name">区块名称</div>
<div class="col-time">创建时间</div>
<div class="col-created-by">创建人</div>
</div>
<ul
v-if="state.data.length || showAddButton"
:class="[
Expand Down Expand Up @@ -45,13 +39,6 @@
<div v-if="blockStyle === BlockStyles.List" class="item-description">{{ item.description }}</div>
</div>

<div v-if="blockStyle === BlockStyles.Mini" class="cell cell-time">
<span>{{ format(item.created_at, 'yyyy/MM/dd hh:mm:ss') }}</span>
</div>
<div v-if="blockStyle === BlockStyles.Mini" class="cell cell-created-by">
<span>{{ users.find((user) => user.id === item.createdBy)?.name || item.id }}</span>
</div>

<div v-if="item.isShowProgress" class="progress-bar">
<tiny-progress
:text-inside="true"
Expand All @@ -66,20 +53,16 @@
<div v-if="isBlockManage" class="block-detail">
<div class="setting-menu" @mouseover.stop="handleSettingMouseOver" @mouseleave="handleBlockItemLeave">
<ul class="list">
<tiny-tooltip content="编辑" placement="top">
<li class="list-item" @mousedown.stop.left="editBlock({ event: $event, item, index })">
<svg-button class="list-item-svg" name="to-edit"> </svg-button>
</li>
</tiny-tooltip>
<tiny-tooltip content="设置" placement="top">
<li
class="list-item"
@mouseover.stop="iconSettingMove"
@mousedown.stop.prevent="iconClick({ event: $event, item, index })"
>
<svg-button class="list-item-svg" name="text-source-setting"> </svg-button>
</li>
</tiny-tooltip>
<li class="list-item" @mousedown.stop.left="editBlock({ event: $event, item, index })">
<svg-button class="list-item-svg" name="to-edit"> </svg-button>
</li>
<li
class="list-item"
@mouseover.stop="iconSettingMove"
@mousedown.stop.prevent="iconClick({ event: $event, item, index })"
>
<svg-button class="list-item-svg" name="text-source-setting"> </svg-button>
</li>
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</div>
</div>
Expand Down Expand Up @@ -507,7 +490,7 @@ export default {
margin-left: 8px;
}
.item-text {
width: calc(35% - 62px);
width: 50%;
}
.publish-flag {
position: static;
Expand All @@ -527,6 +510,9 @@ export default {
}
}
}
&:hover {
background-color: var(--te-common-bg-container);
}
}
&:nth-child(even) {
border-right: 0;
Expand Down
3 changes: 3 additions & 0 deletions packages/layout/src/DesignPlugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ export default {
:deep(.tiny-tabs__nav.is-show-active-bar) .tiny-tabs__item {
margin-right: 0;
}
:deep(.tiny-tabs.tiny-tabs .tiny-tabs__header .tiny-tabs__nav-wrap-not-separator::after) {
background-color: transparent;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/layout/src/DesignSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
}

.tiny-tabs__item__title {
padding-bottom: 2px;
padding-bottom: 6px;
}
}

Expand Down
20 changes: 9 additions & 11 deletions packages/plugins/block/src/BlockGroupArrange.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,23 @@ export default {
<style lang="less" scoped>
.footer-toolbar {
.icon-wrap {
width: 20px;
height: 20px;
color: var(--ti-lowcode-text-color);
width: 24px;
height: 24px;
color: var(--te-common-icon-secondary);
font-size: 16px;
border-radius: 2px;
border-radius: 4px;
background-color: var(--te-common-bg-container);
border: 1px solid var(--te-common-bg-container);
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
cursor: pointer;
display: inline-flex;
justify-content: center;
align-items: center;
transition: 0.3s;
&:hover {
color: var(--ti-lowcode-common-primary-color);
}
&.active {
color: var(--ti-lowcode-common-primary-color);
border: 1px solid var(--te-common-border-active);
color: var(--te-common-text-primary);
background-color: var(--te-common-bg-default);
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
}
}
.icon-wrap + .icon-wrap {
margin-left: 8px;
}
}
</style>
2 changes: 1 addition & 1 deletion packages/plugins/block/src/CategoryEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
show-message
:model="formData"
:rules="rules"
label-width="80px"
label-width="64px"
:label-align="true"
label-position="left"
validate-type="text"
Expand Down
28 changes: 28 additions & 0 deletions packages/plugins/block/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,23 @@ export default {
right: 0;
padding: 10px 16px;
background-color: var(--ti-lowcode-component-search-bg);
box-shadow: 0 -2px 12px 0 rgba(0, 0, 0, 0.16);
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
color: var(--ti-lowcode-component-block-list-item-color);
display: flex;
justify-content: space-between;
:deep(.tiny-dropdown) {
color: var(--te-common-text-primary);
.tiny-dropdown__trigger:not(.tiny-dropdown__caret-button):not(.is-disabled):hover {
color: var(--te-common-text-primary);
}
.tiny-dropdown__suffix-inner {
color: var(--te-common-icon-secondary);
height: 10px;
}
}
:deep(.tiny-dropdown-menu) {
padding: var(--te-common-vertical-form-label-spacing) 0;
}
.footer-layout {
font-size: 12px;
color: var(--ti-lowcode-component-block-list-item-color);
Expand All @@ -511,6 +525,17 @@ export default {
height: 24px;
line-height: 24px;
}
:deep(.tiny-dropdown-item) {
&:not(.is-disabled):active,
&:not(.is-disabled):hover,
&:focus {
background-color: var(--te-common-bg-container);
color: var(--te-common-text-primary);
}
}
:deep(.tiny-dropdown-menu.tiny-popper[x-placement^='top']) {
padding: var(--te-common-vertical-form-label-spacing) 0;
}
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
</style>

<style lang="less">
Expand Down Expand Up @@ -551,4 +576,7 @@ export default {
margin-top: 22px;
}
}
.tiny-dropdown-menu.tiny-dropdown-menu {
padding: var(--te-common-vertical-form-label-spacing) 0;
}
</style>
4 changes: 2 additions & 2 deletions packages/plugins/block/src/SaveNewBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:model="formData"
:rules="rules"
ref="formRef"
label-width="120px"
label-width="64px"
:label-align="true"
label-position="left"
validate-type="text"
Expand All @@ -24,7 +24,7 @@
<tiny-form-item label="区块ID" prop="label">
<TinyInput v-model="formData.label" placeholder="请输入区块ID"></TinyInput>
</tiny-form-item>
<tiny-form-item label="请选择区块分类" prop="group">
<tiny-form-item label="区块分类" prop="group">
<tiny-select v-model="formData.group" :options="categoryList" placeholder="请选择" @change="changeCategory">
</tiny-select>
</tiny-form-item>
Expand Down
8 changes: 4 additions & 4 deletions packages/plugins/bridge/src/BridgeSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,11 @@ export default {
}
.code-preview {
font-size: 14px;
font-size: 12px;
line-height: 20px;
color: var(--ti-lowcode-birdge-code-preview-color);
background-color: var(--ti-lowcode-birdge-code-preview-bg-color);
border-radius: 6px;
background: var(--te-common-bg-container);
color: var(--te-common-text-weaken);
border-radius: 4px;
& .pre-title {
font-family: Microsoft YaHei;
Expand Down
17 changes: 15 additions & 2 deletions packages/plugins/datasource/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
></svg-button>
</template>
<template #content>
<tiny-button class="add-data-source" @click="openDataSourceFormPanel()"> 添加数据源 </tiny-button>
<tiny-button class="add-data-source" @click="openDataSourceFormPanel()">
<svg-icon name="add" class="add-data-source-icon"></svg-icon>
<span class="add-data-source-text">添加数据源</span>
</tiny-button>
<data-source-list @edit="openDataSourceFormPanel"></data-source-list>
</template>
</plugin-panel>
Expand Down Expand Up @@ -155,11 +158,21 @@ export default {
}
.add-data-source {
margin: 0 12px 12px 12px;
height: 24px;
color: var(--ti-lowcode-data-source-color);

&:hover {
color: var(--ti-lowcode-meta-codeEditor-hover-color);
border-color: var(--ti-lowcode-meta-codeEditor-border-hover-color);
border-color: var(--te-common-border-hover);
}
.add-data-source-icon {
font-size: 16px;
color: var(--te-common-icon-secondary);
margin-right: 4px;
vertical-align: sub;
}
.add-data-source-text {
display: inline-block;
}
}
:deep(.help-box) {
Expand Down
36 changes: 27 additions & 9 deletions packages/plugins/i18n/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
</tiny-input>
</div>
<div class="btn-box">
<tiny-button @click="openEditor($event, {})"><icon-plus class="btn-icon"></icon-plus>添加词条</tiny-button>
<tiny-button @click="openEditor($event, {})">
<svg-icon name="add" class="btn-icon"></svg-icon>添加词条
</tiny-button>
<tiny-button class="middle-btn" @click="batchDelete" :disabled="!selectedRowLength"
><svg-icon class="btn-icon" name="delete"></svg-icon>删除</tiny-button
>
Expand Down Expand Up @@ -124,7 +126,7 @@
import { computed, ref, watchEffect, reactive, onMounted, nextTick, resolveComponent } from 'vue'
import useClipboard from 'vue-clipboard3'
import { Grid, GridColumn, Input, Popover, Button, FileUpload, Loading, Tooltip, Select } from '@opentiny/vue'
import { iconLoadingShadow, iconPlus, iconUpload } from '@opentiny/vue-icon'
import { iconLoadingShadow, iconUpload } from '@opentiny/vue-icon'
xuanlid marked this conversation as resolved.
Show resolved Hide resolved
import { PluginPanel, SearchEmpty } from '@opentiny/tiny-engine-common'
import { useTranslate, useModal, useHelp, getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register'
import { getMergeMeta } from '@opentiny/tiny-engine-meta-register'
Expand All @@ -143,7 +145,6 @@ export default {
TinySelect: Select,
TinyFileUpload: FileUpload,
SearchEmpty,
IconPlus: iconPlus(),
IconUpload: iconUpload()
},
setup() {
Expand Down Expand Up @@ -432,6 +433,9 @@ export default {
</script>

<style lang="less" scoped>
.plugin-panel-i18n {
box-shadow: 6px 0px 3px 0px rgba(0, 0, 0, 0.05);
}
.stripe-tiny-grid {
word-wrap: break-word;
#empty-loading-box {
Expand Down Expand Up @@ -468,6 +472,14 @@ export default {
.tiny-select {
width: 210px;
}
:deep(.tiny-input) {
.tiny-input__prefix {
line-height: 1;
}
&.tiny-input-prefix .tiny-input__inner {
padding: 0 8px 0 26px;
}
}
}

.btn-box {
Expand All @@ -478,21 +490,23 @@ export default {
display: flex;
align-items: center;
.btn-icon {
margin-right: 6px;
color: var(--ti-lowcode-i18n-icon-color);
font-size: 16px;
color: var(--te-common-icon-secondary);
margin-right: 4px;
}
.middle-btn {
margin-left: 0;
}
:deep(.tiny-file-upload) {
margin-right: 8px;
:deep(.tiny-button.is-disabled) {
background-color: var(--te-common-bg-disabled);
color: var(--te-common-text-disabled);
}
:deep(.tiny-button--default) {
height: 24px;
line-height: 24px;
display: flex;
align-items: center;
border: 1px solid var(--ti-lowcode-i18n-button-border-color);
border: 1px solid var(--te-common-border-prompt);
border-radius: 4px;
}
span {
Expand All @@ -510,7 +524,7 @@ export default {
}
.download-btn {
cursor: pointer;
text-decoration: underline;
text-decoration: none;
display: inline-block;
font-size: 12px;
text-align: left;
Expand All @@ -522,6 +536,9 @@ export default {
.tiny-button.tiny-button--text {
color: var(--ti-lowcode-base-text-color);
}
&:hover {
text-decoration: underline;
}
}
}

Expand Down Expand Up @@ -574,6 +591,7 @@ export default {
display: flex;
justify-content: space-between;
:deep(.icon) {
color: var(--te-common-icon-secondary);
svg {
font-size: 16px;
}
Expand Down
Loading
Loading