From ede19f130c1644307a06ca9e6afa12c4df82c98f Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Thu, 12 Nov 2020 20:44:05 +0800 Subject: [PATCH] fix: styles glitches --- demo/menu-options.js | 2 +- src/_base/slot-machine/src/SlotMachine.vue | 4 ++++ src/badge/src/Badge.vue | 1 + src/button/styles/_common.js | 2 +- src/menu/src/styles/themed-base.cssr.js | 12 ++++------ src/pagination/src/Pagination.vue | 18 +++++++-------- src/pagination/src/styles/themed-base.cssr.js | 23 +++++++++---------- .../src/styles/steps/themed-base.cssr.js | 3 +-- 8 files changed, 32 insertions(+), 33 deletions(-) diff --git a/demo/menu-options.js b/demo/menu-options.js index 86515f48c..60e757759 100644 --- a/demo/menu-options.js +++ b/demo/menu-options.js @@ -451,7 +451,7 @@ export default function (instance) { }, { name: 'Dialog', - title: '确认', + title: '对话框', titleExtra: 'Dialog', path: `/${lang}/${theme}/doc` + '/n-dialog' }, diff --git a/src/_base/slot-machine/src/SlotMachine.vue b/src/_base/slot-machine/src/SlotMachine.vue index 45eef036a..fd58a5444 100644 --- a/src/_base/slot-machine/src/SlotMachine.vue +++ b/src/_base/slot-machine/src/SlotMachine.vue @@ -43,6 +43,10 @@ export default { withCssr(styles) ], props: { + theme: { + type: String, + default: undefined + }, value: { type: [Number, String], default: 0 diff --git a/src/badge/src/Badge.vue b/src/badge/src/Badge.vue index b99deaefb..b17e283d9 100644 --- a/src/badge/src/Badge.vue +++ b/src/badge/src/Badge.vue @@ -24,6 +24,7 @@ > +
- diff --git a/src/pagination/src/styles/themed-base.cssr.js b/src/pagination/src/styles/themed-base.cssr.js index 4afb8f185..3166e85c8 100644 --- a/src/pagination/src/styles/themed-base.cssr.js +++ b/src/pagination/src/styles/themed-base.cssr.js @@ -25,10 +25,11 @@ export default c([ vertical-align: middle; ` }, [ + c('*:not(:last-child)', { + marginRight: '8px' + }), cB('select', { - raw: ` - width: unset; - ` + width: 'unset' }), cM('transition-disabled', [ cB('pagination-item', { @@ -48,9 +49,7 @@ export default c([ color: itemTextColor }, [ cB('input', { - raw: ` - margin: 0 8px; - ` + marginLeft: '8px' }, [ cE('placeholder', { left: '6px', @@ -90,11 +89,6 @@ export default c([ color: itemTextColor, fill: itemTextColor }, [ - c('&:not(:last-child)', { - raw: ` - margin-right: 8px; - ` - }), cE('more-icon, arrow-icon', { raw: ` position: relative; @@ -141,7 +135,12 @@ export default c([ c('&:hover', { color: itemTextColorHover }, [ - cM('fast-backward, fast-forward', [ + cM('backward, forward', { + color: itemTextColor + }), + cM('fast-backward, fast-forward', { + color: itemTextColor + }, [ cE('more-icon', { raw: ` display: none; diff --git a/src/steps/src/styles/steps/themed-base.cssr.js b/src/steps/src/styles/steps/themed-base.cssr.js index a88f7e661..677daf6ec 100644 --- a/src/steps/src/styles/steps/themed-base.cssr.js +++ b/src/steps/src/styles/steps/themed-base.cssr.js @@ -210,8 +210,7 @@ function statusStyle (props, status) { color: props[createKey('indicatorTextColor', status)] }), cB('icon', { - fill: props[createKey('indicatorTextColor', status)], - stroke: props[createKey('indicatorTextColor', status)] + color: props[createKey('indicatorTextColor', status)] }) ]) ])