Skip to content

Commit a5014b1

Browse files
committed
* 命名规范化
1 parent aaa997a commit a5014b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/components/diboot/mixins

src/components/diboot/mixins/more.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
this.attachMoreLoading = true
5252
const moreLoader = this.attachMoreLoader[loader]
5353
moreLoader.keyword = value
54-
this.$set(this.more, `${loader}Options`, await this.LoadAttachMore(moreLoader))
54+
this.$set(this.more, `${loader}Options`, await this.loadAttachMore(moreLoader))
5555
this.attachMoreLoading = false
5656
},
5757
/**
@@ -60,7 +60,7 @@ export default {
6060
* @param moreLoader 加载器
6161
* @param node 节点(可空)
6262
*/
63-
async LoadAttachMore(moreLoader, node = {}) {
63+
async loadAttachMore(moreLoader, node = {}) {
6464
if (moreLoader.disabled) {
6565
return
6666
}
@@ -84,7 +84,7 @@ export default {
8484
*/
8585
async lazyLoadMore(node, loader, resolve) {
8686
const moreLoader = this.attachMoreLoader[loader]
87-
const dataLsit = await this.LoadAttachMore(moreLoader, node.data) || []
87+
const dataLsit = await this.loadAttachMore(moreLoader, node.data) || []
8888
dataLsit.length === 0 && moreLoader.next != null && this.$set(node.data, 'disabled', true)
8989
resolve(dataLsit)
9090
},
@@ -103,7 +103,7 @@ export default {
103103
moreLoader.condition == null && (moreLoader.condition = {})
104104
moreLoader.condition[condition] = value
105105
this.$set(this.form, name, undefined)
106-
!lazy && this.$set(this.more, `${loader}Options`, isNull ? [] : await this.LoadAttachMore(moreLoader))
106+
!lazy && this.$set(this.more, `${loader}Options`, isNull ? [] : await this.loadAttachMore(moreLoader))
107107
}
108108
controlItem instanceof Array ? controlItem.forEach(item => execute(item)) : execute(controlItem || {})
109109
}

0 commit comments

Comments
 (0)