|
@@ -1,15 +1,16 @@
|
|
import { Dict_Imgs } from "@/dict";
|
|
import { Dict_Imgs } from "@/dict";
|
|
import { createAttrsForm } from "../../defines/createAttrsForm";
|
|
import { createAttrsForm } from "../../defines/createAttrsForm";
|
|
import { createOptions2 } from "../../defines/createOptions";
|
|
import { createOptions2 } from "../../defines/createOptions";
|
|
|
|
+import { RegCompType } from "../../defines/creator";
|
|
|
|
|
|
export { Component } from "./component";
|
|
export { Component } from "./component";
|
|
|
|
|
|
-export const { options, useCompData } = createOptions2({
|
|
|
|
- name: "图片",
|
|
|
|
- compKey: "Image2",
|
|
|
|
- thumbnail: Dict_Imgs.Default,
|
|
|
|
- value: {url: Dict_Imgs.Default, x: 0, y:0, s: 1},
|
|
|
|
-});
|
|
|
|
|
|
+export const { createCompData, useCompData } = RegCompType(
|
|
|
|
+ {type: "Image2", name: "图片", thumbnail: Dict_Imgs.Default},
|
|
|
|
+ {
|
|
|
|
+ value: {url: Dict_Imgs.Default, x: 0, y:0, s: 1},
|
|
|
|
+ }
|
|
|
|
+);
|
|
|
|
|
|
export const Form = createAttrsForm([
|
|
export const Form = createAttrsForm([
|
|
{
|
|
{
|