diff --git a/src/coupon-list/index.js b/src/coupon-list/index.js
index 7ca6cd2a1..138fe8d37 100644
--- a/src/coupon-list/index.js
+++ b/src/coupon-list/index.js
@@ -127,7 +127,7 @@ export default createComponent({
});
},
- renderEmpty() {
+ genEmpty() {
return (

@@ -136,7 +136,7 @@ export default createComponent({
);
},
- renderExchangeButton() {
+ genExchangeButton() {
return (
);
@@ -187,7 +187,7 @@ export default createComponent({
nativeOnClick={onChange(index)}
/>
))}
- {!coupons.length && this.renderEmpty()}
+ {!coupons.length && this.genEmpty()}
);
@@ -198,7 +198,7 @@ export default createComponent({
{disabledCoupons.map(coupon => (
))}
- {!disabledCoupons.length && this.renderEmpty()}
+ {!disabledCoupons.length && this.genEmpty()}
);
diff --git a/src/field/index.js b/src/field/index.js
index dcfc3ef90..91e73d955 100644
--- a/src/field/index.js
+++ b/src/field/index.js
@@ -202,7 +202,7 @@ export default createComponent({
}
},
- renderInput() {
+ genInput() {
const inputSlot = this.slots('input');
if (inputSlot) {
@@ -240,7 +240,7 @@ export default createComponent({
return
@@ -278,7 +278,7 @@ export default createComponent({
const { slots, labelAlign } = this;
const scopedSlots = {
- icon: this.renderLeftIcon
+ icon: this.genLeftIcon
};
if (slots('label')) {
scopedSlots.title = () => slots('label');
@@ -306,14 +306,14 @@ export default createComponent({
onClick={this.onClick}
>
- {this.renderInput()}
+ {this.genInput()}
{this.showClear && (
)}
- {this.renderRightIcon()}
+ {this.genRightIcon()}
{slots('button') &&
{slots('button')}
}
- {this.renderWordLimit()}
+ {this.genWordLimit()}
{this.errorMessage && (
{this.errorMessage}
diff --git a/src/image/index.js b/src/image/index.js
index 2bf0c0d32..70dfa62b0 100644
--- a/src/image/index.js
+++ b/src/image/index.js
@@ -104,7 +104,7 @@ export default createComponent({
this.$emit('click', event);
},
- renderPlaceholder() {
+ genPlaceholder() {
if (this.loading && this.showLoading) {
return (
@@ -122,7 +122,7 @@ export default createComponent({
}
},
- renderImage() {
+ genImage() {
const imgData = {
class: bem('img'),
attrs: {
@@ -150,8 +150,8 @@ export default createComponent({
render() {
return (
- {this.renderImage()}
- {this.renderPlaceholder()}
+ {this.genImage()}
+ {this.genPlaceholder()}
);
}
diff --git a/src/rate/index.js b/src/rate/index.js
index dd88912e7..3cfa29e0b 100644
--- a/src/rate/index.js
+++ b/src/rate/index.js
@@ -136,7 +136,7 @@ export default createComponent({
return this.allowHalf ? 0.5 : 1;
},
- renderStar(status, index) {
+ genStar(status, index) {
const { icon, color, count, voidIcon, disabled, voidColor, disabledColor } = this;
const score = index + 1;
const isFull = status === 'full';
@@ -196,7 +196,7 @@ export default createComponent({
onTouchstart={this.onTouchStart}
onTouchmove={this.onTouchMove}
>
- {this.list.map((status, index) => this.renderStar(status, index))}
+ {this.list.map((status, index) => this.genStar(status, index))}
);
}
diff --git a/src/sku/components/SkuImgUploader.js b/src/sku/components/SkuImgUploader.js
index d44aef55f..091066f48 100644
--- a/src/sku/components/SkuImgUploader.js
+++ b/src/sku/components/SkuImgUploader.js
@@ -44,7 +44,7 @@ export default createComponent({
this.$toast(t('oversize', this.maxSize));
},
- renderUploader(content, disabled = false) {
+ genUploader(content, disabled = false) {
return (
{this.uploadFail
@@ -80,7 +80,7 @@ export default createComponent({
render() {
return (
- {this.value && this.renderUploader(
+ {this.value && this.genUploader(
[

,
,
- this.renderMask()
+ this.genMask()
],
!this.uploadFail
)}
- {!this.value && !this.paddingImg && this.renderUploader(
+ {!this.value && !this.paddingImg && this.genUploader(
diff --git a/src/swipe/index.js b/src/swipe/index.js
index 422be52a7..ff5499fb8 100644
--- a/src/swipe/index.js
+++ b/src/swipe/index.js
@@ -312,7 +312,7 @@ export default createComponent({
}
},
- renderIndicator() {
+ genIndicator() {
const { count, activeIndicator } = this;
const slot = this.slots('indicator');
@@ -349,7 +349,7 @@ export default createComponent({
>
{this.slots()}
- {this.renderIndicator()}
+ {this.genIndicator()}
);
}
diff --git a/src/tabs/Content.js b/src/tabs/Content.js
index 99bf1031e..82d20be57 100644
--- a/src/tabs/Content.js
+++ b/src/tabs/Content.js
@@ -53,7 +53,7 @@ export default createComponent({
}
},
- renderChildren() {
+ genChildren() {
if (this.animated) {
return (
@@ -72,7 +72,7 @@ export default createComponent({
class={bem('content', { animated: this.animated })}
{...{ on: this.listeners }}
>
- {this.renderChildren()}
+ {this.genChildren()}
);
}
diff --git a/src/uploader/index.js b/src/uploader/index.js
index 92a9721e8..0cc40e450 100644
--- a/src/uploader/index.js
+++ b/src/uploader/index.js
@@ -213,7 +213,7 @@ export default createComponent({
}
},
- renderPreviewItem(item, index) {
+ genPreviewItem(item, index) {
const DeleteIcon = (
= this.maxCount) {
return;
}
@@ -322,8 +322,8 @@ export default createComponent({
return (
- {this.renderPreviewList()}
- {this.renderUpload()}
+ {this.genPreviewList()}
+ {this.genUpload()}
);