ofd-view 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1015,892 +1015,157 @@ if (typeof window !== 'undefined') {
1015
1015
  // Indicate to webpack that this file can be concatenated
1016
1016
  /* harmony default export */ var setPublicPath = (null);
1017
1017
 
1018
- ;// 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=41f3cab9&scoped=true&
1019
- var render = function render() {
1020
- var _vm = this,
1021
- _c = _vm._self._c;
1022
- return _vm._m(0);
1023
- };
1024
- var staticRenderFns = [function () {
1025
- var _vm = this,
1026
- _c = _vm._self._c;
1027
- return _c('div', {
1028
- attrs: {
1029
- "id": "outerContainer"
1030
- }
1031
- }, [_c('div', {
1032
- attrs: {
1033
- "id": "mainContainer"
1034
- }
1035
- }, [_c('div', {
1036
- staticClass: "secondaryToolbar hidden doorHangerRight",
1037
- attrs: {
1038
- "id": "secondaryToolbar"
1039
- }
1040
- }, [_c('div', {
1041
- attrs: {
1042
- "id": "secondaryToolbarButtonContainer"
1043
- }
1044
- }, [_c('button', {
1045
- staticClass: "secondaryToolbarButton openFile visibleLargeView",
1046
- attrs: {
1047
- "id": "secondaryOpenFile",
1048
- "title": "打开文件",
1049
- "tabindex": "52",
1050
- "data-l10n-id": "open_file"
1051
- }
1052
- }, [_c('span', {
1053
- attrs: {
1054
- "data-l10n-id": "open_file_label"
1055
- }
1056
- }, [_vm._v("打开")])]), _c('button', {
1057
- staticClass: "secondaryToolbarButton print visibleMediumView",
1058
- attrs: {
1059
- "id": "secondaryPrint",
1060
- "title": "打印",
1061
- "tabindex": "53",
1062
- "data-l10n-id": "print"
1063
- }
1064
- }, [_c('span', {
1065
- attrs: {
1066
- "data-l10n-id": "print_label"
1067
- }
1068
- }, [_vm._v("打印")])]), _c('button', {
1069
- staticClass: "secondaryToolbarButton documentProperties",
1070
- attrs: {
1071
- "id": "documentProperties",
1072
- "title": "文档属性…",
1073
- "tabindex": "69",
1074
- "data-l10n-id": "document_properties",
1075
- "aria-controls": "documentPropertiesDialog"
1076
- }
1077
- }, [_c('span', {
1078
- attrs: {
1079
- "data-l10n-id": "document_properties_label"
1080
- }
1081
- }, [_vm._v("文档属性…")])])])]), _vm._v(" "), _c('div', {
1082
- staticClass: "toolbar"
1083
- }, [_c('div', {
1084
- attrs: {
1085
- "id": "toolbarContainer"
1086
- }
1087
- }, [_c('div', {
1088
- attrs: {
1089
- "id": "toolbarViewer"
1090
- }
1091
- }, [_c('div', {
1092
- attrs: {
1093
- "id": "toolbarViewerLeft"
1094
- }
1095
- }, [_c('div', {
1096
- staticClass: "splitToolbarButton hiddenSmallView"
1097
- }, [_c('button', {
1098
- staticClass: "toolbarButton pageUp",
1099
- attrs: {
1100
- "title": "上一页",
1101
- "id": "previous",
1102
- "tabindex": "13",
1103
- "data-l10n-id": "previous"
1104
- }
1105
- }, [_c('span', {
1106
- attrs: {
1107
- "data-l10n-id": "previous_label"
1108
- }
1109
- }, [_vm._v("上一页")])]), _c('div', {
1110
- staticClass: "splitToolbarButtonSeparator"
1111
- }), _c('button', {
1112
- staticClass: "toolbarButton pageDown",
1113
- attrs: {
1114
- "title": "下一页",
1115
- "id": "next",
1116
- "tabindex": "14",
1117
- "data-l10n-id": "next"
1118
- }
1119
- }, [_c('span', {
1120
- attrs: {
1121
- "data-l10n-id": "next_label"
1122
- }
1123
- }, [_vm._v("下一页")])])]), _c('input', {
1124
- staticClass: "toolbarField pageNumber",
1125
- attrs: {
1126
- "type": "number",
1127
- "id": "pageNumber",
1128
- "title": "页面",
1129
- "value": "1",
1130
- "size": "4",
1131
- "min": "1",
1132
- "tabindex": "15",
1133
- "data-l10n-id": "page",
1134
- "autocomplete": "off"
1135
- }
1136
- }), _c('span', {
1137
- staticClass: "toolbarLabel",
1138
- attrs: {
1139
- "id": "numPages"
1140
- }
1141
- })]), _c('div', {
1142
- attrs: {
1143
- "id": "toolbarViewerRight"
1144
- }
1145
- }, [_c('button', {
1146
- staticClass: "toolbarButton openFile hiddenLargeView",
1147
- attrs: {
1148
- "id": "openFile",
1149
- "title": "打开文件",
1150
- "tabindex": "32",
1151
- "data-l10n-id": "open_file"
1152
- }
1153
- }, [_c('span', {
1154
- attrs: {
1155
- "data-l10n-id": "open_file_label"
1156
- }
1157
- }, [_vm._v("打开")])]), _c('button', {
1158
- staticClass: "toolbarButton print hiddenMediumView",
1159
- attrs: {
1160
- "id": "print",
1161
- "title": "打印",
1162
- "tabindex": "33",
1163
- "data-l10n-id": "print"
1164
- }
1165
- }, [_c('span', {
1166
- attrs: {
1167
- "data-l10n-id": "print_label"
1168
- }
1169
- }, [_vm._v("打印")])]), _c('div', {
1170
- staticClass: "verticalToolbarSeparator hiddenSmallView"
1171
- }), _c('button', {
1172
- staticClass: "toolbarButton",
1173
- attrs: {
1174
- "id": "secondaryToolbarToggle",
1175
- "title": "工具",
1176
- "tabindex": "36",
1177
- "data-l10n-id": "tools",
1178
- "aria-expanded": "false",
1179
- "aria-controls": "secondaryToolbar"
1180
- }
1181
- }, [_c('span', {
1182
- attrs: {
1183
- "data-l10n-id": "tools_label"
1184
- }
1185
- }, [_vm._v("工具")])])]), _c('div', {
1186
- attrs: {
1187
- "id": "toolbarViewerMiddle"
1188
- }
1189
- }, [_c('div', {
1190
- staticClass: "splitToolbarButton"
1191
- }, [_c('button', {
1192
- staticClass: "toolbarButton zoomOut",
1193
- attrs: {
1194
- "id": "zoomOut",
1195
- "title": "缩小",
1196
- "tabindex": "21",
1197
- "data-l10n-id": "zoom_out"
1198
- }
1199
- }, [_c('span', {
1200
- attrs: {
1201
- "data-l10n-id": "zoom_out_label"
1202
- }
1203
- }, [_vm._v("缩小")])]), _c('div', {
1204
- staticClass: "splitToolbarButtonSeparator"
1205
- }), _c('button', {
1206
- staticClass: "toolbarButton zoomIn",
1207
- attrs: {
1208
- "id": "zoomIn",
1209
- "title": "放大",
1210
- "tabindex": "22",
1211
- "data-l10n-id": "zoom_in"
1212
- }
1213
- }, [_c('span', {
1214
- attrs: {
1215
- "data-l10n-id": "zoom_in_label"
1216
- }
1217
- }, [_vm._v("放大")])])]), _c('span', {
1218
- staticClass: "dropdownToolbarButton",
1219
- attrs: {
1220
- "id": "scaleSelectContainer"
1221
- }
1222
- }, [_c('select', {
1223
- attrs: {
1224
- "id": "scaleSelect",
1225
- "title": "缩放",
1226
- "tabindex": "23",
1227
- "data-l10n-id": "zoom"
1228
- }
1229
- }, [_c('option', {
1230
- attrs: {
1231
- "id": "pageAutoOption",
1232
- "title": "",
1233
- "value": "auto",
1234
- "selected": "selected",
1235
- "data-l10n-id": "page_scale_auto"
1236
- }
1237
- }, [_vm._v("自动缩放")]), _c('option', {
1238
- attrs: {
1239
- "id": "pageActualOption",
1240
- "title": "",
1241
- "value": "page-actual",
1242
- "data-l10n-id": "page_scale_actual"
1243
- }
1244
- }, [_vm._v("实际大小")]), _c('option', {
1245
- attrs: {
1246
- "id": "pageFitOption",
1247
- "title": "",
1248
- "value": "page-fit",
1249
- "data-l10n-id": "page_scale_fit"
1250
- }
1251
- }, [_vm._v("适合页面")]), _c('option', {
1252
- attrs: {
1253
- "id": "pageWidthOption",
1254
- "title": "",
1255
- "value": "page-width",
1256
- "data-l10n-id": "page_scale_width"
1257
- }
1258
- }, [_vm._v("适合页宽")]), _c('option', {
1259
- attrs: {
1260
- "id": "customScaleOption",
1261
- "title": "",
1262
- "value": "custom",
1263
- "disabled": "disabled",
1264
- "hidden": "true"
1265
- }
1266
- }), _c('option', {
1267
- attrs: {
1268
- "title": "",
1269
- "value": "0.5",
1270
- "data-l10n-id": "page_scale_percent",
1271
- "data-l10n-args": "{ \"scale\": 50 }"
1272
- }
1273
- }, [_vm._v("50%")]), _c('option', {
1274
- attrs: {
1275
- "title": "",
1276
- "value": "0.75",
1277
- "data-l10n-id": "page_scale_percent",
1278
- "data-l10n-args": "{ \"scale\": 75 }"
1279
- }
1280
- }, [_vm._v("75%")]), _c('option', {
1281
- attrs: {
1282
- "title": "",
1283
- "value": "1",
1284
- "data-l10n-id": "page_scale_percent",
1285
- "data-l10n-args": "{ \"scale\": 100 }"
1286
- }
1287
- }, [_vm._v("100%")]), _c('option', {
1288
- attrs: {
1289
- "title": "",
1290
- "value": "1.25",
1291
- "data-l10n-id": "page_scale_percent",
1292
- "data-l10n-args": "{ \"scale\": 125 }"
1293
- }
1294
- }, [_vm._v("125%")]), _c('option', {
1295
- attrs: {
1296
- "title": "",
1297
- "value": "1.5",
1298
- "data-l10n-id": "page_scale_percent",
1299
- "data-l10n-args": "{ \"scale\": 150 }"
1300
- }
1301
- }, [_vm._v("150%")]), _c('option', {
1302
- attrs: {
1303
- "title": "",
1304
- "value": "2",
1305
- "data-l10n-id": "page_scale_percent",
1306
- "data-l10n-args": "{ \"scale\": 200 }"
1307
- }
1308
- }, [_vm._v("200%")]), _c('option', {
1309
- attrs: {
1310
- "title": "",
1311
- "value": "3",
1312
- "data-l10n-id": "page_scale_percent",
1313
- "data-l10n-args": "{ \"scale\": 300 }"
1314
- }
1315
- }, [_vm._v("300%")]), _c('option', {
1316
- attrs: {
1317
- "title": "",
1318
- "value": "4",
1319
- "data-l10n-id": "page_scale_percent",
1320
- "data-l10n-args": "{ \"scale\": 400 }"
1321
- }
1322
- }, [_vm._v("400%")])])])])])])]), _c('div', {
1323
- attrs: {
1324
- "id": "viewerContainer",
1325
- "tabindex": "0"
1326
- }
1327
- }, [_c('div', {
1328
- staticClass: "pdfViewer",
1329
- attrs: {
1330
- "id": "viewer"
1331
- }
1332
- })]), _c('div', {
1333
- attrs: {
1334
- "id": "errorWrapper",
1335
- "hidden": "true"
1336
- }
1337
- }, [_c('div', {
1338
- attrs: {
1339
- "id": "errorMessageLeft"
1340
- }
1341
- }, [_c('span', {
1342
- attrs: {
1343
- "id": "errorMessage"
1344
- }
1345
- }), _c('button', {
1346
- attrs: {
1347
- "id": "errorShowMore",
1348
- "data-l10n-id": "error_more_info"
1349
- }
1350
- }, [_vm._v(" More Information ")]), _c('button', {
1351
- attrs: {
1352
- "id": "errorShowLess",
1353
- "data-l10n-id": "error_less_info",
1354
- "hidden": "true"
1355
- }
1356
- }, [_vm._v(" Less Information ")])]), _c('div', {
1357
- attrs: {
1358
- "id": "errorMessageRight"
1359
- }
1360
- }, [_c('button', {
1361
- attrs: {
1362
- "id": "errorClose",
1363
- "data-l10n-id": "error_close"
1364
- }
1365
- }, [_vm._v(" Close ")])]), _c('div', {
1366
- staticClass: "clearBoth"
1367
- }), _c('textarea', {
1368
- attrs: {
1369
- "id": "errorMoreInfo",
1370
- "hidden": "true",
1371
- "readonly": "readonly"
1372
- }
1373
- })])]), _vm._v(" "), _c('div', {
1374
- attrs: {
1375
- "id": "dialogContainer"
1376
- }
1377
- }, [_c('dialog', {
1378
- attrs: {
1379
- "id": "documentPropertiesDialog"
1380
- }
1381
- }, [_c('div', {
1382
- staticClass: "row"
1383
- }, [_c('span', {
1384
- attrs: {
1385
- "id": "fileNameLabel",
1386
- "data-l10n-id": "document_properties_file_name"
1387
- }
1388
- }, [_vm._v("文件名:")]), _c('p', {
1389
- attrs: {
1390
- "id": "fileNameField",
1391
- "aria-labelledby": "fileNameLabel"
1392
- }
1393
- }, [_vm._v("-")])]), _c('div', {
1394
- staticClass: "row"
1395
- }, [_c('span', {
1396
- attrs: {
1397
- "id": "fileSizeLabel",
1398
- "data-l10n-id": "document_properties_file_size"
1399
- }
1400
- }, [_vm._v("文件大小:")]), _c('p', {
1401
- attrs: {
1402
- "id": "fileSizeField",
1403
- "aria-labelledby": "fileSizeLabel"
1404
- }
1405
- }, [_vm._v("-")])]), _c('div', {
1406
- staticClass: "separator"
1407
- }), _c('div', {
1408
- staticClass: "row"
1409
- }, [_c('span', {
1410
- attrs: {
1411
- "id": "titleLabel",
1412
- "data-l10n-id": "document_properties_title"
1413
- }
1414
- }, [_vm._v("标题:")]), _c('p', {
1415
- attrs: {
1416
- "id": "titleField",
1417
- "aria-labelledby": "titleLabel"
1418
- }
1419
- }, [_vm._v("-")])]), _c('div', {
1420
- staticClass: "row"
1421
- }, [_c('span', {
1422
- attrs: {
1423
- "id": "authorLabel",
1424
- "data-l10n-id": "document_properties_author"
1425
- }
1426
- }, [_vm._v("作者:")]), _c('p', {
1427
- attrs: {
1428
- "id": "authorField",
1429
- "aria-labelledby": "authorLabel"
1430
- }
1431
- }, [_vm._v("-")])]), _c('div', {
1432
- staticClass: "row"
1433
- }, [_c('span', {
1434
- attrs: {
1435
- "id": "subjectLabel",
1436
- "data-l10n-id": "document_properties_subject"
1437
- }
1438
- }, [_vm._v("主题:")]), _c('p', {
1439
- attrs: {
1440
- "id": "subjectField",
1441
- "aria-labelledby": "subjectLabel"
1442
- }
1443
- }, [_vm._v("-")])]), _c('div', {
1444
- staticClass: "row"
1445
- }, [_c('span', {
1446
- attrs: {
1447
- "id": "keywordsLabel",
1448
- "data-l10n-id": "document_properties_keywords"
1449
- }
1450
- }, [_vm._v("关键词:")]), _c('p', {
1451
- attrs: {
1452
- "id": "keywordsField",
1453
- "aria-labelledby": "keywordsLabel"
1454
- }
1455
- }, [_vm._v("-")])]), _c('div', {
1456
- staticClass: "row"
1457
- }, [_c('span', {
1458
- attrs: {
1459
- "id": "creationDateLabel",
1460
- "data-l10n-id": "document_properties_creation_date"
1461
- }
1462
- }, [_vm._v("创建日期:")]), _c('p', {
1463
- attrs: {
1464
- "id": "creationDateField",
1465
- "aria-labelledby": "creationDateLabel"
1466
- }
1467
- }, [_vm._v("-")])]), _c('div', {
1468
- staticClass: "row"
1469
- }, [_c('span', {
1470
- attrs: {
1471
- "id": "modificationDateLabel",
1472
- "data-l10n-id": "document_properties_modification_date"
1473
- }
1474
- }, [_vm._v("修改日期:")]), _c('p', {
1475
- attrs: {
1476
- "id": "modificationDateField",
1477
- "aria-labelledby": "modificationDateLabel"
1478
- }
1479
- }, [_vm._v("-")])]), _c('div', {
1480
- staticClass: "row"
1481
- }, [_c('span', {
1482
- attrs: {
1483
- "id": "creatorLabel",
1484
- "data-l10n-id": "document_properties_creator"
1485
- }
1486
- }, [_vm._v("创建者:")]), _c('p', {
1487
- attrs: {
1488
- "id": "creatorField",
1489
- "aria-labelledby": "creatorLabel"
1490
- }
1491
- }, [_vm._v("-")])]), _c('div', {
1492
- staticClass: "separator"
1493
- }), _c('div', {
1494
- staticClass: "row"
1495
- }, [_c('span', {
1496
- attrs: {
1497
- "id": "producerLabel",
1498
- "data-l10n-id": "document_properties_producer"
1499
- }
1500
- }, [_vm._v("OFD 生成器:")]), _c('p', {
1501
- attrs: {
1502
- "id": "producerField",
1503
- "aria-labelledby": "producerLabel"
1504
- }
1505
- }, [_vm._v("-")])]), _c('div', {
1506
- staticClass: "row"
1507
- }, [_c('span', {
1508
- attrs: {
1509
- "id": "versionLabel",
1510
- "data-l10n-id": "document_properties_version"
1511
- }
1512
- }, [_vm._v("OFD 版本:")]), _c('p', {
1513
- attrs: {
1514
- "id": "versionField",
1515
- "aria-labelledby": "versionLabel"
1516
- }
1517
- }, [_vm._v("-")])]), _c('div', {
1518
- staticClass: "row"
1519
- }, [_c('span', {
1520
- attrs: {
1521
- "id": "pageCountLabel",
1522
- "data-l10n-id": "document_properties_page_count"
1523
- }
1524
- }, [_vm._v("页数:")]), _c('p', {
1525
- attrs: {
1526
- "id": "pageCountField",
1527
- "aria-labelledby": "pageCountLabel"
1528
- }
1529
- }, [_vm._v("-")])]), _c('div', {
1530
- staticClass: "row"
1531
- }, [_c('span', {
1532
- attrs: {
1533
- "id": "pageSizeLabel",
1534
- "data-l10n-id": "document_properties_page_size"
1535
- }
1536
- }, [_vm._v("页面大小:")]), _c('p', {
1537
- attrs: {
1538
- "id": "pageSizeField",
1539
- "aria-labelledby": "pageSizeLabel"
1540
- }
1541
- }, [_vm._v("-")])]), _c('div', {
1542
- staticClass: "separator"
1543
- }), _c('div', {
1544
- staticClass: "row",
1545
- attrs: {
1546
- "hidden": "hidden"
1547
- }
1548
- }, [_c('span', {
1549
- attrs: {
1550
- "id": "linearizedLabel",
1551
- "data-l10n-id": "document_properties_linearized"
1552
- }
1553
- }, [_vm._v("快速 Web 视图:")]), _c('p', {
1554
- attrs: {
1555
- "id": "linearizedField",
1556
- "aria-labelledby": "linearizedLabel"
1557
- }
1558
- }, [_vm._v("-")])]), _c('div', {
1559
- staticClass: "buttonRow"
1560
- }, [_c('button', {
1561
- staticClass: "dialogButton",
1562
- attrs: {
1563
- "id": "documentPropertiesClose"
1564
- }
1565
- }, [_c('span', {
1566
- attrs: {
1567
- "data-l10n-id": "document_properties_close"
1568
- }
1569
- }, [_vm._v("关闭")])])])]), _c('dialog', {
1570
- staticStyle: {
1571
- "min-width": "200px"
1572
- },
1573
- attrs: {
1574
- "id": "printServiceDialog"
1575
- }
1576
- }, [_c('div', {
1577
- staticClass: "row"
1578
- }, [_c('span', {
1579
- attrs: {
1580
- "data-l10n-id": "print_progress_message"
1581
- }
1582
- }, [_vm._v("正在准备打印文档…")])]), _c('div', {
1583
- staticClass: "row"
1584
- }, [_c('progress', {
1585
- attrs: {
1586
- "id": "printProgress",
1587
- "value": "0",
1588
- "max": "100"
1589
- }
1590
- }), _c('span', {
1591
- staticClass: "relative-progress",
1592
- attrs: {
1593
- "data-l10n-id": "print_progress_percent",
1594
- "data-l10n-args": "{ \"progress\": 0 }"
1595
- }
1596
- }, [_vm._v("0%")])]), _c('div', {
1597
- staticClass: "buttonRow"
1598
- }, [_c('button', {
1599
- staticClass: "dialogButton",
1600
- attrs: {
1601
- "id": "printCancel"
1602
- }
1603
- }, [_c('span', {
1604
- attrs: {
1605
- "data-l10n-id": "print_progress_close"
1606
- }
1607
- }, [_vm._v("取消")])])])]), _c('dialog', {
1608
- attrs: {
1609
- "id": "signaturePropertiesDialog"
1610
- }
1611
- }, [_c('div', {
1612
- staticClass: "row"
1613
- }, [_c('span', {
1614
- attrs: {
1615
- "id": "signerLabel"
1616
- }
1617
- }, [_vm._v("签章人:")]), _c('p', {
1618
- attrs: {
1619
- "id": "signerField",
1620
- "aria-labelledby": "fileNameLabel"
1621
- }
1622
- }, [_vm._v("-")])]), _c('div', {
1623
- staticClass: "row"
1624
- }, [_c('span', {
1625
- attrs: {
1626
- "id": "providerLabel"
1627
- }
1628
- }, [_vm._v("签章提供者:")]), _c('p', {
1629
- attrs: {
1630
- "id": "providerField",
1631
- "aria-labelledby": "fileNameLabel"
1632
- }
1633
- }, [_vm._v("-")])]), _c('div', {
1634
- staticClass: "row"
1635
- }, [_c('span', {
1636
- attrs: {
1637
- "id": "hashedValueLabel"
1638
- }
1639
- }, [_vm._v("原文摘要值:")]), _c('p', {
1640
- attrs: {
1641
- "id": "hashedValueField",
1642
- "aria-labelledby": "fileNameLabel"
1643
- }
1644
- }, [_vm._v("-")])]), _c('div', {
1645
- staticClass: "row"
1646
- }, [_c('span', {
1647
- attrs: {
1648
- "id": "signedValueLabel"
1649
- }
1650
- }, [_vm._v("签名值:")]), _c('p', {
1651
- attrs: {
1652
- "id": "signedValueField",
1653
- "aria-labelledby": "fileNameLabel"
1654
- }
1655
- }, [_vm._v("-")])]), _c('div', {
1656
- staticClass: "row"
1657
- }, [_c('span', {
1658
- attrs: {
1659
- "id": "signMethodLabel"
1660
- }
1661
- }, [_vm._v("签名算法:")]), _c('p', {
1662
- attrs: {
1663
- "id": "signMethodField",
1664
- "aria-labelledby": "fileNameLabel"
1665
- }
1666
- }, [_vm._v("-")])]), _c('div', {
1667
- staticClass: "row"
1668
- }, [_c('span', {
1669
- attrs: {
1670
- "id": "signVersionLabel"
1671
- }
1672
- }, [_vm._v("版本号:")]), _c('p', {
1673
- attrs: {
1674
- "id": "signVersionField",
1675
- "aria-labelledby": "fileNameLabel"
1676
- }
1677
- }, [_vm._v("-")])]), _c('div', {
1678
- staticClass: "row"
1679
- }, [_c('span', {
1680
- attrs: {
1681
- "id": "verifyLabel"
1682
- }
1683
- }, [_vm._v("验签结果:")]), _c('p', {
1684
- attrs: {
1685
- "id": "verifyField",
1686
- "aria-labelledby": "fileNameLabel"
1687
- }
1688
- }, [_vm._v("-")])]), _c('div', {
1689
- staticClass: "separator"
1690
- }), _c('div', {
1691
- staticClass: "row"
1692
- }, [_c('span', {
1693
- attrs: {
1694
- "id": "sealIDLabel"
1695
- }
1696
- }, [_vm._v("印章标识:")]), _c('p', {
1697
- attrs: {
1698
- "id": "sealIDField",
1699
- "aria-labelledby": "fileNameLabel"
1700
- }
1701
- }, [_vm._v("-")])]), _c('div', {
1702
- staticClass: "row"
1703
- }, [_c('span', {
1704
- attrs: {
1705
- "id": "sealNameLabel"
1706
- }
1707
- }, [_vm._v("印章名称:")]), _c('p', {
1708
- attrs: {
1709
- "id": "sealNameField",
1710
- "aria-labelledby": "fileNameLabel"
1711
- }
1712
- }, [_vm._v("-")])]), _c('div', {
1713
- staticClass: "row"
1714
- }, [_c('span', {
1715
- attrs: {
1716
- "id": "sealTypeLabel"
1717
- }
1718
- }, [_vm._v("印章类型:")]), _c('p', {
1719
- attrs: {
1720
- "id": "sealTypeField",
1721
- "aria-labelledby": "fileNameLabel"
1722
- }
1723
- }, [_vm._v("-")])]), _c('div', {
1724
- staticClass: "row"
1725
- }, [_c('span', {
1726
- attrs: {
1727
- "id": "sealAuthTimeLabel"
1728
- }
1729
- }, [_vm._v("有效时间:")]), _c('p', {
1730
- attrs: {
1731
- "id": "sealAuthTimeField",
1732
- "aria-labelledby": "fileNameLabel"
1733
- }
1734
- }, [_vm._v("-")])]), _c('div', {
1735
- staticClass: "row"
1736
- }, [_c('span', {
1737
- attrs: {
1738
- "id": "sealMakeTimeLabel"
1739
- }
1740
- }, [_vm._v("制章日期:")]), _c('p', {
1741
- attrs: {
1742
- "id": "sealMakeTimeField",
1743
- "aria-labelledby": "fileNameLabel"
1744
- }
1745
- }, [_vm._v("-")])]), _c('div', {
1746
- staticClass: "row"
1747
- }, [_c('span', {
1748
- attrs: {
1749
- "id": "sealVersionLabel"
1750
- }
1751
- }, [_vm._v("印章版本:")]), _c('p', {
1752
- attrs: {
1753
- "id": "sealVersionField",
1754
- "aria-labelledby": "fileNameLabel"
1755
- }
1756
- }, [_vm._v("-")])]), _c('div', {
1757
- staticClass: "buttonRow"
1758
- }, [_c('button', {
1759
- staticClass: "dialogButton",
1760
- attrs: {
1761
- "id": "signaturePropertiesClose"
1762
- }
1763
- }, [_c('span', {
1764
- attrs: {
1765
- "data-l10n-id": "document_properties_close"
1766
- }
1767
- }, [_vm._v("关闭")])])])])])]);
1768
- }];
1018
+ ;// 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=41f3cab9&scoped=true&
1019
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)
1020
+ }
1021
+ 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("关闭")])])])])])])
1022
+ }]
1023
+
1769
1024
 
1770
1025
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=41f3cab9&scoped=true&
1771
1026
 
1772
1027
  // EXTERNAL MODULE: ./packages/ofdView/viewer.css
1773
1028
  var viewer = __webpack_require__(366);
1774
- ;// 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&
1775
-
1776
- let config;
1777
- /* harmony default export */ var srcvue_type_script_lang_js_ = ({
1778
- name: "OfdView",
1779
- props: {},
1780
- data() {
1781
- return {
1782
- containerHeight: 0
1783
- };
1784
- },
1785
- mounted() {
1786
- if (!config) {
1787
- config = this.getViewerConfiguration();
1788
- console.log('mounted');
1789
- //vue下viewerContainer必须设置height
1790
- this.containerHeight = `${window.innerHeight - 100}px`;
1791
- let img = new Image();
1792
- img.style.position = 'absolute';
1793
- img.style.left = 0;
1794
- img.style.right = 0;
1795
- img.style.margin = 'auto';
1796
- img.style.top = 0;
1797
- img.style.bottom =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82P2cXlTWXQReOiJE5bFqHj4qiUhmBgoSFho59rrKztLVMBQY1BgWzBWe8UUsiuYIGTpMglSaYIcpfnSHEPMYzyB8HZwdrqSMHxAbath2MsqO0zLLorua05OLvJxEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhfohELYHQuGBDgIJXU0Q5CKqtOXsdP0otITHjfTtiW2lnE37StXUwFNaSScXaGZvm4r0jU1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
1799
- img.draggable = false;
1800
- config.loadingContainer = img;
1801
- // config.onPageChanging = pageNumber => {
1802
- // // console.log(pageNumber)
1803
- // }
1804
- // config.parserOFDSuccess = core => {
1805
- // // console.log(core)
1806
- // }
1807
- // config.onPageScale = scale => {
1808
- // // console.log(scale)
1809
- // }
1810
- }
1811
- // ofd.openOFDViewer(config)
1812
- },
1813
-
1814
- methods: {
1815
- getViewerConfiguration() {
1816
- let errorWrapper = null;
1817
- errorWrapper = {
1818
- container: document.getElementById('errorWrapper'),
1819
- errorMessage: document.getElementById('errorMessage'),
1820
- closeButton: document.getElementById('errorClose'),
1821
- errorMoreInfo: document.getElementById('errorMoreInfo'),
1822
- moreInfoButton: document.getElementById('errorShowMore'),
1823
- lessInfoButton: document.getElementById('errorShowLess')
1824
- };
1825
- return {
1826
- appContainer: document.body,
1827
- mainContainer: document.getElementById('viewerContainer'),
1828
- viewerContainer: document.getElementById('viewer'),
1829
- toolbar: {
1830
- container: document.getElementById('toolbarViewer'),
1831
- numPages: document.getElementById('numPages'),
1832
- pageNumber: document.getElementById('pageNumber'),
1833
- scaleSelect: document.getElementById('scaleSelect'),
1834
- customScaleOption: document.getElementById('customScaleOption'),
1835
- previous: document.getElementById('previous'),
1836
- next: document.getElementById('next'),
1837
- zoomIn: document.getElementById('zoomIn'),
1838
- zoomOut: document.getElementById('zoomOut'),
1839
- openFile: document.getElementById('openFile'),
1840
- print: document.getElementById('print')
1841
- },
1842
- secondaryToolbar: {
1843
- toolbar: document.getElementById('secondaryToolbar'),
1844
- toggleButton: document.getElementById('secondaryToolbarToggle'),
1845
- toolbarButtonContainer: document.getElementById('secondaryToolbarButtonContainer'),
1846
- openFileButton: document.getElementById('secondaryOpenFile'),
1847
- printButton: document.getElementById('secondaryPrint'),
1848
- documentPropertiesButton: document.getElementById('documentProperties')
1849
- },
1850
- sidebar: {
1851
- // Divs (and sidebar button)
1852
- outerContainer: document.getElementById('outerContainer'),
1853
- viewerContainer: document.getElementById('viewerContainer')
1854
- },
1855
- sidebarResizer: {
1856
- outerContainer: document.getElementById('outerContainer')
1857
- },
1858
- documentProperties: {
1859
- dialog: document.getElementById('documentPropertiesDialog'),
1860
- closeButton: document.getElementById('documentPropertiesClose'),
1861
- fields: {
1862
- fileName: document.getElementById('fileNameField'),
1863
- fileSize: document.getElementById('fileSizeField'),
1864
- title: document.getElementById('titleField'),
1865
- author: document.getElementById('authorField'),
1866
- subject: document.getElementById('subjectField'),
1867
- keywords: document.getElementById('keywordsField'),
1868
- creationDate: document.getElementById('creationDateField'),
1869
- modificationDate: document.getElementById('modificationDateField'),
1870
- creator: document.getElementById('creatorField'),
1871
- producer: document.getElementById('producerField'),
1872
- version: document.getElementById('versionField'),
1873
- pageCount: document.getElementById('pageCountField'),
1874
- pageSize: document.getElementById('pageSizeField'),
1875
- linearized: document.getElementById('linearizedField')
1876
- }
1877
- },
1878
- signatureProperties: {
1879
- dialog: document.getElementById('signaturePropertiesDialog'),
1880
- closeButton: document.getElementById('signaturePropertiesClose'),
1881
- fields: {
1882
- signer: document.getElementById('signerField'),
1883
- provider: document.getElementById('providerField'),
1884
- hashedValue: document.getElementById('hashedValueField'),
1885
- signedValue: document.getElementById('signedValueField'),
1886
- signMethod: document.getElementById('signMethodField'),
1887
- signVersion: document.getElementById('signVersionField'),
1888
- verify: document.getElementById('verifyField'),
1889
- sealID: document.getElementById('sealIDField'),
1890
- sealName: document.getElementById('sealNameField'),
1891
- sealType: document.getElementById('sealTypeField'),
1892
- sealAuthTime: document.getElementById('sealAuthTimeField'),
1893
- sealMakeTime: document.getElementById('sealMakeTimeField'),
1894
- sealVersion: document.getElementById('sealVersionField')
1895
- }
1896
- },
1897
- errorWrapper,
1898
- printContainer: document.getElementById('printContainer'),
1899
- openFileInputName: 'fileInput'
1900
- };
1901
- }
1902
- }
1903
- });
1029
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1030
+
1031
+
1032
+ let config;
1033
+ /* harmony default export */ var srcvue_type_script_lang_js_ = ({
1034
+ name: "OfdView",
1035
+ props: {
1036
+
1037
+ },
1038
+ data() {
1039
+ return {
1040
+ containerHeight: 0,
1041
+ }
1042
+ },
1043
+
1044
+ mounted() {
1045
+ if (!config) {
1046
+ config = this.getViewerConfiguration()
1047
+ console.log('mounted')
1048
+ //vue下viewerContainer必须设置height
1049
+ this.containerHeight = `${window.innerHeight - 100}px`
1050
+ let img = new Image();
1051
+ img.style.position = 'absolute';
1052
+ img.style.left = 0;
1053
+ img.style.right = 0;
1054
+ img.style.margin = 'auto';
1055
+ img.style.top = 0;
1056
+ img.style.bottom = 0;
1057
+ img.src = 'data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb2FkLmluZm8AIf8LTkVUU0NBUEUyLjADAQAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBY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GBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
1058
+ img.draggable = false;
1059
+ config.loadingContainer = img
1060
+ // config.onPageChanging = pageNumber => {
1061
+ // // console.log(pageNumber)
1062
+ // }
1063
+ // config.parserOFDSuccess = core => {
1064
+ // // console.log(core)
1065
+ // }
1066
+ // config.onPageScale = scale => {
1067
+ // // console.log(scale)
1068
+ // }
1069
+ }
1070
+ // ofd.openOFDViewer(config)
1071
+
1072
+ },
1073
+
1074
+ methods: {
1075
+ getViewerConfiguration() {
1076
+ let errorWrapper = null
1077
+ errorWrapper = {
1078
+ container: document.getElementById('errorWrapper'),
1079
+ errorMessage: document.getElementById('errorMessage'),
1080
+ closeButton: document.getElementById('errorClose'),
1081
+ errorMoreInfo: document.getElementById('errorMoreInfo'),
1082
+ moreInfoButton: document.getElementById('errorShowMore'),
1083
+ lessInfoButton: document.getElementById('errorShowLess'),
1084
+ }
1085
+
1086
+ return {
1087
+ appContainer: document.body,
1088
+ mainContainer: document.getElementById('viewerContainer'),
1089
+ viewerContainer: document.getElementById('viewer'),
1090
+ toolbar: {
1091
+ container: document.getElementById('toolbarViewer'),
1092
+ numPages: document.getElementById('numPages'),
1093
+ pageNumber: document.getElementById('pageNumber'),
1094
+ scaleSelect: document.getElementById('scaleSelect'),
1095
+ customScaleOption: document.getElementById('customScaleOption'),
1096
+ previous: document.getElementById('previous'),
1097
+ next: document.getElementById('next'),
1098
+ zoomIn: document.getElementById('zoomIn'),
1099
+ zoomOut: document.getElementById('zoomOut'),
1100
+ openFile: document.getElementById('openFile'),
1101
+ print: document.getElementById('print'),
1102
+ },
1103
+ secondaryToolbar: {
1104
+ toolbar: document.getElementById('secondaryToolbar'),
1105
+ toggleButton: document.getElementById('secondaryToolbarToggle'),
1106
+ toolbarButtonContainer: document.getElementById(
1107
+ 'secondaryToolbarButtonContainer'
1108
+ ),
1109
+ openFileButton: document.getElementById('secondaryOpenFile'),
1110
+ printButton: document.getElementById('secondaryPrint'),
1111
+ documentPropertiesButton: document.getElementById('documentProperties'),
1112
+ },
1113
+ sidebar: {
1114
+ // Divs (and sidebar button)
1115
+ outerContainer: document.getElementById('outerContainer'),
1116
+ viewerContainer: document.getElementById('viewerContainer'),
1117
+ },
1118
+ sidebarResizer: {
1119
+ outerContainer: document.getElementById('outerContainer'),
1120
+ },
1121
+ documentProperties: {
1122
+ dialog: document.getElementById('documentPropertiesDialog'),
1123
+ closeButton: document.getElementById('documentPropertiesClose'),
1124
+ fields: {
1125
+ fileName: document.getElementById('fileNameField'),
1126
+ fileSize: document.getElementById('fileSizeField'),
1127
+ title: document.getElementById('titleField'),
1128
+ author: document.getElementById('authorField'),
1129
+ subject: document.getElementById('subjectField'),
1130
+ keywords: document.getElementById('keywordsField'),
1131
+ creationDate: document.getElementById('creationDateField'),
1132
+ modificationDate: document.getElementById('modificationDateField'),
1133
+ creator: document.getElementById('creatorField'),
1134
+ producer: document.getElementById('producerField'),
1135
+ version: document.getElementById('versionField'),
1136
+ pageCount: document.getElementById('pageCountField'),
1137
+ pageSize: document.getElementById('pageSizeField'),
1138
+ linearized: document.getElementById('linearizedField'),
1139
+ },
1140
+ },
1141
+ signatureProperties: {
1142
+ dialog: document.getElementById('signaturePropertiesDialog'),
1143
+ closeButton: document.getElementById('signaturePropertiesClose'),
1144
+ fields: {
1145
+ signer: document.getElementById('signerField'),
1146
+ provider: document.getElementById('providerField'),
1147
+ hashedValue: document.getElementById('hashedValueField'),
1148
+ signedValue: document.getElementById('signedValueField'),
1149
+ signMethod: document.getElementById('signMethodField'),
1150
+ signVersion: document.getElementById('signVersionField'),
1151
+ verify: document.getElementById('verifyField'),
1152
+
1153
+ sealID: document.getElementById('sealIDField'),
1154
+ sealName: document.getElementById('sealNameField'),
1155
+ sealType: document.getElementById('sealTypeField'),
1156
+ sealAuthTime: document.getElementById('sealAuthTimeField'),
1157
+ sealMakeTime: document.getElementById('sealMakeTimeField'),
1158
+ sealVersion: document.getElementById('sealVersionField'),
1159
+ },
1160
+ },
1161
+ errorWrapper,
1162
+ printContainer: document.getElementById('printContainer'),
1163
+ openFileInputName: 'fileInput',
1164
+ }
1165
+ }
1166
+ }
1167
+ });
1168
+
1904
1169
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1905
1170
  /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
1906
1171
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
@@ -2022,32 +1287,40 @@ var component = normalizeComponent(
2022
1287
 
2023
1288
  /* harmony default export */ var ofdView_src = (component.exports);
2024
1289
  ;// CONCATENATED MODULE: ./packages/ofdView/index.js
1290
+
1291
+
1292
+ ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src);//注册组件
1293
+
1294
+ /* harmony default export */ var ofdView = (ofdView_src);
2025
1295
 
2026
- ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src); //注册组件
2027
-
2028
- /* harmony default export */ var ofdView = (ofdView_src);
2029
1296
  ;// CONCATENATED MODULE: ./packages/index.js
1297
+
1298
+
1299
+ const components = [
1300
+ ofdView
1301
+ ]
1302
+
1303
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
1304
+ const install = function (Vue) {
1305
+
1306
+ // 判断是否安装
1307
+ if (install.installed) return
1308
+ // 遍历注册全局组件
1309
+ components.map(component => Vue.component(component.name, component))
1310
+ }
1311
+
1312
+ // 判断是否是直接引入文件
1313
+ if (typeof window !== 'undefined' && window.Vue) {
1314
+ install(window.Vue)
1315
+ }
1316
+
1317
+ /* harmony default export */ var packages_0 = ({
1318
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
1319
+ install,
1320
+ // 以下是具体的组件列表
1321
+ OfdView: ofdView
1322
+ });
2030
1323
 
2031
- const components = [ofdView];
2032
-
2033
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
2034
- const install = function (Vue) {
2035
- // 判断是否安装
2036
- if (install.installed) return;
2037
- // 遍历注册全局组件
2038
- components.map(component => Vue.component(component.name, component));
2039
- };
2040
-
2041
- // 判断是否是直接引入文件
2042
- if (typeof window !== 'undefined' && window.Vue) {
2043
- install(window.Vue);
2044
- }
2045
- /* harmony default export */ var packages_0 = ({
2046
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
2047
- install,
2048
- // 以下是具体的组件列表
2049
- OfdView: ofdView
2050
- });
2051
1324
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
2052
1325
 
2053
1326