feat: add table cell slash to contextmenu

This commit is contained in:
Hufe921
2023-10-06 15:03:12 +08:00
parent 51ba225128
commit d540195dfa
8 changed files with 37 additions and 3 deletions
@@ -1,5 +1,5 @@
import { VerticalAlign } from '../../../dataset/enum/VerticalAlign'
import { TableBorder, TdBorder } from '../../../dataset/enum/table/Table'
import { TableBorder, TdBorder, TdSlash } from '../../../dataset/enum/table/Table'
import { IRegisterContextMenu } from '../../../interface/contextmenu/ContextMenu'
import { Command } from '../../command/Command'
@@ -50,6 +50,22 @@ export const tableMenus: IRegisterContextMenu[] = [
callback: (command: Command) => {
command.executeTableTdBorderType(TdBorder.BOTTOM)
}
},
{
i18nPath: 'contextmenu.table.borderTdForward',
icon: 'border-td-forward',
when: () => true,
callback: (command: Command) => {
command.executeTableTdSlashType(TdSlash.FORWARD)
}
},
{
i18nPath: 'contextmenu.table.borderTdBack',
icon: 'border-td-back',
when: () => true,
callback: (command: Command) => {
command.executeTableTdSlashType(TdSlash.BACK)
}
}
]
}
+3 -1
View File
@@ -45,7 +45,9 @@
"borderEmpty": "Empty",
"borderExternal": "External",
"borderTd": "Table cell border",
"borderTdBottom": "Bottom"
"borderTdBottom": "Bottom",
"borderTdForward": "forward",
"borderTdBack": "back"
}
},
"datePicker": {
+3 -1
View File
@@ -45,7 +45,9 @@
"borderEmpty": "无框线",
"borderExternal": "外侧框线",
"borderTd": "单元格边框",
"borderTdBottom": "下边框"
"borderTdBottom": "下边框",
"borderTdForward": "正斜线",
"borderTdBack": "反斜线"
}
},
"datePicker": {