Skip to content

Commit

Permalink
docs(form): 由于文案包含姓名等文字,导致小程序审核不通过 (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Nov 10, 2023
1 parent 434fb94 commit f8888fb
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 202 deletions.
74 changes: 37 additions & 37 deletions src/packages/form/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '添加',
Expand All @@ -112,7 +112,7 @@ const FormDemo = () => {
reset: '重置',
switch: '开关',
checkbox: '复选框',
gender: '性别',
gender: '字段E',
rate: '评分',
inputnumber: '步进器',
range: '滑块',
Expand All @@ -123,8 +123,8 @@ const FormDemo = () => {
number: '数量',
tag: '标注',
tagTip: '请输入标注',
male: '男性',
female: '女性',
male: 'A',
female: 'B',
input: '输入框',
checkboxGroup: '复选按钮分组',
option: '选项',
Expand All @@ -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',
Expand All @@ -169,7 +169,7 @@ const FormDemo = () => {
reset: 'Reset',
switch: 'Switch',
checkbox: 'Checkbox',
gender: 'Gender',
gender: 'Field E',
rate: 'Rate',
inputnumber: 'Inputnumber',
range: 'Range',
Expand All @@ -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',
Expand Down
74 changes: 37 additions & 37 deletions src/packages/form/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '添加',
Expand All @@ -108,7 +108,7 @@ const FormDemo = () => {
reset: '重置',
switch: '开关',
checkbox: '复选框',
gender: '性别',
gender: '字段E',
rate: '评分',
inputnumber: '步进器',
range: '滑块',
Expand All @@ -119,8 +119,8 @@ const FormDemo = () => {
number: '数量',
tag: '标注',
tagTip: '请输入标注',
male: '男性',
female: '女性',
male: 'A',
female: 'B',
input: '输入框',
checkboxGroup: '复选按钮分组',
option: '选项',
Expand All @@ -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',
Expand All @@ -165,7 +165,7 @@ const FormDemo = () => {
reset: 'Reset',
switch: 'Switch',
checkbox: 'Checkbox',
gender: 'Gender',
gender: 'Field E',
rate: 'Rate',
inputnumber: 'Inputnumber',
range: 'Range',
Expand All @@ -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',
Expand Down
66 changes: 33 additions & 33 deletions src/packages/form/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ const App = () => {
>
<Form.Item
required
label="name"
label="Field A"
name="username"
rules={[
{ max: 5, message: 'Name cannot exceed 5 characters' },
{ required: true, message: 'Please enter your name' },
{ max: 5, message: 'Field A cannot exceed 5 characters' },
{ required: true, message: 'Please enter Field A' },
]}
>
<Input
className="nut-input-text"
placeholder="Please type in your name"
placeholder="Please type in Field A"
type="text"
/>
</Form.Item>
<Form.Item
label="address"
label="Field D"
name="address"
rules={[
{ max: 15, message: 'The address should not exceed 15 characters' },
{ required: true, message: 'Please enter your address' },
{ max: 15, message: 'Field D should not exceed 15 characters' },
{ required: true, message: 'Please enter Field D' },
]}
>
<TextArea placeholder="please enter address" maxLength={100} />
<TextArea placeholder="please enter Field D" maxLength={100} />
</Form.Item>
<Form.Item
label="count"
Expand Down Expand Up @@ -117,40 +117,40 @@ const App = () => {
}
>
<Form.Item
label="name"
label="Field A"
name="username"
rules={[{ required: true, message: "Please type in your name" }]}
rules={[{ required: true, message: "Please type in Field A" }]}
>
<Input placeholder="Please type in your name" type="text" />
<Input placeholder="Please type in Field A" type="text" />
</Form.Item>
<Form.Item
label="age"
name="age"
label="Field B"
name="Field B"
rules={[
{ required: true, message: "Please enter age" },
{ required: true, message: "Please enter Field B" },
{ validator: customValidator, message: "number must be entered" },
{
validator: valueRangeValidator,
message: "0-200 range must be entered"
},
]}
>
<Input placeholder="Please enter age,0-200 range must be entered"
<Input placeholder="Please enter Field B,0-200 range must be entered"
type="text" />
</Form.Item>
<Form.Item
label="telephone"
label="Field C"
name="tel"
rules={[{ max: 13, message: "Please type your phone number" }]}
rules={[{ max: 13, message: "Please type Field C" }]}
>
<Input placeholder="The phone format is incorrect" type="number" />
<Input placeholder="Field C format is incorrect" type="number" />
</Form.Item>
<Form.Item
label="address"
label="Field D"
name="address"
rules={[{ required: true, message: "please enter address" }]}
rules={[{ required: true, message: "please enter Field D" }]}
>
<Input placeholder="please enter address" type="text" />
<Input placeholder="please enter Field D" type="text" />
</Form.Item>
</Form>
</>
Expand Down Expand Up @@ -210,23 +210,23 @@ const App = () => {
}
>
<Form.Item
label="name"
label="Field A"
name="username"
rules={[{ required: true, message: "Please type in your name" }]}
rules={[{ required: true, message: "Please type in Field A" }]}
initialValue="ZhangSan"
>
<Input placeholder="Please type in your name" type="text" />
<Input placeholder="Please type in Field A" type="text" />
</Form.Item>
<Form.Item label="age" name="age" initialValue={18} rules={[
{ required: true, message: "Please enter age" },
<Form.Item label="Field B" name="age" initialValue={18} rules={[
{ required: true, message: "Please enter Field B" },
{ validator: customValidator, message: "number must be entered" },
{
validator: valueRangeValidator,
message: "0-200 range must be entered"
},
]}>
<Input
placeholder="Please enter age,0-200 range must be entered"
placeholder="Please enter Field B,0-200 range must be entered"
type="number"
/>
</Form.Item>
Expand Down Expand Up @@ -275,19 +275,19 @@ const App = () => {
onFinishFailed={(values, errors) => submitFailed(errors)}
>
<Form.Item
label="name"
label="Field A"
name="username"
rules={[{ required: true, message: "Please type in your name" }]}
rules={[{ required: true, message: "Please type in Field A" }]}
>
<Input placeholder="Please type in your name" type="text" />
<Input placeholder="Please type in Field A" type="text" />
</Form.Item>
<Form.Item label="tag" name="note">
<Input placeholder="Please enter a label" type="string" />
</Form.Item>
<Form.Item label="gender" name="gender">
<Form.Item label="Field E" name="gender">
<Radio.Group onChange={onMenuChange}>
<Radio value="male">male</Radio>
<Radio value="female">female</Radio>
<Radio value="male">A</Radio>
<Radio value="female">B</Radio>
</Radio.Group>
</Form.Item>
</Form>
Expand Down
Loading

0 comments on commit f8888fb

Please sign in to comment.