From ea73bff42f3939bff5856a6922ae1bd51e338d7b Mon Sep 17 00:00:00 2001 From: betterdancing Date: Fri, 8 Nov 2024 14:26:30 +0800 Subject: [PATCH 1/3] feat(style-panel): modify this style-panel styles according to the design craft (#853) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(style-panel): 根据设计稿修改样式面板的UI * feat(style-panel): 根据设计稿修改样式面板的UI * feat(style-panel): 根据设计稿修改样式面板的UI * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): modify this style-panel styles according to the design craft * feat(style-panel): add style-panel can be collapsed or expanded * feat(style-panel): modify tabGroupComponent style error; * feat(style-panel): 对其设计稿后修改部分样式 * feat(style-pane): 修复部分样式颜色和间距问题 * feat(style-panel): 修复eslint报错问题 * feat(style-panel): 修改review意见 * feat(style-panel): 修复AI的review意见 * feat(style-panel): use color variables insteads color values; * feat(style-panel): fix AI reviews; * feat(style-panel): fix AI reviews * feat(style-panel): 修改颜色变量--ti-base系列为--te-base * feat(style-panel): fix item width error * feat(style-panel): fix review error * feat(style-panel): use buttonGroup & dorpDown replace tabsGroupComponent elements; * feat(style-panel): adjust the spacing font to non-italic, the spacing of the ModalMask pop-window to 20px, and the closing icon to 16px; * feat(style-panel): fix the color variables; * feat(style-panel): Modified review comments: color variables; numeric component; optimized; * feat(style-panel): Resolved the remainning styles issues * feat(style-panel): fix some reviews * feat(style-panel): Resolved the remainning styles issues * feat(style-panel): fix some reviews * feat(style-panel): fix some reviews * feat(style-panel): fix some reviews * feat(style-panel): add style panel collapsed or expand icon * Create style-panel-expand.svg feat(style-panel): add expand icon of style collapsed tab * Create style-pabel-collapsed.svg feat(style-panel): add collapsed icon of style panel collapsed tabs * Delete packages/design-core/assets/style-pabel-collapsed.svg * Create style-panel-collapsed.svg * feat(style-panel): modify some icon color * feat(style-panel): fix some reviews * feat(style-panel): fix some reviews * feat(style-panel): fix some reviews * feat(style-panel): fix some reviews --- packages/common/component/MetaCodeEditor.vue | 10 +- .../color-configurator/ColorConfigurator.vue | 8 +- packages/configurator/src/index.js | 2 + .../NumberConfigurator.vue | 11 +- .../SliderConfigurator.vue | 9 +- .../TabsGroupConfigurator.vue | 297 ++++++++++++ .../assets/style-panel-collapsed.svg | 8 + .../design-core/assets/style-panel-expand.svg | 7 + packages/layout/src/DesignSettings.vue | 26 +- packages/settings/styles/src/Main.vue | 32 +- .../components/background/BackgroundGroup.vue | 77 ++- .../background/BackgroundImageGradient.vue | 40 +- .../background/BackgroundImageSetting.vue | 84 ++-- .../components/background/ImageSetting.vue | 200 ++++---- .../components/background/LinearGradient.vue | 6 +- .../components/background/PositionOrigin.vue | 84 ++-- .../components/background/RadialGradient.vue | 39 +- .../src/components/border/BorderGroup.vue | 65 ++- .../components/classNamesContainer/index.vue | 22 +- .../src/components/effects/EffectGroup.vue | 173 ++++--- .../src/components/inputs/InputSelect.vue | 11 +- .../src/components/inputs/ModalMask.vue | 55 ++- .../src/components/inputs/NumericSelect.vue | 66 ++- .../src/components/inputs/ResetButton.vue | 6 +- .../styles/src/components/layout/FlexBox.vue | 2 - .../src/components/layout/LayoutGroup.vue | 69 +-- .../src/components/position/PositionGroup.vue | 15 +- .../styles/src/components/size/SizeGroup.vue | 173 ++++--- .../src/components/spacing/SpacingGroup.vue | 214 ++++----- .../src/components/spacing/SpacingSetting.vue | 8 +- .../components/typography/TypographyGroup.vue | 446 +++++++++++------- packages/settings/styles/src/js/cssType.js | 29 +- .../settings/styles/src/js/styleProperty.js | 48 +- packages/theme/base/src/common.less | 1 + packages/theme/dark/variable.less | 2 +- packages/theme/light/base.less | 1 + packages/theme/light/setting-style.less | 3 + packages/theme/light/variable.less | 2 +- 38 files changed, 1466 insertions(+), 885 deletions(-) create mode 100644 packages/configurator/src/tabs-group-configurator/TabsGroupConfigurator.vue create mode 100644 packages/design-core/assets/style-panel-collapsed.svg create mode 100644 packages/design-core/assets/style-panel-expand.svg diff --git a/packages/common/component/MetaCodeEditor.vue b/packages/common/component/MetaCodeEditor.vue index 0c97ce569..9d5caceb7 100644 --- a/packages/common/component/MetaCodeEditor.vue +++ b/packages/common/component/MetaCodeEditor.vue @@ -2,7 +2,9 @@
- {{ value === '' ? buttonLabel : value }} + {{ + value === '' ? buttonLabel : value + }}
@@ -298,7 +300,7 @@ export default { justify-content: space-between; align-items: center; width: 100%; - height: 32px; + height: 24px; padding: 4px; border: 1px solid var(--ti-lowcode-meta-codeEditor-border-color); border-radius: 6px; @@ -322,6 +324,10 @@ export default { color: var(--ti-lowcode-common-text-main-color); } } + +.text-line-clamp { + -webkit-line-clamp: 1; +} :deep(.tiny-dialog-box__header) { padding-bottom: 15px; } diff --git a/packages/configurator/src/color-configurator/ColorConfigurator.vue b/packages/configurator/src/color-configurator/ColorConfigurator.vue index 42542c7c3..d4e32ce47 100644 --- a/packages/configurator/src/color-configurator/ColorConfigurator.vue +++ b/packages/configurator/src/color-configurator/ColorConfigurator.vue @@ -2,7 +2,7 @@
@@ -10,7 +10,7 @@ + + diff --git a/packages/design-core/assets/style-panel-collapsed.svg b/packages/design-core/assets/style-panel-collapsed.svg new file mode 100644 index 000000000..4909844dd --- /dev/null +++ b/packages/design-core/assets/style-panel-collapsed.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/packages/design-core/assets/style-panel-expand.svg b/packages/design-core/assets/style-panel-expand.svg new file mode 100644 index 000000000..90ed6ec7b --- /dev/null +++ b/packages/design-core/assets/style-panel-expand.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/packages/layout/src/DesignSettings.vue b/packages/layout/src/DesignSettings.vue index 993ef02a7..8ad765762 100644 --- a/packages/layout/src/DesignSettings.vue +++ b/packages/layout/src/DesignSettings.vue @@ -2,10 +2,15 @@
- +
+
+ + + +
@@ -29,10 +34,14 @@ export default { const { layoutState } = useLayout() const activating = computed(() => layoutState.settings.activating) const showMask = ref(true) + const isCollapsed = ref(false) + const settingIcon = computed(() => (isCollapsed.value ? 'style-panel-collapsed' : 'style-panel-expand')) return { showMask, + isCollapsed, activating, + settingIcon, layoutState } } @@ -49,12 +58,23 @@ export default { padding-top: 12px; background-color: var(--ti-lowcode-setting-panel-bg-color); + .tabs-setting { + position: absolute; + top: 9px; + right: 18px; + line-height: 26px; + color: var(--te-common-icon-secondary); + cursor: pointer; + } .tiny-tabs { height: 100%; } :deep(.tiny-tabs) { display: flex; flex-direction: column; + .tiny-tabs__header .tiny-tabs__nav { + width: 60%; + } .tiny-tabs__nav-scroll { margin-left: 12px; .tiny-tabs__active-bar { @@ -69,10 +89,14 @@ export default { padding: 0; margin: 0; } + .tiny-tabs__nav.is-show-active-bar .tiny-tabs__item { + margin-right: 8px; + } .tiny-tabs__item { flex: 1; background-color: var(--ti-lowcode-setting-panel-bg-color); color: var(--ti-lowcode-setting-panel-tabs-item-title-color); + margin-right: 5px; &:hover { color: var(--ti-lowcode-setting-panel-tabs-item-title-hover-color); } diff --git a/packages/settings/styles/src/Main.vue b/packages/settings/styles/src/Main.vue index fd0a038cf..2ac04daea 100644 --- a/packages/settings/styles/src/Main.vue +++ b/packages/settings/styles/src/Main.vue @@ -27,7 +27,7 @@
- + @@ -65,7 +65,7 @@ diff --git a/packages/settings/styles/src/components/typography/TypographyGroup.vue b/packages/settings/styles/src/components/typography/TypographyGroup.vue index ee508b26b..9d6c5ac13 100644 --- a/packages/settings/styles/src/components/typography/TypographyGroup.vue +++ b/packages/settings/styles/src/components/typography/TypographyGroup.vue @@ -1,26 +1,17 @@