1234567891011121314151617181920212223242526272829 |
- import { getElementId, deepCopy } from "../../plugins/utils";
- const MODEL = {
- type: "TEXT",
- x: 0,
- y: 0,
- w: 200,
- h: 50,
- sign: "",
- fontWeight: 400,
- fontFamily: "宋体",
- fontSize: "14px",
- color: "#000",
- content: [
- {
- type: "text",
- content: "样例内容"
- }
- ]
- };
- const getModel = () => {
- return {
- id: getElementId(),
- ...deepCopy(MODEL)
- };
- };
- export { MODEL, getModel };
|