【fix ESLint】JAreaLinkage、JData、JInput、views/account/center/Index

This commit is contained in:
zhaoxiao
2023-03-07 17:20:42 +08:00
parent 6d2689436e
commit 8775331948
4 changed files with 15 additions and 15 deletions
+13 -10
View File
@@ -23,7 +23,7 @@
@change="handleChange" @change="handleChange"
/> />
<div v-else> <div v-else>
<span style="color:red;"> Bad type value: {{_type}}</span> <span style="color:red;"> Bad type value: {{ _type }}</span>
</div> </div>
</div> </div>
</template> </template>
@@ -96,7 +96,9 @@ export default {
/** 重新加载组件 */ /** 重新加载组件 */
reload () { reload () {
this.reloading = true this.reloading = true
this.$nextTick(() => this.reloading = false) this.$nextTick(() => {
this.reloading = false
})
}, },
/** 通过 value 反推 options */ /** 通过 value 反推 options */
@@ -147,15 +149,16 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.j-area-linkage { .j-area-linkage {
height:40px; height: 40px;
/deep/ .area-cascader-wrap .area-select {
width: 100%;
}
/deep/ .area-select .area-selected-trigger { /deep/ .area-cascader-wrap .area-select {
line-height: 1.15; width: 100%;
}
} }
/deep/ .area-select .area-selected-trigger {
line-height: 1.15;
}
}
</style> </style>
-1
View File
@@ -107,7 +107,6 @@ export default {
computed: { computed: {
// 透传给下级组件的事件,需要排除本组件使用的change事件 // 透传给下级组件的事件,需要排除本组件使用的change事件
childListeners () { childListeners () {
const vm = this
const result = Object.assign({}, const result = Object.assign({},
this.$listeners this.$listeners
) )
+1 -2
View File
@@ -48,7 +48,6 @@ export default {
computed: { computed: {
// 透传给下级组件的事件,需要排除本组件使用的change事件 // 透传给下级组件的事件,需要排除本组件使用的change事件
childListeners () { childListeners () {
const vm = this
const result = Object.assign({}, const result = Object.assign({},
this.$listeners this.$listeners
) )
@@ -77,7 +76,7 @@ export default {
switch (this.type) { switch (this.type) {
case JINPUT_QUERY_LIKE: case JINPUT_QUERY_LIKE:
// 修复路由传参的值传送到jinput框被前后各截取了一位 #1336 // 修复路由传参的值传送到jinput框被前后各截取了一位 #1336
if (text.indexOf('*') != -1) { if (text.indexOf('*') !== -1) {
text = text.substring(1, text.length - 1) text = text.substring(1, text.length - 1)
} }
break break
+1 -2
View File
@@ -145,8 +145,7 @@ export default {
}, },
handleTagClose (removeTag) { handleTagClose (removeTag) {
const tags = this.tags.filter(tag => tag != removeTag) this.tags = this.tags.filter(tag => tag + '' !== removeTag + '')
this.tags = tags
}, },
showTagInput () { showTagInput () {