<template>
    <div>

    </div>
</template>

<script>
export default {
    props: ['url', "fileType", "filename"],
    data() {
        return {
            
        };
    },
    mounted() {
        var docEditor = new DocsAPI.DocEditor("placeholder", {
            "document": {
                "fileType": "pptx",
                "permissions": {
                    "edit": false,
                    "copy": false,
                    "download": false,
                    "print": false,
                    "chat": false
                },
                // "key": "C8D7FB890BAC496FB0D27B163EDB88BDAA",
                "title": "zf张飞.pptx",
                "url": "http://192.168.168.110:9006/document/DD27367D-5680-46FF-9A6D-F248F4567511.pptx?Content-Disposition=attachment%3B%20filename%3D%22DD27367D-5680-46FF-9A6D-F248F4567511.pptx%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20231127%2F%2Fs3%2Faws4_request&X-Amz-Date=20231127T031344Z&X-Amz-Expires=432000&X-Amz-SignedHeaders=host&X-Amz-Signature=c5fb3f67663eb945adfe54b8f1783b08ed08a9704464bd86465459fc0ef6917e",
            },
            "height": "1000px",
            "width": "100%",
            "editorConfig": {
                "mode": 'view',
                "customization": {
                    //是否显示插件
                    "plugins": false,
                    "feedback": {
                        "url": "https://example.com",
                        "visible": false
                    },
                    "help": false
                },
                about: false,
            }

        });
    }
}
</script>