bulade-ui 1.1.41 → 1.1.43

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 (26) hide show
  1. package/miniprogram_dist/bld-cell/index.js +1 -0
  2. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  3. package/miniprogram_dist/bld-cell/index.wxml +1 -1
  4. package/miniprogram_dist/bld-cell-group/index.js +1 -0
  5. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  6. package/miniprogram_dist/bld-cell-group/index.wxml +1 -1
  7. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js +4 -0
  8. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  9. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +1 -0
  10. package/miniprogram_dist/bld-html/index.js +4 -0
  11. package/miniprogram_dist/bld-html/index.js.map +1 -1
  12. package/miniprogram_dist/bld-html/index.wxml +1 -1
  13. package/miniprogram_dist/bld-html/index.wxss +4 -0
  14. package/miniprogram_dist/bld-icon/index.wxss +583 -583
  15. package/miniprogram_dist/bld-nav-bar/index.wxml +2 -2
  16. package/miniprogram_dist/bld-nav-bar/index.wxss +6 -0
  17. package/miniprogram_dist/bld-page/index.js +9 -1
  18. package/miniprogram_dist/bld-page/index.js.map +1 -1
  19. package/miniprogram_dist/bld-page/index.wxml +2 -0
  20. package/miniprogram_dist/bld-tabs/index.js +1 -1
  21. package/miniprogram_dist/bld-tabs/index.js.map +1 -1
  22. package/miniprogram_dist/bld-tabs/index.wxml +1 -1
  23. package/miniprogram_dist/bld-tabs/index.wxss +1 -1
  24. package/package.json +1 -1
  25. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +4 -0
  26. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +1 -0
@@ -12,10 +12,10 @@
12
12
  </view>
13
13
  </view>
14
14
  <view
15
- class="title"
15
+ class="title {{ showTitle ?'showTitle':'' }}"
16
16
  style="{{ titleStyle }}"
17
17
  >
18
- <slot wx:if="{{ showTitle }}" />
18
+ <slot />
19
19
  </view>
20
20
  <view class="operations right">
21
21
  <button
@@ -15,6 +15,12 @@
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  align-items: center;
18
+ transition: opacity 0.3s ease-in-out;
19
+ opacity: 0;
20
+ }
21
+
22
+ .showTitle {
23
+ opacity: 1;
18
24
  }
19
25
 
20
26
  .operation {
@@ -128,11 +128,16 @@ Component({
128
128
  scrollTop: {
129
129
  type: Number,
130
130
  value: 0
131
+ },
132
+ textAlign: {
133
+ type: String,
134
+ value: "left"
131
135
  }
132
136
  },
133
137
  data: {
134
138
  _navBarShowTitle: true,
135
- _navBarBgColor: ""
139
+ _navBarBgColor: "",
140
+ showNavBar: false
136
141
  },
137
142
  lifetimes: {
138
143
  attached: function attached() {
@@ -147,6 +152,9 @@ Component({
147
152
  _navBarBgColor: null
148
153
  });
149
154
  }
155
+ this.setData({
156
+ showNavBar: true
157
+ });
150
158
  }
151
159
  },
152
160
  methods: {
@@ -1 +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;QAC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ADA,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 = 25);\n","Component({\r\n externalClasses: [\"page-class\", \"nav-bar-class\", \"content-class\", \"footer-class\"],\r\n options: {\r\n multipleSlots: true,\r\n },\r\n properties: {\r\n navBarMode: {\r\n type: String,\r\n value: \"always\",\r\n },\r\n navBarShowDistance: {\r\n type: Number,\r\n value: 50,\r\n },\r\n navBarShowShare: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n navBarBgColor: {\r\n type: String,\r\n value: \"#fff\",\r\n },\r\n navBarGoBack: {\r\n type: Boolean,\r\n value: true,\r\n },\r\n mode: {\r\n type: String,\r\n value: \"nav-to-bottom\",\r\n },\r\n scrollTop: {\r\n type: Number,\r\n value: 0,\r\n },\r\n },\r\n data: {\r\n _navBarShowTitle: true,\r\n _navBarBgColor: \"\",\r\n },\r\n lifetimes: {\r\n attached() {\r\n if (this.data.navBarMode == \"always\") {\r\n this.setData({\r\n _navBarShowTitle: true,\r\n _navBarBgColor: this.data.navBarBgColor,\r\n });\r\n } else if (this.data.navBarMode == \"show-after-scroll\") {\r\n this.setData({\r\n _navBarShowTitle: false,\r\n _navBarBgColor: null,\r\n });\r\n }\r\n },\r\n },\r\n methods: {\r\n scroll(e) {\r\n this.triggerEvent(\"scroll\", { ...e.detail });\r\n this.showNavBarAfterScroll(e);\r\n },\r\n\r\n scrollToLower(e) {\r\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\r\n },\r\n\r\n showNavBarAfterScroll(e) {\r\n if (this.data.navBarMode != \"show-after-scroll\") {\r\n return;\r\n }\r\n\r\n const ok = e.detail.scrollTop > this.data.navBarShowDistance;\r\n\r\n this.setData({\r\n _navBarShowTitle: ok,\r\n _navBarBgColor: ok ? this.data.navBarBgColor : null,\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
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","textAlign","data","_navBarShowTitle","_navBarBgColor","showNavBar","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;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,OALD,MAKO,IAAI,KAAKK,IAAL,CAAUb,UAAV,IAAwB,mBAA5B,EAAiD;AACtD,aAAKmB,OAAL,CAAa;AACXL,4BAAkB,KADP;AAEXC,0BAAgB;AAFL,SAAb;AAID;AACD,WAAKI,OAAL,CAAa;AACXH,oBAAY;AADD,OAAb;AAGD;AAhBQ,GA5CH;AA8DRI,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,KAAKT,IAAL,CAAUb,UAAV,IAAwB,mBAA5B,EAAiD;AAC/C;AACD;;AAED,UAAM2B,KAAKL,EAAEE,MAAF,CAASb,SAAT,GAAqB,KAAKE,IAAL,CAAUT,kBAA1C;;AAEA,WAAKe,OAAL,CAAa;AACXL,0BAAkBa,EADP;AAEXZ,wBAAgBY,KAAK,KAAKd,IAAL,CAAUL,aAAf,GAA+B;AAFpC,OAAb;AAID;AArBM;AA9DD,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 = 25);\n","Component({\r\n externalClasses: [\"page-class\", \"nav-bar-class\", \"content-class\", \"footer-class\"],\r\n options: {\r\n multipleSlots: true,\r\n },\r\n properties: {\r\n navBarMode: {\r\n type: String,\r\n value: \"always\",\r\n },\r\n navBarShowDistance: {\r\n type: Number,\r\n value: 50,\r\n },\r\n navBarShowShare: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n navBarBgColor: {\r\n type: String,\r\n value: \"#fff\",\r\n },\r\n navBarGoBack: {\r\n type: Boolean,\r\n value: true,\r\n },\r\n mode: {\r\n type: String,\r\n value: \"nav-to-bottom\",\r\n },\r\n scrollTop: {\r\n type: Number,\r\n value: 0,\r\n },\r\n textAlign: {\r\n type: String,\r\n value: \"left\",\r\n },\r\n },\r\n data: {\r\n _navBarShowTitle: true,\r\n _navBarBgColor: \"\",\r\n showNavBar: false\r\n },\r\n lifetimes: {\r\n attached() {\r\n if (this.data.navBarMode == \"always\") {\r\n this.setData({\r\n _navBarShowTitle: true,\r\n _navBarBgColor: this.data.navBarBgColor\r\n });\r\n } else if (this.data.navBarMode == \"show-after-scroll\") {\r\n this.setData({\r\n _navBarShowTitle: false,\r\n _navBarBgColor: null\r\n });\r\n }\r\n this.setData({\r\n showNavBar: true\r\n });\r\n },\r\n },\r\n methods: {\r\n scroll(e) {\r\n this.triggerEvent(\"scroll\", { ...e.detail });\r\n this.showNavBarAfterScroll(e);\r\n },\r\n\r\n scrollToLower(e) {\r\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\r\n },\r\n\r\n showNavBarAfterScroll(e) {\r\n if (this.data.navBarMode != \"show-after-scroll\") {\r\n return;\r\n }\r\n\r\n const ok = e.detail.scrollTop > this.data.navBarShowDistance;\r\n\r\n this.setData({\r\n _navBarShowTitle: ok,\r\n _navBarBgColor: ok ? this.data.navBarBgColor : null,\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,9 +1,11 @@
1
1
  <view class="page page-class">
2
2
  <bld-nav-bar
3
+ wx:if="{{ showNavBar }}"
3
4
  go-back="{{ navBarGoBack }}"
4
5
  show-title="{{ _navBarShowTitle }}"
5
6
  show-share="{{ navBarShowShare }}"
6
7
  bg-color="{{ _navBarBgColor }}"
8
+ text-align="{{ textAlign }}"
7
9
  iclass="nav-bar-class"
8
10
  >
9
11
  <slot name="nav-bar" />
@@ -94,7 +94,7 @@ module.exports =
94
94
 
95
95
 
96
96
  Component({
97
- externalClasses: ["iclass"],
97
+ externalClasses: ["iclass", "tab-class"],
98
98
  properties: {
99
99
  tabs: {
100
100
  type: Array,
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-tabs/index.js"],"names":["Component","externalClasses","properties","tabs","type","Array","value","activeIndex","Number","data","observers","methods","handlehangeTab","e","current","currentTarget","dataset","tab","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,UAAM;AACJC,YAAMC,KADF;AAEJC,aAAO;AAFH,KADI;AAKVC,iBAAa;AACXH,YAAMI,MADK;AAEXF,aAAO;AAFI;AALH,GAFJ;AAYRG,QAAM,EAZE;AAaRC,aAAW,EAbH;AAcRC,WAAS;AACPC,kBADO,0BACQC,CADR,EACW;AAChB,UAAMC,UAAUD,EAAEE,aAAF,CAAgBC,OAAhB,CAAwBC,GAAxC;AACA,WAAKC,YAAL,CAAkB,WAAlB,EAA+BJ,OAA/B;AACD;AAJM;AAdD,CAAV,E","file":"bld-tabs\\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 = 53);\n","Component({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n tabs: {\r\n type: Array,\r\n value: [],\r\n },\r\n activeIndex: {\r\n type: Number,\r\n value: 0,\r\n },\r\n },\r\n data: {},\r\n observers: {},\r\n methods: {\r\n handlehangeTab(e) {\r\n const current = e.currentTarget.dataset.tab;\r\n this.triggerEvent(\"changeTab\", current);\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-tabs/index.js"],"names":["Component","externalClasses","properties","tabs","type","Array","value","activeIndex","Number","data","observers","methods","handlehangeTab","e","current","currentTarget","dataset","tab","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,EAAW,WAAX,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,KADF;AAEJC,aAAO;AAFH,KADI;AAKVC,iBAAa;AACXH,YAAMI,MADK;AAEXF,aAAO;AAFI;AALH,GAFJ;AAYRG,QAAM,EAZE;AAaRC,aAAW,EAbH;AAcRC,WAAS;AACPC,kBADO,0BACQC,CADR,EACW;AAChB,UAAMC,UAAUD,EAAEE,aAAF,CAAgBC,OAAhB,CAAwBC,GAAxC;AACA,WAAKC,YAAL,CAAkB,WAAlB,EAA+BJ,OAA/B;AACD;AAJM;AAdD,CAAV,E","file":"bld-tabs\\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 = 53);\n","Component({\r\n externalClasses: [\"iclass\", \"tab-class\"],\r\n properties: {\r\n tabs: {\r\n type: Array,\r\n value: [],\r\n },\r\n activeIndex: {\r\n type: Number,\r\n value: 0,\r\n },\r\n },\r\n data: {},\r\n observers: {},\r\n methods: {\r\n handlehangeTab(e) {\r\n const current = e.currentTarget.dataset.tab;\r\n this.triggerEvent(\"changeTab\", current);\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,7 +1,7 @@
1
1
  <view class="tabs iclass" wx:if="{{ tabs.length }}">
2
2
  <view
3
3
  wx:for="{{ tabs }}"
4
- class="tab {{ activeIndex === index ? 'active' : '' }}"
4
+ class="tab tab-class {{ activeIndex === index ? 'active' : '' }}"
5
5
  data-tab="{{ index }}"
6
6
  bind:tap="handlehangeTab"
7
7
  >
@@ -27,4 +27,4 @@
27
27
  bottom: 0;
28
28
  left: 50%;
29
29
  transform: translate(-50%);
30
- }
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulade-ui",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "轻量、可靠的小程序 UI 组件库",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -57,6 +57,10 @@ Component({
57
57
  type: String,
58
58
  value: "",
59
59
  },
60
+ inputType: {
61
+ type: String,
62
+ value: "text",
63
+ },
60
64
  },
61
65
  data: {
62
66
  list: [],
@@ -32,6 +32,7 @@
32
32
  model:value="{{ inputValue }}"
33
33
  placeholder="{{inputValue?inputValue:showPlaceholder?placeholder?placeholder:'请输入'+label:''}}"
34
34
  placeholder-style="color:#acacac;font-size:30rpx;font-weight:normal;"
35
+ type="{{inputType}}"
35
36
  bindblur="inputValueChange"
36
37
  />
37
38
  <block wx:for="{{list}}">