diff --git a/packages/standard-objects/cfs_files_record/pages/cfs_files_record_preview.page.amis.json b/packages/standard-objects/cfs_files_record/pages/cfs_files_record_preview.page.amis.json index 9178530c43..d80a0dfeb9 100644 --- a/packages/standard-objects/cfs_files_record/pages/cfs_files_record_preview.page.amis.json +++ b/packages/standard-objects/cfs_files_record/pages/cfs_files_record_preview.page.amis.json @@ -78,42 +78,43 @@ "disabled": true }, "css": { - ".page-detail-cms_file-preview .tab-container-office-preview .office-viewer-excel": { + ".page-detail-cfs_files_filerecord-preview .tab-container-office-preview .office-viewer-excel": { "height": "100% !important" }, - ".page-detail-cms_file-preview .tab-container-office-preview .page-excel-file .antd-Page-body>div": { + ".page-detail-cfs_files_filerecord-preview .tab-container-office-preview .page-excel-file .antd-Page-body>div": { "height": "100%" }, - ".page-detail-cms_file-preview .tab-container-office-preview": { + ".page-detail-cfs_files_filerecord-preview .tab-container-office-preview": { "height": "calc(100vh - 15rem)", "overflow-y": "auto" }, - ".steedos-record-detail-drawer .page-detail-cms_file-preview .tab-container-office-preview": { + ".steedos-record-detail-drawer .page-detail-cfs_files_filerecord-preview .tab-container-office-preview": { "height": "calc(100vh - 9.5rem)", "overflow-y": "auto" }, - ".page-detail-cms_file-preview.mobile-preview-page .tab-container-office-preview": { - "height": "calc(100vh - 18rem)", + ".page-detail-cfs_files_filerecord-preview.mobile-preview-page .tab-container-office-preview": { + "height": "calc(100vh - 17rem)", "overflow-y": "auto" }, - ".page-detail-cms_file-preview.mobile-preview-page .office-viewer article section": { + ".page-detail-cfs_files_filerecord-preview.mobile-preview-page .office-viewer article section": { "width": "100% !important", "padding": "1rem !important" }, - ".page-detail-cms_file-preview.mobile-preview-page .office-viewer article p div,.mobile-preview-page .office-viewer article table": { + ".page-detail-cfs_files_filerecord-preview.mobile-preview-page .office-viewer article p div,.mobile-preview-page .office-viewer article table": { "max-width": "100%" }, - ".page-detail-cms_file-preview.mobile-preview-page .office-viewer article p": { + ".page-detail-cfs_files_filerecord-preview.mobile-preview-page .office-viewer article p": { "text-indent": "unset !important" }, - ".page-detail-cms_file-preview.mobile-preview-page .office-viewer article": { + ".page-detail-cfs_files_filerecord-preview.mobile-preview-page .office-viewer article": { "width": "100%" } } } ], "id": "u:0bed5e9e0a6f", - "visibleOn": "${ARRAYINCLUDES(['application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','application/pdf','image/png','image/jpeg','image/bmp','image/gif','image/webp','image/psd','image/svg','image/tiff'],${record.original.type})}" + "visibleOn": "${ARRAYINCLUDES(['application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','application/pdf','image/png','image/jpeg','image/bmp','image/gif','image/webp','image/psd','image/svg','image/tiff'],${record.original.type})}", + "className": "tab-container-office-preview" }, { "title": "详细", @@ -157,7 +158,10 @@ "name": "page_announcements_record_detail", "objectApiName": "${objectName}", "bodyClassName": "", - "className": "object-detail-page steedos-record-content overflow-y-auto p-0 m-0 flex-1 h-full bg-gray-100", + "className": { + "mobile-preview-page": "${window:innerWidth<768}", + "object-detail-page steedos-record-content overflow-y-auto p-0 m-0 flex-1 h-full bg-gray-100 page-detail-cfs_files_filerecord-preview": "true" + }, "asideResizor": false, "editorState": "default", "pullRefresh": { diff --git a/packages/standard-objects/cms_files/pages/preview.page.amis.json b/packages/standard-objects/cms_files/pages/cms_files_preview.page.amis.json similarity index 100% rename from packages/standard-objects/cms_files/pages/preview.page.amis.json rename to packages/standard-objects/cms_files/pages/cms_files_preview.page.amis.json diff --git a/packages/standard-objects/cms_files/pages/preview.page.yml b/packages/standard-objects/cms_files/pages/cms_files_preview.page.yml similarity index 59% rename from packages/standard-objects/cms_files/pages/preview.page.yml rename to packages/standard-objects/cms_files/pages/cms_files_preview.page.yml index d20ee49f15..26d50d02cb 100644 --- a/packages/standard-objects/cms_files/pages/preview.page.yml +++ b/packages/standard-objects/cms_files/pages/cms_files_preview.page.yml @@ -1,13 +1,11 @@ -name: preview -__filename: >- - /workspace/steedos-platform/packages/standard-objects/cms_files/pages/preview.page.yml +name: cms_files_preview is_active: true label: 附件记录详细 locked: false object_name: cms_files pageAssignments: - type: orgDefault - page: preview + page: cms_files_preview desktop: true mobile: true render_engine: amis