UNPKG

yk-smart-ui-test

Version:

A Component Library for Vue.js.

1,538 lines (1,387 loc) 67.8 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 = "/dist/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 101); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { module.exports = require("vue"); /***/ }), /***/ 1: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; }); /* unused harmony export setStyle */ /* unused harmony export isScroll */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return 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__); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* istanbul ignore next */ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer; var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; var MOZ_HACK_REGEXP = /^moz([A-Z])/; var ieVersion = isServer ? 0 : Number(document.documentMode); /* istanbul ignore next */ var trim = function trim(string) { return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); }; /* istanbul ignore next */ var camelCase = function camelCase(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 */ var 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 */ var 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 */ var once = function once(el, event, fn) { var listener = function listener() { 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 */ var 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 === 'undefined' ? 'undefined' : _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; } } }; var isScroll = function isScroll(el, vertical) { if (isServer) return; var determinedDirection = vertical !== null && vertical !== undefined; var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow'); return overflow.match(/(scroll|auto|overlay)/); }; var getScrollContainer = function getScrollContainer(el, vertical) { if (isServer) return; var parent = el; while (parent) { if ([window, document, document.documentElement].includes(parent)) { return window; } if (isScroll(parent, vertical)) { return parent; } parent = parent.parentNode; } return parent; }; var isInContainer = function isInContainer(el, container) { if (isServer || !el || !container) return false; var elRect = el.getBoundingClientRect(); var containerRect = void 0; 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; }; /***/ }), /***/ 101: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // CONCATENATED MODULE: ./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=template&id=60140e62& var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "transition", { attrs: { name: "dialog-fade" }, on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave }, }, [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.visible, expression: "visible", }, ], staticClass: "yk-dialog__wrapper", on: { click: function ($event) { if ($event.target !== $event.currentTarget) { return null } return _vm.handleWrapperClick($event) }, }, }, [ _c( "div", { key: _vm.key, ref: "dialog", class: [ "yk-dialog", { "is-fullscreen": _vm.fullscreen, "yk-dialog--center": _vm.center, }, _vm.customClass, ], style: _vm.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": _vm.title || "dialog", }, }, [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.showLeft, expression: "showLeft", }, ], staticClass: "yk-dialog_left", }, [_c("dialog-picture")], 1 ), _c("div", { staticClass: "yk-dialog_right" }, [ _c( "div", { staticClass: "yk-dialog__header" }, [ _vm._t("title", [ _c("span", { staticClass: "yk-dialog__title" }, [ _vm._v(_vm._s(_vm.title)), ]), ]), _vm.showClose ? _c( "button", { staticClass: "yk-dialog__headerbtn", attrs: { type: "button", "aria-label": "Close" }, on: { click: _vm.handleClose }, }, [ _c("i", { staticClass: "yk-dialog__close el-icon yk_icon_close", }), ] ) : _vm._e(), ], 2 ), _vm.rendered ? _c( "div", { staticClass: "yk-dialog__body" }, [_vm._t("default")], 2 ) : _vm._e(), _vm.$slots.footer ? _c( "div", { staticClass: "yk-dialog__footer" }, [_vm._t("footer")], 2 ) : _vm._e(), ]), ] ), ] ), ] ) } var staticRenderFns = [] render._withStripped = true // CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=template&id=60140e62& // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules var popup = __webpack_require__(9); // EXTERNAL MODULE: ./src/mixins/migrating.js var migrating = __webpack_require__(12); // EXTERNAL MODULE: ./src/mixins/emitter.js var emitter = __webpack_require__(6); // CONCATENATED MODULE: ./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/dialog/src/dialogPicture.vue?vue&type=template&id=27ae1e30& var dialogPicturevue_type_template_id_27ae1e30_render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "svg", { attrs: { width: "136px", height: "232px", viewBox: "0 0 136 232", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", }, }, [ _c( "defs", [ _c( "linearGradient", { attrs: { x1: "76.829712%", y1: "127.734615%", x2: "32.8180737%", y2: "0%", id: "linearGradient-1-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#FFFFFF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#F7FAFE", offset: "100%" }, }), ], 1 ), _c("rect", { attrs: { id: "path-2-" + _vm.id, x: "0", y: "0", width: "136", height: "232", }, }), _c( "linearGradient", { attrs: { x1: "90.7817383%", y1: "100%", x2: "9.21826172%", y2: "23.3848544%", id: "linearGradient-4-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#FAFBFF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#F0F4FF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "50%", y1: "100%", x2: "50%", y2: "0%", id: "linearGradient-5-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#EEF3FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#E4EBFF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "50%", y1: "0%", x2: "50%", y2: "100%", id: "linearGradient-6-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#F5F8FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#EEF2FF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "100%", y1: "50%", x2: "2.07878059%", y2: "50%", id: "linearGradient-7-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#F1F5FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#E4EBFF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "9.10494138%", y1: "41.8501809%", x2: "100%", y2: "41.8501809%", id: "linearGradient-8-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#DBE6FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#EDF2FF", offset: "100%" }, }), ], 1 ), ], 1 ), _c( "g", { attrs: { id: "--------------↪-15_Dialog", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", }, }, [ _c( "g", { attrs: { id: "15_Dialog", transform: "translate(-1098.000000, -500.000000)", }, }, [ _c( "g", { attrs: { id: "dialog-default", transform: "translate(1098.000000, 500.000000)", }, }, [ _c( "mask", { attrs: { id: "mask-3-" + _vm.id, fill: "white" } }, [_c("use", { attrs: { "xlink:href": "path-2-" + _vm.id } })] ), _c("use", { attrs: { id: "bg", fill: "url(#linearGradient-1-" + _vm.id + ")", "xlink:href": "path-2-" + _vm.id, }, }), _c("path", { attrs: { d: "M60.8122191,40.022696 L150.25,40.0023336 C155.90963,40.0010451 160.498711,44.588037 160.5,50.2476669 C160.5,50.2484446 160.5,50.2492223 160.5,50.25 C160.5,55.9116524 155.911653,60.5020309 150.250001,60.5045369 L110.473317,60.5221431 C105.235297,60.5244615 100.990923,64.7725947 100.993242,70.0106141 C100.993242,70.0114665 100.993243,70.0123188 100.993243,70.0131711 C100.996976,75.2536946 105.246306,79.5 110.486831,79.5 L151.513514,79.5 L151.513514,79.5 L151.5,166.545433 L120.630808,166.545433 C115.423809,166.545433 111.202703,170.766539 111.202703,175.973538 C111.202703,181.180537 115.423809,185.401643 120.630808,185.401643 L136.822443,185.401643 C140.853668,185.401643 144.121622,188.669597 144.121622,192.700822 C144.121622,196.732047 140.853668,200 136.822443,200 L36.144635,200 C30.2657654,200 25.5,195.234235 25.5,189.355365 C25.5,183.473095 30.2623557,178.701317 36.1446142,178.68969 L79.3760449,178.604238 C84.4179808,178.594272 88.5,174.504176 88.5,169.46223 C88.5,164.422745 84.4155123,160.337001 79.3760276,160.335451 L45.2528994,160.324956 C39.0375348,160.323044 34,155.283959 34,149.068594 C34,142.842725 39.0269366,137.785052 45.2526908,137.747101 L52.3761966,137.703679 C57.4241054,137.672908 61.5,133.572092 61.5,128.52409 C61.5,123.552496 57.4697268,119.522222 52.4981328,119.522222 C52.4577056,119.522222 52.4172788,119.522495 52.3768552,119.523039 L31.0052236,119.810995 C22.8289741,119.921159 16.1115083,113.382306 16.0013437,105.206056 C16.0004479,105.13957 16,105.073078 16,105.006586 C16,96.7075251 22.707454,89.9691199 31.0064265,89.9309127 L71.680253,89.7436566 C76.5578192,89.721201 80.5,85.7608292 80.5,80.8832114 C80.5,76.0118609 76.5515101,72.0625764 71.6801597,72.0615961 L60.8122192,72.0594093 C51.9669008,72.0576294 44.7972973,64.886583 44.7972973,56.0412644 C44.7972973,47.1958774 51.9668323,40.0247099 60.8122191,40.022696 Z", id: "cloud", fill: "url(#linearGradient-4-" + _vm.id + ")", mask: "mask-3-" + _vm.id, }, }), _c("g", { attrs: { id: "list", mask: "mask-3-" + _vm.id } }, [ _c( "g", { attrs: { transform: "translate(60.000000, 77.000000)" }, }, [ _c("rect", { attrs: { id: "矩形备份-2", fill: "url(#linearGradient-5-" + _vm.id + ")", "fill-rule": "evenodd", x: "0", y: "0", width: "90", height: "113", rx: "4.5", }, }), _c("rect", { attrs: { id: "矩形备份", fill: "url(#linearGradient-6-" + _vm.id + ")", "fill-rule": "evenodd", x: "5.625", y: "5.65", width: "78.75", height: "100.57", rx: "4.5", }, }), _c("path", { attrs: { d: "M71.4007009,51.7805882 C73.2820822,51.7805882 74.807243,53.3429828 74.807243,55.2702941 C74.807243,57.1287729 73.3890769,58.6479349 71.6008612,58.754076 L71.4007009,58.76 L18.0315421,58.76 C16.1501608,58.76 14.625,57.1976055 14.625,55.2702941 C14.625,53.4118153 16.0431661,51.8926533 17.8313818,51.7865122 L18.0315421,51.7805882 L71.4007009,51.7805882 Z M71.5596729,35.4952941 C73.6668199,35.4952941 75.375,37.0576887 75.375,38.985 C75.375,40.8434788 73.7866539,42.3626408 71.7838523,42.4687819 L71.5596729,42.4747059 L47.3959346,42.4747059 C45.2887876,42.4747059 43.5806075,40.9123113 43.5806075,38.985 C43.5806075,37.1265212 45.1689535,35.6073592 47.1717551,35.5012181 L47.3959346,35.4952941 L71.5596729,35.4952941 Z M71.6587723,19.21 C73.7111882,19.21 75.375,20.7723945 75.375,22.6997059 C75.375,24.5581847 73.8279097,26.0773467 71.8771289,26.1834878 L71.6587723,26.1894118 L38.212723,26.1894118 C36.1603071,26.1894118 34.4964953,24.6270172 34.4964953,22.6997059 C34.4964953,20.8412271 36.0435856,19.3220651 37.9943664,19.215924 L38.212723,19.21 L71.6587723,19.21 Z", id: "形状结合", fill: "url(#linearGradient-7-" + _vm.id + ")", "fill-rule": "nonzero", }, }), _c("path", { attrs: { d: "M49.3501384,72.32 C56.6195352,72.32 60.7837415,76.3592801 64.1972986,80.5290008 C66.6554996,78.0589428 69.6528423,76.2865209 73.8888748,76.2865209 C75.728358,76.2865209 77.3509258,76.6890306 78.8682129,77.519889 C79.8448933,78.0544781 80.1586171,79.3240959 79.597951,80.2550487 C79.0374095,81.1860014 77.836338,81.456808 76.8596577,80.9218426 C75.9767954,80.438555 74.9963772,80.1742708 73.8888748,80.1742708 C71.2472229,80.1742708 68.8165786,81.4579243 66.7487037,83.6228311 C68.8165936,85.7871845 71.2465785,87.0696176 73.8871305,87.0696176 C74.9951313,87.0696176 75.9756741,86.8053334 76.8587855,86.3217949 C77.8357151,85.786704 79.0372849,86.0576361 79.5978264,86.9888397 C80.1587417,87.9201687 79.8448933,89.1900374 78.8680883,89.724752 C77.3503028,90.5558612 75.7272367,90.9584964 73.8871305,90.9584964 C69.6522564,90.9584964 66.6549718,89.187396 64.1964733,86.7185154 C60.7856115,90.8848965 56.6230111,94.92 49.3583616,94.92 C41.5761612,94.92 37.3793413,90.271151 33.8296828,85.8060136 L33.4377902,85.3108887 C33.3079476,85.1462628 33.1788434,84.9821344 33.0503284,84.818749 L33.1496587,84.9472483 C32.5037741,84.2621853 32.4400044,83.1835888 33.03762,82.423885 C33.1018925,82.3421729 33.1663125,82.2602749 33.2308985,82.1782217 L33.6205567,81.6842861 C37.2134286,77.1439763 41.4215784,72.32 49.3501384,72.32 Z M49.3501384,76.2088788 C43.5572659,76.2088788 40.322133,79.5266637 37.0430422,83.6140451 C40.3254209,87.7076914 43.5604596,91.0321247 49.3583616,91.0321247 C55.1532025,91.0321247 58.2231229,87.6779842 61.5275747,83.6245099 C58.2203044,79.5671901 55.1494523,76.2088788 49.3501384,76.2088788 Z", id: "形状结合", fill: "url(#linearGradient-8-" + _vm.id + ")", "fill-rule": "evenodd", }, }), ] ), ]), _c( "g", { attrs: { id: "default", mask: "mask-3-" + _vm.id } }, [ _c( "g", { attrs: { transform: "translate(34.000000, 70.000000)", }, }, [ _c("circle", { attrs: { id: "椭圆形", fill: "#F7FAFF", "fill-rule": "evenodd", cx: "30", cy: "30", r: "30", }, }), _c("circle", { attrs: { id: "椭圆形", fill: "#779AFF", "fill-rule": "evenodd", cx: "30", cy: "30", r: "24", }, }), _c("path", { attrs: { d: "M38,35 C39.1045695,35 40,35.8954305 40,37 C40,38.1045695 39.1045695,39 38,39 L23,39 C21.8954305,39 21,38.1045695 21,37 C21,35.8954305 21.8954305,35 23,35 L38,35 Z M32.5652174,21 C33.6697869,21 34.5652174,21.8954305 34.5652174,23 C34.5652174,24.1045695 33.6697869,25 32.5652174,25 L23,25 C21.8954305,25 21,24.1045695 21,23 C21,21.8954305 21.8954305,21 23,21 L32.5652174,21 Z", id: "形状结合", fill: "#FFFFFF", "fill-rule": "nonzero", }, }), ] ), ] ), ] ), ] ), ] ), ] ) } var dialogPicturevue_type_template_id_27ae1e30_staticRenderFns = [] dialogPicturevue_type_template_id_27ae1e30_render._withStripped = true // CONCATENATED MODULE: ./packages/dialog/src/dialogPicture.vue?vue&type=template&id=27ae1e30& // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/dialog/src/dialogPicture.vue?vue&type=script&lang=js& // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var id = 0; /* harmony default export */ var dialogPicturevue_type_script_lang_js_ = ({ name: 'dialogPicture', data: function data() { return { id: ++id }; } }); // CONCATENATED MODULE: ./packages/dialog/src/dialogPicture.vue?vue&type=script&lang=js& /* harmony default export */ var src_dialogPicturevue_type_script_lang_js_ = (dialogPicturevue_type_script_lang_js_); // EXTERNAL MODULE: ./node_modules/_vue-loader@15.9.8@vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./packages/dialog/src/dialogPicture.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( src_dialogPicturevue_type_script_lang_js_, dialogPicturevue_type_template_id_27ae1e30_render, dialogPicturevue_type_template_id_27ae1e30_staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "packages/dialog/src/dialogPicture.vue" /* harmony default export */ var dialogPicture = (component.exports); // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=script&lang=js& var _components; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var componentvue_type_script_lang_js_ = ({ name: 'YkDialog', components: (_components = {}, _components[dialogPicture.name] = dialogPicture, _components), mixins: [popup["b" /* default */], emitter["a" /* default */], migrating["a" /* default */]], props: { title: { type: String, default: '' }, modal: { type: Boolean, default: true }, modalAppendToBody: { type: Boolean, default: true }, appendToBody: { type: Boolean, default: false }, lockScroll: { type: Boolean, default: true }, closeOnClickModal: { type: Boolean, default: true }, closeOnPressEscape: { type: Boolean, default: true }, showClose: { type: Boolean, default: true }, width: String, fullscreen: Boolean, customClass: { type: String, default: '' }, top: { type: String, default: '15vh' }, beforeClose: Function, center: { type: Boolean, default: false }, destroyOnClose: Boolean, showLeft: Boolean }, data: function data() { return { closed: false, key: 0 }; }, watch: { visible: function visible(val) { var _this = this; if (val) { this.closed = false; this.$emit('open'); this.$el.addEventListener('scroll', this.updatePopper); this.$nextTick(function () { _this.$refs.dialog.scrollTop = 0; }); if (this.appendToBody) { document.body.appendChild(this.$el); } } else { this.$el.removeEventListener('scroll', this.updatePopper); if (!this.closed) this.$emit('close'); if (this.destroyOnClose) { this.$nextTick(function () { _this.key++; }); } } } }, computed: { style: function style() { var style = {}; if (!this.fullscreen) { style.marginTop = this.top; if (this.width) { style.width = this.width; } } return style; } }, methods: { getMigratingConfig: function getMigratingConfig() { return { props: { size: 'size is removed.' } }; }, handleWrapperClick: function handleWrapperClick() { if (!this.closeOnClickModal) return; this.handleClose(); }, handleClose: function handleClose() { if (typeof this.beforeClose === 'function') { this.beforeClose(this.hide); } else { this.hide(); } }, hide: function hide(cancel) { if (cancel !== false) { this.$emit('update:visible', false); this.$emit('close'); this.closed = true; } }, updatePopper: function updatePopper() { this.broadcast('ElSelectDropdown', 'updatePopper'); this.broadcast('YkDropdownMenu', 'updatePopper'); }, afterEnter: function afterEnter() { this.$emit('opened'); }, afterLeave: function afterLeave() { this.$emit('closed'); } }, mounted: function mounted() { if (this.visible) { this.rendered = true; this.open(); if (this.appendToBody) { document.body.appendChild(this.$el); } } }, destroyed: function 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: ./packages/dialog/src/component.vue?vue&type=script&lang=js& /* harmony default export */ var src_componentvue_type_script_lang_js_ = (componentvue_type_script_lang_js_); // CONCATENATED MODULE: ./packages/dialog/src/component.vue /* normalize component */ var component_component = Object(componentNormalizer["a" /* default */])( src_componentvue_type_script_lang_js_, render, staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var component_api; } component_component.options.__file = "packages/dialog/src/component.vue" /* harmony default export */ var src_component = (component_component.exports); // CONCATENATED MODULE: ./packages/dialog/index.js /* istanbul ignore next */ src_component.install = function (Vue) { Vue.component(src_component.name, src_component); }; /* harmony default export */ var dialog = __webpack_exports__["default"] = (src_component); /***/ }), /***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); /** * Show migrating guide in browser console. * * Usage: * import Migrating from 'element-ui/src/mixins/migrating'; * * mixins: [Migrating] * * add getMigratingConfig method for your component. * getMigratingConfig() { * return { * props: { * 'allow-no-selection': 'allow-no-selection is removed.', * 'selection-mode': 'selection-mode is removed.' * }, * events: { * selectionchange: 'selectionchange is renamed to selection-change.' * } * }; * }, */ /* harmony default export */ __webpack_exports__["a"] = ({ mounted: function mounted() { if (true) return; if (!this.$vnode) return; var _getMigratingConfig = this.getMigratingConfig(), _getMigratingConfig$p = _getMigratingConfig.props, props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p, _getMigratingConfig$e = _getMigratingConfig.events, events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e; var _$vnode = this.$vnode, data = _$vnode.data, componentOptions = _$vnode.componentOptions; var definedProps = data.attrs || {}; var definedEvents = componentOptions.listeners || {}; for (var propName in definedProps) { propName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "p"])(propName); // compatible with camel case if (props[propName]) { console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]); } } for (var eventName in definedEvents) { eventName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "p"])(eventName); // compatible with camel case if (events[eventName]) { console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]); } } }, methods: { getMigratingConfig: function getMigratingConfig() { return { props: {}, events: {} }; } } }); /***/ }), /***/ 2: /***/ (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 } } /***/ }), /***/ 3: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return noop; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return toObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return valueEquals; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return kebabCase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; }); /* unused harmony export looseEqual */ /* unused harmony export arrayEquals */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return rafThrottle; }); /* unused harmony export objToArray */ /* 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__); /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var hasOwnProperty = Object.prototype.hasOwnProperty; function noop() {}; function hasOwn(obj, key) { return hasOwnProperty.call(obj, key); }; function extend(to, _from) { for (var key in _from) { to[key] = _from[key]; } return to; }; function toObject(arr) { var res = {}; for (var i = 0; i < arr.length; i++) { if (arr[i]) { extend(res, arr[i]); } } return res; }; var getValueByPath = function getValueByPath(object, prop) { prop = prop || ''; var paths = prop.split('.'); var current = object; var result = null; for (var i = 0, j = paths.length; i < j; i++) { var path = paths[i]; if (!current) break; if (i === j - 1) { result = current[path]; break; } current = current[path]; } return result; }; function getPropByPath(obj, path, strict) { var tempObj = obj; path = path.replace(/\[(\w+)\]/g, '.$1'); path = path.replace(/^\./, ''); var keyArr = path.split('.'); var i = 0; for (var len = keyArr.length; i < len - 1; ++i) { if (!tempObj && !strict) break; var 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 }; }; var generateId = function generateId() { return Math.floor(Math.random() * 10000); }; var valueEquals = function 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 (var i = 0; i !== a.length; ++i) { if (a[i] !== b[i]) return false; } return true; }; var escapeRegexpString = function escapeRegexpString() { var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&'); }; // TODO: use native Array.find, Array.findIndex when IE support is dropped var arrayFindIndex = function arrayFindIndex(arr, pred) { for (var i = 0; i !== arr.length; ++i) { if (pred(arr[i])) { return i; } } return -1; }; var arrayFind = function arrayFind(arr, pred) { var idx = arrayFindIndex(arr, pred); return idx !== -1 ? arr[idx] : undefined; }; // coerce truthy value to array var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) { if (Array.isArray(val)) { return val; } else if (val) { return [val]; } else { return []; } }; var isIE = function isIE() { return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode)); }; var isEdge = function isEdge() { return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1; }; var isFirefox = function isFirefox() { return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i); }; var autoprefixer = function autoprefixer(style) { if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style; var rules = ['transform', 'transition', 'animation']; var prefixes = ['ms-', 'webkit-']; rules.forEach(function (rule) { var value = style[rule]; if (rule && value) { prefixes.forEach(function (prefix) { style[prefix + rule] = value; }); } }); return style; }; var kebabCase = function kebabCase(str) { var hyphenateRE = /([^-])([A-Z])/g; return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase(); }; var capitalize = function capitalize(str) { if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str; return str.charAt(0).toUpperCase() + str.slice(1); }; var looseEqual = function looseEqual(a, b) { var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a); var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b); if (isObjectA && isObjectB) { return JSON.stringify(a) === JSON.stringify(b); } else if (!isObjectA && !isObjectB) { return String(a) === String(b); } else { return false; } }; var arrayEquals = function arrayEquals(arrayA, arrayB) { arrayA = arrayA || []; arrayB = arrayB || []; if (arrayA.length !== arrayB.length) { return false; } for (var i = 0; i < arrayA.length; i++) { if (!looseEqual(arrayA[i], arrayB[i])) { return false; } } return true; }; var isEqual = function isEqual(value1, value2) { if (Array.isArray(value1) && Array.isArray(value2)) { return arrayEquals(value1, value2); } return looseEqual(value1, value2); }; var isEmpty = function isEmpty(val) { // null or u