Skip to content

引入组件

局部引入

ts
// parent.vue
const FNumberInput = defineAsyncComponent(() => import('@/components/formaui/f-number-input/f-number-input.vue'))

基础用法

html
<f-number-input v-model="inputValue"></f-number-input>
ts
import { ref } from 'vue'
const inputValue = ref<string>('')

插槽

名称说明
--

属性

名称类型说明默认值
lengthnumber输入框个数6
bgColorstring自定义背景颜色transparent
widthstring自定义输入框宽度80rpx
height string自定义输入框高度80rpx
fontSizestring自定义字体大小32rpx
isPwdboolean是否为密码输入框false

事件

事件名说明回调参数
---