@web-utils/component 2.0.6 → 2.0.8

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.
@@ -1,10 +1,11 @@
1
1
  import { n as l } from "../../chunks/5d4282fb.js";
2
- var o = function() {
2
+ var s = function() {
3
3
  var e = this, t = e.$createElement, r = e._self._c || t;
4
- return r("ElementDialog", {
4
+ return r("ElementDialog", e._g(e._b({
5
5
  attrs: {
6
6
  "custom-class": "iframe-window",
7
7
  embed: "",
8
+ height: "60vh",
8
9
  title: e.title,
9
10
  "show-full-screen": "",
10
11
  visible: e.visible
@@ -22,7 +23,7 @@ var o = function() {
22
23
  },
23
24
  proxy: !0
24
25
  }])
25
- });
26
+ }, "ElementDialog", e.$attrs, !1), e.$listeners));
26
27
  }, a = [];
27
28
  const i = {
28
29
  name: "IframeWindow",
@@ -38,23 +39,23 @@ const i = {
38
39
  visible: Boolean
39
40
  }
40
41
  }, n = {};
41
- var s = /* @__PURE__ */ l(
42
+ var o = /* @__PURE__ */ l(
42
43
  i,
43
- o,
44
+ s,
44
45
  a,
45
46
  !1,
46
- u,
47
+ _,
47
48
  null,
48
49
  null,
49
50
  null
50
51
  );
51
- function u(e) {
52
+ function _(e) {
52
53
  for (let t in n)
53
54
  this[t] = n[t];
54
55
  }
55
- const c = /* @__PURE__ */ function() {
56
- return s.exports;
56
+ const f = /* @__PURE__ */ function() {
57
+ return o.exports;
57
58
  }();
58
59
  export {
59
- c as default
60
+ f as default
60
61
  };
@@ -1 +1 @@
1
- .iframe-window.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body{position:relative;padding:0}.iframe-window .iframe-window-iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:60vh;border:none}
1
+ .iframe-window.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body{position:relative;padding:0}.iframe-window .iframe-window-iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:none}
@@ -1,4 +1,5 @@
1
1
  import i from "viewerjs";
2
+ import "viewerjs/dist/viewer.css";
2
3
  import { n as l } from "../../chunks/5d4282fb.js";
3
4
  var n = function() {
4
5
  var e = this, t = e.$createElement, r = e._self._c || t;
@@ -86,9 +87,9 @@ function _(e) {
86
87
  for (let t in s)
87
88
  this[t] = s[t];
88
89
  }
89
- const f = /* @__PURE__ */ function() {
90
+ const p = /* @__PURE__ */ function() {
90
91
  return c.exports;
91
92
  }();
92
93
  export {
93
- f as default
94
+ p as default
94
95
  };
@@ -1,9 +1 @@
1
- /*!
2
- * Viewer.js v1.11.1
3
- * https://fengyuanchen.github.io/viewerjs
4
- *
5
- * Copyright 2015-present Chen Fengyuan
6
- * Released under the MIT license
7
- *
8
- * Date: 2022-11-06T05:18:17.414Z
9
- */.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#0000007f;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#0000007f;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#0000007f;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#0000007f}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,10%);border-left-color:#ffffff7f;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.image-viewer .image-item{display:inline-block;width:100px;height:100px;cursor:pointer;background-repeat:no-repeat;background-size:cover;background-position:center;border:none;background-color:transparent;outline:none}.viewer-backdrop{background-color:#5e5e5e}
1
+ .image-viewer .image-item{display:inline-block;width:100px;height:100px;cursor:pointer;background-repeat:no-repeat;background-size:cover;background-position:center;border:none;background-color:transparent;outline:none}.viewer-backdrop{background-color:#5e5e5e}
package/dist/index.css CHANGED
@@ -997,402 +997,8 @@
997
997
  left: 0;
998
998
  width: 100%;
999
999
  height: 100%;
1000
- min-height: 60vh;
1001
1000
  border: none;
1002
1001
  }
1003
- /*!
1004
- * Viewer.js v1.11.1
1005
- * https://fengyuanchen.github.io/viewerjs
1006
- *
1007
- * Copyright 2015-present Chen Fengyuan
1008
- * Released under the MIT license
1009
- *
1010
- * Date: 2022-11-06T05:18:17.414Z
1011
- */
1012
- .viewer-zoom-in:before,
1013
- .viewer-zoom-out:before,
1014
- .viewer-one-to-one:before,
1015
- .viewer-reset:before,
1016
- .viewer-prev:before,
1017
- .viewer-play:before,
1018
- .viewer-next:before,
1019
- .viewer-rotate-left:before,
1020
- .viewer-rotate-right:before,
1021
- .viewer-flip-horizontal:before,
1022
- .viewer-flip-vertical:before,
1023
- .viewer-fullscreen:before,
1024
- .viewer-fullscreen-exit:before,
1025
- .viewer-close:before {
1026
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);
1027
- background-repeat: no-repeat;
1028
- background-size: 280px;
1029
- color: transparent;
1030
- display: block;
1031
- font-size: 0;
1032
- height: 20px;
1033
- line-height: 0;
1034
- width: 20px;
1035
- }
1036
- .viewer-zoom-in:before {
1037
- background-position: 0 0;
1038
- content: "Zoom In";
1039
- }
1040
- .viewer-zoom-out:before {
1041
- background-position: -20px 0;
1042
- content: "Zoom Out";
1043
- }
1044
- .viewer-one-to-one:before {
1045
- background-position: -40px 0;
1046
- content: "One to One";
1047
- }
1048
- .viewer-reset:before {
1049
- background-position: -60px 0;
1050
- content: "Reset";
1051
- }
1052
- .viewer-prev:before {
1053
- background-position: -80px 0;
1054
- content: "Previous";
1055
- }
1056
- .viewer-play:before {
1057
- background-position: -100px 0;
1058
- content: "Play";
1059
- }
1060
- .viewer-next:before {
1061
- background-position: -120px 0;
1062
- content: "Next";
1063
- }
1064
- .viewer-rotate-left:before {
1065
- background-position: -140px 0;
1066
- content: "Rotate Left";
1067
- }
1068
- .viewer-rotate-right:before {
1069
- background-position: -160px 0;
1070
- content: "Rotate Right";
1071
- }
1072
- .viewer-flip-horizontal:before {
1073
- background-position: -180px 0;
1074
- content: "Flip Horizontal";
1075
- }
1076
- .viewer-flip-vertical:before {
1077
- background-position: -200px 0;
1078
- content: "Flip Vertical";
1079
- }
1080
- .viewer-fullscreen:before {
1081
- background-position: -220px 0;
1082
- content: "Enter Full Screen";
1083
- }
1084
- .viewer-fullscreen-exit:before {
1085
- background-position: -240px 0;
1086
- content: "Exit Full Screen";
1087
- }
1088
- .viewer-close:before {
1089
- background-position: -260px 0;
1090
- content: "Close";
1091
- }
1092
- .viewer-container {
1093
- bottom: 0;
1094
- direction: ltr;
1095
- font-size: 0;
1096
- left: 0;
1097
- line-height: 0;
1098
- overflow: hidden;
1099
- position: absolute;
1100
- right: 0;
1101
- -webkit-tap-highlight-color: transparent;
1102
- top: 0;
1103
- -ms-touch-action: none;
1104
- touch-action: none;
1105
- -webkit-touch-callout: none;
1106
- -webkit-user-select: none;
1107
- -moz-user-select: none;
1108
- -ms-user-select: none;
1109
- user-select: none;
1110
- }
1111
- .viewer-container::-moz-selection,
1112
- .viewer-container *::-moz-selection {
1113
- background-color: transparent;
1114
- }
1115
- .viewer-container::selection,
1116
- .viewer-container *::selection {
1117
- background-color: transparent;
1118
- }
1119
- .viewer-container:focus {
1120
- outline: 0;
1121
- }
1122
- .viewer-container img {
1123
- display: block;
1124
- height: auto;
1125
- max-height: none !important;
1126
- max-width: none !important;
1127
- min-height: 0 !important;
1128
- min-width: 0 !important;
1129
- width: 100%;
1130
- }
1131
- .viewer-canvas {
1132
- bottom: 0;
1133
- left: 0;
1134
- overflow: hidden;
1135
- position: absolute;
1136
- right: 0;
1137
- top: 0;
1138
- }
1139
- .viewer-canvas > img {
1140
- height: auto;
1141
- margin: 15px auto;
1142
- max-width: 90% !important;
1143
- width: auto;
1144
- }
1145
- .viewer-footer {
1146
- bottom: 0;
1147
- left: 0;
1148
- overflow: hidden;
1149
- position: absolute;
1150
- right: 0;
1151
- text-align: center;
1152
- }
1153
- .viewer-navbar {
1154
- background-color: #0000007f;
1155
- overflow: hidden;
1156
- }
1157
- .viewer-list {
1158
- box-sizing: content-box;
1159
- height: 50px;
1160
- margin: 0;
1161
- overflow: hidden;
1162
- padding: 1px 0;
1163
- }
1164
- .viewer-list > li {
1165
- color: transparent;
1166
- cursor: pointer;
1167
- float: left;
1168
- font-size: 0;
1169
- height: 50px;
1170
- line-height: 0;
1171
- opacity: .5;
1172
- overflow: hidden;
1173
- transition: opacity .15s;
1174
- width: 30px;
1175
- }
1176
- .viewer-list > li:focus,
1177
- .viewer-list > li:hover {
1178
- opacity: .75;
1179
- }
1180
- .viewer-list > li:focus {
1181
- outline: 0;
1182
- }
1183
- .viewer-list > li + li {
1184
- margin-left: 1px;
1185
- }
1186
- .viewer-list > .viewer-loading {
1187
- position: relative;
1188
- }
1189
- .viewer-list > .viewer-loading:after {
1190
- border-width: 2px;
1191
- height: 20px;
1192
- margin-left: -10px;
1193
- margin-top: -10px;
1194
- width: 20px;
1195
- }
1196
- .viewer-list > .viewer-active,
1197
- .viewer-list > .viewer-active:focus,
1198
- .viewer-list > .viewer-active:hover {
1199
- opacity: 1;
1200
- }
1201
- .viewer-player {
1202
- background-color: #000;
1203
- bottom: 0;
1204
- cursor: none;
1205
- display: none;
1206
- left: 0;
1207
- position: absolute;
1208
- right: 0;
1209
- top: 0;
1210
- z-index: 1;
1211
- }
1212
- .viewer-player > img {
1213
- left: 0;
1214
- position: absolute;
1215
- top: 0;
1216
- }
1217
- .viewer-toolbar > ul {
1218
- display: inline-block;
1219
- margin: 0 auto 5px;
1220
- overflow: hidden;
1221
- padding: 6px 3px;
1222
- }
1223
- .viewer-toolbar > ul > li {
1224
- background-color: #0000007f;
1225
- border-radius: 50%;
1226
- cursor: pointer;
1227
- float: left;
1228
- height: 24px;
1229
- overflow: hidden;
1230
- transition: background-color .15s;
1231
- width: 24px;
1232
- }
1233
- .viewer-toolbar > ul > li:focus,
1234
- .viewer-toolbar > ul > li:hover {
1235
- background-color: #000c;
1236
- }
1237
- .viewer-toolbar > ul > li:focus {
1238
- box-shadow: 0 0 3px #fff;
1239
- outline: 0;
1240
- position: relative;
1241
- z-index: 1;
1242
- }
1243
- .viewer-toolbar > ul > li:before {
1244
- margin: 2px;
1245
- }
1246
- .viewer-toolbar > ul > li + li {
1247
- margin-left: 1px;
1248
- }
1249
- .viewer-toolbar > ul > .viewer-small {
1250
- height: 18px;
1251
- margin-bottom: 3px;
1252
- margin-top: 3px;
1253
- width: 18px;
1254
- }
1255
- .viewer-toolbar > ul > .viewer-small:before {
1256
- margin: -1px;
1257
- }
1258
- .viewer-toolbar > ul > .viewer-large {
1259
- height: 30px;
1260
- margin-bottom: -3px;
1261
- margin-top: -3px;
1262
- width: 30px;
1263
- }
1264
- .viewer-toolbar > ul > .viewer-large:before {
1265
- margin: 5px;
1266
- }
1267
- .viewer-tooltip {
1268
- background-color: #000c;
1269
- border-radius: 10px;
1270
- color: #fff;
1271
- display: none;
1272
- font-size: 12px;
1273
- height: 20px;
1274
- left: 50%;
1275
- line-height: 20px;
1276
- margin-left: -25px;
1277
- margin-top: -10px;
1278
- position: absolute;
1279
- text-align: center;
1280
- top: 50%;
1281
- width: 50px;
1282
- }
1283
- .viewer-title {
1284
- color: #ccc;
1285
- display: inline-block;
1286
- font-size: 12px;
1287
- line-height: 1.2;
1288
- margin: 5px 5%;
1289
- max-width: 90%;
1290
- min-height: 14px;
1291
- opacity: .8;
1292
- overflow: hidden;
1293
- text-overflow: ellipsis;
1294
- transition: opacity .15s;
1295
- white-space: nowrap;
1296
- }
1297
- .viewer-title:hover {
1298
- opacity: 1;
1299
- }
1300
- .viewer-button {
1301
- -webkit-app-region: no-drag;
1302
- background-color: #0000007f;
1303
- border-radius: 50%;
1304
- cursor: pointer;
1305
- height: 80px;
1306
- overflow: hidden;
1307
- position: absolute;
1308
- right: -40px;
1309
- top: -40px;
1310
- transition: background-color .15s;
1311
- width: 80px;
1312
- }
1313
- .viewer-button:focus,
1314
- .viewer-button:hover {
1315
- background-color: #000c;
1316
- }
1317
- .viewer-button:focus {
1318
- box-shadow: 0 0 3px #fff;
1319
- outline: 0;
1320
- }
1321
- .viewer-button:before {
1322
- bottom: 15px;
1323
- left: 15px;
1324
- position: absolute;
1325
- }
1326
- .viewer-fixed {
1327
- position: fixed;
1328
- }
1329
- .viewer-open {
1330
- overflow: hidden;
1331
- }
1332
- .viewer-show {
1333
- display: block;
1334
- }
1335
- .viewer-hide {
1336
- display: none;
1337
- }
1338
- .viewer-backdrop {
1339
- background-color: #0000007f;
1340
- }
1341
- .viewer-invisible {
1342
- visibility: hidden;
1343
- }
1344
- .viewer-move {
1345
- cursor: move;
1346
- cursor: grab;
1347
- }
1348
- .viewer-fade {
1349
- opacity: 0;
1350
- }
1351
- .viewer-in {
1352
- opacity: 1;
1353
- }
1354
- .viewer-transition {
1355
- transition: all .3s;
1356
- }
1357
- @keyframes viewer-spinner {
1358
- 0% {
1359
- transform: rotate(0);
1360
- }
1361
- to {
1362
- transform: rotate(360deg);
1363
- }
1364
- }
1365
- .viewer-loading:after {
1366
- animation: viewer-spinner 1s linear infinite;
1367
- border: 4px solid rgba(255, 255, 255, 10%);
1368
- border-left-color: #ffffff7f;
1369
- border-radius: 50%;
1370
- content: "";
1371
- display: inline-block;
1372
- height: 40px;
1373
- left: 50%;
1374
- margin-left: -20px;
1375
- margin-top: -20px;
1376
- position: absolute;
1377
- top: 50%;
1378
- width: 40px;
1379
- z-index: 1;
1380
- }
1381
- @media (max-width: 767px) {
1382
- .viewer-hide-xs-down {
1383
- display: none;
1384
- }
1385
- }
1386
- @media (max-width: 991px) {
1387
- .viewer-hide-sm-down {
1388
- display: none;
1389
- }
1390
- }
1391
- @media (max-width: 1199px) {
1392
- .viewer-hide-md-down {
1393
- display: none;
1394
- }
1395
- }
1396
1002
  .image-viewer .image-item {
1397
1003
  display: inline-block;
1398
1004
  width: 100px;
package/dist/index.es.js CHANGED
@@ -30,6 +30,7 @@ import Emitter from "element-ui/src/mixins/emitter";
30
30
  import { generateId } from "element-ui/src/utils/util";
31
31
  import { dialogDrag } from "@web-utils/core/dist/directives/index";
32
32
  import Viewer from "viewerjs";
33
+ import "viewerjs/dist/viewer.css";
33
34
  import Focus from "element-ui/src/mixins/focus";
34
35
  import RepeatClick from "element-ui/src/directives/repeat-click";
35
36
  import "photoswipe/dist/photoswipe.css";
@@ -7115,10 +7116,11 @@ const IconCard = /* @__PURE__ */ function() {
7115
7116
  }();
7116
7117
  var render$v = function() {
7117
7118
  var e = this, t = e.$createElement, s = e._self._c || t;
7118
- return s("ElementDialog", {
7119
+ return s("ElementDialog", e._g(e._b({
7119
7120
  attrs: {
7120
7121
  "custom-class": "iframe-window",
7121
7122
  embed: "",
7123
+ height: "60vh",
7122
7124
  title: e.title,
7123
7125
  "show-full-screen": "",
7124
7126
  visible: e.visible
@@ -7136,7 +7138,7 @@ var render$v = function() {
7136
7138
  },
7137
7139
  proxy: !0
7138
7140
  }])
7139
- });
7141
+ }, "ElementDialog", e.$attrs, !1), e.$listeners));
7140
7142
  }, staticRenderFns$v = [];
7141
7143
  const IframeWindow_vue_vue_type_style_index_0_lang = "", __vue2_script$A = {
7142
7144
  name: "IframeWindow",
@@ -13127,7 +13129,7 @@ function __vue2_injectStyles(e) {
13127
13129
  }
13128
13130
  const XDialog = /* @__PURE__ */ function() {
13129
13131
  return __component__.exports;
13130
- }(), version = "2.0.6";
13132
+ }(), version = "2.0.8";
13131
13133
  function index(e) {
13132
13134
  e.component(AddressInput.name, AddressInput), e.component(AsideMenu.name, AsideMenu), e.component(AwesomeButton.name, AwesomeButton), e.component(CapsuleTab.name, CapsuleTab), e.component(ChunkFileUploader.name, ChunkFileUploader), e.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), e.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), e.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), e.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), e.component(ChunkFileUploaderList.name, ChunkFileUploaderList), e.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), e.component(CodeMirrorEditor.name, CodeMirrorEditor), e.component(ColorPicker.name, ColorPicker), e.component(Confirmable.name, Confirmable), e.component(ConfirmButton.name, ConfirmButton), e.component(ContextMenu.name, ContextMenu), e.component(CustomScrollbar.name, CustomScrollbar), e.component(DataTablePicker.name, DataTablePicker), e.component(DynamicTable.name, DynamicTable), e.component(ECharts.name, ECharts), e.component(EditableProgress.name, EditableProgress), e.component(EditableTree.name, EditableTree), e.component(EgdCollapse.name, EgdCollapse), e.component(EgdCollapseItem.name, EgdCollapseItem), e.component(ElementDialog.name, ElementDialog), e.component(EmptyView.name, EmptyView), e.component(ErrorView.name, ErrorView), e.component(FlexColumn.name, FlexColumn), e.component(FlexItem.name, FlexItem), e.component(FlexRow.name, FlexRow), e.component(FlexScroller.name, FlexScroller), e.component(FormButton.name, FormButton), e.component(FormCascader.name, FormCascader), e.component(FormCheckboxGroup.name, FormCheckboxGroup), e.component(FormDatePicker.name, FormDatePicker), e.component(FormHolder.name, FormHolder), e.component(FormInput.name, FormInput), e.component(FormInputEmail.name, FormInputEmail), e.component(FormInputIdCard.name, FormInputIdCard), e.component(FormInputNumber.name, FormInputNumber), e.component(FormInputPhoneNumber.name, FormInputPhoneNumber), e.component(FormInputTime.name, FormInputTime), e.component(FormItem.name, FormItem), e.component(FormItemConfigProvider.name, FormItemConfigProvider), e.component(FormItemGroup.name, FormItemGroup), e.component(FormRadioGroup.name, FormRadioGroup), e.component(FormSelect.name, FormSelect), e.component(FormSwitch.name, FormSwitch), e.component(FormTextarea.name, FormTextarea), e.component(FormView.name, FormView), e.component(GuideSteps.name, GuideSteps), e.component(IconCard.name, IconCard), e.component(IframeWindow.name, IframeWindow), e.component(ImageViewer.name, ImageViewer), e.component(InputNumber.name, InputNumber), e.component(InputNumberRange.name, InputNumberRange), e.component(JSXComponent.name, JSXComponent), e.component(KeepViewAlive.name, KeepViewAlive), e.component(LoadingView.name, LoadingView), e.component(NavBar.name, NavBar), e.component(NotImplement.name, NotImplement), e.component(Page.name, Page), e.component(PageableTable.name, PageableTable), e.component(PageableView.name, PageableView), e.component(PageHeader.name, PageHeader), e.component(PageIndex.name, PageIndex), e.component(PageIndexTop.name, PageIndexTop), e.component(PageSkeleton.name, PageSkeleton), e.component(PageSkeletonNew.name, PageSkeletonNew), e.component(PhotoSwipe.name, PhotoSwipe), e.component(ResizeObserver.name, ResizeObserver), e.component(SearchPopover.name, SearchPopover), e.component(SignPanel.name, SignPanel), e.component(SplitPane.name, SplitPane), e.component(Stateful.name, Stateful), e.component(StaticPageableTable.name, StaticPageableTable), e.component(Swiper.name, Swiper), e.component(Tab.name, Tab), e.component(TabItem.name, TabItem), e.component(TableColumn.name, TableColumn), e.component(TableView.name, TableView), e.component(TagRender.name, TagRender), e.component(TinymceEditor.name, TinymceEditor), e.component(TinymceWrapper.name, TinymceWrapper), e.component(Toolbar.name, Toolbar), e.component(ToolbarButton.name, ToolbarButton), e.component(Trigger.name, Trigger), e.component(VueTagsInput.name, VueTagsInput), e.component(Watermark.name, Watermark), e.component(XDialog.name, XDialog);
13133
13135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.0.6",
5
+ "version": "2.0.8",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",