zartui 0.1.80 → 0.1.83

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.
Files changed (40) hide show
  1. package/es/dialog/index.js +6 -1
  2. package/es/index.js +1 -1
  3. package/es/media-picker/index.js +2 -2
  4. package/es/toast/index.js +5 -1
  5. package/es/utils/router.js +2 -1
  6. package/lib/{7893e51cf0a4877dac80.worker.js → 0e296f85df9480c569f8.worker.js} +0 -0
  7. package/lib/8d3c80fb137537cb31c5.worker.js +2527 -0
  8. package/lib/calendar/utils.js +9 -7
  9. package/lib/count-down/utils.js +2 -2
  10. package/lib/datetime-picker/shared.js +1 -1
  11. package/lib/datetime-picker/utils.js +2 -2
  12. package/lib/dialog/index.js +6 -1
  13. package/lib/image-preview/shared.js +1 -1
  14. package/lib/index.js +3 -2
  15. package/lib/media-picker/index.js +2 -2
  16. package/lib/media-picker/media-util.js +3 -3
  17. package/lib/media-picker/type.js +1 -1
  18. package/lib/mixins/popup/overlay.js +2 -2
  19. package/lib/signature/force-landscape.js +1 -1
  20. package/lib/telemetry/index.js +1 -1
  21. package/lib/toast/index.js +5 -1
  22. package/lib/uploader/utils.js +4 -4
  23. package/lib/utils/constant.js +1 -1
  24. package/lib/utils/create/component.js +1 -1
  25. package/lib/utils/device.js +1 -1
  26. package/lib/utils/dom/event.js +2 -2
  27. package/lib/utils/dom/raf.js +2 -2
  28. package/lib/utils/dom/scroll.js +5 -5
  29. package/lib/utils/format/date-util.js +32 -31
  30. package/lib/utils/format/number.js +2 -2
  31. package/lib/utils/functional.js +1 -1
  32. package/lib/utils/getScroll.js +1 -1
  33. package/lib/utils/index.js +6 -4
  34. package/lib/utils/media/image-util.js +3 -3
  35. package/lib/utils/router.js +3 -2
  36. package/lib/utils/validate/number.js +1 -1
  37. package/lib/zart.js +268 -231
  38. package/lib/zart.min.js +3 -3
  39. package/package.json +3 -2
  40. package/lib/be09b519a460e229fd8d.worker.js +0 -2527
@@ -100,5 +100,10 @@ Dialog.install = function () {
100
100
  };
101
101
 
102
102
  Dialog.Component = ZtDialog;
103
- Vue.prototype.$dialog = Dialog;
103
+
104
+ if (typeof Vue.prototype.$dialog === "undefined") {
105
+ Vue.prototype.$dialog = Dialog;
106
+ }
107
+
108
+ Vue.prototype.$ztDialog = Dialog;
104
109
  export default Dialog;
package/es/index.js CHANGED
@@ -74,7 +74,7 @@ import Tabs from './tabs';
74
74
  import Tag from './tag';
75
75
  import Toast from './toast';
76
76
  import Uploader from './uploader';
77
- var version = '0.1.80';
77
+ var version = '0.1.83';
78
78
 
79
79
  function install(Vue) {
80
80
  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, 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, Toast, Uploader];
@@ -600,7 +600,8 @@ export default createComponent({
600
600
  this.mediaUrlToPlay = (URL || webkitURL).createObjectURL(media.file); // this.mediaUrlToPlay = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
601
601
 
602
602
  this.mediaPlayerVisible = true;
603
- } else if (media.type === MediaType.FILE) {//ignore
603
+ } else if (media.type === MediaType.FILE) {
604
+ Toast('暂不支持此类文件的预览');
604
605
  }
605
606
  },
606
607
  onDelete: function onDelete(media, index) {
@@ -845,7 +846,6 @@ export default createComponent({
845
846
 
846
847
  if (this.allowPickFile) {
847
848
  buttons.push(this.renderButton(MediaType.FILE, MediaAddType.PICK));
848
- buttons.push(this.renderButton(MediaType.FILE, MediaAddType.PICK));
849
849
  }
850
850
 
851
851
  return buttons;
package/es/toast/index.js CHANGED
@@ -185,5 +185,9 @@ Toast.install = function () {
185
185
  Vue.use(VueToast);
186
186
  };
187
187
 
188
- Vue.prototype.$toast = Toast;
188
+ if (typeof Vue.prototype.$toast === "undefined") {
189
+ Vue.prototype.$toast = Toast;
190
+ }
191
+
192
+ Vue.prototype.$ztToast = Toast;
189
193
  export default Toast;
@@ -2,7 +2,8 @@
2
2
  * Vue Router support
3
3
  */
4
4
  function isRedundantNavigation(err) {
5
- return err.name === 'NavigationDuplicated' || err.message && err.message.indexOf('redundant navigation') !== -1;
5
+ return err.name === 'NavigationDuplicated' || // compatible with vue-router@3.3
6
+ err.message && err.message.indexOf('redundant navigation') !== -1;
6
7
  }
7
8
 
8
9
  export function route(router, config) {