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