zartui 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js CHANGED
@@ -76,7 +76,7 @@ import Tag from './tag';
76
76
  import Timeline from './timeline';
77
77
  import Toast from './toast';
78
78
  import Uploader from './uploader';
79
- var version = '1.0.2';
79
+ var version = '1.0.3';
80
80
 
81
81
  function install(Vue) {
82
82
  var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, PdfViewerV2, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Timeline, Toast, Uploader];
@@ -1 +1 @@
1
- .zt-pdf-viewer-v2{width:100%;height:100%;position:relative}.zt-pdf-viewer-v2::-webkit-scrollbar{width:0;height:0}.zt-pdf-viewer-v2__page-box{width:100%;height:44px;background-color:#fff;position:fixed;bottom:0;left:0;text-align:center;font-size:16px;line-height:44px}.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__next,.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__pre{cursor:pointer;color:#3a90f6}.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__page{margin:0 10px}.zt-pdf-viewer-v2 .zt-loading{position:absolute;top:50%;left:50%;margin-left:-18px;margin-top:-18px}
1
+ .zt-pdf-viewer-v2{width:100%;height:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.zt-pdf-viewer-v2__inner-container{height:calc(100% - 44px);overflow:scroll}.zt-pdf-viewer-v2__container{height:100%}.zt-pdf-viewer-v2::-webkit-scrollbar{width:0;height:0}.zt-pdf-viewer-v2__page-box{width:100%;height:44px;background-color:#fff;text-align:center;font-size:16px;line-height:44px}.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__next,.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__pre{cursor:pointer;color:#3a90f6}.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__page{margin:0 10px}.zt-pdf-viewer-v2 .zt-loading{position:absolute;top:50%;left:50%;margin-left:-18px;margin-top:-18px}
@@ -138,8 +138,7 @@ export default createComponent({
138
138
  var _this2 = this;
139
139
 
140
140
  if (!this.PDFJS) {
141
- this.PDFJS = window['pdfjs-dist/build/pdf'];
142
- console.log("window['pdfjs-dist/build/pdf']", window['pdfjs-dist/build/pdf']);
141
+ this.PDFJS = window['pdfjs-dist/build/pdf'] || window.pdfjsLib;
143
142
 
144
143
  if (this.PDFJS && this.PDFJS.GlobalWorkerOptions) {
145
144
  this.PDFJS.GlobalWorkerOptions.workerSrc = require("pdfjs-dist/build/pdf.worker.entry");
@@ -199,6 +198,8 @@ export default createComponent({
199
198
  return h("div", {
200
199
  "class": bem(),
201
200
  "ref": "pdfContainer"
201
+ }, [h("div", {
202
+ "class": bem("inner-container")
202
203
  }, [h(Loading, {
203
204
  "directives": [{
204
205
  name: "show",
@@ -212,7 +213,7 @@ export default createComponent({
212
213
  }],
213
214
  "ref": "pdfViewerContainer",
214
215
  "class": bem("container")
215
- }), this.totalPage ? h("div", {
216
+ })]), this.totalPage ? h("div", {
216
217
  "class": bem("page-box")
217
218
  }, [h("span", {
218
219
  "class": bem("pre"),
@@ -3,6 +3,17 @@
3
3
  width: 100%;
4
4
  height: 100%;
5
5
  position: relative;
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ &__inner-container {
10
+ height: calc(100% - 44px);
11
+ overflow: scroll;
12
+ }
13
+
14
+ &__container {
15
+ height: 100%;
16
+ }
6
17
 
7
18
  &::-webkit-scrollbar {
8
19
  width: 0;
@@ -13,9 +24,6 @@
13
24
  width: 100%;
14
25
  height: 44px;
15
26
  background-color: #fff;
16
- position: fixed;
17
- bottom: 0;
18
- left: 0;
19
27
  text-align: center;
20
28
  font-size: 16px;
21
29
  line-height: 44px;