feat:补齐 antd 的 component: 'InputNumber', 的 class full 样式
parent
5710761dbe
commit
80fa8b74e8
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '角色排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入角色排序',
|
||||
},
|
||||
dependencies: {
|
||||
|
|
|
|||
|
|
@ -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: '请输入上下文数量',
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '分类排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入分类排序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ export const schema: VbenFormSchema[] = [
|
|||
component: 'InputNumber',
|
||||
fieldName: 'notifyDays',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
precision: 0,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ export function useFormSchema(confType: LimitConfType): VbenFormSchema[] {
|
|||
: '锁定客户数上限',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: `请输入${
|
||||
LimitConfType.CUSTOMER_QUANTITY_LIMIT === confType
|
||||
? '拥有客户数上限'
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '价格(元)',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
precision: 2,
|
||||
step: 0.1,
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'InputNumber',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入回款金额',
|
||||
min: 0,
|
||||
precision: 2,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入排序',
|
||||
precision: 0,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '主机端口',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入主机端口',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '分类排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入分类排序',
|
||||
class: 'w-full',
|
||||
min: 0,
|
||||
precision: 0,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '品牌排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入品牌排序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '分类排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入分类排序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入排序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入排序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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: '至',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入显示顺序',
|
||||
min: 0,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -306,6 +306,7 @@ export function usePriceFormSchema(): VbenFormSchema[] {
|
|||
label: '订单调价',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入订单调价',
|
||||
step: 0.1,
|
||||
precision: 2,
|
||||
|
|
|
|||
|
|
@ -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: '请输入赠送积分比例',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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: '请输入奖励经验',
|
||||
|
|
|
|||
|
|
@ -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: '请输入变动积分',
|
||||
|
|
|
|||
|
|
@ -291,6 +291,7 @@ export function useChannelFormSchema(formType: string = ''): VbenFormSchema[] {
|
|||
component: 'InputNumber',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入渠道费率',
|
||||
addonAfter: '%',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'InputNumber',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 1,
|
||||
precision: 2,
|
||||
step: 0.01,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ export function useDataFormSchema(): VbenFormSchema[] {
|
|||
label: '显示排序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入显示排序',
|
||||
},
|
||||
rules: 'required',
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: 'SMTP 服务器端口',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入 SMTP 服务器端口',
|
||||
min: 0,
|
||||
max: 65_535,
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '显示顺序',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
min: 0,
|
||||
placeholder: '请输入显示顺序',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
fieldName: 'accountCount',
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
class: '!w-full',
|
||||
placeholder: '请输入账号额度',
|
||||
},
|
||||
rules: 'required',
|
||||
|
|
|
|||
Loading…
Reference in New Issue