mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
code refactor
This commit is contained in:
@@ -94,7 +94,7 @@ function getItemValue(item: unknown, index: number, fieldName: string | undefine
|
||||
}
|
||||
}
|
||||
|
||||
function close() {
|
||||
function close(): void {
|
||||
emit('update:show', false);
|
||||
}
|
||||
|
||||
|
||||
@@ -136,13 +136,13 @@ function changeFrequencyValue(e: Event): void {
|
||||
}
|
||||
}
|
||||
|
||||
function save() {
|
||||
function save(): void {
|
||||
emit('update:type', currentFrequencyType.value);
|
||||
emit('update:modelValue', sortNumbersArray(currentFrequencyValue.value).join(','));
|
||||
emit('update:show', false);
|
||||
}
|
||||
|
||||
function close() {
|
||||
function close(): void {
|
||||
emit('update:show', false);
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ function onSheetOpen(event: { $el: Framework7Dom }): void {
|
||||
scrollToSelectedItem(event.$el, '.schedule-frequency-value-container', 'li.list-item-selected');
|
||||
}
|
||||
|
||||
function onSheetClosed() {
|
||||
function onSheetClosed(): void {
|
||||
close();
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -151,7 +151,7 @@ function onSheetOpen(event: { $el: Framework7Dom }): void {
|
||||
scrollToSelectedItem(event.$el, '.page-content', '.treeview-item .treeview-item-selected');
|
||||
}
|
||||
|
||||
function onSheetClosed() {
|
||||
function onSheetClosed(): void {
|
||||
emit('update:show', false);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -133,7 +133,7 @@ const selectedPrimaryItem = computed<unknown>(() => {
|
||||
}
|
||||
});
|
||||
|
||||
function close() {
|
||||
function close(): void {
|
||||
emit('update:show', false);
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ function onSheetOpen(event: { $el: Framework7Dom }): void {
|
||||
scrollToSelectedItem(event.$el, '.secondary-list-container', 'li.secondary-list-item-selected');
|
||||
}
|
||||
|
||||
function onSheetClosed() {
|
||||
function onSheetClosed(): void {
|
||||
close();
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user