feat: add table cell slash to contextmenu
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -45,7 +45,9 @@
|
||||
"borderEmpty": "Empty",
|
||||
"borderExternal": "External",
|
||||
"borderTd": "Table cell border",
|
||||
"borderTdBottom": "Bottom"
|
||||
"borderTdBottom": "Bottom",
|
||||
"borderTdForward": "forward",
|
||||
"borderTdBack": "back"
|
||||
}
|
||||
},
|
||||
"datePicker": {
|
||||
|
||||
@@ -45,7 +45,9 @@
|
||||
"borderEmpty": "无框线",
|
||||
"borderExternal": "外侧框线",
|
||||
"borderTd": "单元格边框",
|
||||
"borderTdBottom": "下边框"
|
||||
"borderTdBottom": "下边框",
|
||||
"borderTdForward": "正斜线",
|
||||
"borderTdBack": "反斜线"
|
||||
}
|
||||
},
|
||||
"datePicker": {
|
||||
|
||||
Reference in New Issue
Block a user