ofd-view 0.1.21 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,159 +64,900 @@ if (typeof window !== 'undefined') {
64
64
  // Indicate to webpack that this file can be concatenated
65
65
  /* harmony default export */ var setPublicPath = (null);
66
66
 
67
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=5f966ce0&scoped=true&
68
- var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)
69
- }
70
- var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"outerContainer"}},[_c('div',{attrs:{"id":"mainContainer"}},[_c('div',{staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{"id":"secondaryToolbar"}},[_c('div',{attrs:{"id":"secondaryToolbarButtonContainer"}},[_c('button',{staticClass:"secondaryToolbarButton openFile visibleLargeView",attrs:{"id":"secondaryOpenFile","title":"打开文件","tabindex":"52","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"secondaryToolbarButton print visibleMediumView",attrs:{"id":"secondaryPrint","title":"打印","tabindex":"53","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('button',{staticClass:"secondaryToolbarButton documentProperties",attrs:{"id":"documentProperties","title":"文档属性…","tabindex":"69","data-l10n-id":"document_properties","aria-controls":"documentPropertiesDialog"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_label"}},[_vm._v("文档属性…")])])])]),_vm._v(" "),_c('div',{staticClass:"toolbar"},[_c('div',{attrs:{"id":"toolbarContainer"}},[_c('div',{attrs:{"id":"toolbarViewer"}},[_c('div',{attrs:{"id":"toolbarViewerLeft"}},[_c('div',{staticClass:"splitToolbarButton hiddenSmallView"},[_c('button',{staticClass:"toolbarButton pageUp",attrs:{"title":"上一页","id":"previous","tabindex":"13","data-l10n-id":"previous"}},[_c('span',{attrs:{"data-l10n-id":"previous_label"}},[_vm._v("上一页")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton pageDown",attrs:{"title":"下一页","id":"next","tabindex":"14","data-l10n-id":"next"}},[_c('span',{attrs:{"data-l10n-id":"next_label"}},[_vm._v("下一页")])])]),_c('input',{staticClass:"toolbarField pageNumber",attrs:{"type":"number","id":"pageNumber","title":"页面","value":"1","size":"4","min":"1","tabindex":"15","data-l10n-id":"page","autocomplete":"off"}}),_c('span',{staticClass:"toolbarLabel",attrs:{"id":"numPages"}})]),_c('div',{attrs:{"id":"toolbarViewerRight"}},[_c('button',{staticClass:"toolbarButton openFile hiddenLargeView",attrs:{"id":"openFile","title":"打开文件","tabindex":"32","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"toolbarButton print hiddenMediumView",attrs:{"id":"print","title":"打印","tabindex":"33","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('div',{staticClass:"verticalToolbarSeparator hiddenSmallView"}),_c('button',{staticClass:"toolbarButton",attrs:{"id":"secondaryToolbarToggle","title":"工具","tabindex":"36","data-l10n-id":"tools","aria-expanded":"false","aria-controls":"secondaryToolbar"}},[_c('span',{attrs:{"data-l10n-id":"tools_label"}},[_vm._v("工具")])])]),_c('div',{attrs:{"id":"toolbarViewerMiddle"}},[_c('div',{staticClass:"splitToolbarButton"},[_c('button',{staticClass:"toolbarButton zoomOut",attrs:{"id":"zoomOut","title":"缩小","tabindex":"21","data-l10n-id":"zoom_out"}},[_c('span',{attrs:{"data-l10n-id":"zoom_out_label"}},[_vm._v("缩小")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton zoomIn",attrs:{"id":"zoomIn","title":"放大","tabindex":"22","data-l10n-id":"zoom_in"}},[_c('span',{attrs:{"data-l10n-id":"zoom_in_label"}},[_vm._v("放大")])])]),_c('span',{staticClass:"dropdownToolbarButton",attrs:{"id":"scaleSelectContainer"}},[_c('select',{attrs:{"id":"scaleSelect","title":"缩放","tabindex":"23","data-l10n-id":"zoom"}},[_c('option',{attrs:{"id":"pageAutoOption","title":"","value":"auto","selected":"selected","data-l10n-id":"page_scale_auto"}},[_vm._v("自动缩放")]),_c('option',{attrs:{"id":"pageActualOption","title":"","value":"page-actual","data-l10n-id":"page_scale_actual"}},[_vm._v("实际大小")]),_c('option',{attrs:{"id":"pageFitOption","title":"","value":"page-fit","data-l10n-id":"page_scale_fit"}},[_vm._v("适合页面")]),_c('option',{attrs:{"id":"pageWidthOption","title":"","value":"page-width","data-l10n-id":"page_scale_width"}},[_vm._v("适合页宽")]),_c('option',{attrs:{"id":"customScaleOption","title":"","value":"custom","disabled":"disabled","hidden":"true"}}),_c('option',{attrs:{"title":"","value":"0.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 50 }"}},[_vm._v("50%")]),_c('option',{attrs:{"title":"","value":"0.75","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 75 }"}},[_vm._v("75%")]),_c('option',{attrs:{"title":"","value":"1","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 100 }"}},[_vm._v("100%")]),_c('option',{attrs:{"title":"","value":"1.25","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 125 }"}},[_vm._v("125%")]),_c('option',{attrs:{"title":"","value":"1.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 150 }"}},[_vm._v("150%")]),_c('option',{attrs:{"title":"","value":"2","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 200 }"}},[_vm._v("200%")]),_c('option',{attrs:{"title":"","value":"3","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 300 }"}},[_vm._v("300%")]),_c('option',{attrs:{"title":"","value":"4","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 400 }"}},[_vm._v("400%")])])])])])])]),_c('div',{attrs:{"id":"viewerContainer","tabindex":"0"}},[_c('div',{staticClass:"pdfViewer",attrs:{"id":"viewer"}})]),_c('div',{attrs:{"id":"errorWrapper","hidden":"true"}},[_c('div',{attrs:{"id":"errorMessageLeft"}},[_c('span',{attrs:{"id":"errorMessage"}}),_c('button',{attrs:{"id":"errorShowMore","data-l10n-id":"error_more_info"}},[_vm._v(" More Information ")]),_c('button',{attrs:{"id":"errorShowLess","data-l10n-id":"error_less_info","hidden":"true"}},[_vm._v(" Less Information ")])]),_c('div',{attrs:{"id":"errorMessageRight"}},[_c('button',{attrs:{"id":"errorClose","data-l10n-id":"error_close"}},[_vm._v(" Close ")])]),_c('div',{staticClass:"clearBoth"}),_c('textarea',{attrs:{"id":"errorMoreInfo","hidden":"true","readonly":"readonly"}})])]),_vm._v(" "),_c('div',{attrs:{"id":"dialogContainer"}},[_c('dialog',{attrs:{"id":"documentPropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileNameLabel","data-l10n-id":"document_properties_file_name"}},[_vm._v("文件名:")]),_c('p',{attrs:{"id":"fileNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileSizeLabel","data-l10n-id":"document_properties_file_size"}},[_vm._v("文件大小:")]),_c('p',{attrs:{"id":"fileSizeField","aria-labelledby":"fileSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"titleLabel","data-l10n-id":"document_properties_title"}},[_vm._v("标题:")]),_c('p',{attrs:{"id":"titleField","aria-labelledby":"titleLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"authorLabel","data-l10n-id":"document_properties_author"}},[_vm._v("作者:")]),_c('p',{attrs:{"id":"authorField","aria-labelledby":"authorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"subjectLabel","data-l10n-id":"document_properties_subject"}},[_vm._v("主题:")]),_c('p',{attrs:{"id":"subjectField","aria-labelledby":"subjectLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"keywordsLabel","data-l10n-id":"document_properties_keywords"}},[_vm._v("关键词:")]),_c('p',{attrs:{"id":"keywordsField","aria-labelledby":"keywordsLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creationDateLabel","data-l10n-id":"document_properties_creation_date"}},[_vm._v("创建日期:")]),_c('p',{attrs:{"id":"creationDateField","aria-labelledby":"creationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"modificationDateLabel","data-l10n-id":"document_properties_modification_date"}},[_vm._v("修改日期:")]),_c('p',{attrs:{"id":"modificationDateField","aria-labelledby":"modificationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creatorLabel","data-l10n-id":"document_properties_creator"}},[_vm._v("创建者:")]),_c('p',{attrs:{"id":"creatorField","aria-labelledby":"creatorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"producerLabel","data-l10n-id":"document_properties_producer"}},[_vm._v("OFD 生成器:")]),_c('p',{attrs:{"id":"producerField","aria-labelledby":"producerLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"versionLabel","data-l10n-id":"document_properties_version"}},[_vm._v("OFD 版本:")]),_c('p',{attrs:{"id":"versionField","aria-labelledby":"versionLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageCountLabel","data-l10n-id":"document_properties_page_count"}},[_vm._v("页数:")]),_c('p',{attrs:{"id":"pageCountField","aria-labelledby":"pageCountLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageSizeLabel","data-l10n-id":"document_properties_page_size"}},[_vm._v("页面大小:")]),_c('p',{attrs:{"id":"pageSizeField","aria-labelledby":"pageSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row",attrs:{"hidden":"hidden"}},[_c('span',{attrs:{"id":"linearizedLabel","data-l10n-id":"document_properties_linearized"}},[_vm._v("快速 Web 视图:")]),_c('p',{attrs:{"id":"linearizedField","aria-labelledby":"linearizedLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"documentPropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])]),_c('dialog',{staticStyle:{"min-width":"200px"},attrs:{"id":"printServiceDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"data-l10n-id":"print_progress_message"}},[_vm._v("正在准备打印文档…")])]),_c('div',{staticClass:"row"},[_c('progress',{attrs:{"id":"printProgress","value":"0","max":"100"}}),_c('span',{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":"{ \"progress\": 0 }"}},[_vm._v("0%")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"printCancel"}},[_c('span',{attrs:{"data-l10n-id":"print_progress_close"}},[_vm._v("取消")])])])]),_c('dialog',{attrs:{"id":"signaturePropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signerLabel"}},[_vm._v("签章人:")]),_c('p',{attrs:{"id":"signerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"providerLabel"}},[_vm._v("签章提供者:")]),_c('p',{attrs:{"id":"providerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"hashedValueLabel"}},[_vm._v("原文摘要值:")]),_c('p',{attrs:{"id":"hashedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signedValueLabel"}},[_vm._v("签名值:")]),_c('p',{attrs:{"id":"signedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signMethodLabel"}},[_vm._v("签名算法:")]),_c('p',{attrs:{"id":"signMethodField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signVersionLabel"}},[_vm._v("版本号:")]),_c('p',{attrs:{"id":"signVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"verifyLabel"}},[_vm._v("验签结果:")]),_c('p',{attrs:{"id":"verifyField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealIDLabel"}},[_vm._v("印章标识:")]),_c('p',{attrs:{"id":"sealIDField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealNameLabel"}},[_vm._v("印章名称:")]),_c('p',{attrs:{"id":"sealNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealTypeLabel"}},[_vm._v("印章类型:")]),_c('p',{attrs:{"id":"sealTypeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealAuthTimeLabel"}},[_vm._v("有效时间:")]),_c('p',{attrs:{"id":"sealAuthTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealMakeTimeLabel"}},[_vm._v("制章日期:")]),_c('p',{attrs:{"id":"sealMakeTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealVersionLabel"}},[_vm._v("印章版本:")]),_c('p',{attrs:{"id":"sealVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"signaturePropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])])])])
71
- }]
72
-
73
-
74
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=5f966ce0&scoped=true&
75
-
76
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
77
-
78
-
79
- /* harmony default export */ var srcvue_type_script_lang_js_ = ({
80
- name: "OfdView",
81
- props: {
82
-
83
- },
84
-
85
- watch: {
86
-
87
- },
88
-
89
-
90
- data() {
91
- return {
92
-
93
- config: null,
94
- }
95
- },
96
-
97
- mounted() {
98
- if (!this.config) {
99
- this.config = this.getViewerConfiguration()
100
- //vue下viewerContainer必须设置height
101
- // this.containerHeight = `${window.innerHeight - 100}px`
102
- let img = new Image();
103
- img.style.position = 'absolute';
104
- img.style.left = 0;
105
- img.style.right = 0;
106
- img.style.margin = 'auto';
107
- img.style.top = 0;
108
- img.style.bottom = 0;
109
- img.src = 'data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb2FkLmluZm8AIf8LTkVUU0NBUEUyLjADAQAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBYC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BY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
110
- img.draggable = false;
111
- this.config.loadingContainer = img
112
- // config.onPageChanging = pageNumber => {
113
- // // console.log(pageNumber)
114
- // }
115
- // config.parserOFDSuccess = core => {
116
- // // console.log(core)
117
- // }
118
- // config.onPageScale = scale => {
119
- // // console.log(scale)
120
- // }
121
- }
122
- this.$emit('ofdViewReady', this.config)
123
- },
124
-
125
- methods: {
126
- getViewerConfiguration() {
127
- let errorWrapper = null
128
- errorWrapper = {
129
- container: document.getElementById('errorWrapper'),
130
- errorMessage: document.getElementById('errorMessage'),
131
- closeButton: document.getElementById('errorClose'),
132
- errorMoreInfo: document.getElementById('errorMoreInfo'),
133
- moreInfoButton: document.getElementById('errorShowMore'),
134
- lessInfoButton: document.getElementById('errorShowLess'),
135
- }
136
-
137
- return {
138
- appContainer: document.body,
139
- mainContainer: document.getElementById('viewerContainer'),
140
- viewerContainer: document.getElementById('viewer'),
141
- toolbar: {
142
- container: document.getElementById('toolbarViewer'),
143
- numPages: document.getElementById('numPages'),
144
- pageNumber: document.getElementById('pageNumber'),
145
- scaleSelect: document.getElementById('scaleSelect'),
146
- customScaleOption: document.getElementById('customScaleOption'),
147
- previous: document.getElementById('previous'),
148
- next: document.getElementById('next'),
149
- zoomIn: document.getElementById('zoomIn'),
150
- zoomOut: document.getElementById('zoomOut'),
151
- openFile: document.getElementById('openFile'),
152
- print: document.getElementById('print'),
153
- },
154
- secondaryToolbar: {
155
- toolbar: document.getElementById('secondaryToolbar'),
156
- toggleButton: document.getElementById('secondaryToolbarToggle'),
157
- toolbarButtonContainer: document.getElementById(
158
- 'secondaryToolbarButtonContainer'
159
- ),
160
- openFileButton: document.getElementById('secondaryOpenFile'),
161
- printButton: document.getElementById('secondaryPrint'),
162
- documentPropertiesButton: document.getElementById('documentProperties'),
163
- },
164
- sidebar: {
165
- // Divs (and sidebar button)
166
- outerContainer: document.getElementById('outerContainer'),
167
- viewerContainer: document.getElementById('viewerContainer'),
168
- },
169
- sidebarResizer: {
170
- outerContainer: document.getElementById('outerContainer'),
171
- },
172
- documentProperties: {
173
- dialog: document.getElementById('documentPropertiesDialog'),
174
- closeButton: document.getElementById('documentPropertiesClose'),
175
- fields: {
176
- fileName: document.getElementById('fileNameField'),
177
- fileSize: document.getElementById('fileSizeField'),
178
- title: document.getElementById('titleField'),
179
- author: document.getElementById('authorField'),
180
- subject: document.getElementById('subjectField'),
181
- keywords: document.getElementById('keywordsField'),
182
- creationDate: document.getElementById('creationDateField'),
183
- modificationDate: document.getElementById('modificationDateField'),
184
- creator: document.getElementById('creatorField'),
185
- producer: document.getElementById('producerField'),
186
- version: document.getElementById('versionField'),
187
- pageCount: document.getElementById('pageCountField'),
188
- pageSize: document.getElementById('pageSizeField'),
189
- linearized: document.getElementById('linearizedField'),
190
- },
191
- },
192
- signatureProperties: {
193
- dialog: document.getElementById('signaturePropertiesDialog'),
194
- closeButton: document.getElementById('signaturePropertiesClose'),
195
- fields: {
196
- signer: document.getElementById('signerField'),
197
- provider: document.getElementById('providerField'),
198
- hashedValue: document.getElementById('hashedValueField'),
199
- signedValue: document.getElementById('signedValueField'),
200
- signMethod: document.getElementById('signMethodField'),
201
- signVersion: document.getElementById('signVersionField'),
202
- verify: document.getElementById('verifyField'),
203
-
204
- sealID: document.getElementById('sealIDField'),
205
- sealName: document.getElementById('sealNameField'),
206
- sealType: document.getElementById('sealTypeField'),
207
- sealAuthTime: document.getElementById('sealAuthTimeField'),
208
- sealMakeTime: document.getElementById('sealMakeTimeField'),
209
- sealVersion: document.getElementById('sealVersionField'),
210
- },
211
- },
212
- errorWrapper,
213
- printContainer: document.getElementById('printContainer'),
214
- openFileInputName: 'fileInput',
215
- }
216
- }
217
- }
218
- });
67
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=26db05e2&scoped=true&
68
+ var render = function render() {
69
+ var _vm = this,
70
+ _c = _vm._self._c;
71
+ return _vm._m(0);
72
+ };
73
+ var staticRenderFns = [function () {
74
+ var _vm = this,
75
+ _c = _vm._self._c;
76
+ return _c('div', {
77
+ attrs: {
78
+ "id": "outerContainer"
79
+ }
80
+ }, [_c('div', {
81
+ attrs: {
82
+ "id": "mainContainer"
83
+ }
84
+ }, [_c('div', {
85
+ staticClass: "secondaryToolbar hidden doorHangerRight",
86
+ attrs: {
87
+ "id": "secondaryToolbar"
88
+ }
89
+ }, [_c('div', {
90
+ attrs: {
91
+ "id": "secondaryToolbarButtonContainer"
92
+ }
93
+ }, [_c('button', {
94
+ staticClass: "secondaryToolbarButton openFile visibleLargeView",
95
+ attrs: {
96
+ "id": "secondaryOpenFile",
97
+ "title": "打开文件",
98
+ "tabindex": "52",
99
+ "data-l10n-id": "open_file"
100
+ }
101
+ }, [_c('span', {
102
+ attrs: {
103
+ "data-l10n-id": "open_file_label"
104
+ }
105
+ }, [_vm._v("打开")])]), _c('button', {
106
+ staticClass: "secondaryToolbarButton print visibleMediumView",
107
+ attrs: {
108
+ "id": "secondaryPrint",
109
+ "title": "打印",
110
+ "tabindex": "53",
111
+ "data-l10n-id": "print"
112
+ }
113
+ }, [_c('span', {
114
+ attrs: {
115
+ "data-l10n-id": "print_label"
116
+ }
117
+ }, [_vm._v("打印")])]), _c('button', {
118
+ staticClass: "secondaryToolbarButton documentProperties",
119
+ attrs: {
120
+ "id": "documentProperties",
121
+ "title": "文档属性…",
122
+ "tabindex": "69",
123
+ "data-l10n-id": "document_properties",
124
+ "aria-controls": "documentPropertiesDialog"
125
+ }
126
+ }, [_c('span', {
127
+ attrs: {
128
+ "data-l10n-id": "document_properties_label"
129
+ }
130
+ }, [_vm._v("文档属性…")])])])]), _vm._v(" "), _c('div', {
131
+ staticClass: "toolbar"
132
+ }, [_c('div', {
133
+ attrs: {
134
+ "id": "toolbarContainer"
135
+ }
136
+ }, [_c('div', {
137
+ attrs: {
138
+ "id": "toolbarViewer"
139
+ }
140
+ }, [_c('div', {
141
+ attrs: {
142
+ "id": "toolbarViewerLeft"
143
+ }
144
+ }, [_c('div', {
145
+ staticClass: "splitToolbarButton hiddenSmallView"
146
+ }, [_c('button', {
147
+ staticClass: "toolbarButton pageUp",
148
+ attrs: {
149
+ "title": "上一页",
150
+ "id": "previous",
151
+ "tabindex": "13",
152
+ "data-l10n-id": "previous"
153
+ }
154
+ }, [_c('span', {
155
+ attrs: {
156
+ "data-l10n-id": "previous_label"
157
+ }
158
+ }, [_vm._v("上一页")])]), _c('div', {
159
+ staticClass: "splitToolbarButtonSeparator"
160
+ }), _c('button', {
161
+ staticClass: "toolbarButton pageDown",
162
+ attrs: {
163
+ "title": "下一页",
164
+ "id": "next",
165
+ "tabindex": "14",
166
+ "data-l10n-id": "next"
167
+ }
168
+ }, [_c('span', {
169
+ attrs: {
170
+ "data-l10n-id": "next_label"
171
+ }
172
+ }, [_vm._v("下一页")])])]), _c('input', {
173
+ staticClass: "toolbarField pageNumber",
174
+ attrs: {
175
+ "type": "number",
176
+ "id": "pageNumber",
177
+ "title": "页面",
178
+ "value": "1",
179
+ "size": "4",
180
+ "min": "1",
181
+ "tabindex": "15",
182
+ "data-l10n-id": "page",
183
+ "autocomplete": "off"
184
+ }
185
+ }), _c('span', {
186
+ staticClass: "toolbarLabel",
187
+ attrs: {
188
+ "id": "numPages"
189
+ }
190
+ })]), _c('div', {
191
+ attrs: {
192
+ "id": "toolbarViewerRight"
193
+ }
194
+ }, [_c('button', {
195
+ staticClass: "toolbarButton openFile hiddenLargeView",
196
+ attrs: {
197
+ "id": "openFile",
198
+ "title": "打开文件",
199
+ "tabindex": "32",
200
+ "data-l10n-id": "open_file"
201
+ }
202
+ }, [_c('span', {
203
+ attrs: {
204
+ "data-l10n-id": "open_file_label"
205
+ }
206
+ }, [_vm._v("打开")])]), _c('button', {
207
+ staticClass: "toolbarButton print hiddenMediumView",
208
+ attrs: {
209
+ "id": "print",
210
+ "title": "打印",
211
+ "tabindex": "33",
212
+ "data-l10n-id": "print"
213
+ }
214
+ }, [_c('span', {
215
+ attrs: {
216
+ "data-l10n-id": "print_label"
217
+ }
218
+ }, [_vm._v("打印")])]), _c('div', {
219
+ staticClass: "verticalToolbarSeparator hiddenSmallView"
220
+ }), _c('button', {
221
+ staticClass: "toolbarButton",
222
+ attrs: {
223
+ "id": "secondaryToolbarToggle",
224
+ "title": "工具",
225
+ "tabindex": "36",
226
+ "data-l10n-id": "tools",
227
+ "aria-expanded": "false",
228
+ "aria-controls": "secondaryToolbar"
229
+ }
230
+ }, [_c('span', {
231
+ attrs: {
232
+ "data-l10n-id": "tools_label"
233
+ }
234
+ }, [_vm._v("工具")])])]), _c('div', {
235
+ attrs: {
236
+ "id": "toolbarViewerMiddle"
237
+ }
238
+ }, [_c('div', {
239
+ staticClass: "splitToolbarButton"
240
+ }, [_c('button', {
241
+ staticClass: "toolbarButton zoomOut",
242
+ attrs: {
243
+ "id": "zoomOut",
244
+ "title": "缩小",
245
+ "tabindex": "21",
246
+ "data-l10n-id": "zoom_out"
247
+ }
248
+ }, [_c('span', {
249
+ attrs: {
250
+ "data-l10n-id": "zoom_out_label"
251
+ }
252
+ }, [_vm._v("缩小")])]), _c('div', {
253
+ staticClass: "splitToolbarButtonSeparator"
254
+ }), _c('button', {
255
+ staticClass: "toolbarButton zoomIn",
256
+ attrs: {
257
+ "id": "zoomIn",
258
+ "title": "放大",
259
+ "tabindex": "22",
260
+ "data-l10n-id": "zoom_in"
261
+ }
262
+ }, [_c('span', {
263
+ attrs: {
264
+ "data-l10n-id": "zoom_in_label"
265
+ }
266
+ }, [_vm._v("放大")])])]), _c('span', {
267
+ staticClass: "dropdownToolbarButton",
268
+ attrs: {
269
+ "id": "scaleSelectContainer"
270
+ }
271
+ }, [_c('select', {
272
+ attrs: {
273
+ "id": "scaleSelect",
274
+ "title": "缩放",
275
+ "tabindex": "23",
276
+ "data-l10n-id": "zoom"
277
+ }
278
+ }, [_c('option', {
279
+ attrs: {
280
+ "id": "pageAutoOption",
281
+ "title": "",
282
+ "value": "auto",
283
+ "selected": "selected",
284
+ "data-l10n-id": "page_scale_auto"
285
+ }
286
+ }, [_vm._v("自动缩放")]), _c('option', {
287
+ attrs: {
288
+ "id": "pageActualOption",
289
+ "title": "",
290
+ "value": "page-actual",
291
+ "data-l10n-id": "page_scale_actual"
292
+ }
293
+ }, [_vm._v("实际大小")]), _c('option', {
294
+ attrs: {
295
+ "id": "pageFitOption",
296
+ "title": "",
297
+ "value": "page-fit",
298
+ "data-l10n-id": "page_scale_fit"
299
+ }
300
+ }, [_vm._v("适合页面")]), _c('option', {
301
+ attrs: {
302
+ "id": "pageWidthOption",
303
+ "title": "",
304
+ "value": "page-width",
305
+ "data-l10n-id": "page_scale_width"
306
+ }
307
+ }, [_vm._v("适合页宽")]), _c('option', {
308
+ attrs: {
309
+ "id": "customScaleOption",
310
+ "title": "",
311
+ "value": "custom",
312
+ "disabled": "disabled",
313
+ "hidden": "true"
314
+ }
315
+ }), _c('option', {
316
+ attrs: {
317
+ "title": "",
318
+ "value": "0.5",
319
+ "data-l10n-id": "page_scale_percent",
320
+ "data-l10n-args": "{ \"scale\": 50 }"
321
+ }
322
+ }, [_vm._v("50%")]), _c('option', {
323
+ attrs: {
324
+ "title": "",
325
+ "value": "0.75",
326
+ "data-l10n-id": "page_scale_percent",
327
+ "data-l10n-args": "{ \"scale\": 75 }"
328
+ }
329
+ }, [_vm._v("75%")]), _c('option', {
330
+ attrs: {
331
+ "title": "",
332
+ "value": "1",
333
+ "data-l10n-id": "page_scale_percent",
334
+ "data-l10n-args": "{ \"scale\": 100 }"
335
+ }
336
+ }, [_vm._v("100%")]), _c('option', {
337
+ attrs: {
338
+ "title": "",
339
+ "value": "1.25",
340
+ "data-l10n-id": "page_scale_percent",
341
+ "data-l10n-args": "{ \"scale\": 125 }"
342
+ }
343
+ }, [_vm._v("125%")]), _c('option', {
344
+ attrs: {
345
+ "title": "",
346
+ "value": "1.5",
347
+ "data-l10n-id": "page_scale_percent",
348
+ "data-l10n-args": "{ \"scale\": 150 }"
349
+ }
350
+ }, [_vm._v("150%")]), _c('option', {
351
+ attrs: {
352
+ "title": "",
353
+ "value": "2",
354
+ "data-l10n-id": "page_scale_percent",
355
+ "data-l10n-args": "{ \"scale\": 200 }"
356
+ }
357
+ }, [_vm._v("200%")]), _c('option', {
358
+ attrs: {
359
+ "title": "",
360
+ "value": "3",
361
+ "data-l10n-id": "page_scale_percent",
362
+ "data-l10n-args": "{ \"scale\": 300 }"
363
+ }
364
+ }, [_vm._v("300%")]), _c('option', {
365
+ attrs: {
366
+ "title": "",
367
+ "value": "4",
368
+ "data-l10n-id": "page_scale_percent",
369
+ "data-l10n-args": "{ \"scale\": 400 }"
370
+ }
371
+ }, [_vm._v("400%")])])])])])])]), _c('div', {
372
+ attrs: {
373
+ "id": "viewerContainer",
374
+ "tabindex": "0"
375
+ }
376
+ }, [_c('div', {
377
+ staticClass: "pdfViewer",
378
+ attrs: {
379
+ "id": "viewer"
380
+ }
381
+ })]), _c('div', {
382
+ attrs: {
383
+ "id": "errorWrapper",
384
+ "hidden": "true"
385
+ }
386
+ }, [_c('div', {
387
+ attrs: {
388
+ "id": "errorMessageLeft"
389
+ }
390
+ }, [_c('span', {
391
+ attrs: {
392
+ "id": "errorMessage"
393
+ }
394
+ }), _c('button', {
395
+ attrs: {
396
+ "id": "errorShowMore",
397
+ "data-l10n-id": "error_more_info"
398
+ }
399
+ }, [_vm._v(" More Information ")]), _c('button', {
400
+ attrs: {
401
+ "id": "errorShowLess",
402
+ "data-l10n-id": "error_less_info",
403
+ "hidden": "true"
404
+ }
405
+ }, [_vm._v(" Less Information ")])]), _c('div', {
406
+ attrs: {
407
+ "id": "errorMessageRight"
408
+ }
409
+ }, [_c('button', {
410
+ attrs: {
411
+ "id": "errorClose",
412
+ "data-l10n-id": "error_close"
413
+ }
414
+ }, [_vm._v(" Close ")])]), _c('div', {
415
+ staticClass: "clearBoth"
416
+ }), _c('textarea', {
417
+ attrs: {
418
+ "id": "errorMoreInfo",
419
+ "hidden": "true",
420
+ "readonly": "readonly"
421
+ }
422
+ })])]), _vm._v(" "), _c('div', {
423
+ attrs: {
424
+ "id": "dialogContainer"
425
+ }
426
+ }, [_c('dialog', {
427
+ attrs: {
428
+ "id": "documentPropertiesDialog"
429
+ }
430
+ }, [_c('div', {
431
+ staticClass: "row"
432
+ }, [_c('span', {
433
+ attrs: {
434
+ "id": "fileNameLabel",
435
+ "data-l10n-id": "document_properties_file_name"
436
+ }
437
+ }, [_vm._v("文件名:")]), _c('p', {
438
+ attrs: {
439
+ "id": "fileNameField",
440
+ "aria-labelledby": "fileNameLabel"
441
+ }
442
+ }, [_vm._v("-")])]), _c('div', {
443
+ staticClass: "row"
444
+ }, [_c('span', {
445
+ attrs: {
446
+ "id": "fileSizeLabel",
447
+ "data-l10n-id": "document_properties_file_size"
448
+ }
449
+ }, [_vm._v("文件大小:")]), _c('p', {
450
+ attrs: {
451
+ "id": "fileSizeField",
452
+ "aria-labelledby": "fileSizeLabel"
453
+ }
454
+ }, [_vm._v("-")])]), _c('div', {
455
+ staticClass: "separator"
456
+ }), _c('div', {
457
+ staticClass: "row"
458
+ }, [_c('span', {
459
+ attrs: {
460
+ "id": "titleLabel",
461
+ "data-l10n-id": "document_properties_title"
462
+ }
463
+ }, [_vm._v("标题:")]), _c('p', {
464
+ attrs: {
465
+ "id": "titleField",
466
+ "aria-labelledby": "titleLabel"
467
+ }
468
+ }, [_vm._v("-")])]), _c('div', {
469
+ staticClass: "row"
470
+ }, [_c('span', {
471
+ attrs: {
472
+ "id": "authorLabel",
473
+ "data-l10n-id": "document_properties_author"
474
+ }
475
+ }, [_vm._v("作者:")]), _c('p', {
476
+ attrs: {
477
+ "id": "authorField",
478
+ "aria-labelledby": "authorLabel"
479
+ }
480
+ }, [_vm._v("-")])]), _c('div', {
481
+ staticClass: "row"
482
+ }, [_c('span', {
483
+ attrs: {
484
+ "id": "subjectLabel",
485
+ "data-l10n-id": "document_properties_subject"
486
+ }
487
+ }, [_vm._v("主题:")]), _c('p', {
488
+ attrs: {
489
+ "id": "subjectField",
490
+ "aria-labelledby": "subjectLabel"
491
+ }
492
+ }, [_vm._v("-")])]), _c('div', {
493
+ staticClass: "row"
494
+ }, [_c('span', {
495
+ attrs: {
496
+ "id": "keywordsLabel",
497
+ "data-l10n-id": "document_properties_keywords"
498
+ }
499
+ }, [_vm._v("关键词:")]), _c('p', {
500
+ attrs: {
501
+ "id": "keywordsField",
502
+ "aria-labelledby": "keywordsLabel"
503
+ }
504
+ }, [_vm._v("-")])]), _c('div', {
505
+ staticClass: "row"
506
+ }, [_c('span', {
507
+ attrs: {
508
+ "id": "creationDateLabel",
509
+ "data-l10n-id": "document_properties_creation_date"
510
+ }
511
+ }, [_vm._v("创建日期:")]), _c('p', {
512
+ attrs: {
513
+ "id": "creationDateField",
514
+ "aria-labelledby": "creationDateLabel"
515
+ }
516
+ }, [_vm._v("-")])]), _c('div', {
517
+ staticClass: "row"
518
+ }, [_c('span', {
519
+ attrs: {
520
+ "id": "modificationDateLabel",
521
+ "data-l10n-id": "document_properties_modification_date"
522
+ }
523
+ }, [_vm._v("修改日期:")]), _c('p', {
524
+ attrs: {
525
+ "id": "modificationDateField",
526
+ "aria-labelledby": "modificationDateLabel"
527
+ }
528
+ }, [_vm._v("-")])]), _c('div', {
529
+ staticClass: "row"
530
+ }, [_c('span', {
531
+ attrs: {
532
+ "id": "creatorLabel",
533
+ "data-l10n-id": "document_properties_creator"
534
+ }
535
+ }, [_vm._v("创建者:")]), _c('p', {
536
+ attrs: {
537
+ "id": "creatorField",
538
+ "aria-labelledby": "creatorLabel"
539
+ }
540
+ }, [_vm._v("-")])]), _c('div', {
541
+ staticClass: "separator"
542
+ }), _c('div', {
543
+ staticClass: "row"
544
+ }, [_c('span', {
545
+ attrs: {
546
+ "id": "producerLabel",
547
+ "data-l10n-id": "document_properties_producer"
548
+ }
549
+ }, [_vm._v("OFD 生成器:")]), _c('p', {
550
+ attrs: {
551
+ "id": "producerField",
552
+ "aria-labelledby": "producerLabel"
553
+ }
554
+ }, [_vm._v("-")])]), _c('div', {
555
+ staticClass: "row"
556
+ }, [_c('span', {
557
+ attrs: {
558
+ "id": "versionLabel",
559
+ "data-l10n-id": "document_properties_version"
560
+ }
561
+ }, [_vm._v("OFD 版本:")]), _c('p', {
562
+ attrs: {
563
+ "id": "versionField",
564
+ "aria-labelledby": "versionLabel"
565
+ }
566
+ }, [_vm._v("-")])]), _c('div', {
567
+ staticClass: "row"
568
+ }, [_c('span', {
569
+ attrs: {
570
+ "id": "pageCountLabel",
571
+ "data-l10n-id": "document_properties_page_count"
572
+ }
573
+ }, [_vm._v("页数:")]), _c('p', {
574
+ attrs: {
575
+ "id": "pageCountField",
576
+ "aria-labelledby": "pageCountLabel"
577
+ }
578
+ }, [_vm._v("-")])]), _c('div', {
579
+ staticClass: "row"
580
+ }, [_c('span', {
581
+ attrs: {
582
+ "id": "pageSizeLabel",
583
+ "data-l10n-id": "document_properties_page_size"
584
+ }
585
+ }, [_vm._v("页面大小:")]), _c('p', {
586
+ attrs: {
587
+ "id": "pageSizeField",
588
+ "aria-labelledby": "pageSizeLabel"
589
+ }
590
+ }, [_vm._v("-")])]), _c('div', {
591
+ staticClass: "separator"
592
+ }), _c('div', {
593
+ staticClass: "row",
594
+ attrs: {
595
+ "hidden": "hidden"
596
+ }
597
+ }, [_c('span', {
598
+ attrs: {
599
+ "id": "linearizedLabel",
600
+ "data-l10n-id": "document_properties_linearized"
601
+ }
602
+ }, [_vm._v("快速 Web 视图:")]), _c('p', {
603
+ attrs: {
604
+ "id": "linearizedField",
605
+ "aria-labelledby": "linearizedLabel"
606
+ }
607
+ }, [_vm._v("-")])]), _c('div', {
608
+ staticClass: "buttonRow"
609
+ }, [_c('button', {
610
+ staticClass: "dialogButton",
611
+ attrs: {
612
+ "id": "documentPropertiesClose"
613
+ }
614
+ }, [_c('span', {
615
+ attrs: {
616
+ "data-l10n-id": "document_properties_close"
617
+ }
618
+ }, [_vm._v("关闭")])])])]), _c('dialog', {
619
+ staticStyle: {
620
+ "min-width": "200px"
621
+ },
622
+ attrs: {
623
+ "id": "printServiceDialog"
624
+ }
625
+ }, [_c('div', {
626
+ staticClass: "row"
627
+ }, [_c('span', {
628
+ attrs: {
629
+ "data-l10n-id": "print_progress_message"
630
+ }
631
+ }, [_vm._v("正在准备打印文档…")])]), _c('div', {
632
+ staticClass: "row"
633
+ }, [_c('progress', {
634
+ attrs: {
635
+ "id": "printProgress",
636
+ "value": "0",
637
+ "max": "100"
638
+ }
639
+ }), _c('span', {
640
+ staticClass: "relative-progress",
641
+ attrs: {
642
+ "data-l10n-id": "print_progress_percent",
643
+ "data-l10n-args": "{ \"progress\": 0 }"
644
+ }
645
+ }, [_vm._v("0%")])]), _c('div', {
646
+ staticClass: "buttonRow"
647
+ }, [_c('button', {
648
+ staticClass: "dialogButton",
649
+ attrs: {
650
+ "id": "printCancel"
651
+ }
652
+ }, [_c('span', {
653
+ attrs: {
654
+ "data-l10n-id": "print_progress_close"
655
+ }
656
+ }, [_vm._v("取消")])])])]), _c('dialog', {
657
+ attrs: {
658
+ "id": "signaturePropertiesDialog"
659
+ }
660
+ }, [_c('div', {
661
+ staticClass: "row"
662
+ }, [_c('span', {
663
+ attrs: {
664
+ "id": "signerLabel"
665
+ }
666
+ }, [_vm._v("签章人:")]), _c('p', {
667
+ attrs: {
668
+ "id": "signerField",
669
+ "aria-labelledby": "fileNameLabel"
670
+ }
671
+ }, [_vm._v("-")])]), _c('div', {
672
+ staticClass: "row"
673
+ }, [_c('span', {
674
+ attrs: {
675
+ "id": "providerLabel"
676
+ }
677
+ }, [_vm._v("签章提供者:")]), _c('p', {
678
+ attrs: {
679
+ "id": "providerField",
680
+ "aria-labelledby": "fileNameLabel"
681
+ }
682
+ }, [_vm._v("-")])]), _c('div', {
683
+ staticClass: "row"
684
+ }, [_c('span', {
685
+ attrs: {
686
+ "id": "hashedValueLabel"
687
+ }
688
+ }, [_vm._v("原文摘要值:")]), _c('p', {
689
+ attrs: {
690
+ "id": "hashedValueField",
691
+ "aria-labelledby": "fileNameLabel"
692
+ }
693
+ }, [_vm._v("-")])]), _c('div', {
694
+ staticClass: "row"
695
+ }, [_c('span', {
696
+ attrs: {
697
+ "id": "signedValueLabel"
698
+ }
699
+ }, [_vm._v("签名值:")]), _c('p', {
700
+ attrs: {
701
+ "id": "signedValueField",
702
+ "aria-labelledby": "fileNameLabel"
703
+ }
704
+ }, [_vm._v("-")])]), _c('div', {
705
+ staticClass: "row"
706
+ }, [_c('span', {
707
+ attrs: {
708
+ "id": "signMethodLabel"
709
+ }
710
+ }, [_vm._v("签名算法:")]), _c('p', {
711
+ attrs: {
712
+ "id": "signMethodField",
713
+ "aria-labelledby": "fileNameLabel"
714
+ }
715
+ }, [_vm._v("-")])]), _c('div', {
716
+ staticClass: "row"
717
+ }, [_c('span', {
718
+ attrs: {
719
+ "id": "signVersionLabel"
720
+ }
721
+ }, [_vm._v("版本号:")]), _c('p', {
722
+ attrs: {
723
+ "id": "signVersionField",
724
+ "aria-labelledby": "fileNameLabel"
725
+ }
726
+ }, [_vm._v("-")])]), _c('div', {
727
+ staticClass: "row"
728
+ }, [_c('span', {
729
+ attrs: {
730
+ "id": "verifyLabel"
731
+ }
732
+ }, [_vm._v("验签结果:")]), _c('p', {
733
+ attrs: {
734
+ "id": "verifyField",
735
+ "aria-labelledby": "fileNameLabel"
736
+ }
737
+ }, [_vm._v("-")])]), _c('div', {
738
+ staticClass: "separator"
739
+ }), _c('div', {
740
+ staticClass: "row"
741
+ }, [_c('span', {
742
+ attrs: {
743
+ "id": "sealIDLabel"
744
+ }
745
+ }, [_vm._v("印章标识:")]), _c('p', {
746
+ attrs: {
747
+ "id": "sealIDField",
748
+ "aria-labelledby": "fileNameLabel"
749
+ }
750
+ }, [_vm._v("-")])]), _c('div', {
751
+ staticClass: "row"
752
+ }, [_c('span', {
753
+ attrs: {
754
+ "id": "sealNameLabel"
755
+ }
756
+ }, [_vm._v("印章名称:")]), _c('p', {
757
+ attrs: {
758
+ "id": "sealNameField",
759
+ "aria-labelledby": "fileNameLabel"
760
+ }
761
+ }, [_vm._v("-")])]), _c('div', {
762
+ staticClass: "row"
763
+ }, [_c('span', {
764
+ attrs: {
765
+ "id": "sealTypeLabel"
766
+ }
767
+ }, [_vm._v("印章类型:")]), _c('p', {
768
+ attrs: {
769
+ "id": "sealTypeField",
770
+ "aria-labelledby": "fileNameLabel"
771
+ }
772
+ }, [_vm._v("-")])]), _c('div', {
773
+ staticClass: "row"
774
+ }, [_c('span', {
775
+ attrs: {
776
+ "id": "sealAuthTimeLabel"
777
+ }
778
+ }, [_vm._v("有效时间:")]), _c('p', {
779
+ attrs: {
780
+ "id": "sealAuthTimeField",
781
+ "aria-labelledby": "fileNameLabel"
782
+ }
783
+ }, [_vm._v("-")])]), _c('div', {
784
+ staticClass: "row"
785
+ }, [_c('span', {
786
+ attrs: {
787
+ "id": "sealMakeTimeLabel"
788
+ }
789
+ }, [_vm._v("制章日期:")]), _c('p', {
790
+ attrs: {
791
+ "id": "sealMakeTimeField",
792
+ "aria-labelledby": "fileNameLabel"
793
+ }
794
+ }, [_vm._v("-")])]), _c('div', {
795
+ staticClass: "row"
796
+ }, [_c('span', {
797
+ attrs: {
798
+ "id": "sealVersionLabel"
799
+ }
800
+ }, [_vm._v("印章版本:")]), _c('p', {
801
+ attrs: {
802
+ "id": "sealVersionField",
803
+ "aria-labelledby": "fileNameLabel"
804
+ }
805
+ }, [_vm._v("-")])]), _c('div', {
806
+ staticClass: "buttonRow"
807
+ }, [_c('button', {
808
+ staticClass: "dialogButton",
809
+ attrs: {
810
+ "id": "signaturePropertiesClose"
811
+ }
812
+ }, [_c('span', {
813
+ attrs: {
814
+ "data-l10n-id": "document_properties_close"
815
+ }
816
+ }, [_vm._v("关闭")])])])])])]);
817
+ }];
818
+
819
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=26db05e2&scoped=true&
219
820
 
821
+ ;// CONCATENATED MODULE: external {"commonjs":"ofd.js","commonjs2":"ofd.js","root":"ofd"}
822
+ var external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_namespaceObject = require("ofd.js");
823
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
824
+
825
+ /* harmony default export */ var srcvue_type_script_lang_js_ = ({
826
+ name: "OfdView",
827
+ props: {
828
+ url: {
829
+ type: String,
830
+ required: true
831
+ }
832
+ },
833
+ watch: {},
834
+ data() {
835
+ return {
836
+ config: null
837
+ };
838
+ },
839
+ mounted() {
840
+ if (!this.config) {
841
+ this.config = this.getViewerConfiguration();
842
+ //vue下viewerContainer必须设置height
843
+ // this.containerHeight = `${window.innerHeight - 100}px`
844
+ let img = new Image();
845
+ img.style.position = 'absolute';
846
+ img.style.left = 0;
847
+ img.style.right = 0;
848
+ img.style.margin = 'auto';
849
+ img.style.top = 0;
850
+ img.style.bottom = 0;
851
+ img.src = 'data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb2FkLmluZm8AIf8LTkVUU0NBUEUyLjADAQAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBYCAYXXUGk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1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
852
+ img.draggable = false;
853
+ this.config.loadingContainer = img;
854
+ // config.onPageChanging = pageNumber => {
855
+ // // console.log(pageNumber)
856
+ // }
857
+ // config.parserOFDSuccess = core => {
858
+ // // console.log(core)
859
+ // }
860
+ // config.onPageScale = scale => {
861
+ // // console.log(scale)
862
+ // }
863
+ }
864
+
865
+ (0,external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_namespaceObject.openOFDViewer)(this.config);
866
+ if (this.url) {
867
+ (0,external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_namespaceObject.openOFD)(this.url);
868
+ }
869
+ this.$emit('ofdViewReady', this.config);
870
+ },
871
+ methods: {
872
+ getViewerConfiguration() {
873
+ let errorWrapper = null;
874
+ errorWrapper = {
875
+ container: document.getElementById('errorWrapper'),
876
+ errorMessage: document.getElementById('errorMessage'),
877
+ closeButton: document.getElementById('errorClose'),
878
+ errorMoreInfo: document.getElementById('errorMoreInfo'),
879
+ moreInfoButton: document.getElementById('errorShowMore'),
880
+ lessInfoButton: document.getElementById('errorShowLess')
881
+ };
882
+ return {
883
+ appContainer: document.body,
884
+ mainContainer: document.getElementById('viewerContainer'),
885
+ viewerContainer: document.getElementById('viewer'),
886
+ toolbar: {
887
+ container: document.getElementById('toolbarViewer'),
888
+ numPages: document.getElementById('numPages'),
889
+ pageNumber: document.getElementById('pageNumber'),
890
+ scaleSelect: document.getElementById('scaleSelect'),
891
+ customScaleOption: document.getElementById('customScaleOption'),
892
+ previous: document.getElementById('previous'),
893
+ next: document.getElementById('next'),
894
+ zoomIn: document.getElementById('zoomIn'),
895
+ zoomOut: document.getElementById('zoomOut'),
896
+ openFile: document.getElementById('openFile'),
897
+ print: document.getElementById('print')
898
+ },
899
+ secondaryToolbar: {
900
+ toolbar: document.getElementById('secondaryToolbar'),
901
+ toggleButton: document.getElementById('secondaryToolbarToggle'),
902
+ toolbarButtonContainer: document.getElementById('secondaryToolbarButtonContainer'),
903
+ openFileButton: document.getElementById('secondaryOpenFile'),
904
+ printButton: document.getElementById('secondaryPrint'),
905
+ documentPropertiesButton: document.getElementById('documentProperties')
906
+ },
907
+ sidebar: {
908
+ // Divs (and sidebar button)
909
+ outerContainer: document.getElementById('outerContainer'),
910
+ viewerContainer: document.getElementById('viewerContainer')
911
+ },
912
+ sidebarResizer: {
913
+ outerContainer: document.getElementById('outerContainer')
914
+ },
915
+ documentProperties: {
916
+ dialog: document.getElementById('documentPropertiesDialog'),
917
+ closeButton: document.getElementById('documentPropertiesClose'),
918
+ fields: {
919
+ fileName: document.getElementById('fileNameField'),
920
+ fileSize: document.getElementById('fileSizeField'),
921
+ title: document.getElementById('titleField'),
922
+ author: document.getElementById('authorField'),
923
+ subject: document.getElementById('subjectField'),
924
+ keywords: document.getElementById('keywordsField'),
925
+ creationDate: document.getElementById('creationDateField'),
926
+ modificationDate: document.getElementById('modificationDateField'),
927
+ creator: document.getElementById('creatorField'),
928
+ producer: document.getElementById('producerField'),
929
+ version: document.getElementById('versionField'),
930
+ pageCount: document.getElementById('pageCountField'),
931
+ pageSize: document.getElementById('pageSizeField'),
932
+ linearized: document.getElementById('linearizedField')
933
+ }
934
+ },
935
+ signatureProperties: {
936
+ dialog: document.getElementById('signaturePropertiesDialog'),
937
+ closeButton: document.getElementById('signaturePropertiesClose'),
938
+ fields: {
939
+ signer: document.getElementById('signerField'),
940
+ provider: document.getElementById('providerField'),
941
+ hashedValue: document.getElementById('hashedValueField'),
942
+ signedValue: document.getElementById('signedValueField'),
943
+ signMethod: document.getElementById('signMethodField'),
944
+ signVersion: document.getElementById('signVersionField'),
945
+ verify: document.getElementById('verifyField'),
946
+ sealID: document.getElementById('sealIDField'),
947
+ sealName: document.getElementById('sealNameField'),
948
+ sealType: document.getElementById('sealTypeField'),
949
+ sealAuthTime: document.getElementById('sealAuthTimeField'),
950
+ sealMakeTime: document.getElementById('sealMakeTimeField'),
951
+ sealVersion: document.getElementById('sealVersionField')
952
+ }
953
+ },
954
+ errorWrapper,
955
+ printContainer: document.getElementById('printContainer'),
956
+ openFileInputName: 'fileInput'
957
+ };
958
+ }
959
+ }
960
+ });
220
961
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
221
962
  /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
222
963
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
@@ -331,50 +1072,44 @@ var component = normalizeComponent(
331
1072
  staticRenderFns,
332
1073
  false,
333
1074
  null,
334
- "5f966ce0",
1075
+ "26db05e2",
335
1076
  null
336
1077
 
337
1078
  )
338
1079
 
339
1080
  /* harmony default export */ var ofdView_src = (component.exports);
340
1081
  ;// CONCATENATED MODULE: ./packages/ofdView/index.js
341
-
342
-
343
- ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src);//注册组件
344
-
345
- /* harmony default export */ var ofdView = (ofdView_src);
346
1082
 
1083
+ ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src); //注册组件
1084
+
1085
+ /* harmony default export */ var ofdView = (ofdView_src);
347
1086
  ;// CONCATENATED MODULE: ./packages/index.js
348
-
349
- // import PdvView from './pdfView'
350
-
351
- const components = [
352
- ofdView,
353
- // PdvView
354
- ]
355
-
356
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
357
- const install = function (Vue) {
358
-
359
- // 判断是否安装
360
- if (install.installed) return
361
- // 遍历注册全局组件
362
- components.map(component => Vue.component(component.name, component))
363
- }
364
-
365
- // 判断是否是直接引入文件
366
- if (typeof window !== 'undefined' && window.Vue) {
367
- install(window.Vue)
368
- }
369
-
370
- /* harmony default export */ var packages_0 = ({
371
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
372
- install,
373
- // 以下是具体的组件列表
374
- OfdView: ofdView,
375
- // PdvView
376
- });
377
1087
 
1088
+ // import PdvView from './pdfView'
1089
+
1090
+ const components = [ofdView
1091
+ // PdvView
1092
+ ];
1093
+
1094
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
1095
+ const install = function (Vue) {
1096
+ // 判断是否安装
1097
+ if (install.installed) return;
1098
+ // 遍历注册全局组件
1099
+ components.map(component => Vue.component(component.name, component));
1100
+ };
1101
+
1102
+ // 判断是否是直接引入文件
1103
+ if (typeof window !== 'undefined' && window.Vue) {
1104
+ install(window.Vue);
1105
+ }
1106
+ /* harmony default export */ var packages_0 = ({
1107
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
1108
+ install,
1109
+ // 以下是具体的组件列表
1110
+ OfdView: ofdView
1111
+ // PdvView
1112
+ });
378
1113
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
379
1114
 
380
1115