From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
types/wangeditor-types.d.ts | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/types/wangeditor-types.d.ts b/types/wangeditor-types.d.ts
new file mode 100644
index 0000000..2363f56
--- /dev/null
+++ b/types/wangeditor-types.d.ts
@@ -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[]
+ }
+ }
+}
--
Gitblit v1.8.0