@hw-component/form 1.3.2 → 1.3.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.
@@ -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,
@@ -121,6 +121,7 @@ var Index = function Index(_ref) {
121
121
  var upProps = _objectSpread({
122
122
  exFiles: defaultExFiles
123
123
  }, props);
124
+ console.log(value, "urlUpload");
124
125
  return jsxs(Space, {
125
126
  direction: "vertical",
126
127
  style: _objectSpread({
@@ -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,
@@ -124,6 +124,7 @@ var Index = function Index(_ref) {
124
124
  var upProps = _objectSpread({
125
125
  exFiles: defaultExFiles
126
126
  }, props);
127
+ console.log(value, "urlUpload");
127
128
  return jsxRuntime.jsxs(antd.Space, {
128
129
  direction: "vertical",
129
130
  style: _objectSpread({
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.3",
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}
@@ -82,6 +82,7 @@ const Index = ({
82
82
  setLoad(false);
83
83
  };
84
84
  const upProps={exFiles:defaultExFiles,...props};
85
+ console.log(value,"urlUpload")
85
86
  return (
86
87
  <Space direction={"vertical"} style={{width:"100%",...style}} size={"middle"}>
87
88
  <Input
@@ -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
  </>