From 9bf829fdf27090e2b243b4b4cc5cf4cfaedd04a3 Mon Sep 17 00:00:00 2001 From: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> Date: Tue, 26 Jul 2022 17:17:07 +0800 Subject: [PATCH] =?UTF-8?q?styles=EF=BC=9A=E4=BF=AE=E5=A4=8Dcrud=20headerT?= =?UTF-8?q?oolbart=E5=8F=B3=E5=AF=B9=E9=BD=90=E6=8C=89=E9=92=AE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E9=97=B4=E8=B7=9D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-ui/scss/components/_crud.scss | 12 ++++++++++-- packages/amis-ui/scss/components/_crud2.scss | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/amis-ui/scss/components/_crud.scss b/packages/amis-ui/scss/components/_crud.scss index c6753eb0c..9146ace31 100644 --- a/packages/amis-ui/scss/components/_crud.scss +++ b/packages/amis-ui/scss/components/_crud.scss @@ -74,7 +74,11 @@ display: inline-flex; align-items: center; - &:not(:first-child) { + &--left:not(:first-child) { + margin-left: var(--Crud-toolbar-gap); + } + + &--right:not(:last-child) { margin-left: var(--Crud-toolbar-gap); } @@ -133,7 +137,11 @@ height: var(--Crud-toolbar-height); vertical-align: middle; - &:not(:first-child) { + &--left:not(:first-child) { + margin-left: var(--Crud-toolbar-gap); + } + + &--right:not(:last-child) { margin-left: var(--Crud-toolbar-gap); } diff --git a/packages/amis-ui/scss/components/_crud2.scss b/packages/amis-ui/scss/components/_crud2.scss index ace79edc7..72ae0aa2c 100644 --- a/packages/amis-ui/scss/components/_crud2.scss +++ b/packages/amis-ui/scss/components/_crud2.scss @@ -70,7 +70,11 @@ display: inline-flex; align-items: center; - &:not(:first-child) { + &--left:not(:first-child) { + margin-left: var(--Crud-toolbar-gap); + } + + &--right:not(:last-child) { margin-left: var(--Crud-toolbar-gap); } @@ -125,7 +129,11 @@ height: var(--Crud-toolbar-height); vertical-align: middle; - &:not(:first-child) { + &--left:not(:first-child) { + margin-left: var(--Crud-toolbar-gap); + } + + &--right:not(:last-child) { margin-left: var(--Crud-toolbar-gap); }