diff --git a/src/packages/form/demo.taro.tsx b/src/packages/form/demo.taro.tsx index e38ead2da7..5c7387cda4 100644 --- a/src/packages/form/demo.taro.tsx +++ b/src/packages/form/demo.taro.tsx @@ -86,24 +86,24 @@ const FormDemo = () => { title3: '带有初始值表单校验', title4: 'Form.useForm 对表单数据域进行交互。', title5: '表单类型', - name: '姓名', - nameTip: '请输入姓名', - nameTip1: '请输入姓名', - nameErr: '姓名不能超过5个字', - age: '年龄', - ageTip: '请输入年龄', - ageTip1: '请输入年龄,必须数字且0-200区间', + name: '字段A', + nameTip: '请输入字段A', + nameTip1: '请输入字段A', + nameErr: '字段A不能超过5个字', + age: '字段B', + ageTip: '请输入字段B', + ageTip1: '请输入字段B,必须数字且0-200区间', ageTip2: '必须输入数字', ageTip3: '必须输入0-200区间', - tel: '联系电话', - telTip: '请输入联系电话', - telTip1: '异步校验电话格式', - telTip2: '电话格式不正确', - address: '地址', - addressTip: '请输入地址', - addressTip1: '请选择地址', + tel: '字段C', + telTip: '请输入字段C', + telTip1: '异步校验字段C格式', + telTip2: '字段C格式不正确', + address: '字段D', + addressTip: '请输入字段D', + addressTip1: '请选择字段D', addressTip2: '请选择所在地区', - addressErr: '地址不能超过15个字', + addressErr: '字段D不能超过15个字', remarks: '备注', remarksTip: '请输入备注', add: '添加', @@ -112,7 +112,7 @@ const FormDemo = () => { reset: '重置', switch: '开关', checkbox: '复选框', - gender: '性别', + gender: '字段E', rate: '评分', inputnumber: '步进器', range: '滑块', @@ -123,8 +123,8 @@ const FormDemo = () => { number: '数量', tag: '标注', tagTip: '请输入标注', - male: '男性', - female: '女性', + male: 'A', + female: 'B', input: '输入框', checkboxGroup: '复选按钮分组', option: '选项', @@ -142,25 +142,25 @@ const FormDemo = () => { title3: 'InitialValue Validate Type', title4: 'Interact with form data fields via Form.useForm', title5: 'Form Type', - name: 'Name', - nameTip: 'Please enter your name', - nameTip1: 'Please enter name', - nameErr: 'Name cannot exceed 5 characters', - age: 'Age', - ageTip: 'Please enter age', + name: 'Filed A', + nameTip: 'Please enter Filed A', + nameTip1: 'Please enter Filed A', + nameErr: 'Filed A cannot exceed 5 characters', + age: 'Filed B', + ageTip: 'Please enter Filed B', ageTip1: - 'Please enter the age, which must be numeric and in the range of 0-200', + 'Please enter Filed B, which must be numeric and in the range of 0-200', ageTip2: 'You must enter a number', ageTip3: 'The range 0-200 must be entered', - tel: 'Tel', - telTip: 'Please enter tel', - telTip1: 'Async check tel format', - telTip2: 'Tel format is incorrect', - address: 'Address', - addressTip: 'Please enter address', - addressTip1: 'Please select an address', - addressTip2: 'Please select your region', - addressErr: 'Address should not exceed 15 characters', + tel: 'Filed C', + telTip: 'Please enter Filed C', + telTip1: 'Async check Filed C format', + telTip2: 'Filed C format is incorrect', + address: 'Filed D', + addressTip: 'Please enter Filed D', + addressTip1: 'Please select an Filed D', + addressTip2: 'Please select your Filed D', + addressErr: 'Filed D should not exceed 15 characters', remarks: 'Remarks', remarksTip: 'Please enter remarks', add: 'Add', @@ -169,7 +169,7 @@ const FormDemo = () => { reset: 'Reset', switch: 'Switch', checkbox: 'Checkbox', - gender: 'Gender', + gender: 'Field E', rate: 'Rate', inputnumber: 'Inputnumber', range: 'Range', @@ -180,8 +180,8 @@ const FormDemo = () => { number: 'Number', tag: 'Tag', tagTip: 'Please enter tag', - male: 'Male', - female: 'Female', + male: 'A', + female: 'B', input: 'Input', checkboxGroup: 'Checkbox.Group', option: 'Option', diff --git a/src/packages/form/demo.tsx b/src/packages/form/demo.tsx index aa689318be..494533b689 100644 --- a/src/packages/form/demo.tsx +++ b/src/packages/form/demo.tsx @@ -82,24 +82,24 @@ const FormDemo = () => { title3: '带有初始值表单校验', title4: 'Form.useForm 对表单数据域进行交互。', title5: '表单类型', - name: '姓名', - nameTip: '请输入姓名', - nameTip1: '请输入姓名', - nameErr: '姓名不能超过5个字', - age: '年龄', - ageTip: '请输入年龄', - ageTip1: '请输入年龄,必须数字且0-200区间', + name: '字段A', + nameTip: '请输入字段A', + nameTip1: '请输入字段A', + nameErr: '字段A不能超过5个字', + age: '字段B', + ageTip: '请输入字段B', + ageTip1: '请输入字段B,必须数字且0-200区间', ageTip2: '必须输入数字', ageTip3: '必须输入0-200区间', - tel: '联系电话', - telTip: '请输入联系电话', - telTip1: '异步校验电话格式', - telTip2: '电话格式不正确', - address: '地址', - addressTip: '请输入地址', - addressTip1: '请选择地址', + tel: '字段C', + telTip: '请输入字段C', + telTip1: '异步校验字段C格式', + telTip2: '字段C格式不正确', + address: '字段D', + addressTip: '请输入字段D', + addressTip1: '请选择字段D', addressTip2: '请选择所在地区', - addressErr: '地址不能超过15个字', + addressErr: '字段D不能超过15个字', remarks: '备注', remarksTip: '请输入备注', add: '添加', @@ -108,7 +108,7 @@ const FormDemo = () => { reset: '重置', switch: '开关', checkbox: '复选框', - gender: '性别', + gender: '字段E', rate: '评分', inputnumber: '步进器', range: '滑块', @@ -119,8 +119,8 @@ const FormDemo = () => { number: '数量', tag: '标注', tagTip: '请输入标注', - male: '男性', - female: '女性', + male: 'A', + female: 'B', input: '输入框', checkboxGroup: '复选按钮分组', option: '选项', @@ -138,25 +138,25 @@ const FormDemo = () => { title3: 'InitialValue Validate Type', title4: 'Interact with form data fields via Form.useForm', title5: 'Form Type', - name: 'Name', - nameTip: 'Please enter your name', - nameTip1: 'Please enter name', - nameErr: 'Name cannot exceed 5 characters', - age: 'Age', - ageTip: 'Please enter age', + name: 'Filed A', + nameTip: 'Please enter Filed A', + nameTip1: 'Please enter Filed A', + nameErr: 'Filed A cannot exceed 5 characters', + age: 'Filed B', + ageTip: 'Please enter Filed B', ageTip1: - 'Please enter the age, which must be numeric and in the range of 0-200', + 'Please enter Filed B, which must be numeric and in the range of 0-200', ageTip2: 'You must enter a number', ageTip3: 'The range 0-200 must be entered', - tel: 'Tel', - telTip: 'Please enter tel', - telTip1: 'Async check tel format', - telTip2: 'Tel format is incorrect', - address: 'Address', - addressTip: 'Please enter address', - addressTip1: 'Please select an address', - addressTip2: 'Please select your region', - addressErr: 'Address should not exceed 15 characters', + tel: 'Filed C', + telTip: 'Please enter Filed C', + telTip1: 'Async check Filed C format', + telTip2: 'Filed C format is incorrect', + address: 'Filed D', + addressTip: 'Please enter Filed D', + addressTip1: 'Please select an Filed D', + addressTip2: 'Please select your Filed D', + addressErr: 'Filed D should not exceed 15 characters', remarks: 'Remarks', remarksTip: 'Please enter remarks', add: 'Add', @@ -165,7 +165,7 @@ const FormDemo = () => { reset: 'Reset', switch: 'Switch', checkbox: 'Checkbox', - gender: 'Gender', + gender: 'Field E', rate: 'Rate', inputnumber: 'Inputnumber', range: 'Range', @@ -176,8 +176,8 @@ const FormDemo = () => { number: 'Number', tag: 'Tag', tagTip: 'Please enter tag', - male: 'Male', - female: 'Female', + male: 'A', + female: 'B', input: 'Input', checkboxGroup: 'Checkbox.Group', option: 'Option', diff --git a/src/packages/form/doc.en-US.md b/src/packages/form/doc.en-US.md index 7e508fe8c2..1edc90239b 100644 --- a/src/packages/form/doc.en-US.md +++ b/src/packages/form/doc.en-US.md @@ -35,28 +35,28 @@ const App = () => { >