component_ryl 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 7cf7bf297dc1c1a4b2f1","webpack:///external \"element-ui\"","webpack:///./src/index.js","webpack:///./src/packages/handHeader/index.js","webpack:///./src/packages/handDialog/index.js","webpack:///./src/packages/handPaging/index.js","webpack:///./src/packages/handInput/index.js","webpack:///./src/packages/handTinymce/index.js","webpack:///./src/packages/handBreadCrumb/index.js","webpack:///./src/packages/handTab/index.js","webpack:///./src/packages/handNoData/index.js","webpack:///./src/packages/directives/index.js","webpack:///./src/packages/directives/lazy/index.js","webpack:///./src/packages/directives/password/index.js","webpack:///./src/packages/directives/number/index.js","webpack:///./src/packages/directives/money/index.js","webpack:///./src/packages/directives/copy/index.js","webpack:///./src/packages/directives/debounce/index.js","webpack:///./src/packages/directives/debounce_input/index.js","webpack:///./src/packages/handConfirm/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;AC7DA,+C;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACoC;AACiB;AACA;AACA;AACF;AACI;AACM;AACd;AACM;AACA;;AAErD;AAC2D;;AAE5C;AACf,EAAE,uFAAU;AACZ,EAAE,uFAAU;AACZ,EAAE,uFAAU;AACZ,EAAE,uFAAU;AACZ,EAAE,qFAAS;AACX,EAAE,yFAAW;AACb,EAAE,+FAAc;AAChB,EAAE,iFAAO;AACT,EAAE,uFAAU;AACZ,EAAE,8FAAW;AACb,CAAC,EAAC;;;;;;;;;;;;;;AC1BF;AAAA;AAA8B;AAC9B,gDAAM,gCAAgC,gDAAM,OAAO,gDAAM,EAAE;AAC5C,yGAAM,EAAC;;;;;;;;;;;;;;ACFtB;AAAA;AAAsC;AACtC,oDAAU,gCAAgC,oDAAU,OAAO,oDAAU,EAAE;AACxD,6GAAU,EAAC;;;;;;;;;;;;;;ACF1B;AAAA;AAAsC;AACtC,oDAAU,gCAAgC,oDAAU,OAAO,oDAAU,EAAE;AACxD,6GAAU,EAAC;;;;;;;;;;;;;;ACF1B;AAAA;AAAoC;AACpC,mDAAS,gCAAgC,mDAAS,OAAO,mDAAS,EAAE;AACrD,4GAAS,EAAC;;;;;;;;;;;;;;ACFzB;AAAA;AAAwC;AACxC,qDAAW,gCAAgC,qDAAW,OAAO,qDAAW,EAAE;AAC3D,8GAAW,EAAC;;;;;;;;;;;;;;ACF3B;AAAA;AAA8C;AAC9C,wDAAc,gCAAgC,wDAAc,OAAO,wDAAc,EAAE;AACpE,iHAAc,EAAC;;;;;;;;;;;;;;ACF9B;AAAA;AAAgC;AAChC,iDAAO,gCAAgC,iDAAO,OAAO,iDAAO,EAAE;AAC/C,0GAAO,EAAC;;;;;;;;;;;;;;ACFvB;AAAA;AAAsC;AACtC,oDAAU,gCAAgC,oDAAU,OAAO,oDAAU,EAAE;AACxD,6GAAU,EAAC;;;;;;;;;;;;;;ACF1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyB;AACQ;AACJ;AACF;AACF;AACQ;AACY;AAC7C;AACA;AACA,IAAI,4DAAI;AACR,IAAI,oEAAQ;AACZ,IAAI,gEAAM;AACV,IAAI,8DAAK;AACT,IAAI,4DAAI;AACR,IAAI,oEAAQ;AACZ,IAAI,gFAAc;AAClB;;AAEe;AACf;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL,C;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEe;AACf;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL,C;;;;;;;AChFe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,WAAW,QAAQ,EAAE;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,C;;;;;;;;;ACzCe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD,aAAa;AACb;AACA;AACA,C;;;;;;;AC5Be;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,EAAE;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA,KAAK;AACL,C;;;;;;;ACvCA;AAAA;AAAqC;AACtB;AACf;AACA;AACA;AACA;AACA;AACA,gBAAgB,mDAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mDAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,C;;;;;;;AClDe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,C;;;;;;;ACTe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,C;;;;;;;ACTA;AAAA;AAAA;AAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,sDAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,GAAG;AACH","file":"build.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"element-ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"component_ryl\", [\"element-ui\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"component_ryl\"] = factory(require(\"element-ui\"));\n\telse\n\t\troot[\"component_ryl\"] = factory(root[\"element-ui\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 7cf7bf297dc1c1a4b2f1","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"element-ui\"\n// module id = 0\n// module chunks = 0","// 引入所有组件然后统一导出\r\nimport \"./assets/styles/index.scss\";\r\nimport handHeader from \"./packages/handHeader/index\";\r\nimport handDialog from \"./packages/handDialog/index\";\r\nimport handPaging from \"./packages/handPaging/index\";\r\nimport handInput from \"./packages/handInput/index\";\r\nimport handTinymce from \"./packages/handTinymce/index\";\r\nimport handBreadCrumb from \"./packages/handBreadCrumb/index\";\r\nimport handTab from \"./packages/handTab/index\";\r\nimport handNoData from \"./packages/handNoData/index\";\r\nimport directives from \"./packages/directives/index\";\r\n\r\n// 引入js 自定义弹窗询问\r\nimport { handConfirm } from \"./packages/handConfirm/index\";\r\n\r\nexport default {\r\n handHeader,\r\n handDialog,\r\n handPaging,\r\n directives,\r\n handInput,\r\n handTinymce,\r\n handBreadCrumb,\r\n handTab,\r\n handNoData,\r\n handConfirm\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/index.js\n// module id = 1\n// module chunks = 0","import header from \"./header\";\r\nheader.install = Vue => Vue.component(header.name, header); //注册组件\r\nexport default header;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handHeader/index.js\n// module id = 3\n// module chunks = 0","import handDialog from \"./handDialog\";\r\nhandDialog.install = Vue => Vue.component(handDialog.name, handDialog); //注册组件\r\nexport default handDialog;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handDialog/index.js\n// module id = 5\n// module chunks = 0","import handPaging from \"./handPaging\";\r\nhandPaging.install = Vue => Vue.component(handPaging.name, handPaging); //注册组件\r\nexport default handPaging;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handPaging/index.js\n// module id = 7\n// module chunks = 0","import handInput from \"./handInput\";\r\nhandInput.install = Vue => Vue.component(handInput.name, handInput); //注册组件\r\nexport default handInput;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handInput/index.js\n// module id = 9\n// module chunks = 0","import handTinymce from \"./handTinymce\";\r\nhandTinymce.install = Vue => Vue.component(handTinymce.name, handTinymce); //注册组件\r\nexport default handTinymce;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handTinymce/index.js\n// module id = 11\n// module chunks = 0","import handBreadCrumb from \"./handBreadCrumb\";\r\nhandBreadCrumb.install = Vue => Vue.component(handBreadCrumb.name, handBreadCrumb); //注册组件\r\nexport default handBreadCrumb;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handBreadCrumb/index.js\n// module id = 13\n// module chunks = 0","import handTab from \"./handTab\";\r\nhandTab.install = Vue => Vue.component(handTab.name, handTab); //注册组件\r\nexport default handTab;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handTab/index.js\n// module id = 15\n// module chunks = 0","import handNoData from \"./handNoData\";\r\nhandNoData.install = Vue => Vue.component(handNoData.name, handNoData); //注册组件\r\nexport default handNoData;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handNoData/index.js\n// module id = 17\n// module chunks = 0","import lazy from './lazy'\r\nimport password from './password'\r\nimport number from './number'\r\nimport money from './money'\r\nimport copy from './copy'\r\nimport debounce from './debounce'\r\nimport debounce_input from './debounce_input'\r\n// 自定义指令\r\nlet directives = {\r\n lazy,\r\n password,\r\n number,\r\n money,\r\n copy,\r\n debounce,\r\n debounce_input\r\n}\r\n\r\nexport default {\r\n install(Vue) {\r\n Object.keys(directives).forEach((key) => {\r\n Vue.directive(key, directives[key])\r\n })\r\n },\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/index.js\n// module id = 19\n// module chunks = 0","const LazyLoad = {\r\n // 初始化\r\n init(el, val, def) {\r\n el.setAttribute('data-src', val)\r\n el.setAttribute('src', def)\r\n },\r\n // 利用IntersectionObserver监听el\r\n observe(el) {\r\n var io = new IntersectionObserver((entries) => {\r\n const realSrc = el.dataset.src\r\n if (entries[0].isIntersecting) {\r\n if (realSrc) {\r\n setTimeout(() => {\r\n el.src = realSrc\r\n el.removeAttribute('data-src')\r\n }, 100)\r\n }\r\n }\r\n })\r\n io.observe(el)\r\n },\r\n // 监听scroll事件\r\n listenerScroll(el) {\r\n const handler = LazyLoad.throttle(LazyLoad.load, 300)\r\n LazyLoad.load(el)\r\n window.addEventListener('scroll', () => {\r\n handler(el)\r\n })\r\n },\r\n // 加载真实图片\r\n load(el) {\r\n const windowHeight = document.documentElement.clientHeight\r\n const elTop = el.getBoundingClientRect().top\r\n const elBtm = el.getBoundingClientRect().bottom\r\n const realSrc = el.dataset.src\r\n if (elTop - windowHeight < 0 && elBtm > 0) {\r\n if (realSrc) {\r\n setTimeout(() => {\r\n el.src = realSrc\r\n el.removeAttribute('data-src')\r\n }, 100)\r\n }\r\n }\r\n },\r\n throttle(fn, delay) {\r\n let timer\r\n let prevTime\r\n return function (...args) {\r\n const currTime = Date.now()\r\n const context = this\r\n if (!prevTime) prevTime = currTime\r\n clearTimeout(timer)\r\n\r\n if (currTime - prevTime > delay) {\r\n prevTime = currTime\r\n fn.apply(context, args)\r\n clearTimeout(timer)\r\n return\r\n }\r\n\r\n timer = setTimeout(function () {\r\n prevTime = Date.now()\r\n timer = null\r\n fn.apply(context, args)\r\n }, delay)\r\n }\r\n }\r\n}\r\n\r\nexport default {\r\n bind(el, binding) {\r\n LazyLoad.init(el, binding.value.url, binding.value.default)\r\n },\r\n inserted(el) {\r\n if (IntersectionObserver) {\r\n LazyLoad.observe(el)\r\n } else {\r\n LazyLoad.listenerScroll(el)\r\n }\r\n },\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/lazy/index.js\n// module id = 20\n// module chunks = 0","export default {\r\n bind(el, binding) {\r\n // 添加眼睛图标\r\n let name = document.createElement('i')\r\n name.classList.add('eyes')\r\n name.classList.add('hide')\r\n el.appendChild(name)\r\n //对齐\r\n el.style = \"position:relative\"\r\n name.style = \"position: absolute;right:15px;top:30%;\"; //操作style所有样式\r\n // input类型 默认 password\r\n let mtinput = el.querySelector('input')\r\n mtinput.setAttribute(\"type\", \"password\");\r\n setTimeout(()=>{\r\n if (mtinput.value) {\r\n name.classList.remove('hide')\r\n }\r\n },0)\r\n // 有值时,才显示眼睛\r\n mtinput.oninput = ()=>{\r\n if (mtinput.value) {\r\n name.classList.remove('hide')\r\n } else {\r\n name.classList.add('hide')\r\n el.querySelector('.eyes').classList.remove('show')\r\n mtinput.setAttribute(\"type\", \"password\");\r\n }\r\n }\r\n //眼睛切换\r\n name.onclick = function () {\r\n let type = mtinput.getAttribute('type')\r\n mtinput.setAttribute(\"type\", type == \"password\" ? 'text' : 'password');\r\n if (type == 'password') {\r\n el.querySelector('.eyes').classList.add('show')\r\n } else {\r\n el.querySelector('.eyes').classList.remove('show')\r\n }\r\n }\r\n // 设置眼睛颜色 -- 眼睛icon 换成图片后,弃用\r\n // if (binding.value) {\r\n // name.style.color = binding.value.color\r\n // }\r\n }\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/password/index.js\n// module id = 21\n// module chunks = 0","\r\n\r\nexport default {\r\n bind(el, binding) {\r\n let input = el.querySelector('input')\r\n el.onkeyup = () => {\r\n // 判断首位不能为0的情况\r\n if (input.value.length >= 2 && input.value.startsWith(\"0\")) {\r\n input.value = input.value.substring(1);\r\n }\r\n if (binding.value) {\r\n // 判断是否超过最大值\r\n if (input.value >= binding.value.max) {\r\n input.value = binding.value.max;\r\n }\r\n // 判断是否小于最小值\r\n if (input.value) {\r\n if (input.value < binding.value.min) {\r\n input.value = binding.value.min;\r\n }\r\n }\r\n }\r\n input.value = input.value.replace(/[^0-9]/g, 0);\r\n setTimeout(()=>{\r\n input.dispatchEvent(new Event(\"input\")); //调用input事件使vue v-model绑定更新 \r\n },0)\r\n };\r\n }\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/number/index.js\n// module id = 22\n// module chunks = 0","export default {\r\n bind(el, binding) {\r\n let input = el.querySelector('input')\r\n el.onkeyup = () => {\r\n // 只保留数字和小数点\r\n input.value = input.value.replace(/[^\\d.]/g, \"\");\r\n // 只保留第一个. 清除多余的.,方法如:把第一个点替换成其他的,把其他的点替换掉,然后把第一个点还原\r\n input.value = input.value\r\n .replace(\".\", \"$#$\")\r\n .replace(/\\./g, \"\")\r\n .replace(\"$#$\", \".\");\r\n // 保留小数位数\r\n input.value = input.value.replace(/^(\\d+)\\.(\\d{2}).*$/, \"$1.$2\");\r\n // 首位不能为.\r\n if (input.value.indexOf(\".\") === 0) {\r\n input.value = input.value.substring(1);\r\n }\r\n if (\r\n input.value.length >= 2 &&\r\n input.value.startsWith(\"0\") &&\r\n input.value.indexOf(\".\") !== 1\r\n ) {\r\n input.value = input.value.substring(1);\r\n }\r\n if (binding.value) {\r\n // 判断是否超过最大值\r\n if (input.value >= binding.value.max) {\r\n input.value = binding.value.max;\r\n }\r\n // 判断是否小于最小值\r\n if (input.value) {\r\n if (input.value < binding.value.min) {\r\n input.value = binding.value.min;\r\n }\r\n }\r\n }\r\n input.dispatchEvent(new Event(\"input\")); //调用input事件使vue v-model绑定更新\r\n };\r\n },\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/money/index.js\n// module id = 23\n// module chunks = 0","import { Message } from \"element-ui\";\r\nexport default {\r\n inserted(el,binding) {\r\n let [a,fn] = binding.value\r\n el.$value = a\r\n el.handler = () => {\r\n if (!el.$value) {\r\n Message.error('暂无复制内容')\r\n return false\r\n }\r\n if (document.querySelector('.copyTextarea')) {\r\n return false\r\n }\r\n // 动态创建 textarea 标签\r\n const textarea = document.createElement('textarea')\r\n // 将该 textarea 设为 readonly 防止 iOS 下自动唤起键盘,同时将 textarea 移出可视区域\r\n textarea.classList.add('copyTextarea')\r\n textarea.readOnly = 'readonly'\r\n textarea.style.position = 'absolute'\r\n textarea.style.left = '-9999px'\r\n // 将要 copy 的值赋给 textarea 标签的 value 属性\r\n textarea.value = el.$value\r\n // 将 textarea 插入到 body 中\r\n document.body.appendChild(textarea)\r\n // 选中值并复制\r\n textarea.select()\r\n const result = document.execCommand('Copy')\r\n if (result) {\r\n Message.success('复制成功')\r\n }\r\n // 如果需要回调函数,则调用\r\n if (fn) {\r\n fn()\r\n }\r\n setTimeout(()=>{\r\n document.body.removeChild(textarea)\r\n },3000)\r\n }\r\n // 绑定点击事件 一键copy\r\n el.addEventListener('click', el.handler)\r\n },\r\n // 当传进来的值更新的时候触发\r\n componentUpdated(el,binding) {\r\n let [a] = binding.value\r\n el.$value = a\r\n },\r\n // 指令与元素解绑的时候,移除事件绑定\r\n unbind(el) {\r\n el.removeEventListener('click', el.handler)\r\n }\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/copy/index.js\n// module id = 24\n// module chunks = 0","export default {\r\n inserted: function (el, binding) {\r\n let [fn, ...obj] = binding.value\r\n let timer\r\n el.addEventListener('click', () => {\r\n timer && clearTimeout(timer)\r\n timer = setTimeout(() => fn(...obj), 300)\r\n })\r\n }\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/debounce/index.js\n// module id = 25\n// module chunks = 0","export default {\r\n inserted: function (el, binding) {\r\n let [fn] = binding.value\r\n let timer\r\n el.addEventListener('input', () => {\r\n timer && clearTimeout(timer)\r\n timer = setTimeout(() => fn(), 300)\r\n })\r\n }\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/directives/debounce_input/index.js\n// module id = 26\n// module chunks = 0","import { MessageBox } from \"element-ui\";\r\n/*\r\ntext -- 提示信息\r\nbtnCount -- 默认显示2个按钮,为false时,显示一个按钮\r\ntype -- 默认 warning 警告\r\nsureBtn -- 默认 确定\r\nexitBtn -- 默认 取消\r\ncustomClass -- 自定义样式\r\n*/\r\nexport function handConfirm(\r\n text,\r\n btnCount = true,\r\n type = \"warning\",\r\n sureBtn = \"确定\",\r\n exitBtn = \"取消\",\r\n customClass = ''\r\n) {\r\n return new Promise((resolve, reject) => {\r\n return MessageBox.confirm(text, {\r\n showCancelButton: btnCount,\r\n type: type,\r\n confirmButtonText: sureBtn,\r\n cancelButtonText: exitBtn,\r\n closeOnClickModal: false,\r\n center: true,\r\n customClass\r\n })\r\n .then(() => {\r\n setTimeout(() => {\r\n resolve();\r\n }, 200);\r\n })\r\n .catch(() => {\r\n setTimeout(() => {\r\n if (exitBtn !== \"取消\") {\r\n reject();\r\n }\r\n }, 200);\r\n });\r\n });\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/packages/handConfirm/index.js\n// module id = 27\n// module chunks = 0"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component_ryl",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "description": "自定义通用组件",
6
6
  "author": "renyuliang <785788909@qq.com>",
@@ -11,7 +11,7 @@
11
11
  "main": "dist/build.js",
12
12
  "dependencies": {
13
13
  "@tinymce/tinymce-vue": "^3.0.1",
14
- "element-ui": "^2.15.10",
14
+ "element-ui": "^2.15.14",
15
15
  "tinymce": "^5.10.2",
16
16
  "vue": "^2.6.12"
17
17
  },
@@ -28,7 +28,6 @@
28
28
  "sass-loader": "^7.3.1",
29
29
  "style-loader": "^0.23.1",
30
30
  "url-loader": "^0.6.2",
31
- "vue-cli-plugin-element": "^1.0.1",
32
31
  "vue-fragment": "^1.5.2",
33
32
  "vue-loader": "^13.0.5",
34
33
  "vue-template-compiler": "^2.6.12",
package/src.zip ADDED
Binary file
package/webpack.config.js CHANGED
@@ -65,7 +65,7 @@ module.exports = {
65
65
  // 自动打开浏览器
66
66
  open: true,
67
67
  // 设置端口号
68
- port: 8880,
68
+ port: 8889,
69
69
  host: "myjuda.testapiyz.com"
70
70
  },
71
71
  performance: {
@@ -79,7 +79,7 @@ if (process.env.NODE_ENV === "production") {
79
79
  // 不打包这些包
80
80
  module.exports.externals ={
81
81
  'vue': "Vue",
82
- 'element-ui': "element-ui",
82
+ 'element-ui': "element-ui"
83
83
  },
84
84
  // http://vue-loader.vuejs.org/en/workflow/production.html
85
85
  module.exports.plugins = (module.exports.plugins || []).concat([