@hw-component/form 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Form/config.js
CHANGED
|
@@ -22,7 +22,7 @@ import TrimInput from '../Input/TrimInput.js';
|
|
|
22
22
|
import TrimTextArea from '../TextArea/TrimTextArea.js';
|
|
23
23
|
|
|
24
24
|
var placeholderConfig = {
|
|
25
|
-
inputType: ["input", "inputNumber", "selectInput", "buttonInput", "verificationCodeInput", "trimInput", "urlUpload"],
|
|
25
|
+
inputType: ["input", "inputNumber", "selectInput", "buttonInput", "verificationCodeInput", "trimInput", "urlUpload", "textArea"],
|
|
26
26
|
selectType: ["select", "datePicker", "timePicker", "colorInput"]
|
|
27
27
|
};
|
|
28
28
|
var componentConfig = {
|
package/lib/Form/config.js
CHANGED
|
@@ -25,7 +25,7 @@ var TrimInput = require('../Input/TrimInput.js');
|
|
|
25
25
|
var TrimTextArea = require('../TextArea/TrimTextArea.js');
|
|
26
26
|
|
|
27
27
|
var placeholderConfig = {
|
|
28
|
-
inputType: ["input", "inputNumber", "selectInput", "buttonInput", "verificationCodeInput", "trimInput", "urlUpload"],
|
|
28
|
+
inputType: ["input", "inputNumber", "selectInput", "buttonInput", "verificationCodeInput", "trimInput", "urlUpload", "textArea"],
|
|
29
29
|
selectType: ["select", "datePicker", "timePicker", "colorInput"]
|
|
30
30
|
};
|
|
31
31
|
var componentConfig = {
|
package/package.json
CHANGED
package/src/pages/Form/index.tsx
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {HForm, HFormConfigProvider, HSwitch, useHForm} from "../../components";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import {Button, DatePicker, Form, Input, Row} from "antd";
|
|
4
4
|
const Test2=()=>{
|
|
5
|
-
return <
|
|
5
|
+
return <Row style={{background:"red"}}>
|
|
6
|
+
|
|
7
|
+
</Row>
|
|
6
8
|
}
|
|
7
9
|
const formData = (options) => {
|
|
8
10
|
const op = [
|
|
@@ -16,6 +18,11 @@ const formData = (options) => {
|
|
|
16
18
|
},
|
|
17
19
|
];
|
|
18
20
|
return [
|
|
21
|
+
{
|
|
22
|
+
label: "12321",
|
|
23
|
+
className: "3",
|
|
24
|
+
name:"3",
|
|
25
|
+
},
|
|
19
26
|
{
|
|
20
27
|
label: "测试12312",
|
|
21
28
|
className: "hdjd",
|
|
@@ -72,7 +79,6 @@ export default () => {
|
|
|
72
79
|
<HForm
|
|
73
80
|
configData={formData(options)}
|
|
74
81
|
labelWidth={200}
|
|
75
|
-
itemSpan={{ span: 6 }}
|
|
76
82
|
form={form}
|
|
77
83
|
labelAlign={"right"}
|
|
78
84
|
onFinish={(value) => {
|