diff --git a/src/uni_modules/wot-design-uni/components/wd-button/index.scss b/src/uni_modules/wot-design-uni/components/wd-button/index.scss index e4348295..e3f404a1 100644 --- a/src/uni_modules/wot-design-uni/components/wd-button/index.scss +++ b/src/uni_modules/wot-design-uni/components/wd-button/index.scss @@ -42,9 +42,7 @@ @include b(button) { position: relative; - display: inline-flex; - justify-content: center; - align-items: center; + display: inline-block; outline: none; -webkit-appearance: none; outline: none; @@ -79,6 +77,13 @@ border-radius: 0; } + @include e(content) { + display: flex; + justify-content: center; + align-items: center; + height: 100%; + } + @include m(active) { &:active::before { opacity: 0.15; @@ -147,9 +152,10 @@ padding: $-button-medium-padding; border-radius: $-button-medium-radius; font-size: $-button-medium-fs; + min-width: 120px; + @include when(round) { - min-width: 120px; @include when(icon) { min-width: 0; @@ -280,7 +286,7 @@ } @include when(block) { - display: flex; + display: block; } @include when(icon) { diff --git a/src/uni_modules/wot-design-uni/components/wd-button/wd-button.vue b/src/uni_modules/wot-design-uni/components/wd-button/wd-button.vue index 90bbd223..27317a6f 100644 --- a/src/uni_modules/wot-design-uni/components/wd-button/wd-button.vue +++ b/src/uni_modules/wot-design-uni/components/wd-button/wd-button.vue @@ -38,11 +38,13 @@ @chooseavatar="handleChooseavatar" @agreeprivacyauthorization="handleAgreePrivacyAuthorization" > - - + + + + + + - -