docs: 将仓库代码注释统一为中文

This commit is contained in:
2026-09-10 00:40:56 +08:00
parent ee9dd926e5
commit 68dc78a45e
249 changed files with 707 additions and 900 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { nextTick, onBeforeUnmount, shallowRef } from 'vue'
export interface ActionDialogRequest { message: string; mode: 'confirm' | 'prompt'; initialValue: string }
/** Requests belong to the invoking view; leaving it cancels pending work. */
/** 请求属于调用视图;离开它会取消待处理的工作。 */
export function useActionDialog() {
const actionDialog = shallowRef<ActionDialogRequest | null>(null)
let pending: ((value: string | null) => void) | undefined
@@ -11,7 +11,7 @@ export function useActionDialog() {
const resolve = pending
pending = undefined
actionDialog.value = null
await nextTick() // Restore focus and release the modal before the caller continues.
await nextTick() // 在调用者继续之前恢复焦点并释放模式。
resolve?.(disposed ? null : value)
}
function request(mode: ActionDialogRequest['mode'], message: string, initialValue = '') {