|
@@ -1,5 +1,6 @@
|
|
|
import { createAttrsForm } from "../../defines/createAttrsForm";
|
|
|
import { createCompHooks } from "../../defines/createCompHooks";
|
|
|
+import { ImagePicker } from "../../formItems/ImagePicker";
|
|
|
|
|
|
export { Component } from "./component";
|
|
|
|
|
@@ -15,6 +16,7 @@ export const { createComp, useCompData } = createCompHooks({
|
|
|
autoplay: true,
|
|
|
loop: true,
|
|
|
controls: true,
|
|
|
+ poster: "",
|
|
|
},
|
|
|
layout: {
|
|
|
size: [750, 750],
|
|
@@ -27,6 +29,11 @@ export const Form = createAttrsForm([
|
|
|
// dataIndex: "value.url",
|
|
|
// component: "Input",
|
|
|
// },
|
|
|
+ {
|
|
|
+ label: "封面",
|
|
|
+ dataIndex: "value.poster",
|
|
|
+ component: ImagePicker,
|
|
|
+ },
|
|
|
{
|
|
|
label: "视频比例",
|
|
|
dataIndex: "value.ratio",
|