@hw-component/form 1.3.0 → 1.3.2
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/DialogForm/DrawerForm/index.js +1 -0
- package/es/Upload/index.js +1 -1
- package/lib/DialogForm/DrawerForm/index.js +1 -0
- package/lib/Upload/index.js +1 -1
- package/package.json +1 -1
- package/src/components/DialogForm/DrawerForm/index.tsx +1 -0
- package/src/components/Upload/index.tsx +2 -1
- package/src/pages/DrawerForm/index.tsx +8 -1
package/es/Upload/index.js
CHANGED
|
@@ -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("
|
|
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] || [];
|
package/lib/Upload/index.js
CHANGED
|
@@ -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("
|
|
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
|
@@ -61,7 +61,7 @@ const Index: React.ForwardRefRenderFunction<IUploadRefModal, IUpLoadProps> = (
|
|
|
61
61
|
addFormat?.({
|
|
62
62
|
float: {
|
|
63
63
|
inputValue: (item, initValue) => {
|
|
64
|
-
console.log("
|
|
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
|
|
@@ -95,6 +95,12 @@ const data = [
|
|
|
95
95
|
name: "urlUpload",
|
|
96
96
|
type: "urlUpload",
|
|
97
97
|
rules: [{ required: true }],
|
|
98
|
+
itemProps: {
|
|
99
|
+
style: { width: 368 },
|
|
100
|
+
placeholder: '粘贴图片地址鼠标移出输入框自动保存',
|
|
101
|
+
maxSize: 1024 * 1024 * 10,
|
|
102
|
+
thumbUrl:"http://gips3.baidu.com/it/u=3886271102,3123389489&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960",
|
|
103
|
+
},
|
|
98
104
|
},
|
|
99
105
|
{
|
|
100
106
|
label: "验证码",
|
|
@@ -120,6 +126,8 @@ export default () => {
|
|
|
120
126
|
check1: 1,
|
|
121
127
|
op: 1,
|
|
122
128
|
opInput: num,
|
|
129
|
+
upload:"fff",
|
|
130
|
+
urlUpload:"fff"
|
|
123
131
|
},
|
|
124
132
|
});
|
|
125
133
|
}}
|
|
@@ -134,7 +142,6 @@ export default () => {
|
|
|
134
142
|
打开
|
|
135
143
|
</Button>
|
|
136
144
|
<HDrawerForm
|
|
137
|
-
autoClear={false}
|
|
138
145
|
configData={data}
|
|
139
146
|
labelWidth={88}
|
|
140
147
|
labelAlign={"left"}
|