ApiEvent.AddApiEventListener previewLimit 监听回调事件不生效

阅读次数 0

web-office-sdk-solution-v1.1.20.umd.js

jssdk.ApiEvent.AddApiEventListener('previewLimit', data => { debugger console.log('previewLimit: ', data) })

var jssdk = WebOfficeSDK.config({
                                url: 'https://wps3.cldisk.com/weboffice/office/w/1de23661873de902ea6a2458576xxxx?_w_appid=xxxxxxxx&_w_third_appid=DOEJSZFxxxxx&_w_third_file_id=xxxxxde902ea6a2458576f7d08&_w_third_param_obj=h9uh7V3b5OHfoGtWPLmftHXCC5kWzUyDK%2B6YG4Lk6ywQH7RW%2FizAbH%2Ft4fJeLVH9DxJQuN4PnS0vOoJ9Ap%2F0uJ3l5H3f6wI0wepNm7Uv6VlhjgGqyv%2FO%2BC77bKbpjPVu4zAl80doBuY7yIYrT8XRHiUg5W%2B1aPZqAnZ1azg1RtuhSIijO9DvYO%2FiVaItArpZP6LoDDzP%2Bel9PKdgWBZEa8u9RvECub7nM9lsOfA6sbWO7iEGDIH1gTSpYzNuSs%2F3GT%2BOTv8PJ4T98TV9nWSEIsqR37%2BOO3KrAE6B9gd9r1iKaSqEAoOXcu21EkP1CmR1pKhVOoN%2ccBQg7hEF%2ccFPfuSIOt5zvh0HypRyY19dOICf6Pc%3D&preview_mode=ordinary',
                                mount: document.querySelector('#officeonlineview'),
                                mode: 'simple',
                                commonOptions: {
                                    isShowTopArea: false, // 隐藏顶部区域(头部和工具栏)
                                    isSHowHeader: false  // 隐藏头部区域
                                },
                                commandBars: [
                                    {
                                        cmbId: 'MoreMenus',
                                        attributes: {
                                            visible: false
                                        },
                                    },
                                    {
                                        cmbId: 'Print',
                                        attributes: {
                                            visible: false
                                        },
                                    },
                                    {
                                        cmbId: 'ToolsTab',
                                        attributes: {
                                            visible: false
                                        },
                                    }
                                ],
                            });
0 Answers