mirror of
https://github.com/motajs/template.git
synced 2026-10-18 21:00:19 +08:00
style: prettier
This commit is contained in:
parent
cdfe7ffc76
commit
a2dd4ace72
@ -13,7 +13,13 @@ import {
|
||||
onMounted,
|
||||
shallowReactive
|
||||
} from 'vue';
|
||||
import { getConfirm, Page, PageExpose, Thumbnail, IGameUIPropsBase } from '@user/client-base';
|
||||
import {
|
||||
getConfirm,
|
||||
Page,
|
||||
PageExpose,
|
||||
Thumbnail,
|
||||
IGameUIPropsBase
|
||||
} from '@user/client-base';
|
||||
import { useKey } from '../render/use';
|
||||
import {
|
||||
HALF_HEIGHT,
|
||||
|
||||
@ -5,7 +5,12 @@ import {
|
||||
IUIDefaultPropsBase
|
||||
} from '@motajs/system';
|
||||
import { defineComponent } from 'vue';
|
||||
import { waitbox, ListPage, TextContent, IGameUIPropsBase } from '@user/client-base';
|
||||
import {
|
||||
waitbox,
|
||||
ListPage,
|
||||
TextContent,
|
||||
IGameUIPropsBase
|
||||
} from '@user/client-base';
|
||||
import { DefaultProps } from '@motajs/render-vue';
|
||||
// @ts-expect-error 需要重构
|
||||
import { ItemState } from '@user/data-state';
|
||||
@ -280,7 +285,9 @@ export function calculateStatistics(): StatisticsData {
|
||||
* 打开数据统计界面
|
||||
* @param controller 要在哪个 UI 控制器上打开
|
||||
*/
|
||||
export async function openStatistics(controller: IUIController<IGameUIPropsBase>) {
|
||||
export async function openStatistics(
|
||||
controller: IUIController<IGameUIPropsBase>
|
||||
) {
|
||||
const cal = Promise.resolve().then<StatisticsData>(() => {
|
||||
return new Promise(res => {
|
||||
const data = calculateStatistics();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user