# 6、discount 折扣输入

# 万能表单使用方式

{ key: "discount", title: "折扣类型", type: "discount" },
1

# API

# 公共属性

点击查看『公共属性』 (opens new window)

# 组件属性

参数 说明 类型 默认值 可选值
max 最大输入 Number - -
rightText 右侧文字后缀 String -
precision 精度(小数点位数) Number 2 -
readonly 原生属性,是否只读 boolean false true

# 万能表格使用方式

{ key: "discount", title: "折扣类型", type: "discount", width: 100 },
1

# template 使用方式

<vk-data-input-discount v-model="form1.value1" placeholder="请输入折扣" :precision="2" width="300px"></vk-data-input-discount>
1