bulade-ui 1.1.64 → 1.1.66

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.
@@ -93,6 +93,7 @@ module.exports =
93
93
  "use strict";
94
94
 
95
95
 
96
+ var app = getApp();
96
97
  Component({
97
98
  options: {
98
99
  styleIsolation: "shared"
@@ -130,6 +131,14 @@ Component({
130
131
  },
131
132
  data: {
132
133
  // value: "",
134
+ enableAutoTrans: false
135
+ },
136
+ lifetimes: {
137
+ attached: function attached() {
138
+ this.setData({
139
+ enableAutoTrans: app.globalData.enableAutoTrans
140
+ });
141
+ }
133
142
  },
134
143
  methods: {
135
144
  valueChange: function valueChange(event) {
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-input/index.js"],"names":["Component","options","styleIsolation","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","showPlaceholder","data","methods","valueChange","event","detail","setData","triggerEvent","valueblur"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,WAAS;AACPC,oBAAgB;AADT,GADD;AAIRC,mBAAiB,CAAC,WAAD,EAAc,YAAd,EAA4B,YAA5B,CAJT;AAKRC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,cAAU;AACRH,YAAMI,OADE;AAERF,aAAO;AAFC,KALA;AASVG,gBAAY;AACVL,YAAMC,MADI;AAEVC,aAAO;AAFG,KATF;AAaVA,WAAO;AACLF,YAAMC,MADD;AAELC,aAAO;AAFF,KAbG;AAiBVF,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KAjBI;AAqBVI,cAAU;AACRN,YAAMI,OADE;AAERF,aAAO;AAFC,KArBA;AAyBVK,qBAAiB;AACfP,YAAMI,OADS;AAEfF,aAAO;AAFQ;AAzBP,GALJ;AAmCRM,QAAM;AACJ;AADI,GAnCE;AAsCRC,WAAS;AACPC,eADO,uBACKC,KADL,EACY;AAAA,UACTT,KADS,GACCS,MAAMC,MADP,CACTV,KADS;;;AAGjB,WAAKW,OAAL,CAAa;AACXX,eAAOA;AADI,OAAb;AAGA,WAAKY,YAAL,CAAkB,eAAlB,EAAmCH,MAAMC,MAAzC;AACD,KARM;AAUPG,aAVO,qBAUGJ,KAVH,EAUU;AACf,WAAKG,YAAL,CAAkB,aAAlB,EAAiCH,MAAMC,MAAvC;AACD;AAZM;AAtCD,CAAV,E","file":"bld-form/bld-form-item/bld-form-input/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 = 14);\n","Component({\n options: {\n styleIsolation: \"shared\",\n },\n externalClasses: [\"form-item\", \"form-label\", \"form-value\"],\n properties: {\n label: {\n type: String,\n value: \"\",\n },\n required: {\n type: Boolean,\n value: false,\n },\n labelWidth: {\n type: String,\n value: \"auto\",\n },\n value: {\n type: String,\n value: \"\",\n },\n type: {\n type: String,\n value: \"text\",\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n showPlaceholder: {\n type: Boolean,\n value: true,\n },\n },\n data: {\n // value: \"\",\n },\n methods: {\n valueChange(event) {\n const { value } = event.detail;\n\n this.setData({\n value: value,\n });\n this.triggerEvent(\"onValueChange\", event.detail);\n },\n\n valueblur(event) {\n this.triggerEvent(\"onValueblur\", event.detail);\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-input/index.js"],"names":["app","getApp","Component","options","styleIsolation","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","showPlaceholder","data","enableAutoTrans","lifetimes","attached","setData","globalData","methods","valueChange","event","detail","triggerEvent","valueblur"],"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;AACAC,UAAU;AACRC,WAAS;AACPC,oBAAgB;AADT,GADD;AAIRC,mBAAiB,CAAC,WAAD,EAAc,YAAd,EAA4B,YAA5B,CAJT;AAKRC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,cAAU;AACRH,YAAMI,OADE;AAERF,aAAO;AAFC,KALA;AASVG,gBAAY;AACVL,YAAMC,MADI;AAEVC,aAAO;AAFG,KATF;AAaVA,WAAO;AACLF,YAAMC,MADD;AAELC,aAAO;AAFF,KAbG;AAiBVF,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KAjBI;AAqBVI,cAAU;AACRN,YAAMI,OADE;AAERF,aAAO;AAFC,KArBA;AAyBVK,qBAAiB;AACfP,YAAMI,OADS;AAEfF,aAAO;AAFQ;AAzBP,GALJ;AAmCRM,QAAM;AACJ;AACAC,qBAAiB;AAFb,GAnCE;AAuCRC,aAAW;AACTC,YADS,sBACE;AACT,WAAKC,OAAL,CAAa;AACXH,yBAAiBjB,IAAIqB,UAAJ,CAAeJ;AADrB,OAAb;AAGD;AALQ,GAvCH;AA8CRK,WAAS;AACPC,eADO,uBACKC,KADL,EACY;AAAA,UACTd,KADS,GACCc,MAAMC,MADP,CACTf,KADS;;;AAGjB,WAAKU,OAAL,CAAa;AACXV,eAAOA;AADI,OAAb;AAGA,WAAKgB,YAAL,CAAkB,eAAlB,EAAmCF,MAAMC,MAAzC;AACD,KARM;AAUPE,aAVO,qBAUGH,KAVH,EAUU;AACf,WAAKE,YAAL,CAAkB,aAAlB,EAAiCF,MAAMC,MAAvC;AACD;AAZM;AA9CD,CAAV,E","file":"bld-form/bld-form-item/bld-form-input/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 = 14);\n","const app = getApp()\nComponent({\n options: {\n styleIsolation: \"shared\",\n },\n externalClasses: [\"form-item\", \"form-label\", \"form-value\"],\n properties: {\n label: {\n type: String,\n value: \"\",\n },\n required: {\n type: Boolean,\n value: false,\n },\n labelWidth: {\n type: String,\n value: \"auto\",\n },\n value: {\n type: String,\n value: \"\",\n },\n type: {\n type: String,\n value: \"text\",\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n showPlaceholder: {\n type: Boolean,\n value: true,\n },\n },\n data: {\n // value: \"\",\n enableAutoTrans: false\n },\n lifetimes: {\n attached() {\n this.setData({\n enableAutoTrans: app.globalData.enableAutoTrans\n })\n }\n },\n methods: {\n valueChange(event) {\n const { value } = event.detail;\n\n this.setData({\n value: value,\n });\n this.triggerEvent(\"onValueChange\", event.detail);\n },\n\n valueblur(event) {\n this.triggerEvent(\"onValueblur\", event.detail);\n },\n },\n});\n"],"sourceRoot":""}
@@ -19,7 +19,7 @@
19
19
  type="{{type}}"
20
20
  cursor-spacing="20px"
21
21
  model:value="{{ value }}"
22
- placeholder="{{value?value:showPlaceholder?'请输入'+label:''}}"
22
+ placeholder="{{value?value:showPlaceholder?( langEn&&enableAutoTrans ? 'Please input ' : '请输入' )+label:''}}"
23
23
  placeholder-style="color:#acacac;font-size:30rpx;font-weight:normal;"
24
24
  bindinput="valueChange"
25
25
  bindblur="valueblur"
@@ -3,6 +3,6 @@
3
3
  <bld-icon name="loading" />
4
4
  </view>
5
5
  <view class="tip-class tip">
6
- {{ text }}
6
+ {{ langEn ? 'Loading' : text }}
7
7
  </view>
8
8
  </view>
@@ -8,6 +8,7 @@
8
8
  left: 0;
9
9
  top: 0;
10
10
  z-index: 1000;
11
+ line-height: 30rpx !important;
11
12
  }
12
13
 
13
14
  .title {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulade-ui",
3
- "version": "1.1.64",
3
+ "version": "1.1.66",
4
4
  "description": "轻量、可靠的小程序 UI 组件库",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -1,3 +1,4 @@
1
+ const app = getApp()
1
2
  Component({
2
3
  options: {
3
4
  styleIsolation: "shared",
@@ -35,6 +36,14 @@ Component({
35
36
  },
36
37
  data: {
37
38
  // value: "",
39
+ enableAutoTrans: false
40
+ },
41
+ lifetimes: {
42
+ attached() {
43
+ this.setData({
44
+ enableAutoTrans: app.globalData.enableAutoTrans
45
+ })
46
+ }
38
47
  },
39
48
  methods: {
40
49
  valueChange(event) {
@@ -19,7 +19,7 @@
19
19
  type="{{type}}"
20
20
  cursor-spacing="20px"
21
21
  model:value="{{ value }}"
22
- placeholder="{{value?value:showPlaceholder?'请输入'+label:''}}"
22
+ placeholder="{{value?value:showPlaceholder?( langEn&&enableAutoTrans ? 'Please input ' : '请输入' )+label:''}}"
23
23
  placeholder-style="color:#acacac;font-size:30rpx;font-weight:normal;"
24
24
  bindinput="valueChange"
25
25
  bindblur="valueblur"
@@ -3,6 +3,6 @@
3
3
  <bld-icon name="loading" />
4
4
  </view>
5
5
  <view class="tip-class tip">
6
- {{ text }}
6
+ {{ langEn ? 'Loading' : text }}
7
7
  </view>
8
8
  </view>
@@ -8,6 +8,7 @@
8
8
  left: 0;
9
9
  top: 0;
10
10
  z-index: 1000;
11
+ line-height:30rpx !important;
11
12
  }
12
13
 
13
14
  .title {
@@ -8,6 +8,7 @@
8
8
  left: 0;
9
9
  top: 0;
10
10
  z-index: 1000;
11
+ line-height: 30rpx !important;
11
12
  }
12
13
 
13
14
  .title {