fix: saveContractTemplateValues
| New file |
| | |
| | | export const CanvasWidth = 595; |
| | | export const CanvasHeight = 842; |
| | |
| | | checkTemplateParamObjectListNotNull, |
| | | convertJsonMapToTemplateParamObjectList, |
| | | } from '../utils'; |
| | | import { CanvasHeight, CanvasWidth } from '../constants'; |
| | | |
| | | export interface TemplateDetailContext { |
| | | templateDetail: Ref<API.GetContractTemplateQueryResult>; |
| | |
| | | recorder: x.recorder, |
| | | userType: x.userType, |
| | | bindProperty: x.bindProperty, |
| | | x: x.left, |
| | | y: x.top, |
| | | x: x.left / CanvasWidth, |
| | | y: x.top / CanvasHeight, |
| | | page: x.pageNum + 1, |
| | | } as API.SaveContractTemplateValuesCommandItem) |
| | | ), |
| | |
| | | import './plugin/fabric-history'; |
| | | import { MyHistoryPlugin } from './plugin/MyHistoryPlugin'; |
| | | import { TemplateParamExtensionKey } from './customObject'; |
| | | import { CanvasHeight, CanvasWidth } from './constants'; |
| | | |
| | | const route = useRoute(); |
| | | const id = (route.params.id as string) ?? ''; |
| | |
| | | controlsAboveOverlay: true, // 超出clipPath后仍然展示控制条 |
| | | // imageSmoothingEnabled: false, // 解决文字导出后不清晰问题 |
| | | preserveObjectStacking: true, // 当选择画布中的对象时,让对象不在顶层。 |
| | | width: 595, |
| | | height: 842, |
| | | width: CanvasWidth, |
| | | height: CanvasHeight, |
| | | }); |
| | | console.log('canvas: ', canvas); |
| | | |