@hw-component/form 1.3.0 → 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.
@@ -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({
@@ -86,7 +86,7 @@ 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("fff");
89
+ console.log("inputValue");
90
90
  var _item$name = item.name,
91
91
  name = _item$name === void 0 ? "" : _item$name;
92
92
  var initFileList = initValue[name] || [];
@@ -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({
@@ -89,7 +89,7 @@ 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("fff");
92
+ console.log("inputValue");
93
93
  var _item$name = item.name,
94
94
  name = _item$name === void 0 ? "" : _item$name;
95
95
  var initFileList = initValue[name] || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.3.0",
3
+ "version": "1.3.3",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
@@ -61,7 +61,7 @@ const Index: React.ForwardRefRenderFunction<IUploadRefModal, IUpLoadProps> = (
61
61
  addFormat?.({
62
62
  float: {
63
63
  inputValue: (item, initValue) => {
64
- console.log("fff")
64
+ console.log("inputValue")
65
65
  const { name = "" } = item;
66
66
  const initFileList = initValue[name] || [];
67
67
  const relInitFileList =
@@ -94,6 +94,7 @@ const Index: React.ForwardRefRenderFunction<IUploadRefModal, IUpLoadProps> = (
94
94
  },
95
95
  });
96
96
  const relVal=Array.isArray(value)?value:[];
97
+
97
98
  return (
98
99
  <div style={contentStyle}>
99
100
  <Upload
@@ -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: "输入框",
@@ -95,6 +96,13 @@ const data = [
95
96
  name: "urlUpload",
96
97
  type: "urlUpload",
97
98
  rules: [{ required: true }],
99
+ itemProps: {
100
+ style: { width: 368 },
101
+ placeholder: '粘贴图片地址鼠标移出输入框自动保存',
102
+ maxSize: 1024 * 1024 * 10,
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
105
+ },
98
106
  },
99
107
  {
100
108
  label: "验证码",
@@ -120,6 +128,8 @@ export default () => {
120
128
  check1: 1,
121
129
  op: 1,
122
130
  opInput: num,
131
+ upload:"fff",
132
+ urlUpload:"fff"
123
133
  },
124
134
  });
125
135
  }}
@@ -134,7 +144,6 @@ export default () => {
134
144
  打开
135
145
  </Button>
136
146
  <HDrawerForm
137
- autoClear={false}
138
147
  configData={data}
139
148
  labelWidth={88}
140
149
  labelAlign={"left"}
@@ -142,6 +151,9 @@ export default () => {
142
151
  afterClose={()=>{
143
152
  console.log("afterClose")
144
153
  }}
154
+ contentRender={(node)=>{
155
+ return <div>{node}</div>
156
+ }}
145
157
  title="测试"
146
158
  />
147
159
  </>