bulade-ui 1.0.0 → 1.0.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.
Files changed (91) hide show
  1. package/miniprogram_dist/bld-button/index.js +2 -1
  2. package/miniprogram_dist/bld-button/index.js.map +1 -0
  3. package/miniprogram_dist/bld-card/index.js +2 -1
  4. package/miniprogram_dist/bld-card/index.js.map +1 -0
  5. package/miniprogram_dist/bld-cell/index.js +2 -1
  6. package/miniprogram_dist/bld-cell/index.js.map +1 -0
  7. package/miniprogram_dist/bld-cell-field/index.js +2 -1
  8. package/miniprogram_dist/bld-cell-field/index.js.map +1 -0
  9. package/miniprogram_dist/bld-cell-group/index.js +2 -1
  10. package/miniprogram_dist/bld-cell-group/index.js.map +1 -0
  11. package/miniprogram_dist/bld-drawer/index.js +141 -0
  12. package/miniprogram_dist/bld-drawer/index.js.map +1 -0
  13. package/miniprogram_dist/bld-drawer/index.json +3 -0
  14. package/miniprogram_dist/bld-drawer/index.wxml +14 -0
  15. package/miniprogram_dist/bld-drawer/index.wxss +57 -0
  16. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js +2 -1
  17. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -0
  18. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js +2 -1
  19. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -0
  20. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js +2 -1
  21. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -0
  22. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js +2 -1
  23. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -0
  24. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js +2 -1
  25. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -0
  26. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js +2 -1
  27. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -0
  28. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js +2 -1
  29. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -0
  30. package/miniprogram_dist/bld-half-screen/index.js +2 -1
  31. package/miniprogram_dist/bld-half-screen/index.js.map +1 -0
  32. package/miniprogram_dist/bld-icon/index.js +2 -1
  33. package/miniprogram_dist/bld-icon/index.js.map +1 -0
  34. package/miniprogram_dist/bld-loading/index.js +2 -1
  35. package/miniprogram_dist/bld-loading/index.js.map +1 -0
  36. package/miniprogram_dist/bld-message/index.js +2 -1
  37. package/miniprogram_dist/bld-message/index.js.map +1 -0
  38. package/miniprogram_dist/bld-message/message.js +2 -1
  39. package/miniprogram_dist/bld-message/message.js.map +1 -0
  40. package/miniprogram_dist/bld-nav-bar/index.js +32 -4
  41. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -0
  42. package/miniprogram_dist/bld-nav-bar/index.wxml +6 -1
  43. package/miniprogram_dist/bld-nav-bar/index.wxss +1 -1
  44. package/miniprogram_dist/bld-overlay/index.js +2 -1
  45. package/miniprogram_dist/bld-overlay/index.js.map +1 -0
  46. package/miniprogram_dist/bld-page/index.js +2 -1
  47. package/miniprogram_dist/bld-page/index.js.map +1 -0
  48. package/miniprogram_dist/bld-retry/index.js +2 -1
  49. package/miniprogram_dist/bld-retry/index.js.map +1 -0
  50. package/miniprogram_dist/bld-scroll-view/index.js +2 -1
  51. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -0
  52. package/miniprogram_dist/bld-text/index.js +2 -1
  53. package/miniprogram_dist/bld-text/index.js.map +1 -0
  54. package/miniprogram_dist/bld-toast/index.js +2 -2
  55. package/miniprogram_dist/bld-toast/index.js.map +1 -0
  56. package/miniprogram_dist/bld-toast/toast.js +2 -1
  57. package/miniprogram_dist/bld-toast/toast.js.map +1 -0
  58. package/miniprogram_dist/bld-wrapper/index.js +2 -1
  59. package/miniprogram_dist/bld-wrapper/index.js.map +1 -0
  60. package/miniprogram_dist/button/index.js +2 -1
  61. package/miniprogram_dist/button/index.js.map +1 -0
  62. package/miniprogram_dist/cell/index.js +4 -3
  63. package/miniprogram_dist/cell/index.js.map +1 -0
  64. package/miniprogram_dist/cell-group/index.js +4 -3
  65. package/miniprogram_dist/cell-group/index.js.map +1 -0
  66. package/miniprogram_dist/grid/index.js +4 -3
  67. package/miniprogram_dist/grid/index.js.map +1 -0
  68. package/miniprogram_dist/grid-item/index.js +4 -3
  69. package/miniprogram_dist/grid-item/index.js.map +1 -0
  70. package/miniprogram_dist/icon/index.js +2 -1
  71. package/miniprogram_dist/icon/index.js.map +1 -0
  72. package/miniprogram_dist/timeline/index.js +4 -3
  73. package/miniprogram_dist/timeline/index.js.map +1 -0
  74. package/miniprogram_dist/timeline-item/index.js +4 -3
  75. package/miniprogram_dist/timeline-item/index.js.map +1 -0
  76. package/package.json +1 -1
  77. package/src/bld-drawer/index.js +41 -0
  78. package/src/bld-drawer/index.json +3 -0
  79. package/src/bld-drawer/index.scss +74 -0
  80. package/src/bld-drawer/index.wxml +14 -0
  81. package/src/bld-drawer/index.wxss +57 -0
  82. package/src/bld-nav-bar/index.js +30 -2
  83. package/src/bld-nav-bar/index.scss +2 -2
  84. package/src/bld-nav-bar/index.wxml +6 -1
  85. package/src/bld-nav-bar/index.wxss +1 -1
  86. package/src/bld-nav-bar1/index.js +90 -0
  87. package/src/bld-nav-bar1/index.json +6 -0
  88. package/src/bld-nav-bar1/index.scss +40 -0
  89. package/src/bld-nav-bar1/index.wxml +24 -0
  90. package/src/bld-nav-bar1/index.wxss +36 -0
  91. package/src/bld-toast/index.js +0 -1
@@ -105,4 +105,5 @@ Component({
105
105
 
106
106
  /***/ })
107
107
 
108
- /******/ });
108
+ /******/ });
109
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-loading/index.js"],"names":["Component","externalClasses","properties","text","type","String","value"],"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,YAAD,EAAe,WAAf,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI;AAFJ,CAAV,E","file":"bld-loading/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 = 16);\n","Component({\n externalClasses: [\"icon-class\", \"tip-class\"],\n properties: {\n text: {\n type: String,\n value: \"努力加载中\",\n },\n },\n});\n"],"sourceRoot":""}
@@ -190,4 +190,5 @@ Component({
190
190
 
191
191
  /***/ })
192
192
 
193
- /******/ });
193
+ /******/ });
194
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-message/index.js"],"names":["defaults_data","visible","content","duration","zIndex","top","timer","Component","externalClasses","options","addGlobalClass","data","ready","wx","canIUse","windowInfo","getWindowInfo","computedBarH","getSystemInfo","success","methods","screenHeight","windowHeight","statusBarHeight","customBarH","capsule","getMenuButtonBoundingClientRect","bottom","setData","open","type","showClose","clearTimeout","setTimeout","close"],"mappings":"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","file":"bld-message/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 = 23);\n","const defaults_data = {\n\tvisible: false,\n\tcontent: '',\n\tduration: 2000,\n\tzIndex: -1,\n\ttop: '0px'\n}\n\nlet timer = null\n\nComponent({\n\texternalClasses: ['custom-class'],\n\n\toptions: {\n\t\taddGlobalClass: true,\n\t},\n\n\tdata: defaults_data,\n\n\tready() {\n\t\tif (wx.canIUse('getWindowInfo')) {\n\t\t\tconst windowInfo = wx.getWindowInfo()\n\t\t\tthis.computedBarH(windowInfo)\n\t\t} else {\n\t\t\t// 该方法为同步\n\t\t\twx.getSystemInfo({\n\t\t\t\tsuccess: (windowInfo) => {\n\t\t\t\t\tthis.computedBarH(windowInfo)\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t},\n\n\tmethods: {\n\t\tcomputedBarH(windowInfo) {\n\t\t\tconst {\n\t\t\t\tscreenHeight,\n\t\t\t\twindowHeight,\n\t\t\t\tstatusBarHeight\n\t\t\t} = windowInfo;\n\n\t\t\t// 自定义导航栏\n\t\t\tif (screenHeight === windowHeight) {\n\t\t\t\tlet customBarH = 44;\n\t\t\t\tlet capsule = wx.getMenuButtonBoundingClientRect();\n\t\t\t\tif (capsule) {\n\t\t\t\t\tcustomBarH = capsule.bottom - statusBarHeight + 4;\n\t\t\t\t}\n\n\t\t\t\tdefaults_data.top = customBarH + statusBarHeight + 'px'\n\t\t\t\tthis.setData({\n\t\t\t\t\ttop: customBarH + statusBarHeight + 'px'\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\n\n\t\topen(options) {\n\t\t\tconst {\n\t\t\t\ttype = 'primary',\n\t\t\t\t\tduration = 2000,\n\t\t\t\t\tzIndex = 2000,\n\t\t\t\t\tshowClose = false\n\t\t\t} = options\n\n\t\t\tthis.setData({\n\t\t\t\t...options,\n\t\t\t\ttype,\n\t\t\t\tduration,\n\t\t\t\tzIndex,\n\t\t\t\tshowClose,\n\t\t\t\tvisible: true\n\t\t\t})\n\n\t\t\tif (timer) clearTimeout(timer)\n\n\t\t\tif (duration) {\n\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\tthis.close()\n\t\t\t\t\ttimer = null\n\t\t\t\t}, duration)\n\t\t\t}\n\t\t},\n\n\t\tclose() {\n\t\t\tthis.setData({\n\t\t\t\t...defaults_data\n\t\t\t})\n\t\t}\n\t}\n})"],"sourceRoot":""}
@@ -160,4 +160,5 @@ exports.default = Message;
160
160
 
161
161
  /***/ })
162
162
 
163
- /******/ });
163
+ /******/ });
164
+ //# sourceMappingURL=message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-message/message.js"],"names":["getCtx","selector","pages","getCurrentPages","ctx","length","componentCtx","selectComponent","console","error","Message","options","content","open","primary","success","Object","assign","type","warning"],"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;;;;;;;;;;;;AClFA,SAASA,MAAT,CAAgBC,QAAhB,EAA0B;AACxB,MAAMC,QAAQC,iBAAd;AACA,MAAMC,MAAMF,MAAMA,MAAMG,MAAN,GAAe,CAArB,CAAZ;AACA,MAAMC,eAAeF,IAAIG,eAAJ,CAAoBN,QAApB,CAArB;AACA,MAAI,CAACK,YAAL,EAAmB;AACjBE,YAAQC,KAAR,CAAc,sBAAd;AACA,WAAO,IAAP;AACD;AACD,SAAOH,YAAP;AACD;;AAED,IAAMI,UAAU,SAAVA,OAAU,UAAW;AAAA,iBAGrBC,OAHqB;AAAA,mCAEvBV,QAFuB;AAAA,MAEvBA,QAFuB,qCAEZ,UAFY;;AAIzB,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;AACA,MAAI,OAAOU,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD;AADD,KAAV;AAGD;AACDP,MAAIS,IAAJ,CAASF,OAAT;;AAEA,SAAOP,GAAP;AACD,CAbD;;AAeAM,QAAQI,OAAR,GAAkBJ,OAAlB;;AAEAA,QAAQK,OAAR,GAAkB,mBAAW;AAC3B,MAAI,OAAOJ,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD;AADD,KAAV;AAGD;AACDD,UAAQM,OAAOC,MAAP,CAAc;AACpBC,UAAM;AADc,GAAd,EAELP,OAFK,CAAR;AAGD,CATD;;AAWAD,QAAQS,OAAR,GAAkB,mBAAW;AAC3B,MAAI,OAAOR,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD;AADD,KAAV;AAGD;AACDD,UAAQM,OAAOC,MAAP,CAAc;AACpBC,UAAM;AADc,GAAd,EAELP,OAFK,CAAR;AAGD,CATD;;AAWAD,QAAQD,KAAR,GAAgB,mBAAW;AACzB,MAAI,OAAOE,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD;AADD,KAAV;AAGD;AACDD,UAAQM,OAAOC,MAAP,CAAc;AACpBC,UAAM;AADc,GAAd,EAELP,OAFK,CAAR;AAGD,CATD;;kBAWeD,O","file":"bld-message/message.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 = 24);\n","function getCtx(selector) {\n const pages = getCurrentPages()\n const ctx = pages[pages.length - 1]\n const componentCtx = ctx.selectComponent(selector)\n if (!componentCtx) {\n console.error('无法找到对应的组件,请按文档说明使用组件')\n return null\n }\n return componentCtx\n}\n\nconst Message = options => {\n const {\n selector = '#message'\n } = options\n const ctx = getCtx(selector)\n if (typeof options === \"string\") {\n options = {\n content: options\n }\n }\n ctx.open(options)\n\n return ctx\n}\n\nMessage.primary = Message\n\nMessage.success = options => {\n if (typeof options === \"string\") {\n options = {\n content: options\n }\n }\n Message(Object.assign({\n type: 'success'\n }, options))\n}\n\nMessage.warning = options => {\n if (typeof options === \"string\") {\n options = {\n content: options\n }\n }\n Message(Object.assign({\n type: 'warning'\n }, options))\n}\n\nMessage.error = options => {\n if (typeof options === \"string\") {\n options = {\n content: options\n }\n }\n Message(Object.assign({\n type: 'error'\n }, options))\n}\n\nexport default Message"],"sourceRoot":""}
@@ -98,7 +98,6 @@ var app = getApp();
98
98
  var deviceInfo = app.globalData.deviceInfo;
99
99
  var systemInfo = app.globalData.systemInfo;
100
100
  var menuButtonInfo = app.globalData.menuButtonDistance;
101
-
102
101
  var screenWidth = systemInfo.screenWidth;
103
102
 
104
103
  var statusBarHeight = systemInfo.statusBarHeight;
@@ -127,10 +126,15 @@ Component({
127
126
  showShare: {
128
127
  type: Boolean,
129
128
  value: false
129
+ },
130
+ textAlign: {
131
+ type: String,
132
+ value: "left"
130
133
  }
131
134
  },
132
135
  data: {
133
- style: _baseStyle.join(";")
136
+ style: _baseStyle.join(";"),
137
+ titleStyle: ""
134
138
  },
135
139
  lifetimes: {
136
140
  ready: function ready() {
@@ -153,12 +157,35 @@ Component({
153
157
  style: _baseStyle.join(";")
154
158
  });
155
159
  }
160
+ },
161
+
162
+ goBack: function goBack(_goBack) {
163
+ var _this = this;
164
+
165
+ if (this.data.textAlign == "left") {
166
+ this.setData({
167
+ titleStyle: "justify-content: flex-start; padding-left: " + (12 - padding) * 2 + "rpx;"
168
+ });
169
+ return;
170
+ }
171
+
172
+ if (_goBack) {
173
+ this.createSelectorQuery().select(".operations").boundingClientRect(function (res) {
174
+ _this.setData({
175
+ titleStyle: "padding-left: " + (menuButtonInfo.width - padding - res.height) * 2 + "rpx"
176
+ });
177
+ }).exec();
178
+ } else {
179
+ this.setData({
180
+ titleStyle: "padding-left: " + (menuButtonInfo.width - padding) * 2 + "rpx"
181
+ });
182
+ }
156
183
  }
157
184
  },
158
185
  methods: {
159
186
  navigateHome: function navigateHome() {
160
187
  wx.switchTab({
161
- url: "/pages/main/index"
188
+ url: "/pages/home/index"
162
189
  });
163
190
  },
164
191
  navigateBack: function navigateBack() {
@@ -177,4 +204,5 @@ Component({
177
204
 
178
205
  /***/ })
179
206
 
180
- /******/ });
207
+ /******/ });
208
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-nav-bar/index.js"],"names":["app","getApp","deviceInfo","globalData","systemInfo","menuButtonInfo","menuButtonDistance","screenWidth","statusBarHeight","gap","top","padding","right","_baseStyle","height","width","Component","externalClasses","options","multipleSlots","properties","bgColor","type","String","goBack","Boolean","value","showTitle","showShare","textAlign","data","style","join","titleStyle","lifetimes","ready","totalHeight","triggerEvent","observers","_style","push","setData","createSelectorQuery","select","boundingClientRect","res","exec","methods","navigateHome","wx","switchTab","url","navigateBack","pages","getCurrentPages","length"],"mappings":"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","file":"bld-nav-bar/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 = 17);\n","const app = getApp();\n\nconst deviceInfo = app.globalData.deviceInfo;\nconst systemInfo = app.globalData.systemInfo;\nconst menuButtonInfo = app.globalData.menuButtonDistance;\nconst screenWidth = systemInfo.screenWidth;\n\nconst statusBarHeight = systemInfo.statusBarHeight;\nconst gap = menuButtonInfo.top - statusBarHeight;\nconst padding = screenWidth - menuButtonInfo.right;\n\nconst _baseStyle = [\n `padding-top: ${menuButtonInfo.top}px`,\n `padding-bottom: ${gap}px`,\n `line-height: ${menuButtonInfo.height}px`,\n `height: ${menuButtonInfo.height}px`,\n `padding-left: ${padding}px`,\n `padding-right: ${padding * 2 + menuButtonInfo.width}px`,\n `width: calc(100% - ${3 * padding + menuButtonInfo.width}px)`,\n];\n\nComponent({\n externalClasses: [\"iclass\"],\n options: {\n multipleSlots: true, // 在组件定义时的选项中启用多slot支持\n },\n properties: {\n bgColor: {\n type: String,\n },\n goBack: {\n type: Boolean,\n value: false,\n },\n showTitle: {\n type: Boolean,\n value: true,\n },\n showShare: {\n type: Boolean,\n value: false,\n },\n textAlign: {\n type: String,\n value: \"left\",\n },\n },\n data: {\n style: _baseStyle.join(\";\"),\n titleStyle: \"\",\n },\n lifetimes: {\n ready() {\n const totalHeight = menuButtonInfo.top + menuButtonInfo.height + gap;\n\n this.triggerEvent(\"height-change\", totalHeight);\n },\n },\n observers: {\n bgColor: function (bgColor) {\n if (bgColor) {\n const _style = [..._baseStyle];\n\n _style.push(`background-color: ${bgColor}`);\n this.setData({\n style: _style.join(\";\"),\n });\n } else {\n this.setData({\n style: _baseStyle.join(\";\"),\n });\n }\n },\n\n goBack: function (goBack) {\n if (this.data.textAlign == \"left\") {\n this.setData({\n titleStyle: `justify-content: flex-start; padding-left: ${(12 - padding) * 2}rpx;`,\n });\n return;\n }\n\n if (goBack) {\n this.createSelectorQuery()\n .select(\".operations\")\n .boundingClientRect((res) => {\n this.setData({\n titleStyle: `padding-left: ${(menuButtonInfo.width - padding - res.height) * 2}rpx`,\n });\n })\n .exec();\n } else {\n this.setData({\n titleStyle: `padding-left: ${(menuButtonInfo.width - padding) * 2}rpx`,\n });\n }\n },\n },\n methods: {\n navigateHome() {\n wx.switchTab({\n url: \"/pages/home/index\",\n });\n },\n\n navigateBack() {\n const pages = getCurrentPages();\n\n if (pages.length > 1) {\n wx.navigateBack();\n\n return;\n }\n\n this.navigateHome();\n },\n },\n});\n"],"sourceRoot":""}
@@ -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
 
@@ -113,4 +113,5 @@ Component({
113
113
 
114
114
  /***/ })
115
115
 
116
- /******/ });
116
+ /******/ });
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-overlay/index.js"],"names":["Component","externalClasses","properties","show","type","Boolean","contentPosition","String","value","methods","hide","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;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC;AADF,KADI;AAIVC,qBAAiB;AACfF,YAAMG,MADS;AAEfC,aAAO;AAFQ;AAJP,GAFJ;AAWRC,WAAS;AACPC,QADO,kBACA;AACL,WAAKC,OAAL,CAAa,EAAER,MAAM,KAAR,EAAb;AACD;AAHM;AAXD,CAAV,E","file":"bld-overlay/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 = 18);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n show: {\n type: Boolean,\n },\n contentPosition: {\n type: String,\n value: \"bottom\",\n },\n },\n methods: {\n hide() {\n this.setData({ show: false });\n },\n },\n});\n"],"sourceRoot":""}
@@ -174,4 +174,5 @@ Component({
174
174
 
175
175
  /***/ })
176
176
 
177
- /******/ });
177
+ /******/ });
178
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-page/index.js"],"names":["Component","externalClasses","options","multipleSlots","properties","navBarMode","type","String","value","navBarShowDistance","Number","navBarShowShare","Boolean","navBarBgColor","navBarGoBack","mode","scrollTop","data","_navBarShowTitle","_navBarBgColor","lifetimes","attached","setData","methods","scroll","e","triggerEvent","detail","showNavBarAfterScroll","scrollToLower","ok"],"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,YAAD,EAAe,eAAf,EAAgC,eAAhC,EAAiD,cAAjD,CADT;AAERC,WAAS;AACPC,mBAAe;AADR,GAFD;AAKRC,cAAY;AACVC,gBAAY;AACVC,YAAMC,MADI;AAEVC,aAAO;AAFG,KADF;AAKVC,wBAAoB;AAClBH,YAAMI,MADY;AAElBF,aAAO;AAFW,KALV;AASVG,qBAAiB;AACfL,YAAMM,OADS;AAEfJ,aAAO;AAFQ,KATP;AAaVK,mBAAe;AACbP,YAAMC,MADO;AAEbC,aAAO;AAFM,KAbL;AAiBVM,kBAAc;AACZR,YAAMM,OADM;AAEZJ,aAAO;AAFK,KAjBJ;AAqBVO,UAAM;AACJT,YAAMC,MADF;AAEJC,aAAO;AAFH,KArBI;AAyBVQ,eAAW;AACTV,YAAMI,MADG;AAETF,aAAO;AAFE;AAzBD,GALJ;AAmCRS,QAAM;AACJC,sBAAkB,IADd;AAEJC,oBAAgB;AAFZ,GAnCE;AAuCRC,aAAW;AACTC,YADS,sBACE;AACT,UAAI,KAAKJ,IAAL,CAAUZ,UAAV,IAAwB,QAA5B,EAAsC;AACpC,aAAKiB,OAAL,CAAa;AACXJ,4BAAkB,IADP;AAEXC,0BAAgB,KAAKF,IAAL,CAAUJ;AAFf,SAAb;AAID,OALD,MAKO,IAAI,KAAKI,IAAL,CAAUZ,UAAV,IAAwB,mBAA5B,EAAiD;AACtD,aAAKiB,OAAL,CAAa;AACXJ,4BAAkB,KADP;AAEXC,0BAAgB;AAFL,SAAb;AAID;AACF;AAbQ,GAvCH;AAsDRI,WAAS;AACPC,UADO,kBACAC,CADA,EACG;AACR,WAAKC,YAAL,CAAkB,QAAlB,eAAiCD,EAAEE,MAAnC;AACA,WAAKC,qBAAL,CAA2BH,CAA3B;AACD,KAJM;AAMPI,iBANO,yBAMOJ,CANP,EAMU;AACf,WAAKC,YAAL,CAAkB,eAAlB,eAAwCD,EAAEE,MAA1C;AACD,KARM;AAUPC,yBAVO,iCAUeH,CAVf,EAUkB;AACvB,UAAI,KAAKR,IAAL,CAAUZ,UAAV,IAAwB,mBAA5B,EAAiD;AAC/C;AACD;;AAED,UAAMyB,KAAKL,EAAEE,MAAF,CAASX,SAAT,GAAqB,KAAKC,IAAL,CAAUR,kBAA1C;;AAEA,WAAKa,OAAL,CAAa;AACXJ,0BAAkBY,EADP;AAEXX,wBAAgBW,KAAK,KAAKb,IAAL,CAAUJ,aAAf,GAA+B;AAFpC,OAAb;AAID;AArBM;AAtDD,CAAV,E","file":"bld-page/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 = 20);\n","Component({\n externalClasses: [\"page-class\", \"nav-bar-class\", \"content-class\", \"footer-class\"],\n options: {\n multipleSlots: true,\n },\n properties: {\n navBarMode: {\n type: String,\n value: \"always\",\n },\n navBarShowDistance: {\n type: Number,\n value: 50,\n },\n navBarShowShare: {\n type: Boolean,\n value: false,\n },\n navBarBgColor: {\n type: String,\n value: \"#fff\",\n },\n navBarGoBack: {\n type: Boolean,\n value: true,\n },\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n scrollTop: {\n type: Number,\n value: 0,\n },\n },\n data: {\n _navBarShowTitle: true,\n _navBarBgColor: \"\",\n },\n lifetimes: {\n attached() {\n if (this.data.navBarMode == \"always\") {\n this.setData({\n _navBarShowTitle: true,\n _navBarBgColor: this.data.navBarBgColor,\n });\n } else if (this.data.navBarMode == \"show-after-scroll\") {\n this.setData({\n _navBarShowTitle: false,\n _navBarBgColor: null,\n });\n }\n },\n },\n methods: {\n scroll(e) {\n this.triggerEvent(\"scroll\", { ...e.detail });\n this.showNavBarAfterScroll(e);\n },\n\n scrollToLower(e) {\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\n },\n\n showNavBarAfterScroll(e) {\n if (this.data.navBarMode != \"show-after-scroll\") {\n return;\n }\n\n const ok = e.detail.scrollTop > this.data.navBarShowDistance;\n\n this.setData({\n _navBarShowTitle: ok,\n _navBarBgColor: ok ? this.data.navBarBgColor : null,\n });\n },\n },\n});\n"],"sourceRoot":""}
@@ -119,4 +119,5 @@ Component({
119
119
 
120
120
  /***/ })
121
121
 
122
- /******/ });
122
+ /******/ });
123
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-retry/index.js"],"names":["Component","externalClasses","properties","title","type","String","value","description","actionText","methods","retry","triggerEvent"],"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,QAAD,CADT;AAERC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,iBAAa;AACXH,YAAMC,MADK;AAEXC,aAAO;AAFI,KALH;AASVE,gBAAY;AACVJ,YAAMC,MADI;AAEVC,aAAO;AAFG;AATF,GAFJ;;AAiBRG,WAAS;AACPC,SADO,mBACC;AACN,WAAKC,YAAL,CAAkB,UAAlB;AACD;AAHM;AAjBD,CAAV,E","file":"bld-retry/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 = 21);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n title: {\n type: String,\n value: \"加载失败\",\n },\n description: {\n type: String,\n value: \"发生了一些错误\",\n },\n actionText: {\n type: String,\n value: \"点击重试\",\n },\n },\n\n methods: {\n retry() {\n this.triggerEvent(\"on-retry\");\n },\n },\n});\n"],"sourceRoot":""}
@@ -126,4 +126,5 @@ Component({
126
126
 
127
127
  /***/ })
128
128
 
129
- /******/ });
129
+ /******/ });
130
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-scroll-view/index.js"],"names":["Component","externalClasses","properties","type","String","value","mode","scrollTop","Number","methods","scroll","e","triggerEvent","detail","scrollEnd","scrollToLower"],"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,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,UAAM;AACJH,YAAMC,MADF;AAEJC,aAAO;AAFH,KALI;AASVE,eAAW;AACTJ,YAAMK,MADG;AAETH,aAAO;AAFE;AATD,GAFJ;AAgBRI,WAAS;AACPC,UADO,kBACAC,CADA,EACG;AACR,WAAKC,YAAL,CAAkB,QAAlB,eAAiCD,EAAEE,MAAnC;AACD,KAHM;AAIPC,aAJO,qBAIGH,CAJH,EAIM;AACX,WAAKC,YAAL,CAAkB,WAAlB,eAAoCD,EAAEE,MAAtC;AACD,KANM;AAOPE,iBAPO,yBAOOJ,CAPP,EAOU;AACf,WAAKC,YAAL,CAAkB,eAAlB,eAAwCD,EAAEE,MAA1C;AACD;AATM;AAhBD,CAAV,E","file":"bld-scroll-view/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 = 22);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n type: {\n type: String,\n value: \"list\",\n },\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n scrollTop: {\n type: Number,\n value: 0,\n },\n },\n methods: {\n scroll(e) {\n this.triggerEvent(\"scroll\", { ...e.detail });\n },\n scrollEnd(e) {\n this.triggerEvent(\"scrollEnd\", { ...e.detail });\n },\n scrollToLower(e) {\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\n },\n },\n});\n"],"sourceRoot":""}
@@ -142,4 +142,5 @@ Component({
142
142
 
143
143
  /***/ })
144
144
 
145
- /******/ });
145
+ /******/ });
146
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-text/index.js"],"names":["Component","externalClasses","properties","text","type","String","value","maxLines","Number","stripHtml","Boolean","stripInVisible","size","data","formattedText","observers","replace","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;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,cAAU;AACRH,YAAMI,MADE;AAERF,aAAO;AAFC,KALA;AASVG,eAAW;AACTL,YAAMM,OADG;AAETJ,aAAO;AAFE,KATD;AAaVK,oBAAgB;AACdP,YAAMM,OADQ;AAEdJ,aAAO;AAFO,KAbN;AAiBVM,UAAM;AACJR,YAAMC,MADF;AAEJC,aAAO;AAFH;AAjBI,GAFJ;AAwBRO,QAAM;AACJC,mBAAe;AADX,GAxBE;AA2BRC,aAAW;AACTZ,QADS,kBACF;AACL,UAAIW,gBAAgB,KAAKD,IAAL,CAAUV,IAA9B;AACA,UAAI,KAAKU,IAAL,CAAUJ,SAAd,EAAyB;AACvB;AACAK,wBAAgBA,cAAcE,OAAd,CAAsB,kBAAtB,EAA0C,EAA1C,CAAhB;AACD;;AAED,UAAI,KAAKH,IAAL,CAAUF,cAAd,EAA8B;AAC5B;AACAG,wBAAgBA,cAAcE,OAAd,CAAsB,+BAAtB,EAAuD,EAAvD,CAAhB;AACD;;AAED,WAAKC,OAAL,CAAa;AACXH;AADW,OAAb;AAGD;AAhBQ;AA3BH,CAAV,E","file":"bld-text/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 = 4);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n text: {\n type: String,\n value: \"加载中...\",\n },\n maxLines: {\n type: Number,\n value: 3,\n },\n stripHtml: {\n type: Boolean,\n value: true,\n },\n stripInVisible: {\n type: Boolean,\n value: true,\n },\n size: {\n type: String,\n value: \"lg-r\",\n },\n },\n data: {\n formattedText: \"加载中...\",\n },\n observers: {\n text() {\n let formattedText = this.data.text;\n if (this.data.stripHtml) {\n // 替换 html 标签\n formattedText = formattedText.replace(/<[^>]*>|&nbsp;/gm, \"\");\n }\n\n if (this.data.stripInVisible) {\n // 替换不可见字符\n formattedText = formattedText.replace(/[\\u0000-\\u001F\\u007F-\\u009F]/g, \"\");\n }\n\n this.setData({\n formattedText,\n });\n },\n },\n});\n"],"sourceRoot":""}
@@ -163,7 +163,6 @@ Component({
163
163
  open: function open(options) {
164
164
  var _this2 = this;
165
165
 
166
- debugger;
167
166
  var _options$type = options.type,
168
167
  type = _options$type === undefined ? '' : _options$type,
169
168
  _options$icon = options.icon,
@@ -215,4 +214,5 @@ Component({
215
214
 
216
215
  /***/ })
217
216
 
218
- /******/ });
217
+ /******/ });
218
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/index.js"],"names":["defaults_data","visible","show","mask","ghost","message","position","duration","image","icon","iconColor","iconSize","type","zIndex","Component","externalClasses","options","addGlobalClass","data","transformStyle","ready","wx","canIUse","windowInfo","getWindowInfo","computedBarH","getSystemInfo","success","methods","screenHeight","windowHeight","statusBarHeight","customBarH","capsule","getMenuButtonBoundingClientRect","bottom","top","setData","open","timer","clearTimeout","setTimeout","close","handleHide"],"mappings":"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","file":"bld-toast/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","const defaults_data = {\n visible: false,\n show: false,\n mask: false,\n ghost: true,\n message: '',\n position: 'middle', //top middle bottom\n duration: 20000,\n image: '',\n icon: '',\n iconColor: '#fff',\n iconSize: 80,\n type: '',\n zIndex: -1\n}\n\nComponent({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n data: {\n ...defaults_data,\n transformStyle: '',\n },\n\n ready() {\n if (wx.canIUse('getWindowInfo')) {\n const windowInfo = wx.getWindowInfo()\n this.computedBarH(windowInfo)\n } else {\n // 该方法为同步\n wx.getSystemInfo({\n success: (windowInfo) => {\n this.computedBarH(windowInfo)\n }\n })\n }\n },\n\n methods: {\n computedBarH(windowInfo) {\n const {\n screenHeight,\n windowHeight,\n statusBarHeight\n } = windowInfo;\n\n // 自定义导航栏\n if (screenHeight === windowHeight) {\n let customBarH = 44;\n let capsule = wx.getMenuButtonBoundingClientRect();\n if (capsule) {\n customBarH = capsule.bottom - statusBarHeight + 4;\n }\n\n defaults_data.top = customBarH + statusBarHeight + 'px'\n this.setData({\n top: customBarH + statusBarHeight + 'px'\n })\n }\n },\n\n open(options) {\n const {\n type = '',\n icon = '',\n image = '',\n duration = 20000,\n position = 'middle',\n mask = false,\n ghost = true,\n zIndex = 2001\n } = options\n\n this.setData({\n ...options,\n type,\n icon,\n image,\n mask,\n ghost,\n position,\n visible: true,\n zIndex\n }, () => {\n this.setData({\n show: true\n })\n })\n\n if (this.timer) clearTimeout(this.timer)\n\n if (duration) {\n this.timer = setTimeout(() => {\n this.close()\n this.timer = null\n }, duration)\n }\n },\n\n handleHide() {\n\n },\n\n close() {\n this.setData({\n ...defaults_data\n })\n }\n }\n})"],"sourceRoot":""}
@@ -134,4 +134,5 @@ exports.default = Toast;
134
134
 
135
135
  /***/ })
136
136
 
137
- /******/ });
137
+ /******/ });
138
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/toast.js"],"names":["getCtx","selector","pages","getCurrentPages","ctx","length","componentCtx","selectComponent","console","error","Toast","options","message","position","open","close"],"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;;;;;;;;;;;;AClFA,SAASA,MAAT,CAAgBC,QAAhB,EAA0B;AACxB,MAAMC,QAAQC,iBAAd;AACA,MAAMC,MAAMF,MAAMA,MAAMG,MAAN,GAAe,CAArB,CAAZ;AACA,MAAMC,eAAeF,IAAIG,eAAJ,CAAoBN,QAApB,CAArB;AACA,MAAI,CAACK,YAAL,EAAmB;AACjBE,YAAQC,KAAR,CAAc,sBAAd;AACA,WAAO,IAAP;AACD;AACD,SAAOH,YAAP;AACD;;AAGD,IAAMI,QAAQ,SAARA,KAAQ,UAAW;AAAA,iBAGnBC,OAHmB;AAAA,mCAErBV,QAFqB;AAAA,MAErBA,QAFqB,qCAEV,QAFU;;AAIvB,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;;AAEA,MAAI,OAAOU,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD,OADD;AAERE,gBAAU;AAFF,KAAV;AAID;AACDT,MAAIU,IAAJ,CAASH,OAAT;;AAEA,SAAOP,GAAP;AACD,CAfD;;AAiBAM,MAAMK,KAAN,GAAc,YAAyB;AAAA,MAAxBd,QAAwB,uEAAb,QAAa;;AACrC,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;AACAG,MAAIW,KAAJ;AACD,CAHD;;kBAKeL,K","file":"bld-toast/toast.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 = 27);\n","function getCtx(selector) {\n const pages = getCurrentPages()\n const ctx = pages[pages.length - 1]\n const componentCtx = ctx.selectComponent(selector)\n if (!componentCtx) {\n console.error('无法找到对应的组件,请按文档说明使用组件')\n return null\n }\n return componentCtx\n}\n\n\nconst Toast = options => {\n const {\n selector = '#toast'\n } = options\n const ctx = getCtx(selector)\n\n if (typeof options === \"string\") {\n options = {\n message: options,\n position: 'bottom'\n }\n }\n ctx.open(options)\n\n return ctx\n}\n\nToast.close = (selector = '#toast') => {\n const ctx = getCtx(selector)\n ctx.close()\n}\n\nexport default Toast"],"sourceRoot":""}
@@ -169,4 +169,5 @@ Component({
169
169
 
170
170
  /***/ })
171
171
 
172
- /******/ });
172
+ /******/ });
173
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-wrapper/index.js"],"names":["app","getApp","menuButtonInfo","globalData","menuButtonDistance","systemInfo","safeArea","saleAreaHeight","screenHeight","bottom","tabBarHeight","statusBarHeight","gap","top","navBarHeight","height","navToTab","navToBottom","topToTab","topToBottom","modeStyleMap","modeToStyle","mode","styles","Object","keys","map","key","join","Component","externalClasses","properties","type","String","value","data","style","observers","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;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEA,IAAMC,iBAAiBF,IAAIG,UAAJ,CAAeC,kBAAtC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA;AACA,IAAMC,WAAWD,WAAWC,QAA5B;AACA,IAAMC,iBAAiBF,WAAWG,YAAX,GAA0BF,SAASG,MAA1D;AACA,IAAMC,eAAe,KAAKH,cAA1B;;AAEA;AACA,IAAMI,kBAAkBN,WAAWM,eAAnC;AACA,IAAMC,MAAMV,eAAeW,GAAf,GAAqBF,eAAjC;;AAEA,IAAMG,eAAeH,kBAAkBT,eAAea,MAAjC,GAA0CH,MAAM,CAArE;;AAEA;AACA,IAAMI,WAAW;AACfH,OAAQC,YAAR,OADe;AAEfC,2BAAuBD,YAAvB,aAA2CJ,YAA3C;AAFe,CAAjB;;AAKA;AACA,IAAMO,cAAc;AAClBJ,OAAQC,YAAR,OADkB;AAElBC,2BAAuBD,YAAvB;AAFkB,CAApB;;AAKA;AACA,IAAMI,WAAW;AACfL,OAAK,KADU;AAEfE,2BAAuBL,YAAvB;AAFe,CAAjB;;AAKA;AACA,IAAMS,cAAc;AAClBN,OAAK,KADa;AAElBE,UAAQ;AAFU,CAApB;;AAKA,IAAMK,eAAe;AACnB,gBAAcJ,QADK;AAEnB,mBAAiBC,WAFE;AAGnB,gBAAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper/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 = 19);\n","const app = getApp();\n\nconst menuButtonInfo = app.globalData.menuButtonDistance;\nconst systemInfo = app.globalData.systemInfo\n// 计算 tab bar 的高度\nconst safeArea = systemInfo.safeArea;\nconst saleAreaHeight = systemInfo.screenHeight - safeArea.bottom;\nconst tabBarHeight = 60 + saleAreaHeight;\n\n// 计算 nav bar 的高度\nconst statusBarHeight = systemInfo.statusBarHeight;\nconst gap = menuButtonInfo.top - statusBarHeight;\n\nconst navBarHeight = statusBarHeight + menuButtonInfo.height + gap * 2;\n\n// 占据 nav bar 和 tab bar 之间的空间\nconst navToTab = {\n top: `${navBarHeight}px`,\n height: `calc(100% - ${navBarHeight}px - ${tabBarHeight}px)`,\n};\n\n// 占据 nav bar 页面底部的空间\nconst navToBottom = {\n top: `${navBarHeight}px`,\n height: `calc(100% - ${navBarHeight}px)`,\n};\n\n// 从页面顶部到 tab bar 之间的空间\nconst topToTab = {\n top: \"0px\",\n height: `calc(100% - ${tabBarHeight}px)`,\n};\n\n// 占据所有空间\nconst topToBottom = {\n top: \"0px\",\n height: \"100%\",\n};\n\nconst modeStyleMap = {\n \"nav-to-tab\": navToTab,\n \"nav-to-bottom\": navToBottom,\n \"top-to-tab\": topToTab,\n \"top-to-bottom\": topToBottom,\n};\n\nfunction modeToStyle(mode) {\n const styles = modeStyleMap[mode];\n return Object.keys(styles)\n .map((key) => {\n return `${key}: ${styles[key]}`;\n })\n .join(\";\");\n}\n\nComponent({\n externalClasses: [\"iclass\"],\n properties: {\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n },\n data: {\n style: \"height:100%\",\n },\n\n observers: {\n mode: function () {\n this.setData({\n style: modeToStyle(this.data.mode),\n });\n },\n },\n});\n"],"sourceRoot":""}
@@ -194,4 +194,5 @@ Component({
194
194
  });
195
195
 
196
196
  /***/ })
197
- /******/ ]);
197
+ /******/ ]);
198
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/button/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","plain","Boolean","inline","size","round","disabled","loading","full","color","bgcolor","openType","hoverStopPropagation","hoverStartTime","Number","hoverStayTime","sendMessageTitle","sendMessagePath","sendMessageImg","showMessageCard","methods","onTap","data","triggerEvent","getuserinfo","detail","contact","getphonenumber","error"],"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;AACV;AACAC,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KAFI;AAMVC,WAAO;AACLH,YAAMI,OADD;AAELF,aAAO;AAFF,KANG;AAUVG,YAAQ;AACNL,YAAMI,OADA;AAENF,aAAO;AAFD,KAVE;AAcVI,UAAM;AACJN,YAAMC,MADF;AAEJC,aAAO;AAFH,KAdI;AAkBVK,WAAO;AACLP,YAAMI,OADD;AAELF,aAAO;AAFF,KAlBG;AAsBVM,cAAU;AACRR,YAAMI,OADE;AAERF,aAAO;AAFC,KAtBA;AA0BVO,aAAS;AACPT,YAAMI,OADC;AAEPF,aAAO;AAFA,KA1BC;AA8BVQ,UAAM;AACJV,YAAMI,OADF;AAEJF,aAAO;AAFH,KA9BI;AAkCVS,WAAO;AACLX,YAAMC,MADD;AAELC,aAAO;AAFF,KAlCG;AAsCVU,aAAS;AACPZ,YAAMC,MADC;AAEPC,aAAO;AAFA,KAtCC;AA0CVW,cAAUZ,MA1CA;AA2CVa,0BAAsBV,OA3CZ;AA4CVW,oBAAgB;AACdf,YAAMgB,MADQ;AAEdd,aAAO;AAFO,KA5CN;AAgDVe,mBAAe;AACbjB,YAAMgB,MADO;AAEbd,aAAO;AAFM,KAhDL;AAoDVgB,sBAAkBjB,MApDR;AAqDVkB,qBAAiBlB,MArDP;AAsDVmB,oBAAgBnB,MAtDN;AAuDVoB,qBAAiBjB;AAvDP,GAPJ;;AAiERkB,WAAS;AACPC,SADO,mBACC;AACN,UAAI,KAAKC,IAAL,CAAUhB,QAAd,EAAwB,OAAO,KAAP;AACxB,WAAKiB,YAAL,CAAkB,OAAlB;AACD,KAJM;AAKPC,eALO,yBAOC;AAAA,qFAAJ,EAAI;AAAA,6BADNC,MACM;AAAA,UADNA,MACM,+BADG,EACH;;AACN,WAAKF,YAAL,CAAkB,aAAlB,EAAiCE,MAAjC;AACD,KATM;AAUPC,WAVO,qBAYC;AAAA,sFAAJ,EAAI;AAAA,+BADND,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,SAAlB,EAA6BE,MAA7B;AACD,KAdM;AAePE,kBAfO,4BAiBC;AAAA,sFAAJ,EAAI;AAAA,+BADNF,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,gBAAlB,EAAoCE,MAApC;AACD,KAnBM;AAoBPG,SApBO,mBAsBC;AAAA,sFAAJ,EAAI;AAAA,+BADNH,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,OAAlB,EAA2BE,MAA3B;AACD;AAxBM;AAjED,CAAV,E","file":"button/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 = 0);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n // ghost, primary, info, success, warning, error\n type: {\n type: String,\n value: 'default',\n },\n plain: {\n type: Boolean,\n value: false,\n },\n inline: {\n type: Boolean,\n value: false\n },\n size: {\n type: String,\n value: '',\n },\n round: {\n type: Boolean,\n value: false\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n loading: {\n type: Boolean,\n value: false,\n },\n full: {\n type: Boolean,\n value: false\n },\n color: {\n type: String,\n value: ''\n },\n bgcolor: {\n type: String,\n value: ''\n },\n openType: String,\n hoverStopPropagation: Boolean,\n hoverStartTime: {\n type: Number,\n value: 20\n },\n hoverStayTime: {\n type: Number,\n value: 70\n },\n sendMessageTitle: String,\n sendMessagePath: String,\n sendMessageImg: String,\n showMessageCard: Boolean\n },\n\n methods: {\n onTap() {\n if (this.data.disabled) return false\n this.triggerEvent('click')\n },\n getuserinfo({\n detail = {}\n } = {}) {\n this.triggerEvent('getuserinfo', detail)\n },\n contact({\n detail = {}\n } = {}) {\n this.triggerEvent('contact', detail)\n },\n getphonenumber({\n detail = {}\n } = {}) {\n this.triggerEvent('getphonenumber', detail)\n },\n error({\n detail = {}\n } = {}) {\n this.triggerEvent('error', detail)\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 = 28);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 29);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 28:
90
+ /***/ 29:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -175,4 +175,5 @@ Component({
175
175
 
176
176
  /***/ })
177
177
 
178
- /******/ });
178
+ /******/ });
179
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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":""}
@@ -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";
@@ -166,4 +166,5 @@ Component({
166
166
 
167
167
  /***/ })
168
168
 
169
- /******/ });
169
+ /******/ });
170
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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":""}
@@ -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";
@@ -164,4 +164,5 @@ Component({
164
164
 
165
165
  /***/ })
166
166
 
167
- /******/ });
167
+ /******/ });
168
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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":""}
@@ -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";
@@ -168,4 +168,5 @@ Component({
168
168
 
169
169
  /***/ })
170
170
 
171
- /******/ });
171
+ /******/ });
172
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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":""}