This commit is contained in:
oneao committed 2026-10-08 22:38:34 +08:00
1 parent f572dce2f6
commit e99a9fb274
356 files changed
+28877 -1055

No files matched your search

@@ -0,0 +1,16 @@
<script setup lang="ts">
// type="number":只允许数字与小数点,失焦时把字符串提交为 Number
import { ref } from 'vue'
import { G3Input } from '@g3soft/ui'
const amount = ref<string | number>(12.5)
</script>
<template>
<div style="width: 260px">
<G3Input v-model="amount" type="number" placeholder="请输入金额" />
<p style="margin: 8px 0 0; font-size: 13px; color: #6b7280">
提交值:{{ amount }},类型:{{ typeof amount }}
</p>
</div>
</template>