@mayaxxp/cueui 1.0.1 → 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/dist/cueui.common.482.js +170 -0
- package/dist/cueui.common.482.js.map +1 -0
- package/dist/cueui.common.835.js +319 -0
- package/dist/cueui.common.835.js.map +1 -0
- package/dist/cueui.common.js +9328 -8276
- package/dist/cueui.common.js.map +1 -1
- package/dist/cueui.css +1 -1
- package/dist/cueui.umd.263.js +170 -0
- package/dist/cueui.umd.263.js.map +1 -0
- package/dist/cueui.umd.586.js +319 -0
- package/dist/cueui.umd.586.js.map +1 -0
- package/dist/cueui.umd.js +22068 -21016
- package/dist/cueui.umd.js.map +1 -1
- package/dist/cueui.umd.min.695.js +2 -0
- package/dist/cueui.umd.min.695.js.map +1 -0
- package/dist/cueui.umd.min.913.js +8 -0
- package/dist/cueui.umd.min.913.js.map +1 -0
- package/dist/cueui.umd.min.js +2 -2
- package/dist/cueui.umd.min.js.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackChunkcueui"] = (typeof self !== 'undefined' ? self : this)["webpackChunkcueui"] || []).push([[586],{
|
|
2
|
+
|
|
3
|
+
/***/ 3586:
|
|
4
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
// ESM COMPAT FLAG
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
|
|
10
|
+
// EXPORTS
|
|
11
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
"default": function() { return /* binding */ Screenfull; }
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
;// ./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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/components/Screenfull/index.vue?vue&type=template&id=3f002a1f
|
|
16
|
+
var render = function render() {
|
|
17
|
+
var _vm = this,
|
|
18
|
+
_c = _vm._self._c;
|
|
19
|
+
return _c('el-tooltip', {
|
|
20
|
+
attrs: {
|
|
21
|
+
"effect": "dark",
|
|
22
|
+
"content": _vm.isFullscreen ? _vm.$t('common.outFullScreen') : _vm.$t('common.fullScreen'),
|
|
23
|
+
"placement": "top"
|
|
24
|
+
}
|
|
25
|
+
}, [_c('el-link', {
|
|
26
|
+
attrs: {
|
|
27
|
+
"icon": `${_vm.isFullscreen ? 'el-icon-copy-document' : 'el-icon-full-screen'} common-head-icon`,
|
|
28
|
+
"underline": false
|
|
29
|
+
},
|
|
30
|
+
on: {
|
|
31
|
+
"click": function ($event) {
|
|
32
|
+
return _vm.click();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})], 1);
|
|
36
|
+
};
|
|
37
|
+
var staticRenderFns = [];
|
|
38
|
+
|
|
39
|
+
// EXTERNAL MODULE: ./node_modules/screenfull/dist/screenfull.js
|
|
40
|
+
var screenfull = __webpack_require__(1916);
|
|
41
|
+
var screenfull_default = /*#__PURE__*/__webpack_require__.n(screenfull);
|
|
42
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/Screenfull/index.vue?vue&type=script&lang=js
|
|
43
|
+
|
|
44
|
+
/* harmony default export */ var Screenfullvue_type_script_lang_js = ({
|
|
45
|
+
props: {
|
|
46
|
+
isContainer: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
name: 'Screenfull',
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
refEle: '',
|
|
55
|
+
isFullscreen: false
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
mounted() {
|
|
59
|
+
this.init();
|
|
60
|
+
this.refEle = this.$options.parent.$el;
|
|
61
|
+
},
|
|
62
|
+
beforeDestroy() {
|
|
63
|
+
this.destroy();
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
click() {
|
|
67
|
+
if (!(screenfull_default()).enabled) {
|
|
68
|
+
this.$message({
|
|
69
|
+
message: '不支持全屏',
|
|
70
|
+
type: 'warning'
|
|
71
|
+
});
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
if (this.isContainer) {
|
|
75
|
+
screenfull_default().toggle(this.refEle);
|
|
76
|
+
} else {
|
|
77
|
+
screenfull_default().toggle();
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
change() {
|
|
81
|
+
this.isFullscreen = (screenfull_default()).isFullscreen;
|
|
82
|
+
},
|
|
83
|
+
init() {
|
|
84
|
+
if ((screenfull_default()).enabled) {
|
|
85
|
+
screenfull_default().on('change', this.change);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
destroy() {
|
|
89
|
+
if ((screenfull_default()).enabled) {
|
|
90
|
+
screenfull_default().off('change', this.change);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
;// ./packages/components/Screenfull/index.vue?vue&type=script&lang=js
|
|
96
|
+
/* harmony default export */ var components_Screenfullvue_type_script_lang_js = (Screenfullvue_type_script_lang_js);
|
|
97
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
98
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
99
|
+
;// ./packages/components/Screenfull/index.vue
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* normalize component */
|
|
106
|
+
;
|
|
107
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
108
|
+
components_Screenfullvue_type_script_lang_js,
|
|
109
|
+
render,
|
|
110
|
+
staticRenderFns,
|
|
111
|
+
false,
|
|
112
|
+
null,
|
|
113
|
+
null,
|
|
114
|
+
null
|
|
115
|
+
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
/* harmony default export */ var Screenfull = (component.exports);
|
|
119
|
+
|
|
120
|
+
/***/ }),
|
|
121
|
+
|
|
122
|
+
/***/ 1916:
|
|
123
|
+
/***/ (function(module) {
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
* screenfull
|
|
127
|
+
* v4.2.0 - 2019-04-01
|
|
128
|
+
* (c) Sindre Sorhus; MIT License
|
|
129
|
+
*/
|
|
130
|
+
(function () {
|
|
131
|
+
'use strict';
|
|
132
|
+
|
|
133
|
+
var document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};
|
|
134
|
+
var isCommonjs = true && module.exports;
|
|
135
|
+
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;
|
|
136
|
+
|
|
137
|
+
var fn = (function () {
|
|
138
|
+
var val;
|
|
139
|
+
|
|
140
|
+
var fnMap = [
|
|
141
|
+
[
|
|
142
|
+
'requestFullscreen',
|
|
143
|
+
'exitFullscreen',
|
|
144
|
+
'fullscreenElement',
|
|
145
|
+
'fullscreenEnabled',
|
|
146
|
+
'fullscreenchange',
|
|
147
|
+
'fullscreenerror'
|
|
148
|
+
],
|
|
149
|
+
// New WebKit
|
|
150
|
+
[
|
|
151
|
+
'webkitRequestFullscreen',
|
|
152
|
+
'webkitExitFullscreen',
|
|
153
|
+
'webkitFullscreenElement',
|
|
154
|
+
'webkitFullscreenEnabled',
|
|
155
|
+
'webkitfullscreenchange',
|
|
156
|
+
'webkitfullscreenerror'
|
|
157
|
+
|
|
158
|
+
],
|
|
159
|
+
// Old WebKit (Safari 5.1)
|
|
160
|
+
[
|
|
161
|
+
'webkitRequestFullScreen',
|
|
162
|
+
'webkitCancelFullScreen',
|
|
163
|
+
'webkitCurrentFullScreenElement',
|
|
164
|
+
'webkitCancelFullScreen',
|
|
165
|
+
'webkitfullscreenchange',
|
|
166
|
+
'webkitfullscreenerror'
|
|
167
|
+
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
'mozRequestFullScreen',
|
|
171
|
+
'mozCancelFullScreen',
|
|
172
|
+
'mozFullScreenElement',
|
|
173
|
+
'mozFullScreenEnabled',
|
|
174
|
+
'mozfullscreenchange',
|
|
175
|
+
'mozfullscreenerror'
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
'msRequestFullscreen',
|
|
179
|
+
'msExitFullscreen',
|
|
180
|
+
'msFullscreenElement',
|
|
181
|
+
'msFullscreenEnabled',
|
|
182
|
+
'MSFullscreenChange',
|
|
183
|
+
'MSFullscreenError'
|
|
184
|
+
]
|
|
185
|
+
];
|
|
186
|
+
|
|
187
|
+
var i = 0;
|
|
188
|
+
var l = fnMap.length;
|
|
189
|
+
var ret = {};
|
|
190
|
+
|
|
191
|
+
for (; i < l; i++) {
|
|
192
|
+
val = fnMap[i];
|
|
193
|
+
if (val && val[1] in document) {
|
|
194
|
+
for (i = 0; i < val.length; i++) {
|
|
195
|
+
ret[fnMap[0][i]] = val[i];
|
|
196
|
+
}
|
|
197
|
+
return ret;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return false;
|
|
202
|
+
})();
|
|
203
|
+
|
|
204
|
+
var eventNameMap = {
|
|
205
|
+
change: fn.fullscreenchange,
|
|
206
|
+
error: fn.fullscreenerror
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
var screenfull = {
|
|
210
|
+
request: function (elem) {
|
|
211
|
+
return new Promise(function (resolve) {
|
|
212
|
+
var request = fn.requestFullscreen;
|
|
213
|
+
|
|
214
|
+
var onFullScreenEntered = function () {
|
|
215
|
+
this.off('change', onFullScreenEntered);
|
|
216
|
+
resolve();
|
|
217
|
+
}.bind(this);
|
|
218
|
+
|
|
219
|
+
elem = elem || document.documentElement;
|
|
220
|
+
|
|
221
|
+
// Work around Safari 5.1 bug: reports support for
|
|
222
|
+
// keyboard in fullscreen even though it doesn't.
|
|
223
|
+
// Browser sniffing, since the alternative with
|
|
224
|
+
// setTimeout is even worse.
|
|
225
|
+
if (/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)) {
|
|
226
|
+
elem[request]();
|
|
227
|
+
} else {
|
|
228
|
+
elem[request](keyboardAllowed ? Element.ALLOW_KEYBOARD_INPUT : {});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
this.on('change', onFullScreenEntered);
|
|
232
|
+
}.bind(this));
|
|
233
|
+
},
|
|
234
|
+
exit: function () {
|
|
235
|
+
return new Promise(function (resolve) {
|
|
236
|
+
if (!this.isFullscreen) {
|
|
237
|
+
resolve();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
var onFullScreenExit = function () {
|
|
242
|
+
this.off('change', onFullScreenExit);
|
|
243
|
+
resolve();
|
|
244
|
+
}.bind(this);
|
|
245
|
+
|
|
246
|
+
document[fn.exitFullscreen]();
|
|
247
|
+
|
|
248
|
+
this.on('change', onFullScreenExit);
|
|
249
|
+
}.bind(this));
|
|
250
|
+
},
|
|
251
|
+
toggle: function (elem) {
|
|
252
|
+
return this.isFullscreen ? this.exit() : this.request(elem);
|
|
253
|
+
},
|
|
254
|
+
onchange: function (callback) {
|
|
255
|
+
this.on('change', callback);
|
|
256
|
+
},
|
|
257
|
+
onerror: function (callback) {
|
|
258
|
+
this.on('error', callback);
|
|
259
|
+
},
|
|
260
|
+
on: function (event, callback) {
|
|
261
|
+
var eventName = eventNameMap[event];
|
|
262
|
+
if (eventName) {
|
|
263
|
+
document.addEventListener(eventName, callback, false);
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
off: function (event, callback) {
|
|
267
|
+
var eventName = eventNameMap[event];
|
|
268
|
+
if (eventName) {
|
|
269
|
+
document.removeEventListener(eventName, callback, false);
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
raw: fn
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
if (!fn) {
|
|
276
|
+
if (isCommonjs) {
|
|
277
|
+
module.exports = false;
|
|
278
|
+
} else {
|
|
279
|
+
window.screenfull = false;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
Object.defineProperties(screenfull, {
|
|
286
|
+
isFullscreen: {
|
|
287
|
+
get: function () {
|
|
288
|
+
return Boolean(document[fn.fullscreenElement]);
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
element: {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
get: function () {
|
|
294
|
+
return document[fn.fullscreenElement];
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
enabled: {
|
|
298
|
+
enumerable: true,
|
|
299
|
+
get: function () {
|
|
300
|
+
// Coerce to boolean in case of old WebKit
|
|
301
|
+
return Boolean(document[fn.fullscreenEnabled]);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
if (isCommonjs) {
|
|
307
|
+
module.exports = screenfull;
|
|
308
|
+
// TODO: remove this in the next major version
|
|
309
|
+
module.exports["default"] = screenfull;
|
|
310
|
+
} else {
|
|
311
|
+
window.screenfull = screenfull;
|
|
312
|
+
}
|
|
313
|
+
})();
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
/***/ })
|
|
317
|
+
|
|
318
|
+
}]);
|
|
319
|
+
//# sourceMappingURL=cueui.umd.586.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cueui.umd.586.js","mappings":";;;;;;;;;;;;;;;AAAA,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,YAAY,EAAC;IAACE,KAAK,EAAC;MAAC,QAAQ,EAAC,MAAM;MAAC,SAAS,EAACH,GAAG,CAACI,YAAY,GAACJ,GAAG,CAACK,EAAE,CAAC,sBAAsB,CAAC,GAACL,GAAG,CAACK,EAAE,CAAC,mBAAmB,CAAC;MAAC,WAAW,EAAC;IAAK;EAAC,CAAC,EAAC,CAACJ,EAAE,CAAC,SAAS,EAAC;IAACE,KAAK,EAAC;MAAC,MAAM,EAAC,GAAGH,GAAG,CAACI,YAAY,GAAC,uBAAuB,GAAC,qBAAqB,mBAAmB;MAAC,WAAW,EAAC;IAAK,CAAC;IAACE,EAAE,EAAC;MAAC,OAAO,EAAC,SAAAC,CAASC,MAAM,EAAC;QAAC,OAAOR,GAAG,CAACO,KAAK,CAAC,CAAC;MAAA;IAAC;EAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC;AACjZ,CAAC;AACD,IAAIE,eAAe,GAAG,EAAE;;;;;;ACQxB;AACA,sEAAe;EACfE,KAAA;IACAC,WAAA;MACAC,IAAA,EAAAC,OAAA;MACAC,OAAA;IACA;EACA;EACAC,IAAA;EACAC,KAAA;IACA;MACAC,MAAA;MACAd,YAAA;IACA;EACA;EACAe,QAAA;IACA,KAAAC,IAAA;IACA,KAAAF,MAAA,QAAAG,QAAA,CAAAC,MAAA,CAAAC,GAAA;EACA;EACAC,cAAA;IACA,KAAAC,OAAA;EACA;EACAC,OAAA;IACAnB,MAAA;MACA,KAAAG,8BAAA;QACA,KAAAkB,QAAA;UACAC,OAAA;UACAhB,IAAA;QACA;QACA;MACA;MACA,SAAAD,WAAA;QACAF,2BAAA,MAAAQ,MAAA;MACA;QACAR,2BAAA;MACA;IACA;IACAqB,OAAA;MACA,KAAA3B,YAAA,GAAAM,mCAAA;IACA;IACAU,KAAA;MACA,IAAAV,8BAAA;QACAA,uBAAA,gBAAAqB,MAAA;MACA;IACA;IACAN,QAAA;MACA,IAAAf,8BAAA;QACAA,wBAAA,gBAAAqB,MAAA;MACA;IACA;EACA;AACA,CAAC,E;;AC7D8R,CAAC,iFAAe,iCAAG,EAAC,C;;;;ACAhO;AAC3B;AACL;;;AAGnD;AACA,CAAsG;AACtG,gBAAgB,sCAAU;AAC1B,EAAE,4CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAAe,iB;;;;;;;AClBf;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;AACA,kBAAkB,KAA6B;AAC/C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,SAAS,OAAO;AAChB;AACA;AACA,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,sEAAsE;AACtE;;AAEA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE,yBAAsB;AACxB,GAAG;AACH;AACA;AACA,CAAC","sources":["webpack://cueui/./packages/components/Screenfull/index.vue","webpack://cueui/packages/components/Screenfull/index.vue","webpack://cueui/./packages/components/Screenfull/index.vue?f62e","webpack://cueui/./packages/components/Screenfull/index.vue?cdbd","webpack://cueui/./node_modules/screenfull/dist/screenfull.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-tooltip',{attrs:{\"effect\":\"dark\",\"content\":_vm.isFullscreen?_vm.$t('common.outFullScreen'):_vm.$t('common.fullScreen'),\"placement\":\"top\"}},[_c('el-link',{attrs:{\"icon\":`${_vm.isFullscreen?'el-icon-copy-document':'el-icon-full-screen'} common-head-icon`,\"underline\":false},on:{\"click\":function($event){return _vm.click()}}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-tooltip effect=\"dark\"\n :content=\"isFullscreen?$t('common.outFullScreen'):$t('common.fullScreen')\" placement=\"top\">\n <el-link\n :icon=\"`${isFullscreen?'el-icon-copy-document':'el-icon-full-screen'} common-head-icon`\"\n :underline=\"false\" @click=\"click()\" />\n </el-tooltip>\n</template>\n\n<script>\nimport screenfull from 'screenfull'\nexport default {\n props: {\n isContainer: {\n type: Boolean,\n default: true\n }\n },\n name: 'Screenfull',\n data() {\n return {\n refEle: '',\n isFullscreen: false\n }\n },\n mounted() {\n this.init()\n this.refEle = this.$options.parent.$el\n },\n beforeDestroy() {\n this.destroy()\n },\n methods: {\n click() {\n if (!screenfull.enabled) {\n this.$message({\n message: '不支持全屏',\n type: 'warning'\n })\n return false\n }\n if (this.isContainer) {\n screenfull.toggle(this.refEle)\n } else {\n screenfull.toggle()\n }\n },\n change() {\n this.isFullscreen = screenfull.isFullscreen\n },\n init() {\n if (screenfull.enabled) {\n screenfull.on('change', this.change)\n }\n },\n destroy() {\n if (screenfull.enabled) {\n screenfull.off('change', this.change)\n }\n }\n }\n}\n</script>","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3f002a1f\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*!\n* screenfull\n* v4.2.0 - 2019-04-01\n* (c) Sindre Sorhus; MIT License\n*/\n(function () {\n\t'use strict';\n\n\tvar document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};\n\tvar isCommonjs = typeof module !== 'undefined' && module.exports;\n\tvar keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;\n\n\tvar fn = (function () {\n\t\tvar val;\n\n\t\tvar fnMap = [\n\t\t\t[\n\t\t\t\t'requestFullscreen',\n\t\t\t\t'exitFullscreen',\n\t\t\t\t'fullscreenElement',\n\t\t\t\t'fullscreenEnabled',\n\t\t\t\t'fullscreenchange',\n\t\t\t\t'fullscreenerror'\n\t\t\t],\n\t\t\t// New WebKit\n\t\t\t[\n\t\t\t\t'webkitRequestFullscreen',\n\t\t\t\t'webkitExitFullscreen',\n\t\t\t\t'webkitFullscreenElement',\n\t\t\t\t'webkitFullscreenEnabled',\n\t\t\t\t'webkitfullscreenchange',\n\t\t\t\t'webkitfullscreenerror'\n\n\t\t\t],\n\t\t\t// Old WebKit (Safari 5.1)\n\t\t\t[\n\t\t\t\t'webkitRequestFullScreen',\n\t\t\t\t'webkitCancelFullScreen',\n\t\t\t\t'webkitCurrentFullScreenElement',\n\t\t\t\t'webkitCancelFullScreen',\n\t\t\t\t'webkitfullscreenchange',\n\t\t\t\t'webkitfullscreenerror'\n\n\t\t\t],\n\t\t\t[\n\t\t\t\t'mozRequestFullScreen',\n\t\t\t\t'mozCancelFullScreen',\n\t\t\t\t'mozFullScreenElement',\n\t\t\t\t'mozFullScreenEnabled',\n\t\t\t\t'mozfullscreenchange',\n\t\t\t\t'mozfullscreenerror'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'msRequestFullscreen',\n\t\t\t\t'msExitFullscreen',\n\t\t\t\t'msFullscreenElement',\n\t\t\t\t'msFullscreenEnabled',\n\t\t\t\t'MSFullscreenChange',\n\t\t\t\t'MSFullscreenError'\n\t\t\t]\n\t\t];\n\n\t\tvar i = 0;\n\t\tvar l = fnMap.length;\n\t\tvar ret = {};\n\n\t\tfor (; i < l; i++) {\n\t\t\tval = fnMap[i];\n\t\t\tif (val && val[1] in document) {\n\t\t\t\tfor (i = 0; i < val.length; i++) {\n\t\t\t\t\tret[fnMap[0][i]] = val[i];\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t})();\n\n\tvar eventNameMap = {\n\t\tchange: fn.fullscreenchange,\n\t\terror: fn.fullscreenerror\n\t};\n\n\tvar screenfull = {\n\t\trequest: function (elem) {\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\tvar request = fn.requestFullscreen;\n\n\t\t\t\tvar onFullScreenEntered = function () {\n\t\t\t\t\tthis.off('change', onFullScreenEntered);\n\t\t\t\t\tresolve();\n\t\t\t\t}.bind(this);\n\n\t\t\t\telem = elem || document.documentElement;\n\n\t\t\t\t// Work around Safari 5.1 bug: reports support for\n\t\t\t\t// keyboard in fullscreen even though it doesn't.\n\t\t\t\t// Browser sniffing, since the alternative with\n\t\t\t\t// setTimeout is even worse.\n\t\t\t\tif (/ Version\\/5\\.1(?:\\.\\d+)? Safari\\//.test(navigator.userAgent)) {\n\t\t\t\t\telem[request]();\n\t\t\t\t} else {\n\t\t\t\t\telem[request](keyboardAllowed ? Element.ALLOW_KEYBOARD_INPUT : {});\n\t\t\t\t}\n\n\t\t\t\tthis.on('change', onFullScreenEntered);\n\t\t\t}.bind(this));\n\t\t},\n\t\texit: function () {\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\tif (!this.isFullscreen) {\n\t\t\t\t\tresolve();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar onFullScreenExit = function () {\n\t\t\t\t\tthis.off('change', onFullScreenExit);\n\t\t\t\t\tresolve();\n\t\t\t\t}.bind(this);\n\n\t\t\t\tdocument[fn.exitFullscreen]();\n\n\t\t\t\tthis.on('change', onFullScreenExit);\n\t\t\t}.bind(this));\n\t\t},\n\t\ttoggle: function (elem) {\n\t\t\treturn this.isFullscreen ? this.exit() : this.request(elem);\n\t\t},\n\t\tonchange: function (callback) {\n\t\t\tthis.on('change', callback);\n\t\t},\n\t\tonerror: function (callback) {\n\t\t\tthis.on('error', callback);\n\t\t},\n\t\ton: function (event, callback) {\n\t\t\tvar eventName = eventNameMap[event];\n\t\t\tif (eventName) {\n\t\t\t\tdocument.addEventListener(eventName, callback, false);\n\t\t\t}\n\t\t},\n\t\toff: function (event, callback) {\n\t\t\tvar eventName = eventNameMap[event];\n\t\t\tif (eventName) {\n\t\t\t\tdocument.removeEventListener(eventName, callback, false);\n\t\t\t}\n\t\t},\n\t\traw: fn\n\t};\n\n\tif (!fn) {\n\t\tif (isCommonjs) {\n\t\t\tmodule.exports = false;\n\t\t} else {\n\t\t\twindow.screenfull = false;\n\t\t}\n\n\t\treturn;\n\t}\n\n\tObject.defineProperties(screenfull, {\n\t\tisFullscreen: {\n\t\t\tget: function () {\n\t\t\t\treturn Boolean(document[fn.fullscreenElement]);\n\t\t\t}\n\t\t},\n\t\telement: {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn document[fn.fullscreenElement];\n\t\t\t}\n\t\t},\n\t\tenabled: {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\t// Coerce to boolean in case of old WebKit\n\t\t\t\treturn Boolean(document[fn.fullscreenEnabled]);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (isCommonjs) {\n\t\tmodule.exports = screenfull;\n\t\t// TODO: remove this in the next major version\n\t\tmodule.exports.default = screenfull;\n\t} else {\n\t\twindow.screenfull = screenfull;\n\t}\n})();\n"],"names":["render","_vm","_c","_self","attrs","isFullscreen","$t","on","click","$event","staticRenderFns","screenfull","props","isContainer","type","Boolean","default","name","data","refEle","mounted","init","$options","parent","$el","beforeDestroy","destroy","methods","enabled","$message","message","toggle","change","off"],"sourceRoot":""}
|