mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
modify method name
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { arrayContainsFieldvalue } from '@/lib/common.js';
|
import { arrayContainsFieldValue } from '@/lib/common.js';
|
||||||
import { getColorsInRows } from '@/lib/color.js';
|
import { getColorsInRows } from '@/lib/color.js';
|
||||||
import { scrollToSelectedItem } from '@/lib/ui.desktop.js';
|
import { scrollToSelectedItem } from '@/lib/ui.desktop.js';
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasSelectedIcon(row) {
|
hasSelectedIcon(row) {
|
||||||
return arrayContainsFieldvalue(row, 'id', this.modelValue);
|
return arrayContainsFieldValue(row, 'id', this.modelValue);
|
||||||
},
|
},
|
||||||
onMenuStateChanged(state) {
|
onMenuStateChanged(state) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { arrayContainsFieldvalue } from '@/lib/common.js';
|
import { arrayContainsFieldValue } from '@/lib/common.js';
|
||||||
import { getIconsInRows } from '@/lib/icon.js';
|
import { getIconsInRows } from '@/lib/icon.js';
|
||||||
import { scrollToSelectedItem } from '@/lib/ui.desktop.js';
|
import { scrollToSelectedItem } from '@/lib/ui.desktop.js';
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasSelectedIcon(row) {
|
hasSelectedIcon(row) {
|
||||||
return arrayContainsFieldvalue(row, 'id', this.modelValue);
|
return arrayContainsFieldValue(row, 'id', this.modelValue);
|
||||||
},
|
},
|
||||||
onMenuStateChanged(state) {
|
onMenuStateChanged(state) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { arrayContainsFieldvalue } from '@/lib/common.js';
|
import { arrayContainsFieldValue } from '@/lib/common.js';
|
||||||
import { getColorsInRows } from '@/lib/color.js';
|
import { getColorsInRows } from '@/lib/color.js';
|
||||||
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
|
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ export default {
|
|||||||
this.$emit('update:show', false);
|
this.$emit('update:show', false);
|
||||||
},
|
},
|
||||||
hasSelectedIcon(row) {
|
hasSelectedIcon(row) {
|
||||||
return arrayContainsFieldvalue(row, 'id', this.currentValue);
|
return arrayContainsFieldValue(row, 'id', this.currentValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { arrayContainsFieldvalue } from '@/lib/common.js';
|
import { arrayContainsFieldValue } from '@/lib/common.js';
|
||||||
import { getIconsInRows } from '@/lib/icon.js';
|
import { getIconsInRows } from '@/lib/icon.js';
|
||||||
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
|
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ export default {
|
|||||||
this.$emit('update:show', false);
|
this.$emit('update:show', false);
|
||||||
},
|
},
|
||||||
hasSelectedIcon(row) {
|
hasSelectedIcon(row) {
|
||||||
return arrayContainsFieldvalue(row, 'id', this.currentValue);
|
return arrayContainsFieldValue(row, 'id', this.currentValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -331,7 +331,7 @@ export function copyArrayTo(fromArray, toArray) {
|
|||||||
return toArray;
|
return toArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function arrayContainsFieldvalue(array, fieldName, value) {
|
export function arrayContainsFieldValue(array, fieldName, value) {
|
||||||
if (!value || !array || !array.length) {
|
if (!value || !array || !array.length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user