UNPKG

zcloud-ui

Version:

A Component Library for Vue.js.

1,391 lines (1,126 loc) 57.1 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 90); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call( this, (options.functional ? this.parent : this).$root.$options.shadowRoot ) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functional component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } } /***/ }), /***/ 2: /***/ (function(module, exports) { module.exports = require("zcloud-ui/lib/config/index"); /***/ }), /***/ 22: /***/ (function(module, exports) { module.exports = require("zcloud-ui/lib/utils/boxer/jquery.fs.boxer.js"); /***/ }), /***/ 23: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var zcloud_ui_src_utils_boxer_jquery_fs_boxer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22); /* harmony import */ var zcloud_ui_src_utils_boxer_jquery_fs_boxer_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zcloud_ui_src_utils_boxer_jquery_fs_boxer_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var zcloud_ui_src_utils_boxer_jquery_fs_boxer_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39); /* harmony import */ var zcloud_ui_src_utils_boxer_jquery_fs_boxer_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(zcloud_ui_src_utils_boxer_jquery_fs_boxer_css__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var zcloud_ui_src_utils_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5); /* harmony import */ var zcloud_ui_src_utils_global__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(zcloud_ui_src_utils_global__WEBPACK_IMPORTED_MODULE_2__); /* eslint-disable */ var _bind = function _bind(el, binding, vnode) { var imgSrc = binding.value; if (imgSrc) { var type = Object(zcloud_ui_src_utils_global__WEBPACK_IMPORTED_MODULE_2__["getFileType"])(imgSrc); if (['pdf', 'image'].includes(type)) { $(el).boxer2(); } } $(el).click(function () { return false; }); }; /* harmony default export */ __webpack_exports__["a"] = ({ bind: function bind() { _bind.apply(undefined, arguments); }, update: function update() { _bind.apply(undefined, arguments); } }); /***/ }), /***/ 28: /***/ (function(module, exports) { module.exports = require("zcloud-ui/lib/dialog"); /***/ }), /***/ 3: /***/ (function(module, exports, __webpack_require__) { "use strict"; /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ // css base code, injected by the css-loader module.exports = function (useSourceMap) { var list = []; // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { var content = cssWithMappingToString(item, useSourceMap); if (item[2]) { return '@media ' + item[2] + '{' + content + '}'; } else { return content; } }).join(''); }; // import a list of modules into the list list.i = function (modules, mediaQuery) { if (typeof modules === 'string') { modules = [[null, modules, '']]; } var alreadyImportedModules = {}; for (var i = 0; i < this.length; i++) { var id = this[i][0]; if (id != null) { alreadyImportedModules[id] = true; } } for (i = 0; i < modules.length; i++) { var item = modules[i]; // skip already imported module // this implementation is not 100% perfect for weird media query combinations // when a module is imported multiple times with different media queries. // I hope this will never occur (Hey this way we have smaller bundles) if (item[0] == null || !alreadyImportedModules[item[0]]) { if (mediaQuery && !item[2]) { item[2] = mediaQuery; } else if (mediaQuery) { item[2] = '(' + item[2] + ') and (' + mediaQuery + ')'; } list.push(item); } } }; return list; }; function cssWithMappingToString(item, useSourceMap) { var content = item[1] || ''; var cssMapping = item[3]; if (!cssMapping) { return content; } if (useSourceMap && typeof btoa === 'function') { var sourceMapping = toComment(cssMapping); var sourceURLs = cssMapping.sources.map(function (source) { return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'; }); return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); } return [content].join('\n'); } // Adapted from convert-source-map (MIT) function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; } /***/ }), /***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51); /* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var quill_dist_quill_core_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56); /* harmony import */ var quill_dist_quill_core_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(quill_dist_quill_core_css__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var quill_dist_quill_snow_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57); /* harmony import */ var quill_dist_quill_snow_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(quill_dist_quill_snow_css__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var quill_dist_quill_bubble_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58); /* harmony import */ var quill_dist_quill_bubble_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(quill_dist_quill_bubble_css__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2); /* harmony import */ var zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var zcloud_ui_src_directives_boxer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23); /* harmony import */ var zcloud_ui_src_mixins_emitter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6); /* harmony import */ var zcloud_ui_src_mixins_emitter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(zcloud_ui_src_mixins_emitter__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } // // // // // // // // // // // // // // var tabify = 'qazwsxedc'; // 替换符 /* harmony default export */ __webpack_exports__["a"] = ({ mixins: [zcloud_ui_src_mixins_emitter__WEBPACK_IMPORTED_MODULE_6___default.a], name: 'ZlQuillEditor', props: { value: { type: String, required: true } }, directives: { boxer: zcloud_ui_src_directives_boxer__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"] }, data: function data() { return { initStatus: false, // 初始化状态 upload: { show: false, data: {} }, fullImgUrl: [], uploadParams: _extends({ fileName: '', resourceSize: '', fileSuffix: '', cover: false }, zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4__["Environment"].FILE_UPLOAD_PARAMS, { verification: false // 是否验证token,false不验证验证true验证(默认true) }), index: 0, loading: false }; }, mounted: function mounted() { // 为图片ICON绑定事件 getModule 为编辑器的内部属性 var quill = this.$refs.quillEditor.quill; quill.getModule('toolbar').addHandler('image', this.uploadImg); // 点击显示图片 var that = this; $('.ql-container .ql-editor').on('click', 'img', function () { var src = $(this).attr('src'); var $id = src.match(/download\/(\S*)\//)[1]; var _ref = that.fullImgUrl.find(function (item) { return $id === item.id; }) || {}, id = _ref.id; $('.preiveView-' + id).click(); }); }, watch: { value: { // 处理老数据 handler: function handler(val) { if (val && !this.initStatus) { this.initStatus = true; this.onEditorChange({ html: val }); } }, immediate: true } }, methods: { // 上传图片 uploadImg: function uploadImg() { this.index = this.$refs.quillEditor.quill.selection.savedRange.index; this.upload.show = true; }, // 更新视图 updateImg: function updateImg(rows) { var _this = this; var quill = this.$refs.quillEditor.quill; rows.forEach(function (item) { quill.insertEmbed(_this.index !== null ? _this.index : 0, 'image', item.url); quill.setSelection(_this.index + 1, 0); }); }, // 内容改变事件 onEditorChange: function onEditorChange(content) { // 对图片做了拦截处理 var reg = /<img src="data:image.+?">/gi, k = 0, // 标识 html = content.html; this.$emit('input', html); this.dispatch('ElFormItem', 'el.form.change', html); if (content.html && reg.test(html)) { this.loading = true; var imgArr = html.match(reg); html = html.replace(reg, function (i) { k++; return '' + tabify + k; }); this.formatImgs(imgArr, html); } else if (content.quill) { this.fullImgUrl = content.quill.getContents().ops.map(function (item) { if (item.insert.image) { var imgUrl = item.insert.image; var id = imgUrl.match(/download\/(\S*)\//)[1]; if (imgUrl.match(/token=(\S*)&/)) { imgUrl = imgUrl.replace(/token=(\S*)&/, 'token=' + zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4__["Environment"].TOKEN + '&'); } else { imgUrl = imgUrl.replace(/token=(\S*)/, 'token=' + zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4__["Environment"].TOKEN); } return { id: id, url: imgUrl }; } }).filter(function (item) { return !!item; }); } }, // 格式化图片 formatImgs: function formatImgs(imgs, html) { var _this2 = this; var funcs = []; imgs.forEach(function (item) { var imgFile = item.slice(10, -2); funcs.push( // eslint-disable-next-line no-useless-call _this2.fileUpload.call(_this2, _this2.dataURLtoFile(imgFile, parseInt(Math.random() * 1000) + '.png'))); }); // 处理 Promise.all(funcs).then(function (res) { var rows = res.map(function (item) { return item.resourceUrl + '/' + item.resourcesId + '/' + item.fullFileName; }); rows.forEach(function (item, index) { // eslint-disable-next-line no-eval var reg = eval('/' + (tabify + (index + 1)) + '/'); html = html.replace(reg, '<img src="' + item + '" />'); }); _this2.$nextTick(function () { _this2.$emit('input', html); _this2.dispatch('ElFormItem', 'el.form.change', html); }); }).finally(function () { _this2.loading = false; }); }, // base64转换为file dataURLtoFile: function dataURLtoFile(dataurl, filename) { // 将base64转换为文件 var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charCodeAt(n); } return new File([u8arr], filename, { type: mime }); }, // 上传 fileUpload: function fileUpload(imgFile) { var _this3 = this; return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { var formdata, _iterator, _isArray, _i, _ref2, item, res; return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: // 创建formdata对象 formdata = new FormData(); formdata.append('file', imgFile); _iterator = Object.keys(_this3.uploadParams), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator](); case 3: if (!_isArray) { _context.next = 9; break; } if (!(_i >= _iterator.length)) { _context.next = 6; break; } return _context.abrupt('break', 17); case 6: _ref2 = _iterator[_i++]; _context.next = 13; break; case 9: _i = _iterator.next(); if (!_i.done) { _context.next = 12; break; } return _context.abrupt('break', 17); case 12: _ref2 = _i.value; case 13: item = _ref2; formdata.append(item, _this3.uploadParams[item]); case 15: _context.next = 3; break; case 17: _context.next = 19; return _this3.Http(zcloud_ui_src_config_index__WEBPACK_IMPORTED_MODULE_4__["Environment"].FILE_URL + 'upload/addFiles', formdata, { ignoreRepeat: true, inside: true }); case 19: res = _context.sent; return _context.abrupt('return', res); case 21: case 'end': return _context.stop(); } } }, _callee, _this3); }))(); } }, components: { quillEditor: vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__["quillEditor"], mUpload: _upload__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"] } }); /***/ }), /***/ 39: /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(40); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(4)(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ 4: /***/ (function(module, exports, __webpack_require__) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var stylesInDom = {}; var memoize = function (fn) { var memo; return function () { if (typeof memo === "undefined") memo = fn.apply(this, arguments); return memo; }; }; var isOldIE = memoize(function () { // Test for IE <= 9 as proposed by Browserhacks // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // Tests for existence of standard globals is to allow style-loader // to operate correctly into non-standard environments // @see https://github.com/webpack-contrib/style-loader/issues/177 return window && document && document.all && !window.atob; }); var getTarget = function (target, parent) { if (parent){ return parent.querySelector(target); } return document.querySelector(target); }; var getElement = (function (fn) { var memo = {}; return function(target, parent) { // If passing function in options, then use it for resolve "head" element. // Useful for Shadow Root style i.e // { // insertInto: function () { return document.querySelector("#foo").shadowRoot } // } if (typeof target === 'function') { return target(); } if (typeof memo[target] === "undefined") { var styleTarget = getTarget.call(this, target, parent); // Special case to return head of iframe instead of iframe itself if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { try { // This will throw an exception if access to iframe is blocked // due to cross-origin restrictions styleTarget = styleTarget.contentDocument.head; } catch(e) { styleTarget = null; } } memo[target] = styleTarget; } return memo[target] }; })(); var singleton = null; var singletonCounter = 0; var stylesInsertedAtTop = []; var fixUrls = __webpack_require__(8); module.exports = function(list, options) { if (typeof DEBUG !== "undefined" && DEBUG) { if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); } options = options || {}; options.attrs = typeof options.attrs === "object" ? options.attrs : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> // tags it will allow on a page if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE(); // By default, add <style> tags to the <head> element if (!options.insertInto) options.insertInto = "head"; // By default, add <style> tags to the bottom of the target if (!options.insertAt) options.insertAt = "bottom"; var styles = listToStyles(list, options); addStylesToDom(styles, options); return function update (newList) { var mayRemove = []; for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; domStyle.refs--; mayRemove.push(domStyle); } if(newList) { var newStyles = listToStyles(newList, options); addStylesToDom(newStyles, options); } for (var i = 0; i < mayRemove.length; i++) { var domStyle = mayRemove[i]; if(domStyle.refs === 0) { for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](); delete stylesInDom[domStyle.id]; } } }; }; function addStylesToDom (styles, options) { for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; if(domStyle) { domStyle.refs++; for(var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](item.parts[j]); } for(; j < item.parts.length; j++) { domStyle.parts.push(addStyle(item.parts[j], options)); } } else { var parts = []; for(var j = 0; j < item.parts.length; j++) { parts.push(addStyle(item.parts[j], options)); } stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts}; } } } function listToStyles (list, options) { var styles = []; var newStyles = {}; for (var i = 0; i < list.length; i++) { var item = list[i]; var id = options.base ? item[0] + options.base : item[0]; var css = item[1]; var media = item[2]; var sourceMap = item[3]; var part = {css: css, media: media, sourceMap: sourceMap}; if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]}); else newStyles[id].parts.push(part); } return styles; } function insertStyleElement (options, style) { var target = getElement(options.insertInto) if (!target) { throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."); } var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1]; if (options.insertAt === "top") { if (!lastStyleElementInsertedAtTop) { target.insertBefore(style, target.firstChild); } else if (lastStyleElementInsertedAtTop.nextSibling) { target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling); } else { target.appendChild(style); } stylesInsertedAtTop.push(style); } else if (options.insertAt === "bottom") { target.appendChild(style); } else if (typeof options.insertAt === "object" && options.insertAt.before) { var nextSibling = getElement(options.insertAt.before, target); target.insertBefore(style, nextSibling); } else { throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n"); } } function removeStyleElement (style) { if (style.parentNode === null) return false; style.parentNode.removeChild(style); var idx = stylesInsertedAtTop.indexOf(style); if(idx >= 0) { stylesInsertedAtTop.splice(idx, 1); } } function createStyleElement (options) { var style = document.createElement("style"); if(options.attrs.type === undefined) { options.attrs.type = "text/css"; } if(options.attrs.nonce === undefined) { var nonce = getNonce(); if (nonce) { options.attrs.nonce = nonce; } } addAttrs(style, options.attrs); insertStyleElement(options, style); return style; } function createLinkElement (options) { var link = document.createElement("link"); if(options.attrs.type === undefined) { options.attrs.type = "text/css"; } options.attrs.rel = "stylesheet"; addAttrs(link, options.attrs); insertStyleElement(options, link); return link; } function addAttrs (el, attrs) { Object.keys(attrs).forEach(function (key) { el.setAttribute(key, attrs[key]); }); } function getNonce() { if (false) {} return __webpack_require__.nc; } function addStyle (obj, options) { var style, update, remove, result; // If a transform function was defined, run it on the css if (options.transform && obj.css) { result = typeof options.transform === 'function' ? options.transform(obj.css) : options.transform.default(obj.css); if (result) { // If transform returns a value, use that instead of the original css. // This allows running runtime transformations on the css. obj.css = result; } else { // If the transform function returns a falsy value, don't add this css. // This allows conditional loading of css return function() { // noop }; } } if (options.singleton) { var styleIndex = singletonCounter++; style = singleton || (singleton = createStyleElement(options)); update = applyToSingletonTag.bind(null, style, styleIndex, false); remove = applyToSingletonTag.bind(null, style, styleIndex, true); } else if ( obj.sourceMap && typeof URL === "function" && typeof URL.createObjectURL === "function" && typeof URL.revokeObjectURL === "function" && typeof Blob === "function" && typeof btoa === "function" ) { style = createLinkElement(options); update = updateLink.bind(null, style, options); remove = function () { removeStyleElement(style); if(style.href) URL.revokeObjectURL(style.href); }; } else { style = createStyleElement(options); update = applyToTag.bind(null, style); remove = function () { removeStyleElement(style); }; } update(obj); return function updateStyle (newObj) { if (newObj) { if ( newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap ) { return; } update(obj = newObj); } else { remove(); } }; } var replaceText = (function () { var textStore = []; return function (index, replacement) { textStore[index] = replacement; return textStore.filter(Boolean).join('\n'); }; })(); function applyToSingletonTag (style, index, remove, obj) { var css = remove ? "" : obj.css; if (style.styleSheet) { style.styleSheet.cssText = replaceText(index, css); } else { var cssNode = document.createTextNode(css); var childNodes = style.childNodes; if (childNodes[index]) style.removeChild(childNodes[index]); if (childNodes.length) { style.insertBefore(cssNode, childNodes[index]); } else { style.appendChild(cssNode); } } } function applyToTag (style, obj) { var css = obj.css; var media = obj.media; if(media) { style.setAttribute("media", media) } if(style.styleSheet) { style.styleSheet.cssText = css; } else { while(style.firstChild) { style.removeChild(style.firstChild); } style.appendChild(document.createTextNode(css)); } } function updateLink (link, options, obj) { var css = obj.css; var sourceMap = obj.sourceMap; /* If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled and there is no publicPath defined then lets turn convertToAbsoluteUrls on by default. Otherwise default to the convertToAbsoluteUrls option directly */ var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap; if (options.convertToAbsoluteUrls || autoFixUrls) { css = fixUrls(css); } if (sourceMap) { // http://stackoverflow.com/a/26603875 css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"; } var blob = new Blob([css], { type: "text/css" }); var oldSrc = link.href; link.href = URL.createObjectURL(blob); if(oldSrc) URL.revokeObjectURL(oldSrc); } /***/ }), /***/ 40: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // Imports var urlEscape = __webpack_require__(41); var ___CSS_LOADER_URL___0___ = urlEscape(__webpack_require__(42)); var ___CSS_LOADER_URL___1___ = urlEscape(__webpack_require__(43)); var ___CSS_LOADER_URL___2___ = urlEscape(__webpack_require__(44)); // Module exports.push([module.i, "/* \n * Boxer v3.0.3 - 2014-01-12 \n * A jQuery plugin for displaying images, videos or content in a modal overlay. Part of the Formstone Library. \n * http://formstone.it/boxer/ \n * \n * Copyright 2014 Ben Plum; MIT Licensed \n */\n.boxer-open{overflow:hidden!important;}\n#boxer,\n#boxer .boxer-container,\n#boxer .boxer-content,\n#boxer-overlay{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;}\n#boxer-overlay{background:#000;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10005 !important;}\n#boxer{background:#fff;border-radius:3px;box-shadow:0 0 25px #333;padding:10px;position:absolute;z-index:10006 !important;;}\n#boxer.inline{padding:30px;}\n#boxer .boxer-close{background:#fff url(" + ___CSS_LOADER_URL___0___ + ") no-repeat -70px 10px;border-radius:100%;cursor:pointer;display:block;height:30px;position:absolute;padding:0;right:-8px;top:-8px;width:30px;text-indent:-99999px;z-index:106;}\n#boxer .boxer-container{background:#fff;height:100%;overflow:hidden;position:relative;width:100%;z-index:105;zoom:1;}\n#boxer .boxer-content{background:#fff;overflow:hidden;padding:0;width:10000px;}\n#boxer .boxer-image{float:left;}\n#boxer .boxer-video{height:100%;width:100%;}\n#boxer .boxer-iframe{float:left;height:100%;overflow:auto;width:100%;}\n#boxer .boxer-meta{clear:both;}\n#boxer .boxer-arrow{background:#fff url(" + ___CSS_LOADER_URL___0___ + ") no-repeat 0 0;border-radius:100%;box-shadow:0 0 6px rgba(0,0,0,0.4);cursor:pointer;display:block;height:40px;margin-right:auto;margin-left:auto;position:absolute;text-indent:-99999px;top:0;width:40px;-webkit-transition:opacity 0.1s linear;-moz-transition:opacity 0.1s linear;-ms-transition:opacity 0.1s linear;-o-transition:opacity 0.1s linear;transition:opacity 0.1s linear;}\n#boxer .boxer-arrow.previous{left:20px;}\n#boxer .boxer-arrow.next{background-position:-40px 0;right:20px;}\n#boxer .boxer-position{color:#999;font-size:11px;margin:0;padding:15px 10px 5px;display:none;}\n#boxer .boxer-caption p{margin:0;padding:15px 10px 10px 10px;}\n#boxer .boxer-caption.gallery p{padding-top:0;}\n#boxer.loading .boxer-container{background:#fff url(" + ___CSS_LOADER_URL___1___ + ") no-repeat center;}\n\n/* Mobile */\n#boxer.mobile{background-color:#000;border-radius:0;height:100%;left:0;padding:30px 0 0;position:fixed;top:0;width:100%;}\n#boxer.mobile .boxer-close{background-color:#000;background-position:-70px -60px;border-radius:0;right:0;top:0;}\n#boxer.mobile .boxer-container{background:#000;position:relative;}\n#boxer.mobile .boxer-content{background-color:#000;}\n#boxer.mobile .boxer-arrow{background-color:transparent;border-radius:0;margin:-20px 0 0;top:50%;}\n#boxer.mobile .boxer-arrow.previous{background-position:0 -40px;float:left;left:0;}\n#boxer.mobile .boxer-arrow.next{background-position:-40px -40px;float:right;right:0;}\n#boxer.mobile .boxer-arrow.disabled{opacity:0.5;}\n#boxer.mobile .boxer-meta{bottom:0;background-color:rgba(0,0,0,0.75);left:0;padding:15px 50px 10px;position:absolute;width:100%;}\n#boxer.mobile .boxer-position{padding:0;}\n#boxer.mobile .boxer-caption p{color:#eee;padding:10px 0 0;}\n#boxer.mobile .boxer-image{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important;-webkit-transform:translate(0px,0px);-moz-transform:translate(0px,0px);-ms-transform:translate(0px,0px);-o-transform:translate(0px,0px);transform:translate(0px,0px);}\n#boxer.mobile.animated .boxer-image{-webkit-transition:-webkit-transform 0.25s ease-out!important;-moz-transition:-moz-transform 0.25s ease-out!important;-ms-transition:-ms-transform 0.25s ease-out!important;-o-transition:-o-transform 0.25s ease-out!important;transition:transform 0.25s ease-out!important;}\n#boxer.mobile.loading .boxer-container{background:#000 url(" + ___CSS_LOADER_URL___2___ + ") no-repeat center;}\n@media screen and (min-width:980px){\n\t#boxer .boxer-close:hover{background-position:-70px -20px;}\n\t#boxer .boxer-arrow{opacity:0;}\n\t#boxer .boxer-content:hover .boxer-arrow{opacity:0.75;}\n\t#boxer .boxer-content .boxer-arrow:hover{opacity:1;}\n\t#boxer .boxer-content:hover .boxer-arrow.disabled{opacity:0.3;cursor:default!important;}\n\t#boxer.mobile .boxer-arrow{opacity:1;}\n\t#boxer.mobile .boxer-arrow.disabled{opacity:0.5;}\n}\n@media screen and (max-width:980px){\n\t#boxer.mobile{position:fixed;}\n}", ""]); /***/ }), /***/ 41: /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function escape(url, needQuotes) { if (typeof url !== 'string') { return url; } // If url is already wrapped in quotes, remove them if (/^['"].*['"]$/.test(url)) { url = url.slice(1, -1); } // Should url be wrapped? // See https://drafts.csswg.org/css-values-3/#urls if (/["'() \t\n]/.test(url) || needQuotes) { return '"' + url.replace(/"/g, '\\"').replace(/\n/g, '\\n') + '"'; } return url; }; /***/ }), /***/ 42: /***/ (function(module, exports) { module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABQCAYAAACZM2JkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABR0RVh0Q3JlYXRpb24gVGltZQA5LzMvMTIU8Q8YAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAA5ZJREFUeJztm81t20AQRp+C3O0SjJ1rAKkBIyzBqSA++Z4OUkKu8smuIO4gNNwABeQ6C7sDuQLmwBVAG2ZkicvRypgHEKAESpz9sJjZv2/Wti27MpvNdv7NR+bq6uoGWADV9fX1On13CtRAs1wuL2cu9DiSyN/TxxVQpfsamKf728+mUX1MFr37OfCQ7r/0n/lkF8+HpaLryRu+8FLkFVB56shAyscPvBQY4C9wvlwu196jjfAePZLe6GI+8MgKqLxHj6fmpch/07VhDtQu9Hia3v0KOE9Xv0A2njoy4BOWQmjbFk8dRkwidAjhLITQbH/ShhBCE0I4O2QM2YUOIVzQFYih4c4hmANNiu0gZBU6hPAL+A2c5PzfTJwAv1OM5mQphiGENwftMcYiqm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gvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==" /***/ }), /***/ 5: /***/ (function(module, exports) { module.exports = require("zcloud-ui/lib/utils/global"); /***/ }), /***/ 51: /***/ (function(module, exports) { module.exports = require("vue-quill-editor"); /***/ }), /***/ 52: /***/ (function(module, exports) { module.exports = require("zcloud-ui/lib/file-upload"); /***/ }), /***/ 54: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/quill-editor/src/upload.vue?vue&type=template&id=4837f7dc& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "zl-dialog", { attrs: { show: _vm.shows, "append-to-body": "", title: "上传图片", width: "400px" }, on: { "update:show": function($event) { _vm.shows = $event }, submit: _vm.handleSubmit } }, [ _c( "div", [ _c( "el-form", { ref: "dialogForm", attrs: { "label-width": "100px", "label-suffix": ":", size: "small", "status-icon": "" } }, [ _c( "el-form-item", { attrs: { prop: "", label: "上传文件" } }, [ _c("zl-file-upload", { attrs: { accept: _vm.accept, showDown: true, extendParmas: _vm.extendParmas, listType: "picture-card", max: 5, supportType: "zto" }, model: { value: _vm.fileUrl, callback: function($$v) { _vm.fileUrl = $$v }, expression: "fileUrl" } }) ], 1 ) ], 1 ) ], 1 ) ] ) } var staticRenderFns = [] render._withStripped = true // CONCATENATED MODULE: ./packages/quill-editor/src/upload.vue?vue&type=template&id=4837f7dc& // EXTERNAL MODULE: external "zcloud-ui/lib/dialog" var dialog_ = __webpack_require__(28); var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_); // EXTERNAL MODULE: external "zcloud-ui/lib/file-upload" var file_upload_ = __webpack_require__(52); var file_upload_default = /*#__PURE__*/__webpack_require__.n(file_upload_); // EXTERNAL MODULE: external "zcloud-ui/lib/config/index" var index_ = __webpack_require__(2); // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/quill-editor/src/upload.vue?vue&type=script&lang=js& // // // // // // // // // // // // // /* harmony default export */ var uploadvue_type_script_lang_js_ = ({ props: { show: { type: Boolean, required: true, default: false }, data: { type: Object } }, data: function data() { return { fileUrl: '', accept: 'image/gif,image/jpg,image/jpeg,image/png,image/bmp,image/png', extendParmas: { verification: false } }; }, computed: { shows: { get: function get() { return this.show; }, set: function set(newValue) { this.$emit('update:show', newValue); } } }, created: function created() {}, methods: { handleSubmit: function handleSubmit() { var fileUrl = []; if (this.fileUrl) { fileUrl = this.fileUrl.split(','); } fileUrl = fileUrl.map(function (item) { var id = item.split(index_["Environment"].IMG_PREFIX)[1]; return { id: id.split('/')[0], url: index_["Environment"].IMAGE_DOWNLOAD + id + '?token=' + index_["Environment"].TOKEN }; }); this.$emit('update', fileUrl); this.shows = false; } }, components: { ZlDialog: dialog_default.a, ZlFileUpload: file_upload_default.a } }); // CONCATENATED MODULE: ./packages/quill-editor/src/upload.vue?vue&type=script&lang=js& /* harmony default export */ var src_uploadvue_type_script_lang_js_ = (uploadvue_type_script_lang_js_); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); // CONCATENATED MODULE: ./packages/quill-editor/src/upload.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( src_uploadvue_type_script_lang_js_, render, staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "packages/quill-editor/src/upload.vue" /* harmony default export */ var upload = __webpack_exports__["a"] = (component.exports); /***/ }), /***/ 56: /***/ (function(module, exports) { module.exports = require("quill/dist/quill.core.css"); /***/ }), /***/ 57: /***/ (function(module, exports) { module.exports = require("quill/dist/quill.snow.css"); /***/ }), /***/ 58: /***/ (function(module, exports) { module.exports = require("quill/dist/quill.bubble.css"); /***/ }), /***/ 6: /***/ (function(module, exports) { module.exports = require("zcloud-ui/lib/mixins/emitter"); /***/ }), /***/ 8: /***/ (function(module, exports) { /** * When source maps are enabled, `style-loader` uses a link element with a data-uri to * embe