mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
refactor(input-number): use seperate style file, not from input
This commit is contained in:
parent
35d56075eb
commit
9dd55561dd
@ -7,5 +7,9 @@ export default {
|
||||
buttonWidthLarge: '28px',
|
||||
buttonIconSizeSmall: '14px',
|
||||
buttonIconSizeMedium: '14px',
|
||||
buttonIconSizeLarge: '14px'
|
||||
buttonIconSizeLarge: '14px',
|
||||
heightTiny: '22px',
|
||||
heightSmall: '28px',
|
||||
heightMedium: '34px',
|
||||
heightLarge: '40px'
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user