refactor(input-number): use seperate style file, not from input

This commit is contained in:
07akioni 2020-12-16 11:19:01 +08:00
parent 35d56075eb
commit 9dd55561dd
3 changed files with 9 additions and 9 deletions

View File

@ -7,5 +7,9 @@ export default {
buttonWidthLarge: '28px',
buttonIconSizeSmall: '14px',
buttonIconSizeMedium: '14px',
buttonIconSizeLarge: '14px'
buttonIconSizeLarge: '14px',
heightTiny: '22px',
heightSmall: '28px',
heightMedium: '34px',
heightLarge: '40px'
}

View File

@ -2,8 +2,7 @@ import create from '../../_styles/utils/create-component-base'
import { changeColor } from 'seemly'
import { baseDark } from '../../_styles/base'
import { iconDark } from '../../icon/styles'
import inputCommonVariables from '../../input/styles/_common'
import inputNumberCommonVariables from './_common'
import commonVars from './_common'
export default create({
name: 'InputNumber',
@ -40,8 +39,7 @@ export default create({
const buttonTextColorHover = primaryColorHover
const buttonTextColorPressed = primaryColorPressed
return {
...inputCommonVariables,
...inputNumberCommonVariables,
...commonVars,
borderRadius,
// default
buttonColorDisabled,

View File

@ -2,8 +2,7 @@ import create from '../../_styles/utils/create-component-base'
import { changeColor } from 'seemly'
import { baseLight } from '../../_styles/base'
import { iconLight } from '../../icon/styles'
import inputCommonVariables from '../../input/styles/_common'
import inputNumberCommonVariables from './_common'
import commonVars from './_common'
export default create({
name: 'InputNumber',
@ -40,8 +39,7 @@ export default create({
const buttonTextColorPressed = primaryColorPressed
const colorFocus = color
return {
...inputCommonVariables,
...inputNumberCommonVariables,
...commonVars,
borderRadius,
// default
buttonColorDisabled,