mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +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',
|
buttonWidthLarge: '28px',
|
||||||
buttonIconSizeSmall: '14px',
|
buttonIconSizeSmall: '14px',
|
||||||
buttonIconSizeMedium: '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 { changeColor } from 'seemly'
|
||||||
import { baseDark } from '../../_styles/base'
|
import { baseDark } from '../../_styles/base'
|
||||||
import { iconDark } from '../../icon/styles'
|
import { iconDark } from '../../icon/styles'
|
||||||
import inputCommonVariables from '../../input/styles/_common'
|
import commonVars from './_common'
|
||||||
import inputNumberCommonVariables from './_common'
|
|
||||||
|
|
||||||
export default create({
|
export default create({
|
||||||
name: 'InputNumber',
|
name: 'InputNumber',
|
||||||
@ -40,8 +39,7 @@ export default create({
|
|||||||
const buttonTextColorHover = primaryColorHover
|
const buttonTextColorHover = primaryColorHover
|
||||||
const buttonTextColorPressed = primaryColorPressed
|
const buttonTextColorPressed = primaryColorPressed
|
||||||
return {
|
return {
|
||||||
...inputCommonVariables,
|
...commonVars,
|
||||||
...inputNumberCommonVariables,
|
|
||||||
borderRadius,
|
borderRadius,
|
||||||
// default
|
// default
|
||||||
buttonColorDisabled,
|
buttonColorDisabled,
|
||||||
|
@ -2,8 +2,7 @@ import create from '../../_styles/utils/create-component-base'
|
|||||||
import { changeColor } from 'seemly'
|
import { changeColor } from 'seemly'
|
||||||
import { baseLight } from '../../_styles/base'
|
import { baseLight } from '../../_styles/base'
|
||||||
import { iconLight } from '../../icon/styles'
|
import { iconLight } from '../../icon/styles'
|
||||||
import inputCommonVariables from '../../input/styles/_common'
|
import commonVars from './_common'
|
||||||
import inputNumberCommonVariables from './_common'
|
|
||||||
|
|
||||||
export default create({
|
export default create({
|
||||||
name: 'InputNumber',
|
name: 'InputNumber',
|
||||||
@ -40,8 +39,7 @@ export default create({
|
|||||||
const buttonTextColorPressed = primaryColorPressed
|
const buttonTextColorPressed = primaryColorPressed
|
||||||
const colorFocus = color
|
const colorFocus = color
|
||||||
return {
|
return {
|
||||||
...inputCommonVariables,
|
...commonVars,
|
||||||
...inputNumberCommonVariables,
|
|
||||||
borderRadius,
|
borderRadius,
|
||||||
// default
|
// default
|
||||||
buttonColorDisabled,
|
buttonColorDisabled,
|
||||||
|
Loading…
Reference in New Issue
Block a user