bulade-ui 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/miniprogram_dist/bld-cloud-image/index.js +179 -0
  2. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -0
  3. package/miniprogram_dist/bld-cloud-image/index.json +3 -0
  4. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -0
  5. package/miniprogram_dist/bld-cloud-image/index.wxss +3 -0
  6. package/miniprogram_dist/bld-drawer/index.js +2 -2
  7. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  8. package/miniprogram_dist/bld-message/index.js +2 -2
  9. package/miniprogram_dist/bld-message/index.js.map +1 -1
  10. package/miniprogram_dist/bld-message/message.js +2 -2
  11. package/miniprogram_dist/bld-message/message.js.map +1 -1
  12. package/miniprogram_dist/bld-nav-bar/index.js +30 -3
  13. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  14. package/miniprogram_dist/bld-nav-bar/index.wxml +6 -1
  15. package/miniprogram_dist/bld-nav-bar/index.wxss +1 -1
  16. package/miniprogram_dist/bld-toast/index.js +2 -2
  17. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  18. package/miniprogram_dist/bld-toast/toast.js +2 -2
  19. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  20. package/miniprogram_dist/cell/index.js +2 -2
  21. package/miniprogram_dist/cell/index.js.map +1 -1
  22. package/miniprogram_dist/cell-group/index.js +2 -2
  23. package/miniprogram_dist/cell-group/index.js.map +1 -1
  24. package/miniprogram_dist/grid/index.js +2 -2
  25. package/miniprogram_dist/grid/index.js.map +1 -1
  26. package/miniprogram_dist/grid-item/index.js +2 -2
  27. package/miniprogram_dist/grid-item/index.js.map +1 -1
  28. package/miniprogram_dist/icon/index.js +2 -2
  29. package/miniprogram_dist/icon/index.js.map +1 -1
  30. package/miniprogram_dist/timeline/index.js +2 -2
  31. package/miniprogram_dist/timeline/index.js.map +1 -1
  32. package/miniprogram_dist/timeline-item/index.js +2 -2
  33. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/bld-cloud-image/index.js +79 -0
  36. package/src/bld-cloud-image/index.json +3 -0
  37. package/src/bld-cloud-image/index.scss +3 -0
  38. package/src/bld-cloud-image/index.wxml +14 -0
  39. package/src/bld-cloud-image/index.wxss +3 -0
  40. package/src/bld-nav-bar/index.js +30 -2
  41. package/src/bld-nav-bar/index.scss +2 -2
  42. package/src/bld-nav-bar/index.wxml +6 -1
  43. package/src/bld-nav-bar/index.wxss +1 -1
  44. package/src/bld-nav-bar1/index.js +90 -0
  45. package/src/bld-nav-bar1/index.json +6 -0
  46. package/src/bld-nav-bar1/index.scss +40 -0
  47. package/src/bld-nav-bar1/index.wxml +24 -0
  48. package/src/bld-nav-bar1/index.wxss +36 -0
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 29);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 30);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 29:
90
+ /***/ 30:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","properties","icon","String","value","image","title","isMultiple","Boolean","border","iconColor","linkType","url","methods","updateCellBorder","setData","onClick","triggerEvent","data","wx","call"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,2BAAuB;AACrBC,YAAM;AADe;AADd,GAPH;;AAaRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;;AAMVC,WAAO;AACLL,YAAMG,MADD;AAELC,aAAO;AAFF,KANG;;AAWVE,WAAO;AACLN,YAAMG,MADD;AAELC,aAAO;AAFF,KAXG;;AAgBVA,WAAO;AACLJ,YAAMG,MADD;AAELC,aAAO;AAFF,KAhBG;;AAqBVG,gBAAY;AACVP,YAAMQ,OADI;AAEVJ,aAAO;AAFG,KArBF;;AA0BVK,YAAQ;AACNT,YAAMQ,OADA;AAENJ,aAAO;AAFD,KA1BE;;AA+BVM,eAAW;AACTV,YAAMG,MADG;AAETC,aAAO;AAFE,KA/BD;;AAoCV;AACAO,cAAU;AACRX,YAAMG,MADE;AAERC,aAAO;AAFC,KArCA;;AA0CVQ,SAAK;AACHZ,YAAMG,MADH;AAEHC,aAAO;AAFJ;AA1CK,GAbJ;;AA8DRS,WAAS;AACPC,oBADO,4BACUL,MADV,EACkB;AACvB,WAAKM,OAAL,CAAa;AACXN;AADW,OAAb;AAGD,KALM;AAOPO,WAPO,qBAOG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAML,MAAM,KAAKM,IAAL,CAAUN,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVO,SAAG,KAAKD,IAAL,CAAUP,QAAb,EAAuBS,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BP;AAD8B,OAAhC;AAGD;AAhBM;AA9DD,CAAV,E","file":"cell/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 29);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../cell-group/index': {\n type: 'ancestor'\n }\n },\n\n properties: {\n icon: {\n type: String,\n value: ''\n },\n\n image: {\n type: String,\n value: ''\n },\n\n title: {\n type: String,\n value: ''\n },\n\n value: {\n type: String,\n value: ''\n },\n\n isMultiple: {\n type: Boolean,\n value: false\n },\n\n border: {\n type: Boolean,\n value: false\n },\n\n iconColor: {\n type: String,\n value: ''\n },\n\n // 链接类型,可选值为 navigateTo,redirectTo,switchTab\n linkType: {\n type: String,\n value: 'navigateTo'\n },\n\n url: {\n type: String,\n value: ''\n }\n },\n\n\n methods: {\n updateCellBorder(border) {\n this.setData({\n border\n })\n },\n\n onClick() {\n this.triggerEvent('click')\n\n const url = this.data.url\n if (!url) return\n\n wx[this.data.linkType].call(wx, {\n url\n })\n }\n }\n});"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","properties","icon","String","value","image","title","isMultiple","Boolean","border","iconColor","linkType","url","methods","updateCellBorder","setData","onClick","triggerEvent","data","wx","call"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,2BAAuB;AACrBC,YAAM;AADe;AADd,GAPH;;AAaRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;;AAMVC,WAAO;AACLL,YAAMG,MADD;AAELC,aAAO;AAFF,KANG;;AAWVE,WAAO;AACLN,YAAMG,MADD;AAELC,aAAO;AAFF,KAXG;;AAgBVA,WAAO;AACLJ,YAAMG,MADD;AAELC,aAAO;AAFF,KAhBG;;AAqBVG,gBAAY;AACVP,YAAMQ,OADI;AAEVJ,aAAO;AAFG,KArBF;;AA0BVK,YAAQ;AACNT,YAAMQ,OADA;AAENJ,aAAO;AAFD,KA1BE;;AA+BVM,eAAW;AACTV,YAAMG,MADG;AAETC,aAAO;AAFE,KA/BD;;AAoCV;AACAO,cAAU;AACRX,YAAMG,MADE;AAERC,aAAO;AAFC,KArCA;;AA0CVQ,SAAK;AACHZ,YAAMG,MADH;AAEHC,aAAO;AAFJ;AA1CK,GAbJ;;AA8DRS,WAAS;AACPC,oBADO,4BACUL,MADV,EACkB;AACvB,WAAKM,OAAL,CAAa;AACXN;AADW,OAAb;AAGD,KALM;AAOPO,WAPO,qBAOG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAML,MAAM,KAAKM,IAAL,CAAUN,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVO,SAAG,KAAKD,IAAL,CAAUP,QAAb,EAAuBS,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BP;AAD8B,OAAhC;AAGD;AAhBM;AA9DD,CAAV,E","file":"cell/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 30);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../cell-group/index': {\n type: 'ancestor'\n }\n },\n\n properties: {\n icon: {\n type: String,\n value: ''\n },\n\n image: {\n type: String,\n value: ''\n },\n\n title: {\n type: String,\n value: ''\n },\n\n value: {\n type: String,\n value: ''\n },\n\n isMultiple: {\n type: Boolean,\n value: false\n },\n\n border: {\n type: Boolean,\n value: false\n },\n\n iconColor: {\n type: String,\n value: ''\n },\n\n // 链接类型,可选值为 navigateTo,redirectTo,switchTab\n linkType: {\n type: String,\n value: 'navigateTo'\n },\n\n url: {\n type: String,\n value: ''\n }\n },\n\n\n methods: {\n updateCellBorder(border) {\n this.setData({\n border\n })\n },\n\n onClick() {\n this.triggerEvent('click')\n\n const url = this.data.url\n if (!url) return\n\n wx[this.data.linkType].call(wx, {\n url\n })\n }\n }\n});"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 30);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 31);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 30:
90
+ /***/ 31:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","properties","title","String","value","card","Boolean","border","observer","val","methods","timer","clearTimeout","setTimeout","cells","getRelationNodes","len","length","lastIndex","forEach","cell","index","updateCellBorder","data"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe;AAFR,GAHD;;AAQRC,aAAW;AACT,qBAAiB;AACfC,YAAM,YADS;;AAGfC,YAHe,oBAGN;AACP,aAAKC,eAAL;AACD,OALc;AAOfC,iBAPe,yBAOD;AACZ,aAAKC,iBAAL;AACD,OATc;AAWfC,cAXe,sBAWJ;AACT,aAAKH,eAAL;AACD;AAbc;AADR,GARH;;AA0BRI,cAAY;AACVC,WAAO;AACLP,YAAMQ,MADD;AAELC,aAAO;AAFF,KADG;;AAMVC,UAAM;AACJV,YAAMW,OADF;AAEJF,aAAO;AAFH,KANI;;AAWVG,YAAQ;AACNZ,YAAMW,OADA;AAENF,aAAO,KAFD;AAGNI,cAHM,oBAGGC,GAHH,EAGQ;AACZ,aAAKZ,eAAL;AACD;AALK;AAXE,GA1BJ;;AA8CRa,WAAS;AACPb,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKc,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,QAAQ,MAAKC,gBAAL,CAAsB,eAAtB,CAAZ;AACA,YAAMC,MAAMF,MAAMG,MAAlB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,gBAAMK,OAAN,CAAc,UAACC,IAAD,EAAOC,KAAP,EAAiB;AAC7BD,iBAAKE,gBAAL,CAAsB,MAAKC,IAAL,CAAUhB,MAAV,IAAoBc,UAAUH,SAApD;AACD,WAFD;AAGD;AACF,OAZY,EAYV,EAZU,CAAb;AAaD;AAtBM;AA9CD,CAAV,E","file":"cell-group/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 30);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n multipleSlots: true\n },\n\n relations: {\n '../cell/index': {\n type: 'descendant',\n\n linked() {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateDataChange();\n },\n\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n title: {\n type: String,\n value: ''\n },\n\n card: {\n type: Boolean,\n value: false\n },\n\n border: {\n type: Boolean,\n value: false,\n observer(val) {\n this._updateChildren()\n }\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let cells = this.getRelationNodes('../cell/index')\n const len = cells.length\n\n if (len > 0) {\n let lastIndex = len - 1\n\n cells.forEach((cell, index) => {\n cell.updateCellBorder(this.data.border && index !== lastIndex)\n })\n }\n }, 60)\n }\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","properties","title","String","value","card","Boolean","border","observer","val","methods","timer","clearTimeout","setTimeout","cells","getRelationNodes","len","length","lastIndex","forEach","cell","index","updateCellBorder","data"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe;AAFR,GAHD;;AAQRC,aAAW;AACT,qBAAiB;AACfC,YAAM,YADS;;AAGfC,YAHe,oBAGN;AACP,aAAKC,eAAL;AACD,OALc;AAOfC,iBAPe,yBAOD;AACZ,aAAKC,iBAAL;AACD,OATc;AAWfC,cAXe,sBAWJ;AACT,aAAKH,eAAL;AACD;AAbc;AADR,GARH;;AA0BRI,cAAY;AACVC,WAAO;AACLP,YAAMQ,MADD;AAELC,aAAO;AAFF,KADG;;AAMVC,UAAM;AACJV,YAAMW,OADF;AAEJF,aAAO;AAFH,KANI;;AAWVG,YAAQ;AACNZ,YAAMW,OADA;AAENF,aAAO,KAFD;AAGNI,cAHM,oBAGGC,GAHH,EAGQ;AACZ,aAAKZ,eAAL;AACD;AALK;AAXE,GA1BJ;;AA8CRa,WAAS;AACPb,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKc,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,QAAQ,MAAKC,gBAAL,CAAsB,eAAtB,CAAZ;AACA,YAAMC,MAAMF,MAAMG,MAAlB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,gBAAMK,OAAN,CAAc,UAACC,IAAD,EAAOC,KAAP,EAAiB;AAC7BD,iBAAKE,gBAAL,CAAsB,MAAKC,IAAL,CAAUhB,MAAV,IAAoBc,UAAUH,SAApD;AACD,WAFD;AAGD;AACF,OAZY,EAYV,EAZU,CAAb;AAaD;AAtBM;AA9CD,CAAV,E","file":"cell-group/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 31);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n multipleSlots: true\n },\n\n relations: {\n '../cell/index': {\n type: 'descendant',\n\n linked() {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateDataChange();\n },\n\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n title: {\n type: String,\n value: ''\n },\n\n card: {\n type: Boolean,\n value: false\n },\n\n border: {\n type: Boolean,\n value: false,\n observer(val) {\n this._updateChildren()\n }\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let cells = this.getRelationNodes('../cell/index')\n const len = cells.length\n\n if (len > 0) {\n let lastIndex = len - 1\n\n cells.forEach((cell, index) => {\n cell.updateCellBorder(this.data.border && index !== lastIndex)\n })\n }\n }, 60)\n }\n }\n})"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 31);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 32);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 31:
90
+ /***/ 32:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/grid/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","height","String","value","observer","columnCount","Number","border","Boolean","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","width","data","forEach","child","index","setData"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,0BAAsB;AACpBC,YAAM,OADc;AAEpBC,YAFoB,oBAEX;AACP,aAAKC,eAAL;AACD,OAJmB;AAKpBC,cALoB,sBAKT;AACT,aAAKD,eAAL;AACD;AAPmB;AADb,GANH;;AAkBRE,cAAY;AACVC,YAAQ;AACNL,YAAMM,MADA;AAENC,aAAO,MAFD;AAGNC,gBAAU;AAHJ,KADE;;AAOVC,iBAAa;AACXT,YAAMU,MADK;AAEXH,aAAO,CAFI;AAGXC,gBAAU;AAHC,KAPH;;AAaVG,YAAQ;AACNX,YAAMY,OADA;AAENL,aAAO,KAFD;AAGNC,gBAAU;AAHJ;AAbE,GAlBJ;;AAsCRK,WAAS;AACPX,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKY,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,oBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAMC,QAAW,MAAM,MAAKC,IAAL,CAAUb,WAA3B,MAAN;;AAEA,YAAIU,MAAM,CAAV,EAAa;AACXF,mBAASM,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZL,0BADY;AAEZhB,sBAAQ,MAAKiB,IAAL,CAAUjB,MAFN;AAGZM,sBAAQ,MAAKW,IAAL,CAAUX;AAHN,aAAd;AAKD,WAND;AAOD;AACF,OAhBY,EAgBV,EAhBU,CAAb;AAiBD;AA1BM;AAtCD,CAAV,E","file":"grid/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 31);\n","Component({\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../grid-item/index': {\n type: 'child',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n height: {\n type: String,\n value: 'auto',\n observer: '_updateChildren'\n },\n\n columnCount: {\n type: Number,\n value: 4,\n observer: '_updateChildren'\n },\n\n border: {\n type: Boolean,\n value: false,\n observer: '_updateChildren'\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let children = this.getRelationNodes('../grid-item/index')\n const len = children.length\n\n const width = `${100 / this.data.columnCount}%`;\n\n if (len > 0) {\n children.forEach((child, index) => {\n child.setData({\n width,\n height: this.data.height,\n border: this.data.border\n })\n })\n }\n }, 60)\n }\n }\n})\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/grid/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","height","String","value","observer","columnCount","Number","border","Boolean","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","width","data","forEach","child","index","setData"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,0BAAsB;AACpBC,YAAM,OADc;AAEpBC,YAFoB,oBAEX;AACP,aAAKC,eAAL;AACD,OAJmB;AAKpBC,cALoB,sBAKT;AACT,aAAKD,eAAL;AACD;AAPmB;AADb,GANH;;AAkBRE,cAAY;AACVC,YAAQ;AACNL,YAAMM,MADA;AAENC,aAAO,MAFD;AAGNC,gBAAU;AAHJ,KADE;;AAOVC,iBAAa;AACXT,YAAMU,MADK;AAEXH,aAAO,CAFI;AAGXC,gBAAU;AAHC,KAPH;;AAaVG,YAAQ;AACNX,YAAMY,OADA;AAENL,aAAO,KAFD;AAGNC,gBAAU;AAHJ;AAbE,GAlBJ;;AAsCRK,WAAS;AACPX,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKY,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,oBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAMC,QAAW,MAAM,MAAKC,IAAL,CAAUb,WAA3B,MAAN;;AAEA,YAAIU,MAAM,CAAV,EAAa;AACXF,mBAASM,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZL,0BADY;AAEZhB,sBAAQ,MAAKiB,IAAL,CAAUjB,MAFN;AAGZM,sBAAQ,MAAKW,IAAL,CAAUX;AAHN,aAAd;AAKD,WAND;AAOD;AACF,OAhBY,EAgBV,EAhBU,CAAb;AAiBD;AA1BM;AAtCD,CAAV,E","file":"grid/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","Component({\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../grid-item/index': {\n type: 'child',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n height: {\n type: String,\n value: 'auto',\n observer: '_updateChildren'\n },\n\n columnCount: {\n type: Number,\n value: 4,\n observer: '_updateChildren'\n },\n\n border: {\n type: Boolean,\n value: false,\n observer: '_updateChildren'\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let children = this.getRelationNodes('../grid-item/index')\n const len = children.length\n\n const width = `${100 / this.data.columnCount}%`;\n\n if (len > 0) {\n children.forEach((child, index) => {\n child.setData({\n width,\n height: this.data.height,\n border: this.data.border\n })\n })\n }\n }, 60)\n }\n }\n})\n"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 32);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 33);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 32:
90
+ /***/ 33:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/grid-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","value","iconColor","iconSize","Number","badgeDot","Boolean","badgeValue","optionalTypes","text","useSlot","linkType","url","data","width","height","border","methods","onClick","triggerEvent","wx","call"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,aAAW;AACT,qBAAiB;AACfC,YAAM;AADS;AADR,GALH;;AAWRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,eAAW;AACTL,YAAMG,MADG;AAETC,aAAO;AAFE,KALD;AASVE,cAAU;AACRN,YAAMO,MADE;AAERH,aAAO;AAFC,KATA;AAaVI,cAAU;AACRR,YAAMS,OADE;AAERL,aAAO;AAFC,KAbA;AAiBVM,gBAAY;AACVV,YAAMG,MADI;AAEVQ,qBAAe,CAACJ,MAAD,EAASJ,MAAT,CAFL;AAGVC,aAAO;AAHG,KAjBF;AAsBVQ,UAAM;AACJZ,YAAMG,MADF;AAEJC,aAAO;AAFH,KAtBI;AA0BVS,aAAS;AACPb,YAAMS,OADC;AAEPL,aAAO;AAFA,KA1BC;;AA+BV;AACAU,cAAU;AACRd,YAAMG,MADE;AAERC,aAAO;AAFC,KAhCA;AAoCVW,SAAK;AACHf,YAAMG,MADH;AAEHC,aAAO;AAFJ;AApCK,GAXJ;;AAqDRY,QAAM;AACJC,WAAO,EADH;AAEJC,YAAQ,EAFJ;AAGJC,YAAQ;AAHJ,GArDE;;AA2DRC,WAAS;AACPC,WADO,qBACG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAMP,MAAM,KAAKC,IAAL,CAAUD,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVQ,SAAG,KAAKP,IAAL,CAAUF,QAAb,EAAuBU,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BR;AAD8B,OAAhC;AAGD;AAVM;AA3DD,CAAV,E","file":"grid-item/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","Component({\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../grid/index': {\n type: 'parent'\n }\n },\n\n properties: {\n icon: {\n type: String,\n value: ''\n },\n iconColor: {\n type: String,\n value: ''\n },\n iconSize: {\n type: Number,\n value: 48\n },\n badgeDot: {\n type: Boolean,\n value: false\n },\n badgeValue: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n },\n text: {\n type: String,\n value: ''\n },\n useSlot: {\n type: Boolean,\n value: false\n },\n\n // 链接类型,可选值为 navigateTo,redirectTo,switchTab\n linkType: {\n type: String,\n value: 'navigateTo'\n },\n url: {\n type: String,\n value: ''\n }\n },\n\n data: {\n width: '',\n height: '',\n border: false\n },\n\n methods: {\n onClick() {\n this.triggerEvent('click')\n\n const url = this.data.url\n if (!url) return\n\n wx[this.data.linkType].call(wx, {\n url\n })\n }\n }\n})\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/grid-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","value","iconColor","iconSize","Number","badgeDot","Boolean","badgeValue","optionalTypes","text","useSlot","linkType","url","data","width","height","border","methods","onClick","triggerEvent","wx","call"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,aAAW;AACT,qBAAiB;AACfC,YAAM;AADS;AADR,GALH;;AAWRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,eAAW;AACTL,YAAMG,MADG;AAETC,aAAO;AAFE,KALD;AASVE,cAAU;AACRN,YAAMO,MADE;AAERH,aAAO;AAFC,KATA;AAaVI,cAAU;AACRR,YAAMS,OADE;AAERL,aAAO;AAFC,KAbA;AAiBVM,gBAAY;AACVV,YAAMG,MADI;AAEVQ,qBAAe,CAACJ,MAAD,EAASJ,MAAT,CAFL;AAGVC,aAAO;AAHG,KAjBF;AAsBVQ,UAAM;AACJZ,YAAMG,MADF;AAEJC,aAAO;AAFH,KAtBI;AA0BVS,aAAS;AACPb,YAAMS,OADC;AAEPL,aAAO;AAFA,KA1BC;;AA+BV;AACAU,cAAU;AACRd,YAAMG,MADE;AAERC,aAAO;AAFC,KAhCA;AAoCVW,SAAK;AACHf,YAAMG,MADH;AAEHC,aAAO;AAFJ;AApCK,GAXJ;;AAqDRY,QAAM;AACJC,WAAO,EADH;AAEJC,YAAQ,EAFJ;AAGJC,YAAQ;AAHJ,GArDE;;AA2DRC,WAAS;AACPC,WADO,qBACG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAMP,MAAM,KAAKC,IAAL,CAAUD,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVQ,SAAG,KAAKP,IAAL,CAAUF,QAAb,EAAuBU,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BR;AAD8B,OAAhC;AAGD;AAVM;AA3DD,CAAV,E","file":"grid-item/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 33);\n","Component({\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../grid/index': {\n type: 'parent'\n }\n },\n\n properties: {\n icon: {\n type: String,\n value: ''\n },\n iconColor: {\n type: String,\n value: ''\n },\n iconSize: {\n type: Number,\n value: 48\n },\n badgeDot: {\n type: Boolean,\n value: false\n },\n badgeValue: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n },\n text: {\n type: String,\n value: ''\n },\n useSlot: {\n type: Boolean,\n value: false\n },\n\n // 链接类型,可选值为 navigateTo,redirectTo,switchTab\n linkType: {\n type: String,\n value: 'navigateTo'\n },\n url: {\n type: String,\n value: ''\n }\n },\n\n data: {\n width: '',\n height: '',\n border: false\n },\n\n methods: {\n onClick() {\n this.triggerEvent('click')\n\n const url = this.data.url\n if (!url) return\n\n wx[this.data.linkType].call(wx, {\n url\n })\n }\n }\n})\n"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 25);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 26);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 25:
90
+ /***/ 26:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/icon/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","name","type","String","observer","val","setData","isImage","indexOf","size","Number","optionalTypes","value","fsize","parseInt","color","customStyle","data"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,cAFI,oBAEKC,GAFL,EAEU;AACZ,aAAKC,OAAL,CAAa;AACXC,mBAASF,IAAIG,OAAJ,CAAY,GAAZ,IAAmB,CAAC;AADlB,SAAb;AAGD;AANG,KADI;;AAUVC,UAAM;AACJP,YAAMQ,MADF;AAEJC,qBAAe,CAACD,MAAD,EAASP,MAAT,CAFX;AAGJS,aAAO,EAHH;AAIJR,cAJI,oBAIKC,GAJL,EAIU;AACZ,aAAKC,OAAL,CAAa;AACXO,iBAAOC,SAAST,GAAT;AADI,SAAb;AAGD;AARG,KAVI;AAoBVU,WAAO;AACLb,YAAMC,MADD;AAELS,aAAO;AAFF,KApBG;AAwBVI,iBAAa;AACXd,YAAMC,MADK;AAEXS,aAAO;AAFI;AAxBH,GAPJ;;AAqCRK,QAAM;AACJV,aAAS,KADL;AAEJM,WAAO;AAFH;AArCE,CAAV,E","file":"icon/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 25);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n name: {\n type: String,\n observer(val) {\n this.setData({\n isImage: val.indexOf('/') > -1\n })\n }\n },\n \n size: {\n type: Number,\n optionalTypes: [Number, String],\n value: 36,\n observer(val) {\n this.setData({\n fsize: parseInt(val)\n }) \n }\n },\n color: {\n type: String,\n value: ''\n },\n customStyle: {\n type: String,\n value: ''\n }\n },\n \n data: {\n isImage: false,\n fsize: 36\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/icon/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","name","type","String","observer","val","setData","isImage","indexOf","size","Number","optionalTypes","value","fsize","parseInt","color","customStyle","data"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,cAFI,oBAEKC,GAFL,EAEU;AACZ,aAAKC,OAAL,CAAa;AACXC,mBAASF,IAAIG,OAAJ,CAAY,GAAZ,IAAmB,CAAC;AADlB,SAAb;AAGD;AANG,KADI;;AAUVC,UAAM;AACJP,YAAMQ,MADF;AAEJC,qBAAe,CAACD,MAAD,EAASP,MAAT,CAFX;AAGJS,aAAO,EAHH;AAIJR,cAJI,oBAIKC,GAJL,EAIU;AACZ,aAAKC,OAAL,CAAa;AACXO,iBAAOC,SAAST,GAAT;AADI,SAAb;AAGD;AARG,KAVI;AAoBVU,WAAO;AACLb,YAAMC,MADD;AAELS,aAAO;AAFF,KApBG;AAwBVI,iBAAa;AACXd,YAAMC,MADK;AAEXS,aAAO;AAFI;AAxBH,GAPJ;;AAqCRK,QAAM;AACJV,aAAS,KADL;AAEJM,WAAO;AAFH;AArCE,CAAV,E","file":"icon/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 26);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n name: {\n type: String,\n observer(val) {\n this.setData({\n isImage: val.indexOf('/') > -1\n })\n }\n },\n \n size: {\n type: Number,\n optionalTypes: [Number, String],\n value: 36,\n observer(val) {\n this.setData({\n fsize: parseInt(val)\n }) \n }\n },\n color: {\n type: String,\n value: ''\n },\n customStyle: {\n type: String,\n value: ''\n }\n },\n \n data: {\n isImage: false,\n fsize: 36\n }\n})"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 33);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 34);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 33:
90
+ /***/ 34:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/timeline/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","lastIndex","forEach","child","index","setData","isLast"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,8BAA0B;AACxBC,YAAM,YADkB;;AAGxBC,YAHwB,oBAGf;AACP,aAAKC,eAAL;AACD,OALuB;AAOxBC,iBAPwB,yBAOV;AACZ,aAAKC,iBAAL;AACD,OATuB;AAWxBC,cAXwB,sBAWb;AACT,aAAKH,eAAL;AACD;AAbuB;AADjB,GANH;;AAwBRI,WAAS;AACPJ,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKK,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;AAC5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,wBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,mBAASK,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZC,sBAAQF,UAAUH;AADN,aAAd;AAGD,WAJD;AAKD;AACF,OAbY,EAaV,EAbU,CAAb;AAcD;AAvBM;AAxBD,CAAV,E","file":"timeline/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 33);\n","Component({\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../timeline-item/index': {\n type: 'descendant',\n\n linked() {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateDataChange();\n },\n\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n let children = this.getRelationNodes('../timeline-item/index')\n const len = children.length\n\n if (len > 0) {\n let lastIndex = len - 1\n\n children.forEach((child, index) => {\n child.setData({\n isLast: index === lastIndex\n })\n })\n }\n }, 60)\n }\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/timeline/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","lastIndex","forEach","child","index","setData","isLast"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,8BAA0B;AACxBC,YAAM,YADkB;;AAGxBC,YAHwB,oBAGf;AACP,aAAKC,eAAL;AACD,OALuB;AAOxBC,iBAPwB,yBAOV;AACZ,aAAKC,iBAAL;AACD,OATuB;AAWxBC,cAXwB,sBAWb;AACT,aAAKH,eAAL;AACD;AAbuB;AADjB,GANH;;AAwBRI,WAAS;AACPJ,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKK,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;AAC5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,wBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,mBAASK,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZC,sBAAQF,UAAUH;AADN,aAAd;AAGD,WAJD;AAKD;AACF,OAbY,EAaV,EAbU,CAAb;AAcD;AAvBM;AAxBD,CAAV,E","file":"timeline/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 34);\n","Component({\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../timeline-item/index': {\n type: 'descendant',\n\n linked() {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateDataChange();\n },\n\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n let children = this.getRelationNodes('../timeline-item/index')\n const len = children.length\n\n if (len > 0) {\n let lastIndex = len - 1\n\n children.forEach((child, index) => {\n child.setData({\n isLast: index === lastIndex\n })\n })\n }\n }, 60)\n }\n }\n})"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 34);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 35);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 34:
90
+ /***/ 35:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/timeline-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","text","color","data","isLast"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,yBAAqB;AACnBC,YAAM;AADa;AADZ,GANH;;AAYRC,cAAY;AACVC,UAAM;AACJF,YAAMG;AADF,KADI;AAIVC,UAAM;AACJJ,YAAMG;AADF,KAJI;AAOVE,WAAO;AACLL,YAAMG;AADD;AAPG,GAZJ;;AAwBRG,QAAM;AACJC,YAAQ;AADJ;AAxBE,CAAV,E","file":"timeline-item/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 34);\n","Component({\n \n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../timeline/index': {\n type: 'ancestor'\n }\n },\n\n properties: {\n icon: {\n type: String\n },\n text: {\n type: String,\n },\n color: {\n type: String\n }\n },\n\n data: {\n isLast: false\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/timeline-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","text","color","data","isLast"],"mappings":";;QAAA;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,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,yBAAqB;AACnBC,YAAM;AADa;AADZ,GANH;;AAYRC,cAAY;AACVC,UAAM;AACJF,YAAMG;AADF,KADI;AAIVC,UAAM;AACJJ,YAAMG;AADF,KAJI;AAOVE,WAAO;AACLL,YAAMG;AADD;AAPG,GAZJ;;AAwBRG,QAAM;AACJC,YAAQ;AADJ;AAxBE,CAAV,E","file":"timeline-item/index.js","sourcesContent":[" \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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 35);\n","Component({\n \n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../timeline/index': {\n type: 'ancestor'\n }\n },\n\n properties: {\n icon: {\n type: String\n },\n text: {\n type: String,\n },\n color: {\n type: String\n }\n },\n\n data: {\n isLast: false\n }\n})"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulade-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "轻量、可靠的小程序 UI 组件库",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,79 @@
1
+ const CLOUD_PROVIDERS = {
2
+ myqcloud: "https://bloodcare-1251596343.cos.ap-shanghai.myqcloud.com/assets",
3
+ aliyun: "https://bulade-donate.oss-cn-beijing.aliyuncs.com/img",
4
+ };
5
+
6
+ Component({
7
+ externalClasses: ["iclass"],
8
+ properties: {
9
+ src: {
10
+ type: String,
11
+ value: "",
12
+ },
13
+ mode: {
14
+ type: String,
15
+ value: "",
16
+ },
17
+ provider: {
18
+ type: String,
19
+ value: "myqcloud",
20
+ },
21
+ showMenuByLongpress: {
22
+ type: Boolean,
23
+ value: false,
24
+ },
25
+ thumbnail: {
26
+ type: String,
27
+ value: "800x800",
28
+ },
29
+ fadeIn: {
30
+ type: Boolean,
31
+ value: false,
32
+ },
33
+ },
34
+
35
+ data: {
36
+ fullSrc: "",
37
+ loading: true,
38
+ },
39
+
40
+ observers: {
41
+ src: function (src) {
42
+ if (!src) {
43
+ return;
44
+ }
45
+
46
+ let fullSrc = "";
47
+ if (src.startsWith("http")) {
48
+ fullSrc = src;
49
+ } else {
50
+ fullSrc = `${CLOUD_PROVIDERS[this.data.provider]}/${src}`;
51
+ }
52
+
53
+ if (fullSrc.includes(".cos.ap-shanghai.myqcloud.com")) {
54
+ fullSrc = `${fullSrc}?imageMogr2/format/webp`;
55
+
56
+ if (this.data.thumbnail) {
57
+ fullSrc = `${fullSrc}/thumbnail/${this.data.thumbnail}`;
58
+ }
59
+ }
60
+
61
+ if (this.data.fullSrc === fullSrc) {
62
+ return;
63
+ }
64
+
65
+ this.setData({
66
+ loading: true,
67
+ fullSrc,
68
+ });
69
+ },
70
+ },
71
+
72
+ methods: {
73
+ loaded: function (e) {
74
+ this.setData({
75
+ loading: false,
76
+ });
77
+ },
78
+ },
79
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "component": true
3
+ }
@@ -0,0 +1,3 @@
1
+ .img {
2
+ background: #eee;
3
+ }
@@ -0,0 +1,14 @@
1
+ <image
2
+ wx:if="{{ fullSrc }}"
3
+ class="iclass"
4
+ src="{{ fullSrc }}"
5
+ webp
6
+ mode="{{ mode }}"
7
+ show-menu-by-longpress="{{ showMenuByLongpress }}"
8
+ bind:load="loaded"
9
+ fade-in="{{ fadeIn }}"
10
+ />
11
+ <view
12
+ wx:else
13
+ class="img iclass"
14
+ />
@@ -0,0 +1,3 @@
1
+ .img {
2
+ background: #eee;
3
+ }
@@ -3,7 +3,6 @@ const app = getApp();
3
3
  const deviceInfo = app.globalData.deviceInfo;
4
4
  const systemInfo = app.globalData.systemInfo;
5
5
  const menuButtonInfo = app.globalData.menuButtonDistance;
6
-
7
6
  const screenWidth = systemInfo.screenWidth;
8
7
 
9
8
  const statusBarHeight = systemInfo.statusBarHeight;
@@ -41,9 +40,14 @@ Component({
41
40
  type: Boolean,
42
41
  value: false,
43
42
  },
43
+ textAlign: {
44
+ type: String,
45
+ value: "left",
46
+ },
44
47
  },
45
48
  data: {
46
49
  style: _baseStyle.join(";"),
50
+ titleStyle: "",
47
51
  },
48
52
  lifetimes: {
49
53
  ready() {
@@ -67,11 +71,35 @@ Component({
67
71
  });
68
72
  }
69
73
  },
74
+
75
+ goBack: function (goBack) {
76
+ if (this.data.textAlign == "left") {
77
+ this.setData({
78
+ titleStyle: `justify-content: flex-start; padding-left: ${(12 - padding) * 2}rpx;`,
79
+ });
80
+ return;
81
+ }
82
+
83
+ if (goBack) {
84
+ this.createSelectorQuery()
85
+ .select(".operations")
86
+ .boundingClientRect((res) => {
87
+ this.setData({
88
+ titleStyle: `padding-left: ${(menuButtonInfo.width - padding - res.height) * 2}rpx`,
89
+ });
90
+ })
91
+ .exec();
92
+ } else {
93
+ this.setData({
94
+ titleStyle: `padding-left: ${(menuButtonInfo.width - padding) * 2}rpx`,
95
+ });
96
+ }
97
+ },
70
98
  },
71
99
  methods: {
72
100
  navigateHome() {
73
101
  wx.switchTab({
74
- url: "/pages/main/index",
102
+ url: "/pages/home/index",
75
103
  });
76
104
  },
77
105
 
@@ -13,7 +13,7 @@
13
13
  .title {
14
14
  flex: 1;
15
15
  display: flex;
16
- justify-content: flex-start;
16
+ justify-content: center;
17
17
  align-items: center;
18
18
  }
19
19
 
@@ -37,4 +37,4 @@
37
37
  margin-left: 12rpx;
38
38
  }
39
39
  }
40
- }
40
+ }
@@ -11,7 +11,12 @@
11
11
  <bld-icon name="backward" />
12
12
  </view>
13
13
  </view>
14
- <view class="title"> <slot wx:if="{{ showTitle }}" /> </view>
14
+ <view
15
+ class="title"
16
+ style="{{ titleStyle }}"
17
+ >
18
+ <slot wx:if="{{ showTitle }}" />
19
+ </view>
15
20
  <view class="operations right">
16
21
  <button
17
22
  wx:if="{{ showShare }}"
@@ -13,7 +13,7 @@
13
13
  .title {
14
14
  flex: 1;
15
15
  display: flex;
16
- justify-content: flex-start;
16
+ justify-content: center;
17
17
  align-items: center;
18
18
  }
19
19