bulade-ui 1.1.13 → 1.1.14

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.
@@ -3,6 +3,6 @@
3
3
  "usingComponents":
4
4
  {
5
5
  "m-button": "../button/index",
6
- "m-icon": "../bld-icon/index"
6
+ "bld-icon": "../bld-icon/index"
7
7
  }
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -5,7 +5,7 @@
5
5
  >
6
6
  <!-- 头部图标 -->
7
7
  <view wx:if="{{ icon }}" class="m-cell__icon m-cell__header">
8
- <m-icon name="{{ icon }}" size="36" color="{{ iconColor ? iconColor : '' }}" />
8
+ <bld-icon name="{{ icon }}" size="36" color="{{ iconColor ? iconColor : '' }}" />
9
9
  </view>
10
10
 
11
11
  <!-- 自定义标题 -->
@@ -21,5 +21,5 @@
21
21
  </view>
22
22
 
23
23
  <!-- 右侧跳转箭头 -->
24
- <m-icon wx:if="{{ url }}" class="m-cell__icon m-cell__footer" catchtap="navigateTo" name="arrow-right" size="32" color="#999" />
24
+ <bld-icon wx:if="{{ url }}" class="m-cell__icon m-cell__footer" catchtap="navigateTo" name="arrow-right" size="32" color="#999" />
25
25
  </view>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -10,7 +10,7 @@
10
10
  class="m-checkbox__icon {{ check.getClass(value, disabled, prevent, round) }}"
11
11
  style="{{ check.getStyle(value, disabled, prevent, checkedColor) }}"
12
12
  >
13
- <m-icon
13
+ <bld-icon
14
14
  name="confirm"
15
15
  size="30"
16
16
  color="{{ value ? '#fff' : 'transparent' }}"
@@ -113,7 +113,7 @@ Component({
113
113
  size: {
114
114
  type: Number,
115
115
  optionalTypes: [Number, String],
116
- value: 32,
116
+ value: '',
117
117
  observer: function observer(val) {
118
118
  this.setData({
119
119
  fsize: parseInt(val)
@@ -132,7 +132,7 @@ Component({
132
132
 
133
133
  data: {
134
134
  isImage: false,
135
- fsize: 32
135
+ fsize: ''
136
136
  }
137
137
  });
138
138
 
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-icon/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","name","type","String","observer","val","setData","isImage","indexOf","size","Number","optionalTypes","value","fsize","parseInt","color","customStyle","data"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,cAFI,oBAEKC,GAFL,EAEU;AACZ,aAAKC,OAAL,CAAa;AACXC,mBAASF,IAAIG,OAAJ,CAAY,GAAZ,IAAmB,CAAC;AADlB,SAAb;AAGD;AANG,KADI;;AAUVC,UAAM;AACJP,YAAMQ,MADF;AAEJC,qBAAe,CAACD,MAAD,EAASP,MAAT,CAFX;AAGJS,aAAO,EAHH;AAIJR,cAJI,oBAIKC,GAJL,EAIU;AACZ,aAAKC,OAAL,CAAa;AACXO,iBAAOC,SAAST,GAAT;AADI,SAAb;AAGD;AARG,KAVI;AAoBVU,WAAO;AACLb,YAAMC,MADD;AAELS,aAAO;AAFF,KApBG;AAwBVI,iBAAa;AACXd,YAAMC,MADK;AAEXS,aAAO;AAFI;AAxBH,GAPJ;;AAqCRK,QAAM;AACJV,aAAS,KADL;AAEJM,WAAO;AAFH;AArCE,CAAV,E","file":"bld-icon\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n","Component({\r\n externalClasses: ['iclass'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n name: {\r\n type: String,\r\n observer(val) {\r\n this.setData({\r\n isImage: val.indexOf('/') > -1\r\n })\r\n }\r\n },\r\n \r\n size: {\r\n type: Number,\r\n optionalTypes: [Number, String],\r\n value: 32,\r\n observer(val) {\r\n this.setData({\r\n fsize: parseInt(val)\r\n }) \r\n }\r\n },\r\n color: {\r\n type: String,\r\n value: ''\r\n },\r\n customStyle: {\r\n type: String,\r\n value: ''\r\n }\r\n },\r\n \r\n data: {\r\n isImage: false,\r\n fsize: 32\r\n }\r\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-icon/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","name","type","String","observer","val","setData","isImage","indexOf","size","Number","optionalTypes","value","fsize","parseInt","color","customStyle","data"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,cAFI,oBAEKC,GAFL,EAEU;AACZ,aAAKC,OAAL,CAAa;AACXC,mBAASF,IAAIG,OAAJ,CAAY,GAAZ,IAAmB,CAAC;AADlB,SAAb;AAGD;AANG,KADI;;AAUVC,UAAM;AACJP,YAAMQ,MADF;AAEJC,qBAAe,CAACD,MAAD,EAASP,MAAT,CAFX;AAGJS,aAAO,EAHH;AAIJR,cAJI,oBAIKC,GAJL,EAIU;AACZ,aAAKC,OAAL,CAAa;AACXO,iBAAOC,SAAST,GAAT;AADI,SAAb;AAGD;AARG,KAVI;AAoBVU,WAAO;AACLb,YAAMC,MADD;AAELS,aAAO;AAFF,KApBG;AAwBVI,iBAAa;AACXd,YAAMC,MADK;AAEXS,aAAO;AAFI;AAxBH,GAPJ;;AAqCRK,QAAM;AACJV,aAAS,KADL;AAEJM,WAAO;AAFH;AArCE,CAAV,E","file":"bld-icon\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n","Component({\r\n externalClasses: ['iclass'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n name: {\r\n type: String,\r\n observer(val) {\r\n this.setData({\r\n isImage: val.indexOf('/') > -1\r\n })\r\n }\r\n },\r\n \r\n size: {\r\n type: Number,\r\n optionalTypes: [Number, String],\r\n value: '',\r\n observer(val) {\r\n this.setData({\r\n fsize: parseInt(val)\r\n }) \r\n }\r\n },\r\n color: {\r\n type: String,\r\n value: ''\r\n },\r\n customStyle: {\r\n type: String,\r\n value: ''\r\n }\r\n },\r\n \r\n data: {\r\n isImage: false,\r\n fsize: ''\r\n }\r\n})"],"sourceRoot":""}
@@ -13,14 +13,15 @@
13
13
  <wxs module="icon">
14
14
  function setIconStyle(isImage, size, color) {
15
15
  var styles = []
16
+ var imgSize = size || 32
16
17
 
17
18
  if(size) {
18
- if(isImage) {
19
- styles.push('width:' + size +'rpx')
20
- styles.push('height:' + size +'rpx')
21
- }
22
19
  styles.push('font-size:' + size +'rpx')
23
20
  }
21
+ if(isImage) {
22
+ styles.push('width:' + imgSize +'rpx')
23
+ styles.push('height:' + imgSize +'rpx')
24
+ }
24
25
 
25
26
  if(color) {
26
27
  styles.push('color:' + color)
@@ -29,13 +29,13 @@
29
29
  <view wx:if="{{noticeText}}" class="notice-wrap" style="top:{{ top }}px;">
30
30
  <bld-notice-bar>
31
31
  <view class="preifx" slot="preifx">
32
- <m-icon name="notice" size="32" color="#ed6a0c" />
32
+ <bld-icon name="notice" size="32" color="#ed6a0c" />
33
33
  </view>
34
34
 
35
35
  <view>{{noticeText}}</view>
36
36
 
37
37
  <view class="suffix" slot="suffix">
38
- <m-icon name="cross" size="32" color="#ed6a0c" />
38
+ <bld-icon name="cross" size="32" color="#ed6a0c" />
39
39
  </view>
40
40
  </bld-notice-bar>
41
41
  </view>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -13,7 +13,7 @@
13
13
  <view class="m-toast">
14
14
 
15
15
  <view wx:if="{{ icon }}" class="m-toast__icon">
16
- <m-icon size="{{ iconSize }}" name="{{ icon }}" color="{{ iconColor }}" />
16
+ <bld-icon size="{{ iconSize }}" name="{{ icon }}" color="{{ iconColor }}" />
17
17
  </view>
18
18
 
19
19
  <view wx:elif="{{ image }}" class="m-toast__image">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  <block wx:else>
14
14
  <view class="m-grid-item__icon">
15
- <m-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ iconColor }}" size="{{ iconSize }}" dot="{{ dot }}" info="{{ info }}" />
15
+ <bld-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ iconColor }}" size="{{ iconSize }}" dot="{{ dot }}" info="{{ info }}" />
16
16
  <slot wx:else name="icon" />
17
17
 
18
18
  </view>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  <view class="m-timeline {{ isLast ? 'is-last':'' }}">
2
2
  <view class="m-timeline__line">
3
- <m-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ color }}" />
3
+ <bld-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ color }}" />
4
4
  <text wx:else style="{{ color ? 'color:' + color : '' }}">{{ text }}</text>
5
5
  </view>
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulade-ui",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "轻量、可靠的小程序 UI 组件库",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -3,6 +3,6 @@
3
3
  "usingComponents":
4
4
  {
5
5
  "m-button": "../button/index",
6
- "m-icon": "../bld-icon/index"
6
+ "bld-icon": "../bld-icon/index"
7
7
  }
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -5,7 +5,7 @@
5
5
  >
6
6
  <!-- 头部图标 -->
7
7
  <view wx:if="{{ icon }}" class="m-cell__icon m-cell__header">
8
- <m-icon name="{{ icon }}" size="36" color="{{ iconColor ? iconColor : '' }}" />
8
+ <bld-icon name="{{ icon }}" size="36" color="{{ iconColor ? iconColor : '' }}" />
9
9
  </view>
10
10
 
11
11
  <!-- 自定义标题 -->
@@ -21,5 +21,5 @@
21
21
  </view>
22
22
 
23
23
  <!-- 右侧跳转箭头 -->
24
- <m-icon wx:if="{{ url }}" class="m-cell__icon m-cell__footer" catchtap="navigateTo" name="arrow-right" size="32" color="#999" />
24
+ <bld-icon wx:if="{{ url }}" class="m-cell__icon m-cell__footer" catchtap="navigateTo" name="arrow-right" size="32" color="#999" />
25
25
  </view>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -10,7 +10,7 @@
10
10
  class="m-checkbox__icon {{ check.getClass(value, disabled, prevent, round) }}"
11
11
  style="{{ check.getStyle(value, disabled, prevent, checkedColor) }}"
12
12
  >
13
- <m-icon
13
+ <bld-icon
14
14
  name="confirm"
15
15
  size="30"
16
16
  color="{{ value ? '#fff' : 'transparent' }}"
@@ -18,7 +18,7 @@ Component({
18
18
  size: {
19
19
  type: Number,
20
20
  optionalTypes: [Number, String],
21
- value: 32,
21
+ value: '',
22
22
  observer(val) {
23
23
  this.setData({
24
24
  fsize: parseInt(val)
@@ -37,6 +37,6 @@ Component({
37
37
 
38
38
  data: {
39
39
  isImage: false,
40
- fsize: 32
40
+ fsize: ''
41
41
  }
42
42
  })
@@ -13,14 +13,15 @@
13
13
  <wxs module="icon">
14
14
  function setIconStyle(isImage, size, color) {
15
15
  var styles = []
16
+ var imgSize = size || 32
16
17
 
17
18
  if(size) {
18
- if(isImage) {
19
- styles.push('width:' + size +'rpx')
20
- styles.push('height:' + size +'rpx')
21
- }
22
19
  styles.push('font-size:' + size +'rpx')
23
20
  }
21
+ if(isImage) {
22
+ styles.push('width:' + imgSize +'rpx')
23
+ styles.push('height:' + imgSize +'rpx')
24
+ }
24
25
 
25
26
  if(color) {
26
27
  styles.push('color:' + color)
@@ -29,13 +29,13 @@
29
29
  <view wx:if="{{noticeText}}" class="notice-wrap" style="top:{{ top }}px;">
30
30
  <bld-notice-bar>
31
31
  <view class="preifx" slot="preifx">
32
- <m-icon name="notice" size="32" color="#ed6a0c" />
32
+ <bld-icon name="notice" size="32" color="#ed6a0c" />
33
33
  </view>
34
34
 
35
35
  <view>{{noticeText}}</view>
36
36
 
37
37
  <view class="suffix" slot="suffix">
38
- <m-icon name="cross" size="32" color="#ed6a0c" />
38
+ <bld-icon name="cross" size="32" color="#ed6a0c" />
39
39
  </view>
40
40
  </bld-notice-bar>
41
41
  </view>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -13,7 +13,7 @@
13
13
  <view class="m-toast">
14
14
 
15
15
  <view wx:if="{{ icon }}" class="m-toast__icon">
16
- <m-icon size="{{ iconSize }}" name="{{ icon }}" color="{{ iconColor }}" />
16
+ <bld-icon size="{{ iconSize }}" name="{{ icon }}" color="{{ iconColor }}" />
17
17
  </view>
18
18
 
19
19
  <view wx:elif="{{ image }}" class="m-toast__image">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  <block wx:else>
14
14
  <view class="m-grid-item__icon">
15
- <m-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ iconColor }}" size="{{ iconSize }}" dot="{{ dot }}" info="{{ info }}" />
15
+ <bld-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ iconColor }}" size="{{ iconSize }}" dot="{{ dot }}" info="{{ info }}" />
16
16
  <slot wx:else name="icon" />
17
17
 
18
18
  </view>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "m-icon": "../bld-icon/index"
4
+ "bld-icon": "../bld-icon/index"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  <view class="m-timeline {{ isLast ? 'is-last':'' }}">
2
2
  <view class="m-timeline__line">
3
- <m-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ color }}" />
3
+ <bld-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ color }}" />
4
4
  <text wx:else style="{{ color ? 'color:' + color : '' }}">{{ text }}</text>
5
5
  </view>
6
6