mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-16 00:49:49 +08:00
feat(editor): 新增page-bar slot
This commit is contained in:
parent
f9cf6fa500
commit
7c90b9339d
@ -88,6 +88,7 @@
|
|||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template #page-bar><slot name="page-bar"></slot></template>
|
||||||
<template #page-bar-title="{ page }"><slot name="page-bar-title" :page="page"></slot></template>
|
<template #page-bar-title="{ page }"><slot name="page-bar-title" :page="page"></slot></template>
|
||||||
<template #page-bar-popover="{ page }"><slot name="page-bar-popover" :page="page"></slot></template>
|
<template #page-bar-popover="{ page }"><slot name="page-bar-popover" :page="page"></slot></template>
|
||||||
</Framework>
|
</Framework>
|
||||||
|
@ -36,10 +36,12 @@
|
|||||||
<AddPageBox :disabled-page-fragment="disabledPageFragment"></AddPageBox>
|
<AddPageBox :disabled-page-fragment="disabledPageFragment"></AddPageBox>
|
||||||
</slot>
|
</slot>
|
||||||
|
|
||||||
<PageBar :disabled-page-fragment="disabledPageFragment">
|
<slot name="page-bar">
|
||||||
<template #page-bar-title="{ page }"><slot name="page-bar-title" :page="page"></slot></template>
|
<PageBar :disabled-page-fragment="disabledPageFragment">
|
||||||
<template #page-bar-popover="{ page }"><slot name="page-bar-popover" :page="page"></slot></template>
|
<template #page-bar-title="{ page }"><slot name="page-bar-title" :page="page"></slot></template>
|
||||||
</PageBar>
|
<template #page-bar-popover="{ page }"><slot name="page-bar-popover" :page="page"></slot></template>
|
||||||
|
</PageBar>
|
||||||
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="page" #right>
|
<template v-if="page" #right>
|
||||||
|
@ -54,6 +54,7 @@ export interface FrameworkSlots {
|
|||||||
workspace(props: {}): any;
|
workspace(props: {}): any;
|
||||||
'props-panel'(props: {}): any;
|
'props-panel'(props: {}): any;
|
||||||
'footer'(props: {}): any;
|
'footer'(props: {}): any;
|
||||||
|
'page-bar'(props: {}): any;
|
||||||
'page-bar-title'(props: { page: MPage | MPageFragment }): any;
|
'page-bar-title'(props: { page: MPage | MPageFragment }): any;
|
||||||
'page-bar-popover'(props: { page: MPage | MPageFragment }): any;
|
'page-bar-popover'(props: { page: MPage | MPageFragment }): any;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user