@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.
- package/es/DialogForm/DrawerForm/index.js +0 -1
- package/es/Upload/UrlUpload/index.js +1 -0
- package/lib/DialogForm/DrawerForm/index.js +0 -1
- package/lib/Upload/UrlUpload/index.js +1 -0
- package/package.json +1 -1
- package/src/components/DialogForm/DrawerForm/index.tsx +0 -1
- package/src/components/Upload/UrlUpload/index.tsx +1 -0
- package/src/pages/DrawerForm/index.tsx +5 -0
package/package.json
CHANGED
|
@@ -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
|
</>
|