modify method name

This commit is contained in:
MaysWind
2023-08-20 19:41:51 +08:00
parent 84843066f2
commit fc9ac4c40e
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -39,7 +39,7 @@
</template>
<script>
import { arrayContainsFieldvalue } from '@/lib/common.js';
import { arrayContainsFieldValue } from '@/lib/common.js';
import { getColorsInRows } from '@/lib/color.js';
import { scrollToSelectedItem } from '@/lib/ui.desktop.js';
@@ -85,7 +85,7 @@ export default {
},
methods: {
hasSelectedIcon(row) {
return arrayContainsFieldvalue(row, 'id', this.modelValue);
return arrayContainsFieldValue(row, 'id', this.modelValue);
},
onMenuStateChanged(state) {
const self = this;
+2 -2
View File
@@ -37,7 +37,7 @@
</template>
<script>
import { arrayContainsFieldvalue } from '@/lib/common.js';
import { arrayContainsFieldValue } from '@/lib/common.js';
import { getIconsInRows } from '@/lib/icon.js';
import { scrollToSelectedItem } from '@/lib/ui.desktop.js';
@@ -83,7 +83,7 @@ export default {
},
methods: {
hasSelectedIcon(row) {
return arrayContainsFieldvalue(row, 'id', this.modelValue);
return arrayContainsFieldValue(row, 'id', this.modelValue);
},
onMenuStateChanged(state) {
const self = this;
@@ -29,7 +29,7 @@
</template>
<script>
import { arrayContainsFieldvalue } from '@/lib/common.js';
import { arrayContainsFieldValue } from '@/lib/common.js';
import { getColorsInRows } from '@/lib/color.js';
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
@@ -70,7 +70,7 @@ export default {
this.$emit('update:show', false);
},
hasSelectedIcon(row) {
return arrayContainsFieldvalue(row, 'id', this.currentValue);
return arrayContainsFieldValue(row, 'id', this.currentValue);
}
}
}
+2 -2
View File
@@ -29,7 +29,7 @@
</template>
<script>
import { arrayContainsFieldvalue } from '@/lib/common.js';
import { arrayContainsFieldValue } from '@/lib/common.js';
import { getIconsInRows } from '@/lib/icon.js';
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
@@ -80,7 +80,7 @@ export default {
this.$emit('update:show', false);
},
hasSelectedIcon(row) {
return arrayContainsFieldvalue(row, 'id', this.currentValue);
return arrayContainsFieldValue(row, 'id', this.currentValue);
}
}
}
+1 -1
View File
@@ -331,7 +331,7 @@ export function copyArrayTo(fromArray, toArray) {
return toArray;
}
export function arrayContainsFieldvalue(array, fieldName, value) {
export function arrayContainsFieldValue(array, fieldName, value) {
if (!value || !array || !array.length) {
return false;
}