feat: add list element

This commit is contained in:
Hufe921
2023-04-20 20:17:34 +08:00
committed by Hufe
parent 8202c1c67b
commit c2330a8c11
28 changed files with 538 additions and 125 deletions
+2 -1
View File
@@ -13,5 +13,6 @@ export enum ElementType {
TAB = 'tab',
DATE = 'date',
BLOCK = 'block',
TITLE = 'title'
TITLE = 'title',
LIST = 'list'
}
+21
View File
@@ -0,0 +1,21 @@
export enum ListType {
UL = 'ul',
OL = 'ol'
}
export enum UlStyle {
DISC = 'disc', // 实心圆点
CIRCLE = 'circle', // 空心圆点
SQUARE = 'square', // 实心方块
}
export enum OlStyle {
DECIMAL = 'decimal' // 阿拉伯数字
}
export enum ListStyle {
DISC = UlStyle.DISC,
CIRCLE = UlStyle.CIRCLE,
SQUARE = UlStyle.SQUARE,
DECIMAL = OlStyle.DECIMAL
}