恋爱键盘后台初始化

This commit is contained in:
2026-02-10 15:20:30 +08:00
commit b3335b4b6e
1766 changed files with 263928 additions and 0 deletions

27
types/wangeditor-types.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
import { SlateDescendant } from '@wangeditor-next/editor'
declare module 'slate' {
interface CustomTypes {
// 扩展 text
Text: {
text: string
bold?: boolean
italic?: boolean
code?: boolean
through?: boolean
underline?: boolean
sup?: boolean
sub?: boolean
color?: string
bgColor?: string
fontSize?: string
fontFamily?: string
}
// 扩展 Element 的 type 属性
Element: {
type: string
children: SlateDescendant[]
}
}
}