Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions snapshots/iconfont-ts/alipay/alipay.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Component({
});
}
},
disUpdate(prevProps) {
didUpdate(prevProps) {
const size = this.props.size;
const color = this.props.color;

Expand All @@ -45,7 +45,7 @@ Component({
}
},
methods: {
fixColor: function() {
fixColor: function () {
var color = this.props.color;
var hex2rgb = this.hex2rgb;

Expand All @@ -57,7 +57,7 @@ Component({
return item.indexOf('#') === 0 ? hex2rgb(item) : item;
});
},
hex2rgb: function(hex) {
hex2rgb: function (hex) {
var rgb = [];

hex = hex.substr(1);
Expand All @@ -66,7 +66,7 @@ Component({
hex = hex.replace(/(.)/g, '$1$1');
}

hex.replace(/../g, function(color) {
hex.replace(/../g, function (color) {
rgb.push(parseInt(color, 0x10));
return color;
});
Expand Down