model.js 365 B

1234567891011121314151617181920212223
  1. import { getElementId, randomCode, deepCopy } from "../../plugins/utils";
  2. const MODEL = {
  3. type: "FILL_NUMBER",
  4. x: 0,
  5. y: 0,
  6. w: 300,
  7. h: 280,
  8. sign: "",
  9. name: "准考证号",
  10. numberCount: 9,
  11. content: ""
  12. };
  13. const getModel = () => {
  14. return {
  15. id: getElementId(),
  16. key: randomCode(),
  17. ...deepCopy(MODEL)
  18. };
  19. };
  20. export { MODEL, getModel };