|
|
|
|
@ -14,7 +14,10 @@ const {
|
|
|
|
|
BORDER_EMPTY,
|
|
|
|
|
BORDER_EXTERNAL,
|
|
|
|
|
BORDER_TD,
|
|
|
|
|
BORDER_TD_TOP,
|
|
|
|
|
BORDER_TD_LEFT,
|
|
|
|
|
BORDER_TD_BOTTOM,
|
|
|
|
|
BORDER_TD_RIGHT,
|
|
|
|
|
BORDER_TD_BACK,
|
|
|
|
|
BORDER_TD_FORWARD,
|
|
|
|
|
VERTICAL_ALIGN,
|
|
|
|
|
@ -80,6 +83,24 @@ export const tableMenus: IRegisterContextMenu[] = [
|
|
|
|
|
icon: 'border-td',
|
|
|
|
|
when: () => true,
|
|
|
|
|
childMenus: [
|
|
|
|
|
{
|
|
|
|
|
key: BORDER_TD_TOP,
|
|
|
|
|
i18nPath: 'contextmenu.table.borderTdTop',
|
|
|
|
|
icon: 'border-td-top',
|
|
|
|
|
when: () => true,
|
|
|
|
|
callback: (command: Command) => {
|
|
|
|
|
command.executeTableTdBorderType(TdBorder.TOP)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: BORDER_TD_RIGHT,
|
|
|
|
|
i18nPath: 'contextmenu.table.borderTdRight',
|
|
|
|
|
icon: 'border-td-right',
|
|
|
|
|
when: () => true,
|
|
|
|
|
callback: (command: Command) => {
|
|
|
|
|
command.executeTableTdBorderType(TdBorder.RIGHT)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: BORDER_TD_BOTTOM,
|
|
|
|
|
i18nPath: 'contextmenu.table.borderTdBottom',
|
|
|
|
|
@ -89,6 +110,15 @@ export const tableMenus: IRegisterContextMenu[] = [
|
|
|
|
|
command.executeTableTdBorderType(TdBorder.BOTTOM)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: BORDER_TD_LEFT,
|
|
|
|
|
i18nPath: 'contextmenu.table.borderTdLeft',
|
|
|
|
|
icon: 'border-td-left',
|
|
|
|
|
when: () => true,
|
|
|
|
|
callback: (command: Command) => {
|
|
|
|
|
command.executeTableTdBorderType(TdBorder.LEFT)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: BORDER_TD_FORWARD,
|
|
|
|
|
i18nPath: 'contextmenu.table.borderTdForward',
|
|
|
|
|
|