1234567891011121314151617181920212223242526272829303132333435 |
- import { Dict_Imgs } from "@/dict";
- import { createAttrsForm } from "../../defines/createAttrsForm";
- import { createOptions2 } from "../../defines/createOptions";
- import { RegCompType } from "../../defines/creator";
- export { Component } from "./component";
- 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([
- {
- label: "图片",
- dataIndex: "value.url",
- component: "Input",
- },
- {
- label: "x偏移",
- dataIndex: "value.x",
- component: "Input",
- },
- {
- label: "y偏移",
- dataIndex: "value.y",
- component: "Input",
- },{
- label: "缩放",
- dataIndex: "value.s",
- component: "Input",
- },
- ]);
|