@hw-component/form 1.10.28 → 1.10.29

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/index.js CHANGED
@@ -97,6 +97,7 @@ var HForm = (function (_ref) {
97
97
  children: jsxs(Form, _objectSpread(_objectSpread({}, props), {}, {
98
98
  form: hForm,
99
99
  onFinish: run,
100
+ initialValues: initialValues,
100
101
  onValuesChange: valuesChange,
101
102
  style: requiredMode ? _objectSpread({
102
103
  paddingLeft: 10
package/lib/Form/index.js CHANGED
@@ -100,6 +100,7 @@ var HForm = (function (_ref) {
100
100
  children: jsxRuntime.jsxs(antd.Form, _objectSpread(_objectSpread({}, props), {}, {
101
101
  form: hForm,
102
102
  onFinish: run,
103
+ initialValues: initialValues,
103
104
  onValuesChange: valuesChange,
104
105
  style: requiredMode ? _objectSpread({
105
106
  paddingLeft: 10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.28",
3
+ "version": "1.10.29",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -89,9 +89,10 @@ export default ({
89
89
  }}
90
90
  >
91
91
  <Form
92
- {...props}
92
+ {...props}
93
93
  form={hForm}
94
94
  onFinish={run}
95
+ initialValues={initialValues}
95
96
  onValuesChange={valuesChange}
96
97
  style={requiredMode ? { paddingLeft: 10, ...style } : style}
97
98
  >
@@ -5,7 +5,7 @@ import {
5
5
  HSelect,
6
6
  HBasicForm,
7
7
  } from "../../components";
8
- import { useState } from "react";
8
+ import {useEffect, useState} from "react";
9
9
  import { Button, Form, Input, Space } from "antd";
10
10
  const Test3 = ({ value = {}, onChange }) => {
11
11
  const { fs, end } = value;
@@ -41,6 +41,9 @@ const TestItem = () => {
41
41
  );
42
42
  };
43
43
  const Test = (props) => {
44
+ useEffect(()=>{
45
+ console.log("ffff")
46
+ },[]);
44
47
  return <div>ffff</div>;
45
48
  };
46
49
  const Basic = () => {
@@ -52,6 +55,13 @@ const Basic = () => {
52
55
  type: "inputNumberGroup",
53
56
  name: "jgTime",
54
57
  },
58
+ {
59
+ label:"test",
60
+ name:"test",
61
+ render:()=>{
62
+ return <Test/>
63
+ }
64
+ }
55
65
  ]}
56
66
  />
57
67
  );