Amount 带后缀输入框
页面展示

<template>
<NwAmount unit="元" label="金额" :decimalPlaces="2" v-model="data.num" @update:value="updateValue"/>
</template>
<script setup lang="ts">
import { NwAmount } from "@platform-lib/base";
const data = ref({});
const updateValue = (d:number) =>{
console.log(d,'--=-=-d-=-==--=')
}
</script>
Attributes 属性
参数 | 说明 | 类型 | 可选项 | 默认值 |
|---|---|---|---|---|
unit | 单位 | string | – | 元 |
label | 名称 | string | – | "" |
decimalPlaces | 小数位 | number | – | 2 |
NwDictionary Events 事件
名称 | 参数 | 描述 |
|---|---|---|
update:value | (d: number) 变动时触发的参数;d:当前输入的值 |
Last modified: 20 一月 2025