From 80fa8b74e83c0abbb54adbc66c9459044de5ad2c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 16 May 2026 22:46:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=A1=A5=E9=BD=90=20antd=20?= =?UTF-8?q?=E7=9A=84=20component:=20'InputNumber',=20=E7=9A=84=20class=20f?= =?UTF-8?q?ull=20=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/ai/chat/index/data.ts | 3 +++ .../web-antd/src/views/ai/knowledge/document/data.ts | 2 ++ .../src/views/ai/knowledge/knowledge/data.ts | 2 ++ apps/web-antd/src/views/ai/model/chatRole/data.ts | 1 + apps/web-antd/src/views/ai/model/model/data.ts | 4 ++++ apps/web-antd/src/views/bpm/category/data.ts | 1 + apps/web-antd/src/views/crm/business/data.ts | 3 +++ apps/web-antd/src/views/crm/contract/config/data.ts | 1 + apps/web-antd/src/views/crm/contract/data.ts | 3 +++ .../src/views/crm/customer/limitConfig/data.ts | 1 + .../src/views/crm/customer/poolConfig/data.ts | 3 +++ apps/web-antd/src/views/crm/product/data.ts | 1 + apps/web-antd/src/views/crm/receivable/data.ts | 1 + apps/web-antd/src/views/crm/receivable/plan/data.ts | 2 ++ apps/web-antd/src/views/erp/finance/account/data.ts | 1 + apps/web-antd/src/views/erp/finance/payment/data.ts | 3 +++ apps/web-antd/src/views/erp/finance/receipt/data.ts | 3 +++ apps/web-antd/src/views/erp/product/category/data.ts | 1 + apps/web-antd/src/views/erp/product/product/data.ts | 5 +++++ apps/web-antd/src/views/erp/purchase/in/data.ts | 5 +++++ apps/web-antd/src/views/erp/purchase/order/data.ts | 4 ++++ apps/web-antd/src/views/erp/purchase/return/data.ts | 5 +++++ .../web-antd/src/views/erp/purchase/supplier/data.ts | 2 ++ apps/web-antd/src/views/erp/sale/customer/data.ts | 2 ++ apps/web-antd/src/views/erp/sale/order/data.ts | 4 ++++ apps/web-antd/src/views/erp/sale/out/data.ts | 5 +++++ apps/web-antd/src/views/erp/sale/return/data.ts | 5 +++++ apps/web-antd/src/views/erp/stock/warehouse/data.ts | 3 +++ apps/web-antd/src/views/infra/fileConfig/data.ts | 1 + apps/web-antd/src/views/infra/job/data.ts | 3 +++ apps/web-antd/src/views/iot/device/device/data.ts | 4 ++-- .../device/detail/modules/modbus-config-form.vue | 4 ++++ .../device/detail/modules/modbus-point-form.vue | 4 ++++ apps/web-antd/src/views/iot/product/category/data.ts | 2 +- apps/web-antd/src/views/mall/product/brand/data.ts | 1 + .../web-antd/src/views/mall/product/category/data.ts | 1 + .../web-antd/src/views/mall/product/spu/form/data.ts | 3 +++ .../views/mall/promotion/article/category/data.ts | 1 + .../src/views/mall/promotion/article/data.ts | 1 + .../web-antd/src/views/mall/promotion/banner/data.ts | 1 + .../views/mall/promotion/bargain/activity/data.ts | 5 +++++ .../mall/promotion/combination/activity/data.ts | 4 ++++ .../src/views/mall/promotion/coupon/template/data.ts | 8 ++++++++ .../src/views/mall/promotion/point/activity/data.ts | 2 +- .../views/mall/promotion/seckill/activity/data.ts | 6 +++--- apps/web-antd/src/views/mall/trade/config/data.ts | 12 ++++++------ .../src/views/mall/trade/delivery/express/data.ts | 1 + .../mall/trade/delivery/expressTemplate/data.ts | 1 + apps/web-antd/src/views/mall/trade/order/data.ts | 1 + apps/web-antd/src/views/member/config/data.ts | 6 +++--- apps/web-antd/src/views/member/level/data.ts | 3 +++ apps/web-antd/src/views/member/signin/config/data.ts | 3 +++ apps/web-antd/src/views/member/user/data.ts | 2 ++ apps/web-antd/src/views/pay/app/data.ts | 1 + apps/web-antd/src/views/pay/demo/withdraw/data.ts | 1 + .../src/views/pay/wallet/rechargePackage/data.ts | 2 ++ apps/web-antd/src/views/system/dept/data.ts | 1 + apps/web-antd/src/views/system/dict/data.ts | 1 + apps/web-antd/src/views/system/mail/account/data.ts | 1 + apps/web-antd/src/views/system/menu/data.ts | 1 + apps/web-antd/src/views/system/oauth2/client/data.ts | 2 ++ apps/web-antd/src/views/system/post/data.ts | 1 + apps/web-antd/src/views/system/role/data.ts | 1 + apps/web-antd/src/views/system/tenant/data.ts | 1 + 64 files changed, 153 insertions(+), 16 deletions(-) diff --git a/apps/web-antd/src/views/ai/chat/index/data.ts b/apps/web-antd/src/views/ai/chat/index/data.ts index 3fa7928a6..e29d891f3 100644 --- a/apps/web-antd/src/views/ai/chat/index/data.ts +++ b/apps/web-antd/src/views/ai/chat/index/data.ts @@ -41,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '温度参数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入温度参数', precision: 2, min: 0, @@ -53,6 +54,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '回复数 Token 数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入回复数 Token 数', min: 0, max: 8192, @@ -64,6 +66,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '上下文数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入上下文数量', min: 0, max: 20, diff --git a/apps/web-antd/src/views/ai/knowledge/document/data.ts b/apps/web-antd/src/views/ai/knowledge/document/data.ts index 46f251a18..69ccd434e 100644 --- a/apps/web-antd/src/views/ai/knowledge/document/data.ts +++ b/apps/web-antd/src/views/ai/knowledge/document/data.ts @@ -52,6 +52,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索 topK', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索 topK', min: 0, max: 10, @@ -63,6 +64,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索相似度阈值', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索相似度阈值', min: 0, max: 1, diff --git a/apps/web-antd/src/views/ai/knowledge/knowledge/data.ts b/apps/web-antd/src/views/ai/knowledge/knowledge/data.ts index fcfa96da2..6c4cd03dc 100644 --- a/apps/web-antd/src/views/ai/knowledge/knowledge/data.ts +++ b/apps/web-antd/src/views/ai/knowledge/knowledge/data.ts @@ -55,6 +55,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索 topK', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索 topK', min: 0, max: 10, @@ -66,6 +67,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索相似度阈值', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索相似度阈值', min: 0, max: 1, diff --git a/apps/web-antd/src/views/ai/model/chatRole/data.ts b/apps/web-antd/src/views/ai/model/chatRole/data.ts index 81ea7e7c1..b57bf56f9 100644 --- a/apps/web-antd/src/views/ai/model/chatRole/data.ts +++ b/apps/web-antd/src/views/ai/model/chatRole/data.ts @@ -154,6 +154,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '角色排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入角色排序', }, dependencies: { diff --git a/apps/web-antd/src/views/ai/model/model/data.ts b/apps/web-antd/src/views/ai/model/model/data.ts index 1ef554c59..8680a0c5b 100644 --- a/apps/web-antd/src/views/ai/model/model/data.ts +++ b/apps/web-antd/src/views/ai/model/model/data.ts @@ -84,6 +84,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '模型排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入模型排序', }, rules: 'required', @@ -104,6 +105,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '温度参数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入温度参数', min: 0, max: 2, @@ -121,6 +123,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '回复数 Token 数', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 8192, placeholder: '请输入回复数 Token 数', @@ -138,6 +141,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '上下文数量', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 20, placeholder: '请输入上下文数量', diff --git a/apps/web-antd/src/views/bpm/category/data.ts b/apps/web-antd/src/views/bpm/category/data.ts index 14b2b98ed..6407ada71 100644 --- a/apps/web-antd/src/views/bpm/category/data.ts +++ b/apps/web-antd/src/views/bpm/category/data.ts @@ -60,6 +60,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '分类排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入分类排序', }, diff --git a/apps/web-antd/src/views/crm/business/data.ts b/apps/web-antd/src/views/crm/business/data.ts index ab71445ec..818f1a0af 100644 --- a/apps/web-antd/src/views/crm/business/data.ts +++ b/apps/web-antd/src/views/crm/business/data.ts @@ -118,6 +118,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '产品总金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, disabled: true, @@ -130,6 +131,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '整单折扣(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入整单折扣', @@ -141,6 +143,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '折扣后金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, disabled: true, diff --git a/apps/web-antd/src/views/crm/contract/config/data.ts b/apps/web-antd/src/views/crm/contract/config/data.ts index 2792b3601..ad6b5642c 100644 --- a/apps/web-antd/src/views/crm/contract/config/data.ts +++ b/apps/web-antd/src/views/crm/contract/config/data.ts @@ -17,6 +17,7 @@ export const schema: VbenFormSchema[] = [ component: 'InputNumber', fieldName: 'notifyDays', componentProps: { + class: '!w-full', min: 0, precision: 0, }, diff --git a/apps/web-antd/src/views/crm/contract/data.ts b/apps/web-antd/src/views/crm/contract/data.ts index 4289c6d1d..ffed30269 100644 --- a/apps/web-antd/src/views/crm/contract/data.ts +++ b/apps/web-antd/src/views/crm/contract/data.ts @@ -198,6 +198,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '产品总金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入产品总金额', @@ -209,6 +210,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '整单折扣(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入整单折扣', @@ -220,6 +222,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '折扣后金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, disabled: true, diff --git a/apps/web-antd/src/views/crm/customer/limitConfig/data.ts b/apps/web-antd/src/views/crm/customer/limitConfig/data.ts index 914116b16..afcf66ce6 100644 --- a/apps/web-antd/src/views/crm/customer/limitConfig/data.ts +++ b/apps/web-antd/src/views/crm/customer/limitConfig/data.ts @@ -65,6 +65,7 @@ export function useFormSchema(confType: LimitConfType): VbenFormSchema[] { : '锁定客户数上限', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: `请输入${ LimitConfType.CUSTOMER_QUANTITY_LIMIT === confType ? '拥有客户数上限' diff --git a/apps/web-antd/src/views/crm/customer/poolConfig/data.ts b/apps/web-antd/src/views/crm/customer/poolConfig/data.ts index 86fd9f82f..8c5bbadf6 100644 --- a/apps/web-antd/src/views/crm/customer/poolConfig/data.ts +++ b/apps/web-antd/src/views/crm/customer/poolConfig/data.ts @@ -16,6 +16,7 @@ export const schema: VbenFormSchema[] = [ component: 'InputNumber', fieldName: 'contactExpireDays', componentProps: { + class: '!w-full', min: 0, precision: 0, }, @@ -35,6 +36,7 @@ export const schema: VbenFormSchema[] = [ addonAfter: () => '天未成交', }), componentProps: { + class: '!w-full', min: 0, precision: 0, }, @@ -63,6 +65,7 @@ export const schema: VbenFormSchema[] = [ component: 'InputNumber', fieldName: 'notifyDays', componentProps: { + class: '!w-full', min: 0, precision: 0, }, diff --git a/apps/web-antd/src/views/crm/product/data.ts b/apps/web-antd/src/views/crm/product/data.ts index 858b16908..5dd7d4565 100644 --- a/apps/web-antd/src/views/crm/product/data.ts +++ b/apps/web-antd/src/views/crm/product/data.ts @@ -92,6 +92,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '价格(元)', rules: 'required', componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.1, diff --git a/apps/web-antd/src/views/crm/receivable/data.ts b/apps/web-antd/src/views/crm/receivable/data.ts index f7f9c95d2..eacd97c34 100644 --- a/apps/web-antd/src/views/crm/receivable/data.ts +++ b/apps/web-antd/src/views/crm/receivable/data.ts @@ -141,6 +141,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', placeholder: '请输入回款金额', min: 0, precision: 2, diff --git a/apps/web-antd/src/views/crm/receivable/plan/data.ts b/apps/web-antd/src/views/crm/receivable/plan/data.ts index b8e848493..bd5ef2212 100644 --- a/apps/web-antd/src/views/crm/receivable/plan/data.ts +++ b/apps/web-antd/src/views/crm/receivable/plan/data.ts @@ -96,6 +96,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', placeholder: '请输入计划回款金额', min: 0, precision: 2, @@ -119,6 +120,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '提前几天提醒', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入提前几天提醒', min: 0, }, diff --git a/apps/web-antd/src/views/erp/finance/account/data.ts b/apps/web-antd/src/views/erp/finance/account/data.ts index 0b4495b1a..5edc769fa 100644 --- a/apps/web-antd/src/views/erp/finance/account/data.ts +++ b/apps/web-antd/src/views/erp/finance/account/data.ts @@ -44,6 +44,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', precision: 0, }, diff --git a/apps/web-antd/src/views/erp/finance/payment/data.ts b/apps/web-antd/src/views/erp/finance/payment/data.ts index f4a9a61a9..cd8e32712 100644 --- a/apps/web-antd/src/views/erp/finance/payment/data.ts +++ b/apps/web-antd/src/views/erp/finance/payment/data.ts @@ -129,6 +129,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '合计付款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '合计付款', precision: 2, formatter: erpPriceInputFormatter, @@ -140,6 +141,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠金额', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入优惠金额', precision: 2, @@ -151,6 +153,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '实际付款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '实际付款', precision: 2, formatter: erpPriceInputFormatter, diff --git a/apps/web-antd/src/views/erp/finance/receipt/data.ts b/apps/web-antd/src/views/erp/finance/receipt/data.ts index 774ddb0b1..4e325aa8b 100644 --- a/apps/web-antd/src/views/erp/finance/receipt/data.ts +++ b/apps/web-antd/src/views/erp/finance/receipt/data.ts @@ -129,6 +129,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '合计收款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '合计收款', precision: 2, formatter: erpPriceInputFormatter, @@ -140,6 +141,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠金额', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入优惠金额', precision: 2, @@ -151,6 +153,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '实际收款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '实际收款', precision: 2, formatter: erpPriceInputFormatter, diff --git a/apps/web-antd/src/views/erp/product/category/data.ts b/apps/web-antd/src/views/erp/product/category/data.ts index 283566a25..d3e937247 100644 --- a/apps/web-antd/src/views/erp/product/category/data.ts +++ b/apps/web-antd/src/views/erp/product/category/data.ts @@ -65,6 +65,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/erp/product/product/data.ts b/apps/web-antd/src/views/erp/product/product/data.ts index 23664dd5e..7fbf70f52 100644 --- a/apps/web-antd/src/views/erp/product/product/data.ts +++ b/apps/web-antd/src/views/erp/product/product/data.ts @@ -92,6 +92,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '保质期天数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入保质期天数', }, }, @@ -100,6 +101,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '重量(kg)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重量(kg)', }, }, @@ -108,6 +110,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '采购价格', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入采购价格,单位:元', precision: 2, min: 0, @@ -119,6 +122,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '销售价格', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入销售价格,单位:元', precision: 2, min: 0, @@ -130,6 +134,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '最低价格', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入最低价格,单位:元', precision: 2, min: 0, diff --git a/apps/web-antd/src/views/erp/purchase/in/data.ts b/apps/web-antd/src/views/erp/purchase/in/data.ts index 2334ad260..e86c71a25 100644 --- a/apps/web-antd/src/views/erp/purchase/in/data.ts +++ b/apps/web-antd/src/views/erp/purchase/in/data.ts @@ -117,6 +117,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -129,6 +130,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '付款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '付款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -140,6 +142,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -160,6 +163,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -184,6 +188,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '应付金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antd/src/views/erp/purchase/order/data.ts b/apps/web-antd/src/views/erp/purchase/order/data.ts index a8cb484e7..d57964b69 100644 --- a/apps/web-antd/src/views/erp/purchase/order/data.ts +++ b/apps/web-antd/src/views/erp/purchase/order/data.ts @@ -103,6 +103,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -115,6 +116,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '付款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '付款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -126,6 +128,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -148,6 +151,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { { component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入支付订金', precision: 2, min: 0, diff --git a/apps/web-antd/src/views/erp/purchase/return/data.ts b/apps/web-antd/src/views/erp/purchase/return/data.ts index ca3697d87..db3dc016b 100644 --- a/apps/web-antd/src/views/erp/purchase/return/data.ts +++ b/apps/web-antd/src/views/erp/purchase/return/data.ts @@ -117,6 +117,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -129,6 +130,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '退款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, formatter: erpPriceInputFormatter, disabled: true, @@ -139,6 +141,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -159,6 +162,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -183,6 +187,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '应退金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antd/src/views/erp/purchase/supplier/data.ts b/apps/web-antd/src/views/erp/purchase/supplier/data.ts index a5edc25ef..7d4d1d29e 100644 --- a/apps/web-antd/src/views/erp/purchase/supplier/data.ts +++ b/apps/web-antd/src/views/erp/purchase/supplier/data.ts @@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', }, rules: 'required', @@ -99,6 +100,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '税率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入税率', min: 0, precision: 2, diff --git a/apps/web-antd/src/views/erp/sale/customer/data.ts b/apps/web-antd/src/views/erp/sale/customer/data.ts index b8327e0fb..eb3230ace 100644 --- a/apps/web-antd/src/views/erp/sale/customer/data.ts +++ b/apps/web-antd/src/views/erp/sale/customer/data.ts @@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', precision: 0, }, @@ -100,6 +101,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '税率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入税率', precision: 2, }, diff --git a/apps/web-antd/src/views/erp/sale/order/data.ts b/apps/web-antd/src/views/erp/sale/order/data.ts index 8764ce452..f6114e56d 100644 --- a/apps/web-antd/src/views/erp/sale/order/data.ts +++ b/apps/web-antd/src/views/erp/sale/order/data.ts @@ -116,6 +116,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -128,6 +129,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '付款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '收款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -139,6 +141,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -161,6 +164,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { { component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入收取订金', precision: 2, min: 0, diff --git a/apps/web-antd/src/views/erp/sale/out/data.ts b/apps/web-antd/src/views/erp/sale/out/data.ts index 9ad4cb2bb..ba1527b75 100644 --- a/apps/web-antd/src/views/erp/sale/out/data.ts +++ b/apps/web-antd/src/views/erp/sale/out/data.ts @@ -134,6 +134,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -146,6 +147,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '收款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '付款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -157,6 +159,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -177,6 +180,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -204,6 +208,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '应收金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antd/src/views/erp/sale/return/data.ts b/apps/web-antd/src/views/erp/sale/return/data.ts index d0ceeab47..d325cab83 100644 --- a/apps/web-antd/src/views/erp/sale/return/data.ts +++ b/apps/web-antd/src/views/erp/sale/return/data.ts @@ -130,6 +130,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -142,6 +143,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '退款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, formatter: erpPriceInputFormatter, disabled: true, @@ -152,6 +154,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -172,6 +175,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -197,6 +201,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] { label: '应收金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antd/src/views/erp/stock/warehouse/data.ts b/apps/web-antd/src/views/erp/stock/warehouse/data.ts index ff8045b83..5fa2462e9 100644 --- a/apps/web-antd/src/views/erp/stock/warehouse/data.ts +++ b/apps/web-antd/src/views/erp/stock/warehouse/data.ts @@ -51,6 +51,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '仓储费(元)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入仓储费,单位:元/天/KG', min: 0, precision: 2, @@ -61,6 +62,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '搬运费(元)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入搬运费,单位:元', min: 0, precision: 2, @@ -79,6 +81,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', precision: 0, }, diff --git a/apps/web-antd/src/views/infra/fileConfig/data.ts b/apps/web-antd/src/views/infra/fileConfig/data.ts index b34729dd4..fade8bfd3 100644 --- a/apps/web-antd/src/views/infra/fileConfig/data.ts +++ b/apps/web-antd/src/views/infra/fileConfig/data.ts @@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '主机端口', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入主机端口', }, diff --git a/apps/web-antd/src/views/infra/job/data.ts b/apps/web-antd/src/views/infra/job/data.ts index 31811a055..44d4ec2b2 100644 --- a/apps/web-antd/src/views/infra/job/data.ts +++ b/apps/web-antd/src/views/infra/job/data.ts @@ -68,6 +68,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '重试次数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重试次数。设置为 0 时,不进行重试', min: 0, }, @@ -78,6 +79,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '重试间隔', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重试间隔,单位:毫秒。设置为 0 时,无需间隔', min: 0, }, @@ -88,6 +90,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '监控超时时间', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入监控超时时间,单位:毫秒', min: 0, }, diff --git a/apps/web-antd/src/views/iot/device/device/data.ts b/apps/web-antd/src/views/iot/device/device/data.ts index c53c0e207..45c270e36 100644 --- a/apps/web-antd/src/views/iot/device/device/data.ts +++ b/apps/web-antd/src/views/iot/device/device/data.ts @@ -122,8 +122,8 @@ export function useAdvancedFormSchema(): VbenFormSchema[] { label: '设备经度', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入设备经度', - class: 'w-full', min: -180, max: 180, precision: 6, @@ -140,8 +140,8 @@ export function useAdvancedFormSchema(): VbenFormSchema[] { label: '设备纬度', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入设备纬度', - class: 'w-full', min: -90, max: 90, precision: 6, diff --git a/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-config-form.vue b/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-config-form.vue index fb792d4e7..5c306c9ca 100644 --- a/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-config-form.vue +++ b/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-config-form.vue @@ -70,6 +70,7 @@ const [Form, formApi] = useVbenForm({ label: '端口', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入端口', min: 1, max: 65_535, @@ -86,6 +87,7 @@ const [Form, formApi] = useVbenForm({ label: '从站地址', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入从站地址,范围 1-247', min: 1, max: 247, @@ -98,6 +100,7 @@ const [Form, formApi] = useVbenForm({ label: '连接超时(ms)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入连接超时时间', min: 1000, step: 1000, @@ -114,6 +117,7 @@ const [Form, formApi] = useVbenForm({ label: '重试间隔(ms)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重试间隔', min: 1000, step: 1000, diff --git a/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-point-form.vue b/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-point-form.vue index db5fc0674..aa8d1ca3b 100644 --- a/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-point-form.vue +++ b/apps/web-antd/src/views/iot/device/device/detail/modules/modbus-point-form.vue @@ -111,6 +111,7 @@ function useFormSchema(): VbenFormSchema[] { label: '寄存器地址', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入寄存器地址', min: 0, max: 65_535, @@ -133,6 +134,7 @@ function useFormSchema(): VbenFormSchema[] { label: '寄存器数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入寄存器数量', min: 1, max: 125, @@ -177,6 +179,7 @@ function useFormSchema(): VbenFormSchema[] { label: '缩放因子', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入缩放因子', precision: 6, step: 0.1, @@ -188,6 +191,7 @@ function useFormSchema(): VbenFormSchema[] { label: '轮询间隔(ms)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入轮询间隔', min: 100, step: 1000, diff --git a/apps/web-antd/src/views/iot/product/category/data.ts b/apps/web-antd/src/views/iot/product/category/data.ts index 57dcae56f..8853fb90c 100644 --- a/apps/web-antd/src/views/iot/product/category/data.ts +++ b/apps/web-antd/src/views/iot/product/category/data.ts @@ -35,8 +35,8 @@ export function useFormSchema(): VbenFormSchema[] { label: '分类排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入分类排序', - class: 'w-full', min: 0, precision: 0, }, diff --git a/apps/web-antd/src/views/mall/product/brand/data.ts b/apps/web-antd/src/views/mall/product/brand/data.ts index f9cfa10c0..4d1b02c87 100644 --- a/apps/web-antd/src/views/mall/product/brand/data.ts +++ b/apps/web-antd/src/views/mall/product/brand/data.ts @@ -41,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '品牌排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入品牌排序', }, diff --git a/apps/web-antd/src/views/mall/product/category/data.ts b/apps/web-antd/src/views/mall/product/category/data.ts index 6e1e1de3b..86456b05e 100644 --- a/apps/web-antd/src/views/mall/product/category/data.ts +++ b/apps/web-antd/src/views/mall/product/category/data.ts @@ -65,6 +65,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '分类排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入分类排序', }, diff --git a/apps/web-antd/src/views/mall/product/spu/form/data.ts b/apps/web-antd/src/views/mall/product/spu/form/data.ts index d2ff7eeb5..7d53a2736 100644 --- a/apps/web-antd/src/views/mall/product/spu/form/data.ts +++ b/apps/web-antd/src/views/mall/product/spu/form/data.ts @@ -281,6 +281,7 @@ export function useOtherFormSchema(): VbenFormSchema[] { label: '商品排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, }, rules: 'required', @@ -290,6 +291,7 @@ export function useOtherFormSchema(): VbenFormSchema[] { label: '赠送积分', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, }, rules: 'required', @@ -299,6 +301,7 @@ export function useOtherFormSchema(): VbenFormSchema[] { label: '虚拟销量', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, }, rules: 'required', diff --git a/apps/web-antd/src/views/mall/promotion/article/category/data.ts b/apps/web-antd/src/views/mall/promotion/article/category/data.ts index 3929ecb8e..4db06dffe 100644 --- a/apps/web-antd/src/views/mall/promotion/article/category/data.ts +++ b/apps/web-antd/src/views/mall/promotion/article/category/data.ts @@ -40,6 +40,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/mall/promotion/article/data.ts b/apps/web-antd/src/views/mall/promotion/article/data.ts index 5af659775..f007898e5 100644 --- a/apps/web-antd/src/views/mall/promotion/article/data.ts +++ b/apps/web-antd/src/views/mall/promotion/article/data.ts @@ -106,6 +106,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入排序', }, diff --git a/apps/web-antd/src/views/mall/promotion/banner/data.ts b/apps/web-antd/src/views/mall/promotion/banner/data.ts index 0490be5dd..71adda1ae 100644 --- a/apps/web-antd/src/views/mall/promotion/banner/data.ts +++ b/apps/web-antd/src/views/mall/promotion/banner/data.ts @@ -62,6 +62,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入排序', }, diff --git a/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts b/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts index d7474eeb5..72a4bf171 100644 --- a/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts @@ -55,6 +55,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '助力人数', component: 'InputNumber', componentProps: { + class: '!w-full', min: 1, placeholder: '达到该人数才能砍到低价', }, @@ -65,6 +66,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '砍价次数', component: 'InputNumber', componentProps: { + class: '!w-full', min: 1, placeholder: '最大帮砍次数', }, @@ -75,6 +77,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '购买限制', component: 'InputNumber', componentProps: { + class: '!w-full', min: 1, placeholder: '最大购买次数', }, @@ -85,6 +88,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '最小砍价金额(元)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.01, @@ -96,6 +100,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '最大砍价金额(元)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.01, diff --git a/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts b/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts index 8891f892c..8c46b0fff 100644 --- a/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts @@ -55,6 +55,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '拼团人数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '达到该人数即成团', min: 2, }, @@ -65,6 +66,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '限制时长', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '限制时长(小时)', min: 0, }, @@ -75,6 +77,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '总限购数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入总限购数量', min: 0, }, @@ -84,6 +87,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '单次限购数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入单次限购数量', min: 0, }, diff --git a/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts b/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts index 11f86c422..26a3f987f 100644 --- a/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts +++ b/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts @@ -122,6 +122,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '优惠券面额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入优惠金额,单位:元', @@ -139,6 +140,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '优惠券折扣', component: 'InputNumber', componentProps: { + class: '!w-full', min: 1, max: 9.9, precision: 1, @@ -157,6 +159,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '最多优惠', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入最多优惠', @@ -174,6 +177,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '满多少元可以使用', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '无门槛请设为 0', @@ -196,6 +200,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '发放数量', component: 'InputNumber', componentProps: { + class: '!w-full', min: -1, placeholder: '发放数量,没有之后不能领取或发放,-1 为不限制', addonAfter: '张', @@ -212,6 +217,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '每人限领个数', component: 'InputNumber', componentProps: { + class: '!w-full', min: -1, placeholder: '设置为 -1 时,可无限领取', addonAfter: '张', @@ -255,6 +261,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '领取日期', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '第 0 为今天生效', addonBefore: '第', @@ -271,6 +278,7 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'fixedEndTerm', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入结束天数', addonBefore: '至', diff --git a/apps/web-antd/src/views/mall/promotion/point/activity/data.ts b/apps/web-antd/src/views/mall/promotion/point/activity/data.ts index 9b2abb065..7366c1300 100644 --- a/apps/web-antd/src/views/mall/promotion/point/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/point/activity/data.ts @@ -109,9 +109,9 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入排序', - class: '!w-full', }, defaultValue: 0, rules: 'required', diff --git a/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts b/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts index 2ebb63de5..090a5ec64 100644 --- a/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts @@ -99,9 +99,9 @@ export function useFormSchema(): VbenFormSchema[] { label: '总限购数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入总限购数量', min: 0, - class: 'w-full', }, rules: z.number().min(0).default(0), }, @@ -110,9 +110,9 @@ export function useFormSchema(): VbenFormSchema[] { label: '单次限购数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入单次限购数量', min: 0, - class: 'w-full', }, rules: z.number().min(0).default(0), }, @@ -121,9 +121,9 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', min: 0, - class: 'w-full', }, rules: z.number().min(0).default(0), }, diff --git a/apps/web-antd/src/views/mall/trade/config/data.ts b/apps/web-antd/src/views/mall/trade/config/data.ts index 564f9722c..557a9c657 100644 --- a/apps/web-antd/src/views/mall/trade/config/data.ts +++ b/apps/web-antd/src/views/mall/trade/config/data.ts @@ -63,10 +63,10 @@ export const schema: VbenFormSchema[] = [ label: '满额包邮', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入满额包邮金额', - class: 'w-full', }, rules: 'required', dependencies: { @@ -145,10 +145,10 @@ export const schema: VbenFormSchema[] = [ label: '一级返佣比例(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 100, placeholder: '请输入一级返佣比例', - class: 'w-full', }, rules: 'required', dependencies: { @@ -162,10 +162,10 @@ export const schema: VbenFormSchema[] = [ label: '二级返佣比例(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 100, placeholder: '请输入二级返佣比例', - class: 'w-full', }, rules: 'required', dependencies: { @@ -179,9 +179,9 @@ export const schema: VbenFormSchema[] = [ label: '佣金冻结天数', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入佣金冻结天数', - class: 'w-full', }, rules: 'required', dependencies: { @@ -195,10 +195,10 @@ export const schema: VbenFormSchema[] = [ label: '提现最低金额(元)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入提现最低金额', - class: 'w-full', }, rules: 'required', dependencies: { @@ -212,11 +212,11 @@ export const schema: VbenFormSchema[] = [ label: '提现手续费(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 100, precision: 2, placeholder: '请输入提现手续费百分比', - class: 'w-full', }, rules: 'required', dependencies: { diff --git a/apps/web-antd/src/views/mall/trade/delivery/express/data.ts b/apps/web-antd/src/views/mall/trade/delivery/express/data.ts index 7b3fe0512..279f8a898 100644 --- a/apps/web-antd/src/views/mall/trade/delivery/express/data.ts +++ b/apps/web-antd/src/views/mall/trade/delivery/express/data.ts @@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/mall/trade/delivery/expressTemplate/data.ts b/apps/web-antd/src/views/mall/trade/delivery/expressTemplate/data.ts index 0a63d725c..641054a95 100644 --- a/apps/web-antd/src/views/mall/trade/delivery/expressTemplate/data.ts +++ b/apps/web-antd/src/views/mall/trade/delivery/expressTemplate/data.ts @@ -140,6 +140,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入显示顺序', min: 0, }, diff --git a/apps/web-antd/src/views/mall/trade/order/data.ts b/apps/web-antd/src/views/mall/trade/order/data.ts index 4eb98df87..9b38da130 100644 --- a/apps/web-antd/src/views/mall/trade/order/data.ts +++ b/apps/web-antd/src/views/mall/trade/order/data.ts @@ -306,6 +306,7 @@ export function usePriceFormSchema(): VbenFormSchema[] { label: '订单调价', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入订单调价', step: 0.1, precision: 2, diff --git a/apps/web-antd/src/views/member/config/data.ts b/apps/web-antd/src/views/member/config/data.ts index 7f168418c..179467bba 100644 --- a/apps/web-antd/src/views/member/config/data.ts +++ b/apps/web-antd/src/views/member/config/data.ts @@ -21,9 +21,9 @@ export const schema: VbenFormSchema[] = [ label: '积分抵扣', help: '积分抵用比例(1 积分抵多少金额),单位:元', componentProps: { + class: '!w-full', min: 0, precision: 2, - class: 'w-full', placeholder: '请输入积分抵扣单价', }, }, @@ -33,8 +33,8 @@ export const schema: VbenFormSchema[] = [ label: '积分抵扣最大值', help: '单次下单积分使用上限,0 不限制', componentProps: { + class: '!w-full', min: 0, - class: 'w-full', placeholder: '请输入积分抵扣最大值', }, }, @@ -44,8 +44,8 @@ export const schema: VbenFormSchema[] = [ label: '1 元赠送多少分', help: '下单支付金额按比例赠送积分(实际支付 1 元赠送多少积分)', componentProps: { + class: '!w-full', min: 0, - class: 'w-full', placeholder: '请输入赠送积分比例', }, }, diff --git a/apps/web-antd/src/views/member/level/data.ts b/apps/web-antd/src/views/member/level/data.ts index 979ed9a1b..c6a4b4167 100644 --- a/apps/web-antd/src/views/member/level/data.ts +++ b/apps/web-antd/src/views/member/level/data.ts @@ -32,6 +32,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '等级', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 0, placeholder: '请输入等级', @@ -43,6 +44,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '升级经验', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 0, placeholder: '请输入升级经验', @@ -54,6 +56,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '享受折扣(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 100, precision: 0, diff --git a/apps/web-antd/src/views/member/signin/config/data.ts b/apps/web-antd/src/views/member/signin/config/data.ts index 2b28d2fc9..44017bf7d 100644 --- a/apps/web-antd/src/views/member/signin/config/data.ts +++ b/apps/web-antd/src/views/member/signin/config/data.ts @@ -23,6 +23,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '签到天数', help: '只允许设置 1-7,默认签到 7 天为一个周期', componentProps: { + class: '!w-full', min: 1, max: 7, precision: 0, @@ -35,6 +36,7 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'point', label: '获得积分', componentProps: { + class: '!w-full', min: 0, precision: 0, placeholder: '请输入获得积分', @@ -46,6 +48,7 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'experience', label: '奖励经验', componentProps: { + class: '!w-full', min: 0, precision: 0, placeholder: '请输入奖励经验', diff --git a/apps/web-antd/src/views/member/user/data.ts b/apps/web-antd/src/views/member/user/data.ts index 295b23e89..d9a37cd45 100644 --- a/apps/web-antd/src/views/member/user/data.ts +++ b/apps/web-antd/src/views/member/user/data.ts @@ -396,6 +396,7 @@ export function useBalanceFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.1, @@ -471,6 +472,7 @@ export function usePointFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', min: 0, precision: 0, placeholder: '请输入变动积分', diff --git a/apps/web-antd/src/views/pay/app/data.ts b/apps/web-antd/src/views/pay/app/data.ts index d46607ca3..da9ae43b9 100644 --- a/apps/web-antd/src/views/pay/app/data.ts +++ b/apps/web-antd/src/views/pay/app/data.ts @@ -291,6 +291,7 @@ export function useChannelFormSchema(formType: string = ''): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', placeholder: '请输入渠道费率', addonAfter: '%', }, diff --git a/apps/web-antd/src/views/pay/demo/withdraw/data.ts b/apps/web-antd/src/views/pay/demo/withdraw/data.ts index 8b2c1b547..82df4da31 100644 --- a/apps/web-antd/src/views/pay/demo/withdraw/data.ts +++ b/apps/web-antd/src/views/pay/demo/withdraw/data.ts @@ -29,6 +29,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', min: 1, precision: 2, step: 0.01, diff --git a/apps/web-antd/src/views/pay/wallet/rechargePackage/data.ts b/apps/web-antd/src/views/pay/wallet/rechargePackage/data.ts index 22010869e..c72590c07 100644 --- a/apps/web-antd/src/views/pay/wallet/rechargePackage/data.ts +++ b/apps/web-antd/src/views/pay/wallet/rechargePackage/data.ts @@ -33,6 +33,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: z.number().min(0, '支付金额不能小于0'), componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.01, @@ -45,6 +46,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: z.number().min(0, '赠送金额不能小于0'), componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.01, diff --git a/apps/web-antd/src/views/system/dept/data.ts b/apps/web-antd/src/views/system/dept/data.ts index f5421c429..d111330d0 100644 --- a/apps/web-antd/src/views/system/dept/data.ts +++ b/apps/web-antd/src/views/system/dept/data.ts @@ -62,6 +62,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/system/dict/data.ts b/apps/web-antd/src/views/system/dict/data.ts index a2c6ede66..cfa455a7d 100644 --- a/apps/web-antd/src/views/system/dict/data.ts +++ b/apps/web-antd/src/views/system/dict/data.ts @@ -222,6 +222,7 @@ export function useDataFormSchema(): VbenFormSchema[] { label: '显示排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入显示排序', }, rules: 'required', diff --git a/apps/web-antd/src/views/system/mail/account/data.ts b/apps/web-antd/src/views/system/mail/account/data.ts index 2a00f39e4..d3f5470de 100644 --- a/apps/web-antd/src/views/system/mail/account/data.ts +++ b/apps/web-antd/src/views/system/mail/account/data.ts @@ -58,6 +58,7 @@ export function useFormSchema(): VbenFormSchema[] { label: 'SMTP 服务器端口', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入 SMTP 服务器端口', min: 0, max: 65_535, diff --git a/apps/web-antd/src/views/system/menu/data.ts b/apps/web-antd/src/views/system/menu/data.ts index d7cfa104e..c0c32c87f 100644 --- a/apps/web-antd/src/views/system/menu/data.ts +++ b/apps/web-antd/src/views/system/menu/data.ts @@ -201,6 +201,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/system/oauth2/client/data.ts b/apps/web-antd/src/views/system/oauth2/client/data.ts index b5bc683c0..d5ad7078d 100644 --- a/apps/web-antd/src/views/system/oauth2/client/data.ts +++ b/apps/web-antd/src/views/system/oauth2/client/data.ts @@ -74,6 +74,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '访问令牌的有效期', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入访问令牌的有效期,单位:秒', min: 0, }, @@ -84,6 +85,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '刷新令牌的有效期', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入刷新令牌的有效期,单位:秒', min: 0, }, diff --git a/apps/web-antd/src/views/system/post/data.ts b/apps/web-antd/src/views/system/post/data.ts index 2d1715389..3c66ebccf 100644 --- a/apps/web-antd/src/views/system/post/data.ts +++ b/apps/web-antd/src/views/system/post/data.ts @@ -40,6 +40,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/system/role/data.ts b/apps/web-antd/src/views/system/role/data.ts index 48630c86e..b8efae8b3 100644 --- a/apps/web-antd/src/views/system/role/data.ts +++ b/apps/web-antd/src/views/system/role/data.ts @@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antd/src/views/system/tenant/data.ts b/apps/web-antd/src/views/system/tenant/data.ts index 4fca673bc..b05e63803 100644 --- a/apps/web-antd/src/views/system/tenant/data.ts +++ b/apps/web-antd/src/views/system/tenant/data.ts @@ -91,6 +91,7 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'accountCount', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入账号额度', }, rules: 'required',