1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846 |
- exports.ids = [25,46];
- exports.modules = {
- /***/ 147:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return on; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return off; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return once; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return hasClass; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return removeClass; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getStyle; });
- /* unused harmony export setStyle */
- /* unused harmony export isScroll */
- /* unused harmony export getScrollContainer */
- /* unused harmony export isInContainer */
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
- /* istanbul ignore next */
- const isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
- const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
- const MOZ_HACK_REGEXP = /^moz([A-Z])/;
- const ieVersion = isServer ? 0 : Number(document.documentMode);
- /* istanbul ignore next */
- const trim = function(string) {
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
- };
- /* istanbul ignore next */
- const camelCase = function(name) {
- return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
- return offset ? letter.toUpperCase() : letter;
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
- };
- /* istanbul ignore next */
- const on = (function() {
- if (!isServer && document.addEventListener) {
- return function(element, event, handler) {
- if (element && event && handler) {
- element.addEventListener(event, handler, false);
- }
- };
- } else {
- return function(element, event, handler) {
- if (element && event && handler) {
- element.attachEvent('on' + event, handler);
- }
- };
- }
- })();
- /* istanbul ignore next */
- const off = (function() {
- if (!isServer && document.removeEventListener) {
- return function(element, event, handler) {
- if (element && event) {
- element.removeEventListener(event, handler, false);
- }
- };
- } else {
- return function(element, event, handler) {
- if (element && event) {
- element.detachEvent('on' + event, handler);
- }
- };
- }
- })();
- /* istanbul ignore next */
- const once = function(el, event, fn) {
- var listener = function() {
- if (fn) {
- fn.apply(this, arguments);
- }
- off(el, event, listener);
- };
- on(el, event, listener);
- };
- /* istanbul ignore next */
- function hasClass(el, cls) {
- if (!el || !cls) return false;
- if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
- if (el.classList) {
- return el.classList.contains(cls);
- } else {
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
- }
- };
- /* istanbul ignore next */
- function addClass(el, cls) {
- if (!el) return;
- var curClass = el.className;
- var classes = (cls || '').split(' ');
- for (var i = 0, j = classes.length; i < j; i++) {
- var clsName = classes[i];
- if (!clsName) continue;
- if (el.classList) {
- el.classList.add(clsName);
- } else if (!hasClass(el, clsName)) {
- curClass += ' ' + clsName;
- }
- }
- if (!el.classList) {
- el.setAttribute('class', curClass);
- }
- };
- /* istanbul ignore next */
- function removeClass(el, cls) {
- if (!el || !cls) return;
- var classes = cls.split(' ');
- var curClass = ' ' + el.className + ' ';
- for (var i = 0, j = classes.length; i < j; i++) {
- var clsName = classes[i];
- if (!clsName) continue;
- if (el.classList) {
- el.classList.remove(clsName);
- } else if (hasClass(el, clsName)) {
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
- }
- }
- if (!el.classList) {
- el.setAttribute('class', trim(curClass));
- }
- };
- /* istanbul ignore next */
- const getStyle = ieVersion < 9 ? function(element, styleName) {
- if (isServer) return;
- if (!element || !styleName) return null;
- styleName = camelCase(styleName);
- if (styleName === 'float') {
- styleName = 'styleFloat';
- }
- try {
- switch (styleName) {
- case 'opacity':
- try {
- return element.filters.item('alpha').opacity / 100;
- } catch (e) {
- return 1.0;
- }
- default:
- return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
- }
- } catch (e) {
- return element.style[styleName];
- }
- } : function(element, styleName) {
- if (isServer) return;
- if (!element || !styleName) return null;
- styleName = camelCase(styleName);
- if (styleName === 'float') {
- styleName = 'cssFloat';
- }
- try {
- var computed = document.defaultView.getComputedStyle(element, '');
- return element.style[styleName] || computed ? computed[styleName] : null;
- } catch (e) {
- return element.style[styleName];
- }
- };
- /* istanbul ignore next */
- function setStyle(element, styleName, value) {
- if (!element || !styleName) return;
- if (typeof styleName === 'object') {
- for (var prop in styleName) {
- if (styleName.hasOwnProperty(prop)) {
- setStyle(element, prop, styleName[prop]);
- }
- }
- } else {
- styleName = camelCase(styleName);
- if (styleName === 'opacity' && ieVersion < 9) {
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
- } else {
- element.style[styleName] = value;
- }
- }
- };
- const isScroll = (el, vertical) => {
- if (isServer) return;
- const determinedDirection = vertical !== null && vertical !== undefined;
- const overflow = determinedDirection
- ? vertical
- ? getStyle(el, 'overflow-y')
- : getStyle(el, 'overflow-x')
- : getStyle(el, 'overflow');
- return overflow.match(/(scroll|auto|overlay)/);
- };
- const getScrollContainer = (el, vertical) => {
- if (isServer) return;
- let parent = el;
- while (parent) {
- if ([window, document, document.documentElement].includes(parent)) {
- return window;
- }
- if (isScroll(parent, vertical)) {
- return parent;
- }
- parent = parent.parentNode;
- }
- return parent;
- };
- const isInContainer = (el, container) => {
- if (isServer || !el || !container) return false;
- const elRect = el.getBoundingClientRect();
- let containerRect;
- if ([window, document, document.documentElement, null, undefined].includes(container)) {
- containerRect = {
- top: 0,
- right: window.innerWidth,
- bottom: window.innerHeight,
- left: 0
- };
- } else {
- containerRect = container.getBoundingClientRect();
- }
- return elRect.top < containerRect.bottom &&
- elRect.bottom > containerRect.top &&
- elRect.right > containerRect.left &&
- elRect.left < containerRect.right;
- };
- /***/ }),
- /***/ 148:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // EXPORTS
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ isFirefox; });
- __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ kebabCase; });
- __webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ rafThrottle; });
- __webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ isMac; });
- // UNUSED EXPORTS: noop, hasOwn, toObject, getValueByPath, getPropByPath, generateId, valueEquals, escapeRegexpString, arrayFindIndex, arrayFind, coerceTruthyValueToArray, isIE, isEdge, autoprefixer, capitalize, looseEqual, arrayEquals, isEqual, isEmpty, objToArray
- // EXTERNAL MODULE: external "vue"
- var external_vue_ = __webpack_require__(0);
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
- // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/types.js
- function isString(obj) {
- return Object.prototype.toString.call(obj) === '[object String]';
- }
- function isObject(obj) {
- return Object.prototype.toString.call(obj) === '[object Object]';
- }
- function isHtmlElement(node) {
- return node && node.nodeType === Node.ELEMENT_NODE;
- }
- /**
- * - Inspired:
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
- */
- let isFunction = (functionToCheck) => {
- var getType = {};
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
- };
- if ( true && typeof Int8Array !== 'object' && (external_vue_default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
- isFunction = function(obj) {
- return typeof obj === 'function' || false;
- };
- }
- const isUndefined = (val)=> {
- return val === void 0;
- };
- const isDefined = (val) => {
- return val !== undefined && val !== null;
- };
- // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/util.js
- const util_hasOwnProperty = Object.prototype.hasOwnProperty;
- function noop() {};
- function hasOwn(obj, key) {
- return util_hasOwnProperty.call(obj, key);
- };
- function extend(to, _from) {
- for (let key in _from) {
- to[key] = _from[key];
- }
- return to;
- };
- function toObject(arr) {
- var res = {};
- for (let i = 0; i < arr.length; i++) {
- if (arr[i]) {
- extend(res, arr[i]);
- }
- }
- return res;
- };
- const getValueByPath = function(object, prop) {
- prop = prop || '';
- const paths = prop.split('.');
- let current = object;
- let result = null;
- for (let i = 0, j = paths.length; i < j; i++) {
- const path = paths[i];
- if (!current) break;
- if (i === j - 1) {
- result = current[path];
- break;
- }
- current = current[path];
- }
- return result;
- };
- function getPropByPath(obj, path, strict) {
- let tempObj = obj;
- path = path.replace(/\[(\w+)\]/g, '.$1');
- path = path.replace(/^\./, '');
- let keyArr = path.split('.');
- let i = 0;
- for (let len = keyArr.length; i < len - 1; ++i) {
- if (!tempObj && !strict) break;
- let key = keyArr[i];
- if (key in tempObj) {
- tempObj = tempObj[key];
- } else {
- if (strict) {
- throw new Error('please transfer a valid prop path to form item!');
- }
- break;
- }
- }
- return {
- o: tempObj,
- k: keyArr[i],
- v: tempObj ? tempObj[keyArr[i]] : null
- };
- };
- const generateId = function() {
- return Math.floor(Math.random() * 10000);
- };
- const valueEquals = (a, b) => {
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
- if (a === b) return true;
- if (!(a instanceof Array)) return false;
- if (!(b instanceof Array)) return false;
- if (a.length !== b.length) return false;
- for (let i = 0; i !== a.length; ++i) {
- if (a[i] !== b[i]) return false;
- }
- return true;
- };
- const escapeRegexpString = (value = '') => String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
- const arrayFindIndex = function(arr, pred) {
- for (let i = 0; i !== arr.length; ++i) {
- if (pred(arr[i])) {
- return i;
- }
- }
- return -1;
- };
- const arrayFind = function(arr, pred) {
- const idx = arrayFindIndex(arr, pred);
- return idx !== -1 ? arr[idx] : undefined;
- };
- // coerce truthy value to array
- const coerceTruthyValueToArray = function(val) {
- if (Array.isArray(val)) {
- return val;
- } else if (val) {
- return [val];
- } else {
- return [];
- }
- };
- const isIE = function() {
- return !external_vue_default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
- };
- const isEdge = function() {
- return !external_vue_default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
- };
- const isFirefox = function() {
- return !external_vue_default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
- };
- const autoprefixer = function(style) {
- if (typeof style !== 'object') return style;
- const rules = ['transform', 'transition', 'animation'];
- const prefixes = ['ms-', 'webkit-'];
- rules.forEach(rule => {
- const value = style[rule];
- if (rule && value) {
- prefixes.forEach(prefix => {
- style[prefix + rule] = value;
- });
- }
- });
- return style;
- };
- const kebabCase = function(str) {
- const hyphenateRE = /([^-])([A-Z])/g;
- return str
- .replace(hyphenateRE, '$1-$2')
- .replace(hyphenateRE, '$1-$2')
- .toLowerCase();
- };
- const capitalize = function(str) {
- if (!isString(str)) return str;
- return str.charAt(0).toUpperCase() + str.slice(1);
- };
- const looseEqual = function(a, b) {
- const isObjectA = isObject(a);
- const isObjectB = isObject(b);
- if (isObjectA && isObjectB) {
- return JSON.stringify(a) === JSON.stringify(b);
- } else if (!isObjectA && !isObjectB) {
- return String(a) === String(b);
- } else {
- return false;
- }
- };
- const arrayEquals = function(arrayA, arrayB) {
- arrayA = arrayA || [];
- arrayB = arrayB || [];
- if (arrayA.length !== arrayB.length) {
- return false;
- }
- for (let i = 0; i < arrayA.length; i++) {
- if (!looseEqual(arrayA[i], arrayB[i])) {
- return false;
- }
- }
- return true;
- };
- const isEqual = function(value1, value2) {
- if (Array.isArray(value1) && Array.isArray(value2)) {
- return arrayEquals(value1, value2);
- }
- return looseEqual(value1, value2);
- };
- const isEmpty = function(val) {
- // null or undefined
- if (val == null) return true;
- if (typeof val === 'boolean') return false;
- if (typeof val === 'number') return !val;
- if (val instanceof Error) return val.message === '';
- switch (Object.prototype.toString.call(val)) {
- // String or Array
- case '[object String]':
- case '[object Array]':
- return !val.length;
- // Map or Set or File
- case '[object File]':
- case '[object Map]':
- case '[object Set]': {
- return !val.size;
- }
- // Plain Object
- case '[object Object]': {
- return !Object.keys(val).length;
- }
- }
- return false;
- };
- function rafThrottle(fn) {
- let locked = false;
- return function(...args) {
- if (locked) return;
- locked = true;
- window.requestAnimationFrame(_ => {
- fn.apply(this, args);
- locked = false;
- });
- };
- }
- function objToArray(obj) {
- if (Array.isArray(obj)) {
- return obj;
- }
- return isEmpty(obj) ? [] : [obj];
- }
- const isMac = function() {
- return !external_vue_default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
- };
- /***/ }),
- /***/ 149:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony default export */ __webpack_exports__["a"] = (function(target) {
- for (let i = 1, j = arguments.length; i < j; i++) {
- let source = arguments[i] || {};
- for (let prop in source) {
- if (source.hasOwnProperty(prop)) {
- let value = source[prop];
- if (value !== undefined) {
- target[prop] = value;
- }
- }
- }
- }
- return target;
- });;
- /***/ }),
- /***/ 157:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=template&id=44a7b0fb
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('transition', {
- attrs: {
- "name": "viewer-fade"
- }
- }, [_c('div', {
- ref: "el-image-viewer__wrapper",
- staticClass: "el-image-viewer__wrapper",
- style: {
- 'z-index': _vm.viewerZIndex
- },
- attrs: {
- "tabindex": "-1"
- }
- }, [_c('div', {
- staticClass: "el-image-viewer__mask",
- on: {
- "click": function ($event) {
- if ($event.target !== $event.currentTarget) return null;
- return _vm.handleMaskClick.apply(null, arguments);
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "el-image-viewer__btn el-image-viewer__close",
- on: {
- "click": _vm.hide
- }
- }, [_c('i', {
- staticClass: "el-icon-close"
- })]), _vm._v(" "), !_vm.isSingle ? [_c('span', {
- staticClass: "el-image-viewer__btn el-image-viewer__prev",
- class: {
- 'is-disabled': !_vm.infinite && _vm.isFirst
- },
- on: {
- "click": _vm.prev
- }
- }, [_c('i', {
- staticClass: "el-icon-arrow-left"
- })]), _vm._v(" "), _c('span', {
- staticClass: "el-image-viewer__btn el-image-viewer__next",
- class: {
- 'is-disabled': !_vm.infinite && _vm.isLast
- },
- on: {
- "click": _vm.next
- }
- }, [_c('i', {
- staticClass: "el-icon-arrow-right"
- })])] : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "el-image-viewer__btn el-image-viewer__actions"
- }, [_c('div', {
- staticClass: "el-image-viewer__actions__inner"
- }, [_c('i', {
- staticClass: "el-icon-zoom-out",
- on: {
- "click": function ($event) {
- return _vm.handleActions('zoomOut');
- }
- }
- }), _vm._v(" "), _c('i', {
- staticClass: "el-icon-zoom-in",
- on: {
- "click": function ($event) {
- return _vm.handleActions('zoomIn');
- }
- }
- }), _vm._v(" "), _c('i', {
- staticClass: "el-image-viewer__actions__divider"
- }), _vm._v(" "), _c('i', {
- class: _vm.mode.icon,
- on: {
- "click": _vm.toggleMode
- }
- }), _vm._v(" "), _c('i', {
- staticClass: "el-image-viewer__actions__divider"
- }), _vm._v(" "), _c('i', {
- staticClass: "el-icon-refresh-left",
- on: {
- "click": function ($event) {
- return _vm.handleActions('anticlocelise');
- }
- }
- }), _vm._v(" "), _c('i', {
- staticClass: "el-icon-refresh-right",
- on: {
- "click": function ($event) {
- return _vm.handleActions('clocelise');
- }
- }
- })])]), _vm._v(" "), _c('div', {
- staticClass: "el-image-viewer__canvas"
- }, _vm._l(_vm.urlList, function (url, i) {
- return i === _vm.index ? _c('img', {
- key: url,
- ref: "img",
- refInFor: true,
- staticClass: "el-image-viewer__img",
- style: _vm.imgStyle,
- attrs: {
- "src": _vm.currentImg
- },
- on: {
- "load": _vm.handleImgLoad,
- "error": _vm.handleImgError,
- "mousedown": _vm.handleMouseDown
- }
- }) : _vm._e();
- }), 0)], 2)]);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=template&id=44a7b0fb
- // EXTERNAL MODULE: ./node_modules/element-ui/src/utils/dom.js
- var utils_dom = __webpack_require__(147);
- // EXTERNAL MODULE: ./node_modules/element-ui/src/utils/util.js + 1 modules
- var util = __webpack_require__(148);
- // EXTERNAL MODULE: external "vue"
- var external_vue_ = __webpack_require__(0);
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
- // EXTERNAL MODULE: ./node_modules/element-ui/src/utils/merge.js
- var merge = __webpack_require__(149);
- // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/popup/popup-manager.js
- let hasModal = false;
- let hasInitZIndex = false;
- let popup_manager_zIndex;
- const getModal = function() {
- if (external_vue_default.a.prototype.$isServer) return;
- let modalDom = PopupManager.modalDom;
- if (modalDom) {
- hasModal = true;
- } else {
- hasModal = false;
- modalDom = document.createElement('div');
- PopupManager.modalDom = modalDom;
- modalDom.addEventListener('touchmove', function(event) {
- event.preventDefault();
- event.stopPropagation();
- });
- modalDom.addEventListener('click', function() {
- PopupManager.doOnModalClick && PopupManager.doOnModalClick();
- });
- }
- return modalDom;
- };
- const instances = {};
- const PopupManager = {
- modalFade: true,
- getInstance: function(id) {
- return instances[id];
- },
- register: function(id, instance) {
- if (id && instance) {
- instances[id] = instance;
- }
- },
- deregister: function(id) {
- if (id) {
- instances[id] = null;
- delete instances[id];
- }
- },
- nextZIndex: function() {
- return PopupManager.zIndex++;
- },
- modalStack: [],
- doOnModalClick: function() {
- const topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
- if (!topItem) return;
- const instance = PopupManager.getInstance(topItem.id);
- if (instance && instance.closeOnClickModal) {
- instance.close();
- }
- },
- openModal: function(id, zIndex, dom, modalClass, modalFade) {
- if (external_vue_default.a.prototype.$isServer) return;
- if (!id || zIndex === undefined) return;
- this.modalFade = modalFade;
- const modalStack = this.modalStack;
- for (let i = 0, j = modalStack.length; i < j; i++) {
- const item = modalStack[i];
- if (item.id === id) {
- return;
- }
- }
- const modalDom = getModal();
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
- if (this.modalFade && !hasModal) {
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
- }
- if (modalClass) {
- let classArr = modalClass.trim().split(/\s+/);
- classArr.forEach(item => Object(utils_dom["a" /* addClass */])(modalDom, item));
- }
- setTimeout(() => {
- Object(utils_dom["g" /* removeClass */])(modalDom, 'v-modal-enter');
- }, 200);
- if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
- dom.parentNode.appendChild(modalDom);
- } else {
- document.body.appendChild(modalDom);
- }
- if (zIndex) {
- modalDom.style.zIndex = zIndex;
- }
- modalDom.tabIndex = 0;
- modalDom.style.display = '';
- this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
- },
- closeModal: function(id) {
- const modalStack = this.modalStack;
- const modalDom = getModal();
- if (modalStack.length > 0) {
- const topItem = modalStack[modalStack.length - 1];
- if (topItem.id === id) {
- if (topItem.modalClass) {
- let classArr = topItem.modalClass.trim().split(/\s+/);
- classArr.forEach(item => Object(utils_dom["g" /* removeClass */])(modalDom, item));
- }
- modalStack.pop();
- if (modalStack.length > 0) {
- modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
- }
- } else {
- for (let i = modalStack.length - 1; i >= 0; i--) {
- if (modalStack[i].id === id) {
- modalStack.splice(i, 1);
- break;
- }
- }
- }
- }
- if (modalStack.length === 0) {
- if (this.modalFade) {
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
- }
- setTimeout(() => {
- if (modalStack.length === 0) {
- if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
- modalDom.style.display = 'none';
- PopupManager.modalDom = undefined;
- }
- Object(utils_dom["g" /* removeClass */])(modalDom, 'v-modal-leave');
- }, 200);
- }
- }
- };
- Object.defineProperty(PopupManager, 'zIndex', {
- configurable: true,
- get() {
- if (!hasInitZIndex) {
- popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
- hasInitZIndex = true;
- }
- return popup_manager_zIndex;
- },
- set(value) {
- popup_manager_zIndex = value;
- }
- });
- const getTopPopup = function() {
- if (external_vue_default.a.prototype.$isServer) return;
- if (PopupManager.modalStack.length > 0) {
- const topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
- if (!topPopup) return;
- const instance = PopupManager.getInstance(topPopup.id);
- return instance;
- }
- };
- if (!external_vue_default.a.prototype.$isServer) {
- // handle `esc` key when the popup is shown
- window.addEventListener('keydown', function(event) {
- if (event.keyCode === 27) {
- const topPopup = getTopPopup();
- if (topPopup && topPopup.closeOnPressEscape) {
- topPopup.handleClose
- ? topPopup.handleClose()
- : (topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close());
- }
- }
- });
- }
- /* harmony default export */ var popup_manager = (PopupManager);
- // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/scrollbar-width.js
- let scrollBarWidth;
- /* harmony default export */ var scrollbar_width = (function() {
- if (external_vue_default.a.prototype.$isServer) return 0;
- if (scrollBarWidth !== undefined) return scrollBarWidth;
- const outer = document.createElement('div');
- outer.className = 'el-scrollbar__wrap';
- outer.style.visibility = 'hidden';
- outer.style.width = '100px';
- outer.style.position = 'absolute';
- outer.style.top = '-9999px';
- document.body.appendChild(outer);
- const widthNoScroll = outer.offsetWidth;
- outer.style.overflow = 'scroll';
- const inner = document.createElement('div');
- inner.style.width = '100%';
- outer.appendChild(inner);
- const widthWithScroll = inner.offsetWidth;
- outer.parentNode.removeChild(outer);
- scrollBarWidth = widthNoScroll - widthWithScroll;
- return scrollBarWidth;
- });;
- // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/popup/index.js
- let idSeed = 1;
- let popup_scrollBarWidth;
- /* harmony default export */ var popup = ({
- props: {
- visible: {
- type: Boolean,
- default: false
- },
- openDelay: {},
- closeDelay: {},
- zIndex: {},
- modal: {
- type: Boolean,
- default: false
- },
- modalFade: {
- type: Boolean,
- default: true
- },
- modalClass: {},
- modalAppendToBody: {
- type: Boolean,
- default: false
- },
- lockScroll: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: false
- },
- closeOnClickModal: {
- type: Boolean,
- default: false
- }
- },
- beforeMount() {
- this._popupId = 'popup-' + idSeed++;
- popup_manager.register(this._popupId, this);
- },
- beforeDestroy() {
- popup_manager.deregister(this._popupId);
- popup_manager.closeModal(this._popupId);
- this.restoreBodyStyle();
- },
- data() {
- return {
- opened: false,
- bodyPaddingRight: null,
- computedBodyPaddingRight: 0,
- withoutHiddenClass: true,
- rendered: false
- };
- },
- watch: {
- visible(val) {
- if (val) {
- if (this._opening) return;
- if (!this.rendered) {
- this.rendered = true;
- external_vue_default.a.nextTick(() => {
- this.open();
- });
- } else {
- this.open();
- }
- } else {
- this.close();
- }
- }
- },
- methods: {
- open(options) {
- if (!this.rendered) {
- this.rendered = true;
- }
- const props = Object(merge["a" /* default */])({}, this.$props || this, options);
- if (this._closeTimer) {
- clearTimeout(this._closeTimer);
- this._closeTimer = null;
- }
- clearTimeout(this._openTimer);
- const openDelay = Number(props.openDelay);
- if (openDelay > 0) {
- this._openTimer = setTimeout(() => {
- this._openTimer = null;
- this.doOpen(props);
- }, openDelay);
- } else {
- this.doOpen(props);
- }
- },
- doOpen(props) {
- if (this.$isServer) return;
- if (this.willOpen && !this.willOpen()) return;
- if (this.opened) return;
- this._opening = true;
- const dom = this.$el;
- const modal = props.modal;
- const zIndex = props.zIndex;
- if (zIndex) {
- popup_manager.zIndex = zIndex;
- }
- if (modal) {
- if (this._closing) {
- popup_manager.closeModal(this._popupId);
- this._closing = false;
- }
- popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
- if (props.lockScroll) {
- this.withoutHiddenClass = !Object(utils_dom["c" /* hasClass */])(document.body, 'el-popup-parent--hidden');
- if (this.withoutHiddenClass) {
- this.bodyPaddingRight = document.body.style.paddingRight;
- this.computedBodyPaddingRight = parseInt(Object(utils_dom["b" /* getStyle */])(document.body, 'paddingRight'), 10);
- }
- popup_scrollBarWidth = scrollbar_width();
- let bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
- let bodyOverflowY = Object(utils_dom["b" /* getStyle */])(document.body, 'overflowY');
- if (popup_scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
- document.body.style.paddingRight = this.computedBodyPaddingRight + popup_scrollBarWidth + 'px';
- }
- Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
- }
- }
- if (getComputedStyle(dom).position === 'static') {
- dom.style.position = 'absolute';
- }
- dom.style.zIndex = popup_manager.nextZIndex();
- this.opened = true;
- this.onOpen && this.onOpen();
- this.doAfterOpen();
- },
- doAfterOpen() {
- this._opening = false;
- },
- close() {
- if (this.willClose && !this.willClose()) return;
- if (this._openTimer !== null) {
- clearTimeout(this._openTimer);
- this._openTimer = null;
- }
- clearTimeout(this._closeTimer);
- const closeDelay = Number(this.closeDelay);
- if (closeDelay > 0) {
- this._closeTimer = setTimeout(() => {
- this._closeTimer = null;
- this.doClose();
- }, closeDelay);
- } else {
- this.doClose();
- }
- },
- doClose() {
- this._closing = true;
- this.onClose && this.onClose();
- if (this.lockScroll) {
- setTimeout(this.restoreBodyStyle, 200);
- }
- this.opened = false;
- this.doAfterClose();
- },
- doAfterClose() {
- popup_manager.closeModal(this._popupId);
- this._closing = false;
- },
- restoreBodyStyle() {
- if (this.modal && this.withoutHiddenClass) {
- document.body.style.paddingRight = this.bodyPaddingRight;
- Object(utils_dom["g" /* removeClass */])(document.body, 'el-popup-parent--hidden');
- }
- this.withoutHiddenClass = true;
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=script&lang=js
- const Mode = {
- CONTAIN: {
- name: 'contain',
- icon: 'el-icon-full-screen'
- },
- ORIGINAL: {
- name: 'original',
- icon: 'el-icon-c-scale-to-original'
- }
- };
- const mousewheelEventName = Object(util["a" /* isFirefox */])() ? 'DOMMouseScroll' : 'mousewheel';
- /* harmony default export */ var image_viewervue_type_script_lang_js = ({
- name: 'elImageViewer',
- props: {
- urlList: {
- type: Array,
- default: () => []
- },
- zIndex: {
- type: Number,
- default: 2000
- },
- onSwitch: {
- type: Function,
- default: () => {}
- },
- onClose: {
- type: Function,
- default: () => {}
- },
- initialIndex: {
- type: Number,
- default: 0
- },
- appendToBody: {
- type: Boolean,
- default: true
- },
- maskClosable: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- index: this.initialIndex,
- isShow: false,
- infinite: true,
- loading: false,
- mode: Mode.CONTAIN,
- transform: {
- scale: 1,
- deg: 0,
- offsetX: 0,
- offsetY: 0,
- enableTransition: false
- }
- };
- },
- computed: {
- isSingle() {
- return this.urlList.length <= 1;
- },
- isFirst() {
- return this.index === 0;
- },
- isLast() {
- return this.index === this.urlList.length - 1;
- },
- currentImg() {
- return this.urlList[this.index];
- },
- imgStyle() {
- const {
- scale,
- deg,
- offsetX,
- offsetY,
- enableTransition
- } = this.transform;
- const style = {
- transform: `scale(${scale}) rotate(${deg}deg)`,
- transition: enableTransition ? 'transform .3s' : '',
- 'margin-left': `${offsetX}px`,
- 'margin-top': `${offsetY}px`
- };
- if (this.mode === Mode.CONTAIN) {
- style.maxWidth = style.maxHeight = '100%';
- }
- return style;
- },
- viewerZIndex() {
- const nextZIndex = popup_manager.nextZIndex();
- return this.zIndex > nextZIndex ? this.zIndex : nextZIndex;
- }
- },
- watch: {
- index: {
- handler: function (val) {
- this.reset();
- this.onSwitch(val);
- }
- },
- currentImg(val) {
- this.$nextTick(_ => {
- const $img = this.$refs.img[0];
- if (!$img.complete) {
- this.loading = true;
- }
- });
- }
- },
- methods: {
- hide() {
- this.deviceSupportUninstall();
- this.onClose();
- },
- deviceSupportInstall() {
- this._keyDownHandler = e => {
- e.stopPropagation();
- const keyCode = e.keyCode;
- switch (keyCode) {
- // ESC
- case 27:
- this.hide();
- break;
- // SPACE
- case 32:
- this.toggleMode();
- break;
- // LEFT_ARROW
- case 37:
- this.prev();
- break;
- // UP_ARROW
- case 38:
- this.handleActions('zoomIn');
- break;
- // RIGHT_ARROW
- case 39:
- this.next();
- break;
- // DOWN_ARROW
- case 40:
- this.handleActions('zoomOut');
- break;
- }
- };
- this._mouseWheelHandler = Object(util["d" /* rafThrottle */])(e => {
- const delta = e.wheelDelta ? e.wheelDelta : -e.detail;
- if (delta > 0) {
- this.handleActions('zoomIn', {
- zoomRate: 0.015,
- enableTransition: false
- });
- } else {
- this.handleActions('zoomOut', {
- zoomRate: 0.015,
- enableTransition: false
- });
- }
- });
- Object(utils_dom["e" /* on */])(document, 'keydown', this._keyDownHandler);
- Object(utils_dom["e" /* on */])(document, mousewheelEventName, this._mouseWheelHandler);
- },
- deviceSupportUninstall() {
- Object(utils_dom["d" /* off */])(document, 'keydown', this._keyDownHandler);
- Object(utils_dom["d" /* off */])(document, mousewheelEventName, this._mouseWheelHandler);
- this._keyDownHandler = null;
- this._mouseWheelHandler = null;
- },
- handleImgLoad(e) {
- this.loading = false;
- },
- handleImgError(e) {
- this.loading = false;
- e.target.alt = '加载失败';
- },
- handleMouseDown(e) {
- if (this.loading || e.button !== 0) return;
- const {
- offsetX,
- offsetY
- } = this.transform;
- const startX = e.pageX;
- const startY = e.pageY;
- this._dragHandler = Object(util["d" /* rafThrottle */])(ev => {
- this.transform.offsetX = offsetX + ev.pageX - startX;
- this.transform.offsetY = offsetY + ev.pageY - startY;
- });
- Object(utils_dom["e" /* on */])(document, 'mousemove', this._dragHandler);
- Object(utils_dom["e" /* on */])(document, 'mouseup', ev => {
- Object(utils_dom["d" /* off */])(document, 'mousemove', this._dragHandler);
- });
- e.preventDefault();
- },
- handleMaskClick() {
- if (this.maskClosable) {
- this.hide();
- }
- },
- reset() {
- this.transform = {
- scale: 1,
- deg: 0,
- offsetX: 0,
- offsetY: 0,
- enableTransition: false
- };
- },
- toggleMode() {
- if (this.loading) return;
- const modeNames = Object.keys(Mode);
- const modeValues = Object.values(Mode);
- const index = modeValues.indexOf(this.mode);
- const nextIndex = (index + 1) % modeNames.length;
- this.mode = Mode[modeNames[nextIndex]];
- this.reset();
- },
- prev() {
- if (this.isFirst && !this.infinite) return;
- const len = this.urlList.length;
- this.index = (this.index - 1 + len) % len;
- },
- next() {
- if (this.isLast && !this.infinite) return;
- const len = this.urlList.length;
- this.index = (this.index + 1) % len;
- },
- handleActions(action, options = {}) {
- if (this.loading) return;
- const {
- zoomRate,
- rotateDeg,
- enableTransition
- } = {
- zoomRate: 0.2,
- rotateDeg: 90,
- enableTransition: true,
- ...options
- };
- const {
- transform
- } = this;
- switch (action) {
- case 'zoomOut':
- if (transform.scale > 0.2) {
- transform.scale = parseFloat((transform.scale - zoomRate).toFixed(3));
- }
- break;
- case 'zoomIn':
- transform.scale = parseFloat((transform.scale + zoomRate).toFixed(3));
- break;
- case 'clocelise':
- transform.deg += rotateDeg;
- break;
- case 'anticlocelise':
- transform.deg -= rotateDeg;
- break;
- }
- transform.enableTransition = enableTransition;
- }
- },
- mounted() {
- this.deviceSupportInstall();
- if (this.appendToBody) {
- document.body.appendChild(this.$el);
- }
- // add tabindex then wrapper can be focusable via Javascript
- // focus wrapper so arrow key can't cause inner scroll behavior underneath
- this.$refs['el-image-viewer__wrapper'].focus();
- },
- destroyed() {
- // if appendToBody is true, remove DOM node after destroy
- if (this.appendToBody && this.$el && this.$el.parentNode) {
- this.$el.parentNode.removeChild(this.$el);
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=script&lang=js
- /* harmony default export */ var src_image_viewervue_type_script_lang_js = (image_viewervue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_image_viewervue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- null,
- null,
- "17d24eb5"
-
- )
- /* harmony default export */ var image_viewer = __webpack_exports__["a"] = (component.exports);
- /***/ }),
- /***/ 177:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 197:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Zoom.vue?vue&type=template&id=5b247e95&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "spec-preview"
- }, [_c('el-image', {
- staticStyle: {
- "width": "100%",
- "height": "100%"
- },
- attrs: {
- "src": _vm.imgUrl,
- "alt": "",
- "fit": "cover"
- }
- }), _vm._ssrNode(" <div class=\"event\" data-v-5b247e95></div> <div class=\"mask\" data-v-5b247e95></div>")], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/Zoom.vue?vue&type=template&id=5b247e95&scoped=true
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Zoom.vue?vue&type=script&lang=js
- /* harmony default export */ var Zoomvue_type_script_lang_js = ({
- name: "Zoom",
- props: {
- imgUrl: String
- },
- data() {
- return {};
- },
- methods: {
- handler(event) {
- let mask = this.$refs.mask;
- // let bigImg = this.$refs.big;
- // 遮罩层可移动的范围:鼠标的当前坐标到该元素的距离(左侧、顶部)减去 遮罩层宽、高的一半(遮罩层始终是一个以鼠标为中心的正方形)
- let left = event.offsetX - mask.offsetWidth / 2;
- let top = event.offsetY - mask.offsetHeight / 2;
- // 约束遮罩层可移动的范围
- if (left <= 0) left = 0;
- if (left >= mask.offsetWidth) left = mask.offsetWidth;
- if (top <= 0) top = 0;
- if (top >= mask.offsetHeight) top = mask.offsetHeight;
- // 修改元素的left|top属性值
- mask.style.left = left + "px";
- mask.style.top = top + "px";
- // bigImg.style.left = -2 * left + "px";
- // bigImg.style.top = -2 * top + "px";
- let obj = {};
- obj.left = left;
- obj.top = top;
- obj.bigShow = true;
- this.$emit("sendStyle", obj);
- },
- leave() {
- let obj = {};
- obj.left = 0;
- obj.top = 0;
- obj.bigShow = false;
- this.$emit("sendStyle", obj);
- }
- }
- });
- // CONCATENATED MODULE: ./components/Zoom.vue?vue&type=script&lang=js
- /* harmony default export */ var components_Zoomvue_type_script_lang_js = (Zoomvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/Zoom.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(214)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_Zoomvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "5b247e95",
- "626916fe"
-
- )
- /* harmony default export */ var Zoom = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 214:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Zoom_vue_vue_type_style_index_0_id_5b247e95_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(177);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Zoom_vue_vue_type_style_index_0_id_5b247e95_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Zoom_vue_vue_type_style_index_0_id_5b247e95_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Zoom_vue_vue_type_style_index_0_id_5b247e95_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Zoom_vue_vue_type_style_index_0_id_5b247e95_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 215:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 234:
- /***/ (function(module, exports) {
- module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAAAXNSR0IArs4c6QAAAepJREFUSEu9lk2IT2EUxn9Pk2SaBWWhbAYlalKk5GMhZKNYMWYnC6TMzhZjMRs7OxbKQr5WpmYjHwthMyspUj5SJDOYhZSFHp1/5+rOnTtzh9z/u7of7z2/8/Gc817RsGyvA4aAXcAAsDQ/mQaeAw+A65JezmVKc72wvRa4AOzPPb+AMPQp71cA4UBP3o8BpyW9qtqshdg+BlwEFgNP8npc0veyAdt9wD5gGNgG/IxrSZfL+2ZBbJ8DzgLfgOOSbjelNN7bPghcApYBI5LCTmfNgGQEsfE1sFfSm4UAij22VwN3gTXpYCeiP5CswTPgB7D5bwEV0ATQC2yIGpUhd7LIh+pSZHsj8F7Sl6boMnW3gDFJBzqQlOmLKLKk7VUjtpcDn4EAnJJ0YwGgxymG9QVkBDgDHJZ0swbSD7wtPY+oT0gq5DyLaXsQCGfOF5BHwNZotKpMM9IC8hBYBOwAvqZcr9VFlfKOhn1aQEKuHyRFR9d5VUCuAkezL0aBJUBEdVLSx5oMxERYWUAM3Je0pwki6UhGtwq4AuwEwuMt1W63fQ/Y3VVIV9LVlcJ3RcIxspuacRKY+udmTLU0jZVNwDtJ0R/zrtqxkpA4pNodkAmKw6q9UV8a1e0eWiVQu8dvCdTuj0RZOv/jl+g3/RhEvhTk7TEAAAAASUVORK5CYII="
- /***/ }),
- /***/ 235:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductLeft_vue_vue_type_style_index_0_id_200035a3_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(215);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductLeft_vue_vue_type_style_index_0_id_200035a3_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductLeft_vue_vue_type_style_index_0_id_200035a3_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductLeft_vue_vue_type_style_index_0_id_200035a3_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductLeft_vue_vue_type_style_index_0_id_200035a3_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 292:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/product/ProductLeft.vue?vue&type=template&id=200035a3&scoped=true
- var render = function render() {
- var _vm$comInfo$mergeImag;
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "product-left"
- }, [_vm._ssrNode("<div class=\"media\" data-v-200035a3>", "</div>", [_vm._ssrNode("<div class=\"big\"" + _vm._ssrStyle(null, null, {
- display: _vm.bigShow ? '' : 'none'
- }) + " data-v-200035a3><img" + _vm._ssrAttr("src", _vm.$utils.generateResizedImageUrl(_vm.comInfo.mergeImages[_vm.currentPre], 1800)) + " alt data-v-200035a3></div> "), _c('el-carousel', {
- ref: "carousel",
- attrs: {
- "interval": 5000,
- "arrow": "always",
- "height": "578px",
- "indicator-position": "none",
- "autoplay": false
- },
- on: {
- "change": _vm.changeCarousel
- }
- }, [_vm._l(_vm.comInfo.mergeImages, function (item) {
- return _c('el-carousel-item', {
- key: item
- }, [_c('zoom', {
- attrs: {
- "imgUrl": _vm.$utils.generateResizedImageUrl(_vm.comInfo.mergeImages[_vm.currentPre], 1800)
- },
- on: {
- "sendStyle": _vm.getStyle,
- "handleViwer": _vm.handleViwer
- }
- })], 1);
- }), _vm._v(" "), _vm.comInfo.video ? _c('el-carousel-item', [_c('video', {
- ref: "video",
- attrs: {
- "controls": "",
- "width": "100%",
- "height": "100%"
- }
- }, [_c('source', {
- attrs: {
- "src": _vm.comInfo.video
- }
- }), _vm._v("\n Your browser does not support the video tag.\n ")])]) : _vm._e()], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"smImgUl\" data-v-200035a3>", "</div>", [_vm._ssrNode("<ul data-v-200035a3>", "</ul>", [_vm._l(_vm.comInfo.mergeImages, function (item, index) {
- return _vm._ssrNode("<li" + _vm._ssrClass("banner", _vm.currentPre == index ? 'slip' : '') + " data-v-200035a3>", "</li>", [_c('el-image', {
- staticClass: "card-img-1",
- staticStyle: {
- "width": "100%",
- "height": "100%"
- },
- attrs: {
- "src": _vm.$utils.generateResizedImageUrl(item, 100),
- "fit": "cover"
- }
- })], 1);
- }), _vm._ssrNode(" " + (_vm.comInfo.video ? "<li" + _vm._ssrClass(null, _vm.currentPre == ((_vm$comInfo$mergeImag = _vm.comInfo.mergeImages) === null || _vm$comInfo$mergeImag === void 0 ? void 0 : _vm$comInfo$mergeImag.length) ? 'slip' : '') + " data-v-200035a3><video width=\"100%\" height=\"100%\"" + _vm._ssrAttr("src", _vm.comInfo.video) + " data-v-200035a3></video> <div class=\"playMask\" data-v-200035a3><img" + _vm._ssrAttr("src", __webpack_require__(234)) + " alt data-v-200035a3></div></li>" : "<!---->"))], 2)]), _vm._ssrNode(" "), _vm.showViewer ? _c('ElImageViewer', {
- attrs: {
- "initial-index": _vm.currentPre,
- "on-close": _vm.closeViewer,
- "url-list": _vm.comS3Img
- }
- }) : _vm._e()], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/product/ProductLeft.vue?vue&type=template&id=200035a3&scoped=true
- // EXTERNAL MODULE: external "vuex"
- var external_vuex_ = __webpack_require__(6);
- // EXTERNAL MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue + 7 modules
- var image_viewer = __webpack_require__(157);
- // EXTERNAL MODULE: ./components/Zoom.vue + 4 modules
- var Zoom = __webpack_require__(197);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/product/ProductLeft.vue?vue&type=script&lang=js
- /* harmony default export */ var ProductLeftvue_type_script_lang_js = ({
- components: {
- Zoom: Zoom["default"],
- ElImageViewer: image_viewer["a" /* default */]
- },
- props: {
- pageData: {
- type: Object,
- default: () => {
- return {};
- }
- },
- id: {
- type: Number,
- default: 0
- }
- },
- data() {
- return {
- indexBanner: [],
- btnObj: ["View larger", "3D Preview"],
- current3D: 0,
- // 3D图序号
- btnShow: true,
- // 所有按钮显示
- bigShow: false,
- showViewer: false
- };
- },
- computed: {
- currentPre() {
- return this.$store.state.product.smImgUlIdx;
- },
- comInfo() {
- const {
- main
- } = this.pageData;
- const images = main.image_color.map(i => i.image);
- if (main.image) {
- images.unshift(main.image);
- }
- main.mergeImages = images;
- return main;
- },
- comS3Img() {
- return this.comInfo.mergeImages.map(url => this.$utils.repaceDomain(url));
- }
- },
- watch: {
- currentPre(newVal) {
- this.$refs.carousel.setActiveItem(newVal);
- }
- },
- mounted() {
- if (this.comInfo.video) {
- this.$refs.video.volume = 0.5;
- }
- },
- methods: {
- ...Object(external_vuex_["mapMutations"])({
- setSmImgUlIdx: 'product/setSmImgUlIdx'
- }),
- changeCarousel(val) {
- var _this$comInfo$mergeIm;
- this.setSmImgUlIdx(val);
- if (val === ((_this$comInfo$mergeIm = this.comInfo.mergeImages) === null || _this$comInfo$mergeIm === void 0 ? void 0 : _this$comInfo$mergeIm.length)) {
- this.btnShow = false;
- this.comInfo.video && this.$refs.video.play();
- } else {
- this.btnShow = true;
- this.comInfo.video && this.$refs.video.pause();
- }
- },
- selectCurrent3D(val) {
- this.current3D = val;
- },
- getStyle(val) {
- const bigImg = this.$refs.big;
- bigImg.style.left = -2 * val.left + "px";
- bigImg.style.top = -2 * val.top + "px";
- this.bigShow = val.bigShow;
- },
- closeViewer() {
- this.showViewer = false;
- },
- handleViwer() {
- this.showViewer = true;
- }
- }
- });
- // CONCATENATED MODULE: ./components/product/ProductLeft.vue?vue&type=script&lang=js
- /* harmony default export */ var product_ProductLeftvue_type_script_lang_js = (ProductLeftvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/product/ProductLeft.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(235)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- product_ProductLeftvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "200035a3",
- "94a05490"
-
- )
- /* harmony default export */ var ProductLeft = __webpack_exports__["default"] = (component.exports);
- /* nuxt-component-imports */
- installComponents(component, {Zoom: __webpack_require__(197).default})
- /***/ })
- };;
- //# sourceMappingURL=product-left.js.map
|