第一次提交
This commit is contained in:
1 parent
6cf960c101
commit
6cf155bff7
391 files changed
+77165
-71736
No files matched your search
Vendored
+27
-27
@@ -1,27 +1,27 @@
|
||||
import { SlateDescendant } from '@wangeditor/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[]
|
||||
}
|
||||
}
|
||||
}
|
||||
import { SlateDescendant } from '@wangeditor/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[]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user