Skip to content

数字输入框

基于 naive-ui 的input-number二次封装。

INFO

无需引入,可直接使用

Usage

vue
<template>
  <w-input-number v-model:value="inputNumberValue" />
</template>

Props

名称类型默认值说明
suffixstring''prop 形式的 suffix(naive 默认提供的是 slot)

Type

ts
import type { InputNumberProps } from 'naive-ui'

import { props } from './props'

type ExtendProps = Partial<ExtractPropTypes<typeof props>>

export interface WInputNumberProps extends InputNumberProps, ExtendProps {}

Released under the MIT License.