@hw-component/form 1.3.2 → 1.3.4

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.
@@ -88,7 +88,6 @@ var DrawerForm = (function (_ref) {
88
88
  confirmLoading: loading
89
89
  });
90
90
  };
91
- console.log(initValue, "initValue");
92
91
  var node = jsx(HForm, _objectSpread(_objectSpread({
93
92
  configData: modalFormData,
94
93
  initialValues: initValue,
@@ -86,7 +86,6 @@ var Index = function Index(_ref, ref) {
86
86
  addFormat === null || addFormat === void 0 || addFormat({
87
87
  float: {
88
88
  inputValue: function inputValue(item, initValue) {
89
- console.log("inputValue");
90
89
  var _item$name = item.name,
91
90
  name = _item$name === void 0 ? "" : _item$name;
92
91
  var initFileList = initValue[name] || [];
@@ -91,7 +91,6 @@ var DrawerForm = (function (_ref) {
91
91
  confirmLoading: loading
92
92
  });
93
93
  };
94
- console.log(initValue, "initValue");
95
94
  var node = jsxRuntime.jsx(index.default, _objectSpread(_objectSpread({
96
95
  configData: modalFormData,
97
96
  initialValues: initValue,
@@ -89,7 +89,6 @@ var Index = function Index(_ref, ref) {
89
89
  addFormat === null || addFormat === void 0 || addFormat({
90
90
  float: {
91
91
  inputValue: function inputValue(item, initValue) {
92
- console.log("inputValue");
93
92
  var _item$name = item.name,
94
93
  name = _item$name === void 0 ? "" : _item$name;
95
94
  var initFileList = initValue[name] || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -73,7 +73,6 @@ export default ({
73
73
  )
74
74
  );
75
75
  };
76
- console.log(initValue,"initValue")
77
76
  const node = (
78
77
  <HForm
79
78
  configData={modalFormData}
@@ -61,7 +61,6 @@ const Index: React.ForwardRefRenderFunction<IUploadRefModal, IUpLoadProps> = (
61
61
  addFormat?.({
62
62
  float: {
63
63
  inputValue: (item, initValue) => {
64
- console.log("inputValue")
65
64
  const { name = "" } = item;
66
65
  const initFileList = initValue[name] || [];
67
66
  const relInitFileList =
@@ -1,5 +1,6 @@
1
1
  import { Button } from "antd";
2
2
  import { HDrawerForm, useHDialogForm } from "../../components";
3
+ import {MediaTypeEnum} from "../../components/Upload/enums";
3
4
  const data = [
4
5
  {
5
6
  label: "输入框",
@@ -100,6 +101,7 @@ const data = [
100
101
  placeholder: '粘贴图片地址鼠标移出输入框自动保存',
101
102
  maxSize: 1024 * 1024 * 10,
102
103
  thumbUrl:"http://gips3.baidu.com/it/u=3886271102,3123389489&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960",
104
+ mediaType:MediaTypeEnum.video
103
105
  },
104
106
  },
105
107
  {
@@ -149,6 +151,9 @@ export default () => {
149
151
  afterClose={()=>{
150
152
  console.log("afterClose")
151
153
  }}
154
+ contentRender={(node)=>{
155
+ return <div>{node}</div>
156
+ }}
152
157
  title="测试"
153
158
  />
154
159
  </>