bulade-ui 1.0.5 → 1.0.7

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 (80) hide show
  1. package/miniprogram_dist/bld-action-sheet/index.js +2 -2
  2. package/miniprogram_dist/bld-action-sheet/index.js.map +1 -1
  3. package/miniprogram_dist/bld-badge/index.js +2 -2
  4. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  5. package/miniprogram_dist/bld-cloud-image/index.js +2 -2
  6. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  7. package/miniprogram_dist/bld-drawer/index.js +2 -2
  8. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  9. package/miniprogram_dist/bld-empty-page/index.js +2 -2
  10. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  11. package/miniprogram_dist/bld-icon/index.wxss +7 -7
  12. package/miniprogram_dist/bld-message/index.js +2 -2
  13. package/miniprogram_dist/bld-message/index.js.map +1 -1
  14. package/miniprogram_dist/bld-message/message.js +2 -2
  15. package/miniprogram_dist/bld-message/message.js.map +1 -1
  16. package/miniprogram_dist/bld-modal/index.js +2 -2
  17. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  18. package/miniprogram_dist/bld-modal/modal.js +2 -2
  19. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  20. package/miniprogram_dist/bld-nav-bar/index.js +18 -5
  21. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  22. package/miniprogram_dist/bld-nav-bar/index.json +2 -1
  23. package/miniprogram_dist/bld-nav-bar/index.wxml +14 -0
  24. package/miniprogram_dist/bld-nav-bar/index.wxss +10 -0
  25. package/miniprogram_dist/bld-navbar/index.js +2 -2
  26. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  27. package/miniprogram_dist/bld-navbar-group/index.js +2 -2
  28. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  29. package/miniprogram_dist/bld-notice-bar/index.js +171 -0
  30. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -0
  31. package/miniprogram_dist/bld-notice-bar/index.json +3 -0
  32. package/miniprogram_dist/bld-notice-bar/index.wxml +30 -0
  33. package/miniprogram_dist/bld-notice-bar/index.wxss +51 -0
  34. package/miniprogram_dist/bld-overlay/index.js +2 -2
  35. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  36. package/miniprogram_dist/bld-page/index.js +2 -2
  37. package/miniprogram_dist/bld-page/index.js.map +1 -1
  38. package/miniprogram_dist/bld-pop-up/index.js +2 -2
  39. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  40. package/miniprogram_dist/bld-retry/index.js +2 -2
  41. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  42. package/miniprogram_dist/bld-scroll-view/index.js +2 -2
  43. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  44. package/miniprogram_dist/bld-tag/index.js +2 -2
  45. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  46. package/miniprogram_dist/bld-toast/index.js +2 -2
  47. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  48. package/miniprogram_dist/bld-toast/toast.js +2 -2
  49. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  50. package/miniprogram_dist/bld-wrapper/index.js +2 -2
  51. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  52. package/miniprogram_dist/cell/index.js +2 -2
  53. package/miniprogram_dist/cell/index.js.map +1 -1
  54. package/miniprogram_dist/cell-group/index.js +2 -2
  55. package/miniprogram_dist/cell-group/index.js.map +1 -1
  56. package/miniprogram_dist/grid/index.js +2 -2
  57. package/miniprogram_dist/grid/index.js.map +1 -1
  58. package/miniprogram_dist/grid-item/index.js +2 -2
  59. package/miniprogram_dist/grid-item/index.js.map +1 -1
  60. package/miniprogram_dist/icon/index.js +2 -2
  61. package/miniprogram_dist/icon/index.js.map +1 -1
  62. package/miniprogram_dist/timeline/index.js +2 -2
  63. package/miniprogram_dist/timeline/index.js.map +1 -1
  64. package/miniprogram_dist/timeline-item/index.js +2 -2
  65. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  66. package/miniprogram_dist/utils/systemInfo.js +2 -1
  67. package/package.json +1 -1
  68. package/src/bld-icon/index.scss +8 -11
  69. package/src/bld-icon/index.wxss +7 -7
  70. package/src/bld-nav-bar/index.js +15 -2
  71. package/src/bld-nav-bar/index.json +2 -1
  72. package/src/bld-nav-bar/index.scss +8 -0
  73. package/src/bld-nav-bar/index.wxml +14 -0
  74. package/src/bld-nav-bar/index.wxss +10 -0
  75. package/src/bld-notice-bar/index.js +69 -0
  76. package/src/bld-notice-bar/index.json +3 -0
  77. package/src/bld-notice-bar/index.scss +59 -0
  78. package/src/bld-notice-bar/index.wxml +30 -0
  79. package/src/bld-notice-bar/index.wxss +51 -0
  80. package/src/utils/systemInfo.js +2 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-modal/modal.js"],"names":["getCtx","selector","pages","getCurrentPages","ctx","length","componentCtx","selectComponent","console","error","Modal","Promise","resolve","reject","options","modal","_reset","_confirm","_cancel","_show","alert","Object","assign","showCancelButton","confirm","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;;AAEA,MAAI,CAACK,YAAL,EAAmB;AACjBE,YAAQC,KAAR,CAAc,sBAAd;AACA,WAAO,IAAP;AACD;AACD,SAAOH,YAAP;AACD;;AAED,IAAMI,QAAQ,SAARA,KAAQ,UAAW;;AAEvB,SAAO,IAAIC,OAAJ,CAAY,UAACC,OAAD,EAAUC,MAAV,EAAqB;AAAA,4BACNC,OADM,CAC9Bb,QAD8B;AAAA,QAC9BA,QAD8B,qCACnB,QADmB;;AAEtC,QAAMc,QAAQf,OAAOC,QAAP,CAAd;AACAc,UAAMC,MAAN;;AAEAD,UAAME,QAAN,GAAiBL,OAAjB;AACAG,UAAMG,OAAN,GAAgBL,MAAhB;AACAE,UAAMI,KAAN,CAAYL,OAAZ;;AAEA,WAAOC,KAAP;AACD,GAVM,CAAP;AAWD,CAbD;;AAeAL,MAAMU,KAAN,GAAc;AAAA,SAAWV,MAAMW,OAAOC,MAAP,CAAc;AAC3CC,sBAAkB;AADyB,GAAd,EAE5BT,OAF4B,CAAN,CAAX;AAAA,CAAd;AAGAJ,MAAMc,OAAN,GAAgB;AAAA,SAAWd,MAAMI,OAAN,CAAX;AAAA,CAAhB;;AAEAJ,MAAMe,KAAN,GAAc,YAAyB;AAAA,MAAxBxB,QAAwB,uEAAb,QAAa;;AACrC,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;AACAG,MAAIqB,KAAJ;AACD,CAHD;;kBAKef,K","file":"bld-modal/modal.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 34);\n","function getCtx(selector) {\n const pages = getCurrentPages()\n const ctx = pages[pages.length - 1]\n const componentCtx = ctx.selectComponent(selector)\n\n if (!componentCtx) {\n console.error('无法找到对应的组件,请按文档说明使用组件')\n return null\n }\n return componentCtx\n}\n\nconst Modal = options => {\n\n return new Promise((resolve, reject) => {\n const { selector = '#modal' } = options\n const modal = getCtx(selector)\n modal._reset()\n\n modal._confirm = resolve\n modal._cancel = reject\n modal._show(options)\n\n return modal\n })\n}\n\nModal.alert = options => Modal(Object.assign({\n showCancelButton: false\n}, options))\nModal.confirm = options => Modal(options)\n\nModal.close = (selector = '#modal') => {\n const ctx = getCtx(selector)\n ctx.close()\n}\n\nexport default Modal"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-modal/modal.js"],"names":["getCtx","selector","pages","getCurrentPages","ctx","length","componentCtx","selectComponent","console","error","Modal","Promise","resolve","reject","options","modal","_reset","_confirm","_cancel","_show","alert","Object","assign","showCancelButton","confirm","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;QAC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\t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 35);\n","function getCtx(selector) {\n const pages = getCurrentPages()\n const ctx = pages[pages.length - 1]\n const componentCtx = ctx.selectComponent(selector)\n\n if (!componentCtx) {\n console.error('无法找到对应的组件,请按文档说明使用组件')\n return null\n }\n return componentCtx\n}\n\nconst Modal = options => {\n\n return new Promise((resolve, reject) => {\n const { selector = '#modal' } = options\n const modal = getCtx(selector)\n modal._reset()\n\n modal._confirm = resolve\n modal._cancel = reject\n modal._show(options)\n\n return modal\n })\n}\n\nModal.alert = options => Modal(Object.assign({\n showCancelButton: false\n}, options))\nModal.confirm = options => Modal(options)\n\nModal.close = (selector = '#modal') => {\n const ctx = getCtx(selector)\n ctx.close()\n}\n\nexport default Modal"],"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 = 17);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 18);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 17:
90
+ /***/ 18:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -97,15 +97,15 @@ var app = getApp();
97
97
 
98
98
  var deviceInfo = app.globalData.deviceInfo;
99
99
  var systemInfo = app.globalData.systemInfo;
100
+ var noticeText = app.globalData.noticeText;
100
101
  var menuButtonInfo = app.globalData.menuButtonDistance;
101
102
  var screenWidth = systemInfo.screenWidth;
102
103
 
103
104
  var statusBarHeight = systemInfo.statusBarHeight;
104
105
  var gap = menuButtonInfo.top - statusBarHeight;
105
106
  var padding = screenWidth - menuButtonInfo.right;
106
-
107
107
  var _baseStyle = ["padding-top: " + menuButtonInfo.top + "px", "padding-bottom: " + gap + "px", "line-height: " + menuButtonInfo.height + "px", "height: " + menuButtonInfo.height + "px", "padding-left: " + padding + "px", "padding-right: " + (padding * 2 + menuButtonInfo.width) + "px", "width: calc(100% - " + (3 * padding + menuButtonInfo.width) + "px)"];
108
-
108
+ var res = wx.getMenuButtonBoundingClientRect();
109
109
  Component({
110
110
  externalClasses: ["iclass"],
111
111
  options: {
@@ -134,13 +134,26 @@ Component({
134
134
  },
135
135
  data: {
136
136
  style: _baseStyle.join(";"),
137
- titleStyle: ""
137
+ titleStyle: "",
138
+ top: res.height + res.top,
139
+ noticeText: noticeText
138
140
  },
139
141
  lifetimes: {
140
142
  ready: function ready() {
141
143
  var totalHeight = menuButtonInfo.top + menuButtonInfo.height + gap;
142
144
 
143
145
  this.triggerEvent("height-change", totalHeight);
146
+ var version = systemInfo.SDKVersion;
147
+ version = version.replace(/\./g, "");
148
+ if (version.length == 3) {
149
+ version = version + "0";
150
+ }
151
+ console.log('该版本号为: ' + version);
152
+ if (parseInt(version) <= 2900) {
153
+ this.setData({
154
+ noticeText: "检测到您的微信版本过低,部分功能或许无法使用,请升级微信至最新版本!!!"
155
+ });
156
+ }
144
157
  }
145
158
  },
146
159
  observers: {
@@ -1 +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":";;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,aAAaF,IAAIG,UAAJ,CAAeD,UAAlC;AACA,IAAME,aAAaJ,IAAIG,UAAJ,CAAeC,UAAlC;AACA,IAAMC,iBAAiBL,IAAIG,UAAJ,CAAeG,kBAAtC;AACA,IAAMC,cAAcH,WAAWG,WAA/B;;AAEA,IAAMC,kBAAkBJ,WAAWI,eAAnC;AACA,IAAMC,MAAMJ,eAAeK,GAAf,GAAqBF,eAAjC;AACA,IAAMG,UAAUJ,cAAcF,eAAeO,KAA7C;;AAEA,IAAMC,aAAa,mBACDR,eAAeK,GADd,8BAEED,GAFF,2BAGDJ,eAAeS,MAHd,sBAINT,eAAeS,MAJT,4BAKAH,OALA,8BAMCA,UAAU,CAAV,GAAcN,eAAeU,KAN9B,mCAOK,IAAIJ,OAAJ,GAAcN,eAAeU,KAPlC,UAAnB;;AAUAC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,WAAS;AACPC,mBAAe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,OAAL,CAAa;AACXR,2CAA6B,CAAC5B,eAAeU,KAAf,GAAuBJ,OAAvB,GAAiCkC,IAAI/B,MAAtC,IAAgD,CAA7E;AADW,WAAb;AAGD,SANH,EAOGgC,IAPH;AAQD,OATD,MASO;AACL,aAAKL,OAAL,CAAa;AACXR,yCAA6B,CAAC5B,eAAeU,KAAf,GAAuBJ,OAAxB,IAAmC,CAAhE;AADW,SAAb;AAGD;AACF;AAtCQ,GArCH;AA6ERoC,WAAS;AACPC,gBADO,0BACQ;AACbC,SAAGC,SAAH,CAAa;AACXC,aAAK;AADM,OAAb;AAGD,KALM;AAOPC,gBAPO,0BAOQ;AACb,UAAMC,QAAQC,iBAAd;;AAEA,UAAID,MAAME,MAAN,GAAe,CAAnB,EAAsB;AACpBN,WAAGG,YAAH;;AAEA;AACD;;AAED,WAAKJ,YAAL;AACD;AAjBM;AA7ED,CAAV,E","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":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-nav-bar/index.js"],"names":["app","getApp","deviceInfo","globalData","systemInfo","noticeText","menuButtonInfo","menuButtonDistance","screenWidth","statusBarHeight","gap","top","padding","right","_baseStyle","height","width","res","wx","getMenuButtonBoundingClientRect","Component","externalClasses","options","multipleSlots","properties","bgColor","type","String","goBack","Boolean","value","showTitle","showShare","textAlign","data","style","join","titleStyle","lifetimes","ready","totalHeight","triggerEvent","version","SDKVersion","replace","length","console","log","parseInt","setData","observers","_style","push","createSelectorQuery","select","boundingClientRect","exec","methods","navigateHome","switchTab","url","navigateBack","pages","getCurrentPages"],"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,aAAaF,IAAIG,UAAJ,CAAeD,UAAlC;AACA,IAAME,aAAaJ,IAAIG,UAAJ,CAAeC,UAAlC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA,IAAMC,iBAAiBN,IAAIG,UAAJ,CAAeI,kBAAtC;AACA,IAAMC,cAAcJ,WAAWI,WAA/B;;AAEA,IAAMC,kBAAkBL,WAAWK,eAAnC;AACA,IAAMC,MAAMJ,eAAeK,GAAf,GAAqBF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B;AACpB3B,WAAG2C,YAAH;;AAEA;AACD;;AAED,WAAKH,YAAL;AACD;AAjBM;AA1FD,CAAV,E","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 = 18);\n","const app = getApp();\n\nconst deviceInfo = app.globalData.deviceInfo;\nconst systemInfo = app.globalData.systemInfo;\nconst noticeText = app.globalData.noticeText;\nconst menuButtonInfo = app.globalData.menuButtonDistance;\nconst screenWidth = systemInfo.screenWidth;\n\nconst statusBarHeight = systemInfo.statusBarHeight;\nconst gap = menuButtonInfo.top - statusBarHeight;\nconst padding = screenWidth - menuButtonInfo.right;\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];\nconst res = wx.getMenuButtonBoundingClientRect();\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 top: res.height + res.top,\n noticeText\n },\n lifetimes: {\n ready() {\n const totalHeight = menuButtonInfo.top + menuButtonInfo.height + gap;\n\n this.triggerEvent(\"height-change\", totalHeight);\n let version = systemInfo.SDKVersion\n version = version.replace(/\\./g, \"\")\n if(version.length == 3) {\n version =version + \"0\"\n }\n console.log('该版本号为: '+ version)\n if (parseInt(version) <= 2900) {\n this.setData({\n noticeText:\"检测到您的微信版本过低,部分功能或许无法使用,请升级微信至最新版本!!!\"\n })\n }\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":""}
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "bld-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index",
5
+ "bld-notice-bar":"../bld-notice-bar/index"
5
6
  }
6
7
  }
@@ -26,4 +26,18 @@
26
26
  <bld-icon name="share" />
27
27
  </button>
28
28
  </view>
29
+ <view wx:if="{{false}}" class="notice-wrap" style="top:{{ top }}px;">
30
+ <bld-notice-bar>
31
+ <view class="preifx" slot="preifx">
32
+ <m-icon name="notice" size="32" color="#ed6a0c" />
33
+ </view>
34
+
35
+ <view>{{noticeText}}</view>
36
+
37
+ <view class="suffix" slot="suffix">
38
+ <m-icon name="cross" size="32" color="#ed6a0c" />
39
+ </view>
40
+ </bld-notice-bar>
41
+ </view>
42
+
29
43
  </view>
@@ -33,4 +33,14 @@
33
33
  .operations.right .operation {
34
34
  margin-right: 0;
35
35
  margin-left: 12rpx;
36
+ }
37
+
38
+ .notice-wrap {
39
+ position: fixed;
40
+ width: 750rpx;
41
+ left: 0;
42
+ }
43
+
44
+ .preifx, .suffix {
45
+ padding: 0 6rpx;
36
46
  }
@@ -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 = 37);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 38);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 37:
90
+ /***/ 38:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-navbar/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","target","parent","unlinked","properties","name","String","value","title","optionalTypes","Number","data","activeName","activeColor","methods","onClick","ev","triggerEvent","baseLeft","query","createSelectorQuery","select","boundingClientRect","exec","offsetLeft","currentTarget","res","left","itemWidth","width","textWidth","updateScrollPositon"],"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;Q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,kBAAlC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMC,aAAaR,KAAKA,GAAGS,aAAH,CAAiBD,UAAtB,GAAmCE,IAAI,CAAJ,EAAOC,IAAP,GAAcT,QAApE;AACA,YAAMU,YAAYF,IAAI,CAAJ,EAAOG,KAAzB;AACA,YAAMC,YAAYJ,IAAI,CAAJ,EAAOG,KAAzB;;AAEA3B,eAAO6B,mBAAP,CAA2BP,UAA3B,EAAuCI,SAAvC,EAAkDE,SAAlD,EAA6D,MAAKnB,IAAL,CAAUN,IAAvE;AACD,OAND;AAOD;AApBM;AAxCD,CAAV,E","file":"bld-navbar/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 = 37);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../bld-navbar-group/index': {\n type: 'parent',\n linked(target) {\n this.parent = target\n },\n unlinked() {\n this.parent = null\n }\n }\n },\n\n properties: {\n name: {\n type: String,\n value: ''\n },\n title: {\n type: String,\n value: ''\n },\n value: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n }\n },\n\n data: {\n activeName: '',\n activeColor: ''\n },\n\n methods: {\n onClick(ev = null) {\n const parent = this.parent\n\n parent.triggerEvent('click', this.data.name)\n\n const baseLeft = parent.data.baseLeft\n\n const query = this.createSelectorQuery()\n\n query.select('.m-tab-item').boundingClientRect()\n query.select('.m-tab-item__text').boundingClientRect()\n\n query.exec(res => {\n const offsetLeft = ev ? ev.currentTarget.offsetLeft : res[0].left - baseLeft\n const itemWidth = res[0].width\n const textWidth = res[1].width\n\n parent.updateScrollPositon(offsetLeft, itemWidth, textWidth, this.data.name)\n })\n }\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-navbar/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","target","parent","unlinked","properties","name","String","value","title","optionalTypes","Number","data","activeName","activeColor","methods","onClick","ev","triggerEvent","baseLeft","query","createSelectorQuery","select","boundingClientRect","exec","offsetLeft","currentTarget","res","left","itemWidth","width","textWidth","updateScrollPositon"],"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,iCAA6B;AAC3BC,YAAM,QADqB;AAE3BC,YAF2B,kBAEpBC,MAFoB,EAEZ;AACb,aAAKC,MAAL,GAAcD,MAAd;AACD,OAJ0B;AAK3BE,cAL2B,sBAKhB;AACT,aAAKD,MAAL,GAAc,IAAd;AACD;AAP0B;AADpB,GAPH;;AAmBRE,cAAY;AACVC,UAAM;AACJN,YAAMO,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,WAAO;AACLT,YAAMO,MADD;AAELC,aAAO;AAFF,KALG;AASVA,WAAO;AACLR,YAAMO,MADD;AAELG,qBAAe,CAACC,MAAD,EAASJ,MAAT,CAFV;AAGLC,aAAO;AAHF;AATG,GAnBJ;;AAmCRI,QAAM;AACJC,gBAAY,EADR;AAEJC,iBAAa;AAFT,GAnCE;;AAwCRC,WAAS;AACPC,WADO,qBACY;AAAA;;AAAA,UAAXC,EAAW,uEAAN,IAAM;;AACjB,UAAMd,SAAS,KAAKA,MAApB;;AAEAA,aAAOe,YAAP,CAAoB,OAApB,EAA6B,KAAKN,IAAL,CAAUN,IAAvC;;AAEA,UAAMa,WAAWhB,OAAOS,IAAP,CAAYO,QAA7B;;AAEA,UAAMC,QAAQ,KAAKC,mBAAL,EAAd;;AAEAD,YAAME,MAAN,CAAa,aAAb,EAA4BC,kBAA5B;AACAH,YAAME,MAAN,CAAa,mBAAb,EAAkCC,kBAAlC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMC,aAAaR,KAAKA,GAAGS,aAAH,CAAiBD,UAAtB,GAAmCE,IAAI,CAAJ,EAAOC,IAAP,GAAcT,QAApE;AACA,YAAMU,YAAYF,IAAI,CAAJ,EAAOG,KAAzB;AACA,YAAMC,YAAYJ,IAAI,CAAJ,EAAOG,KAAzB;;AAEA3B,eAAO6B,mBAAP,CAA2BP,UAA3B,EAAuCI,SAAvC,EAAkDE,SAAlD,EAA6D,MAAKnB,IAAL,CAAUN,IAAvE;AACD,OAND;AAOD;AApBM;AAxCD,CAAV,E","file":"bld-navbar/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 = 38);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../bld-navbar-group/index': {\n type: 'parent',\n linked(target) {\n this.parent = target\n },\n unlinked() {\n this.parent = null\n }\n }\n },\n\n properties: {\n name: {\n type: String,\n value: ''\n },\n title: {\n type: String,\n value: ''\n },\n value: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n }\n },\n\n data: {\n activeName: '',\n activeColor: ''\n },\n\n methods: {\n onClick(ev = null) {\n const parent = this.parent\n\n parent.triggerEvent('click', this.data.name)\n\n const baseLeft = parent.data.baseLeft\n\n const query = this.createSelectorQuery()\n\n query.select('.m-tab-item').boundingClientRect()\n query.select('.m-tab-item__text').boundingClientRect()\n\n query.exec(res => {\n const offsetLeft = ev ? ev.currentTarget.offsetLeft : res[0].left - baseLeft\n const itemWidth = res[0].width\n const textWidth = res[1].width\n\n parent.updateScrollPositon(offsetLeft, itemWidth, textWidth, this.data.name)\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 = 38);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 39);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 38:
90
+ /***/ 39:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-navbar-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","activeName","String","optionalTypes","Number","value","activeColor","lineWidth","lineColor","lineHeight","data","baseLeft","scrollLeft","lineLeft","activeLineWidth","tabWidth","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","_updateWrapInfo","wx","nextTick","query","createSelectorQuery","select","boundingClientRect","scrollOffset","exec","res","left","width","forEach","child","index","name","onClick","updateScrollPositon","domWidth","color","setData","custonLineWidth","Math","floor","parseInt","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,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,2BAAuB;AACrBC,YAAM,OADe;AAErBC,YAFqB,oBAEZ;AACP,aAAKC,eAAL;AACD,OAJoB;AAKrBC,cALqB,sBAKV;AACT,aAAKD,eAAL;AACD;AAPoB;AADd,GAPH;;AAmBRE,cAAY;AACVC,gBAAY;AACVL,YAAMM,MADI;AAEVC,qBAAe,CAACC,MAAD,EAASF,MAAT,CAFL;AAGVG,aAAO;AAHG,KADF;;AAOVC,iBAAa;AACXV,YAAMM,MADK;AAEXG,aAAO;AAFI,KAPH;;AAYVE,e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AAEXC,0BAFW;AAGXC;AAHW,OAAb,EAIG,YAAM;AACP,eAAKmC,YAAL,CAAkB,QAAlB,EAA4BV,IAA5B;AACD,OAND;AAOD;AAhFM;AAxDD,CAAV,E","file":"bld-navbar-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 = 38);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../bld-navbar/index': {\n type: 'child',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n activeName: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n },\n\n activeColor: {\n type: String,\n value: ''\n },\n\n lineWidth: {\n type: Number,\n optionalTypes: [Number, String],\n value: 0\n },\n\n lineColor: {\n type: String,\n value: ''\n },\n\n lineHeight: {\n type: Number,\n value: 6\n }\n },\n\n data: {\n baseLeft: 0,\n scrollLeft: 0,\n lineLeft: 0,\n activeLineWidth: 0,\n tabWidth: 0,\n },\n\n methods: {\n _updateChildren() {\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n let children = this.getRelationNodes('../navbar/index')\n this.children = children\n const len = children.length\n\n // 渲染完成后更新内容区域宽度\n if (len) {\n this._updateWrapInfo(children)\n }\n }, 60)\n },\n\n\n // 渲染完成后更新内容区域宽度\n _updateWrapInfo(children) {\n wx.nextTick(() => {\n const query = this.createSelectorQuery()\n query.select('.m-tabs').boundingClientRect()\n query.select('.m-tabs__scroll').scrollOffset()\n query.exec(res => {\n this.data.baseLeft = res[0].left\n\n const tabWidth = res[0].width // 选项卡总宽度 \n this.data.tabWidth = tabWidth\n\n const { activeName } = this.data\n\n if (activeName) {\n children.forEach((child, index) => {\n if (child.data.name === activeName) {\n child.onClick()\n }\n })\n } else {\n children[0].onClick()\n }\n\n })\n })\n },\n\n\n updateScrollPositon(left, domWidth, lineWidth, name) {\n\n // 设置选中标签的字体颜色\n const { activeColor } = this.data\n\n if (activeColor) {\n this.children.forEach((child, index) => {\n let color = child.data.name === name ? activeColor : ''\n child.setData({\n activeName: name,\n activeColor: color\n })\n })\n }\n\n const scrollLeft = left - this.data.tabWidth / 2 + domWidth / 2\n\n const custonLineWidth = Math.floor(parseInt(this.data.lineWidth) * (this.data.tabWidth / 750))\n\n const activeLineWidth = custonLineWidth ? custonLineWidth <= domWidth ? custonLineWidth : domWidth : lineWidth\n\n const lineLeft = left + domWidth / 2 - activeLineWidth / 2\n\n this.setData({\n scrollLeft,\n lineLeft,\n activeLineWidth\n }, () => {\n this.triggerEvent('change', name)\n })\n }\n }\n})\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-navbar-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","activeName","String","optionalTypes","Number","value","activeColor","lineWidth","lineColor","lineHeight","data","baseLeft","scrollLeft","lineLeft","activeLineWidth","tabWidth","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","_updateWrapInfo","wx","nextTick","query","createSelectorQuery","select","boundingClientRect","scrollOffset","exec","res","left","width","forEach","child","index","name","onClick","updateScrollPositon","domWidth","color","setData","custonLineWidth","Math","floor","parseInt","triggerEvent"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QAC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EAkD6BnC,SAlD7B,EAkDwCgC,IAlDxC,EAkD8C;AAAA;;AAEnD;AAFmD,UAG3CjC,WAH2C,GAG3B,KAAKI,IAHsB,CAG3CJ,WAH2C;;;AAKnD,UAAIA,WAAJ,EAAiB;AACf,aAAKc,QAAL,CAAcgB,OAAd,CAAsB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACtC,cAAIK,QAAQN,MAAM3B,IAAN,CAAW6B,IAAX,KAAoBA,IAApB,GAA2BjC,WAA3B,GAAyC,EAArD;AACA+B,gBAAMO,OAAN,CAAc;AACZ3C,wBAAYsC,IADA;AAEZjC,yBAAaqC;AAFD,WAAd;AAID,SAND;AAOD;;AAED,UAAM/B,aAAasB,OAAO,KAAKxB,IAAL,CAAUK,QAAV,GAAqB,CAA5B,GAAgC2B,WAAW,CAA9D;;AAEA,UAAMG,kBAAkBC,KAAKC,KAAL,CAAWC,SAAS,KAAKtC,IAAL,CAAUH,SAAnB,KAAiC,KAAKG,IAAL,CAAUK,QAAV,GAAqB,GAAtD,CAAX,CAAxB;;AAEA,UAAMD,kBAAkB+B,kBAAkBA,mBAAmBH,QAAnB,GAA8BG,eAA9B,GAAgDH,QAAlE,GAA6EnC,SAArG;;AAEA,UAAMM,WAAWqB,OAAOQ,WAAW,CAAlB,GAAsB5B,kBAAkB,CAAzD;;AAEA,WAAK8B,OAAL,CAAa;AACXhC,8BADW;AAEXC,0BAFW;AAGXC;AAHW,OAAb,EAIG,YAAM;AACP,eAAKmC,YAAL,CAAkB,QAAlB,EAA4BV,IAA5B;AACD,OAND;AAOD;AAhFM;AAxDD,CAAV,E","file":"bld-navbar-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 = 39);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../bld-navbar/index': {\n type: 'child',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n activeName: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n },\n\n activeColor: {\n type: String,\n value: ''\n },\n\n lineWidth: {\n type: Number,\n optionalTypes: [Number, String],\n value: 0\n },\n\n lineColor: {\n type: String,\n value: ''\n },\n\n lineHeight: {\n type: Number,\n value: 6\n }\n },\n\n data: {\n baseLeft: 0,\n scrollLeft: 0,\n lineLeft: 0,\n activeLineWidth: 0,\n tabWidth: 0,\n },\n\n methods: {\n _updateChildren() {\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n let children = this.getRelationNodes('../navbar/index')\n this.children = children\n const len = children.length\n\n // 渲染完成后更新内容区域宽度\n if (len) {\n this._updateWrapInfo(children)\n }\n }, 60)\n },\n\n\n // 渲染完成后更新内容区域宽度\n _updateWrapInfo(children) {\n wx.nextTick(() => {\n const query = this.createSelectorQuery()\n query.select('.m-tabs').boundingClientRect()\n query.select('.m-tabs__scroll').scrollOffset()\n query.exec(res => {\n this.data.baseLeft = res[0].left\n\n const tabWidth = res[0].width // 选项卡总宽度 \n this.data.tabWidth = tabWidth\n\n const { activeName } = this.data\n\n if (activeName) {\n children.forEach((child, index) => {\n if (child.data.name === activeName) {\n child.onClick()\n }\n })\n } else {\n children[0].onClick()\n }\n\n })\n })\n },\n\n\n updateScrollPositon(left, domWidth, lineWidth, name) {\n\n // 设置选中标签的字体颜色\n const { activeColor } = this.data\n\n if (activeColor) {\n this.children.forEach((child, index) => {\n let color = child.data.name === name ? activeColor : ''\n child.setData({\n activeName: name,\n activeColor: color\n })\n })\n }\n\n const scrollLeft = left - this.data.tabWidth / 2 + domWidth / 2\n\n const custonLineWidth = Math.floor(parseInt(this.data.lineWidth) * (this.data.tabWidth / 750))\n\n const activeLineWidth = custonLineWidth ? custonLineWidth <= domWidth ? custonLineWidth : domWidth : lineWidth\n\n const lineLeft = left + domWidth / 2 - activeLineWidth / 2\n\n this.setData({\n scrollLeft,\n lineLeft,\n activeLineWidth\n }, () => {\n this.triggerEvent('change', name)\n })\n }\n }\n})\n"],"sourceRoot":""}
@@ -0,0 +1,171 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 17);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 17:
91
+ /***/ (function(module, exports, __webpack_require__) {
92
+
93
+ "use strict";
94
+
95
+
96
+ Component({
97
+ externalClasses: ['iclass'],
98
+
99
+ options: {
100
+ addGlobalClass: true,
101
+ multipleSlots: true // 在组件定义时的选项中启用多slot支持
102
+ },
103
+
104
+ properties: {
105
+ // 延迟播放时长
106
+ delay: {
107
+ type: Number,
108
+ value: 1
109
+ },
110
+ // 滚动速度 rpx/s
111
+ speed: {
112
+ type: Number,
113
+ value: 150
114
+ },
115
+ // 长度溢出时自动滚动播放
116
+ scrollable: {
117
+ type: Boolean,
118
+ value: true
119
+ },
120
+ multiline: {
121
+ type: Boolean,
122
+ value: false
123
+ }
124
+ },
125
+
126
+ data: {
127
+ delaySec: 0
128
+ },
129
+
130
+ lifetimes: {
131
+ ready: function ready() {
132
+ this.getContainerWidth();
133
+ }
134
+ },
135
+
136
+ methods: {
137
+ getContainerWidth: function getContainerWidth() {
138
+ var _this = this;
139
+
140
+ var query = this.createSelectorQuery();
141
+ query.select('.m-notice-bar').boundingClientRect();
142
+ query.select('.m-notice-bar__content').boundingClientRect();
143
+
144
+ query.exec(function (res) {
145
+ var wrapW = wx.getSystemInfoSync().windowWidth; // 容器宽度
146
+ var noticeW = res[0].width * (750 / wrapW);
147
+ var containW = res[1].width * (750 / wrapW); // 内容宽度(折合为rpx)
148
+
149
+ // 内容宽度小于内容区域宽度,则不滚动
150
+ if (containW <= noticeW) {
151
+ _this.setData({
152
+ scrollable: false
153
+ });
154
+
155
+ return;
156
+ }
157
+
158
+ var delaySec = containW / _this.data.speed;
159
+
160
+ _this.setData({
161
+ delaySec: parseInt(delaySec)
162
+ });
163
+ });
164
+ }
165
+ }
166
+ });
167
+
168
+ /***/ })
169
+
170
+ /******/ });
171
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-notice-bar/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","properties","delay","type","Number","value","speed","scrollable","Boolean","multiline","data","delaySec","lifetimes","ready","getContainerWidth","methods","query","createSelectorQuery","select","boundingClientRect","exec","wrapW","wx","getSystemInfoSync","windowWidth","noticeW","res","width","containW","setData","parseInt"],"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;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe,IAFR,CAEa;AAFb,GAHD;;AAQRC,cAAY;AACV;AACAC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KAFG;AAMV;AACAC,WAAO;AACLH,YAAMC,MADD;AAELC,aAAO;AAFF,KAPG;AAWV;AACAE,gBAAY;AACVJ,YAAMK,OADI;AAEVH,aAAO;AAFG,KAZF;AAgBVI,eAAW;AACTN,YAAMK,OADG;AAETH,aAAO;AAFE;AAhBD,GARJ;;AA8BRK,QAAM;AACJC,cAAU;AADN,GA9BE;;AAkCRC,aAAW;AACTC,SADS,mBACD;AACN,WAAKC,iBAAL;AACD;AAHQ,GAlCH;;AAwCRC,WAAS;AACPD,qBADO,+BACa;AAAA;;AAClB,UAAME,QAAQ,KAAKC,mBAAL,EAAd;AACAD,YAAME,MAAN,CAAa,eAAb,EAA8BC,kBAA9B;AACAH,YAAME,MAAN,CAAa,wBAAb,EAAuCC,kBAAvC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMC,QAAQC,GAAGC,iBAAH,GAAuBC,WAArC,CADgB,CACkC;AAClD,YAAMC,UAAWC,IAAI,CAAJ,EAAOC,KAAR,IAAkB,MAAMN,KAAxB,CAAhB;AACA,YAAMO,WAAYF,IAAI,CAAJ,EAAOC,KAAR,IAAkB,MAAMN,KAAxB,CAAjB,CAHgB,CAGkC;;AAElD;AACA,YAAIO,YAAYH,OAAhB,EAAyB;AACvB,gBAAKI,OAAL,CAAa;AACXtB,wBAAY;AADD,WAAb;;AAIA;AACD;;AAED,YAAMI,WAAWiB,WAAW,MAAKlB,IAAL,CAAUJ,KAAtC;;AAEA,cAAKuB,OAAL,CAAa;AACXlB,oBAAUmB,SAASnB,QAAT;AADC,SAAb;AAGD,OAnBD;AAoBD;AA1BM;AAxCD,CAAV,E","file":"bld-notice-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","Component({\n externalClasses: ['iclass'],\n \n options: {\n addGlobalClass: true,\n multipleSlots: true // 在组件定义时的选项中启用多slot支持\n },\n \n properties: {\n // 延迟播放时长\n delay: {\n type: Number,\n value: 1\n },\n // 滚动速度 rpx/s\n speed: {\n type: Number,\n value: 150\n },\n // 长度溢出时自动滚动播放\n scrollable: {\n type: Boolean,\n value: true\n },\n multiline: {\n type: Boolean,\n value: false\n }\n },\n\n data: {\n delaySec: 0,\n },\n\n lifetimes: {\n ready() {\n this.getContainerWidth()\n }\n },\n\n methods: {\n getContainerWidth() {\n const query = this.createSelectorQuery()\n query.select('.m-notice-bar').boundingClientRect()\n query.select('.m-notice-bar__content').boundingClientRect()\n\n query.exec(res => {\n const wrapW = wx.getSystemInfoSync().windowWidth // 容器宽度\n const noticeW = (res[0].width) * (750 / wrapW)\n const containW = (res[1].width) * (750 / wrapW) // 内容宽度(折合为rpx)\n \n // 内容宽度小于内容区域宽度,则不滚动\n if (containW <= noticeW) {\n this.setData({\n scrollable: false\n })\n\n return;\n }\n\n const delaySec = containW / this.data.speed\n\n this.setData({\n delaySec: parseInt(delaySec)\n })\n })\n }\n }\n});\n"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ {
2
+ "component": true
3
+ }
@@ -0,0 +1,30 @@
1
+ <view class="m-notice-bar__wrap iclass">
2
+
3
+ <slot name="preifx" />
4
+
5
+ <view class="m-notice-bar">
6
+ <view
7
+ class="m-notice-bar__content {{ !scrollable ? 'is-ellipsis' : '' }} {{ multiline ? 'is-multiline':'' }}"
8
+ style="{{ notice.setAnimation(scrollable, delaySec, speed, delay) }}"
9
+ >
10
+ <slot />
11
+ </view>
12
+ </view>
13
+
14
+ <slot name="suffix" />
15
+ </view>
16
+
17
+
18
+ <wxs module="notice">
19
+ function setAnimation(scrollable, sec, speed, delay) {
20
+ if(!scrollable || sec === 0) return ''
21
+
22
+ return [
23
+ 'animation: once '+ sec +'s linear ' + delay + 's, round '+ (sec + 750 / speed) +'s linear '+ (sec + delay) +'s infinite',
24
+ ].join(';');
25
+ }
26
+
27
+ module.exports = {
28
+ setAnimation: setAnimation
29
+ }
30
+ </wxs>
@@ -0,0 +1,51 @@
1
+ .m-notice-bar__wrap {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-shrink: 0;
5
+ font-size: 28rpx;
6
+ color: #ed6a0c;
7
+ background-color: #fffbe8;
8
+ }
9
+ .m-notice-bar__wrap .m-notice-bar {
10
+ flex: 1;
11
+ position: relative;
12
+ padding: 20rpx 16rpx;
13
+ min-height: 76rpx;
14
+ line-height: 1.4;
15
+ overflow: hidden;
16
+ box-sizing: border-box;
17
+ }
18
+ .m-notice-bar__wrap .m-notice-bar .m-notice-bar__content {
19
+ z-index: 0;
20
+ position: absolute;
21
+ white-space: nowrap;
22
+ transform: translateX(0);
23
+ }
24
+ .m-notice-bar__wrap .m-notice-bar .is-ellipsis {
25
+ position: static;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ white-space: nowrap;
29
+ }
30
+ .m-notice-bar__wrap .m-notice-bar .is-multiline {
31
+ position: static;
32
+ overflow: auto;
33
+ white-space: normal;
34
+ -webkit-overflow-scrolling: touch;
35
+ }
36
+ @keyframes once {
37
+ 0% {
38
+ transform: translateX(0);
39
+ }
40
+ 100% {
41
+ transform: translateX(-100%);
42
+ }
43
+ }
44
+ @keyframes round {
45
+ 0% {
46
+ transform: translateX(750rpx);
47
+ }
48
+ 100% {
49
+ transform: translateX(-100%);
50
+ }
51
+ }
@@ -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 = 18);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 19);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 18:
90
+ /***/ 19:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +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":""}
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 = 19);\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":""}