mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
feat(editor): 支持配置左侧边栏tab style
This commit is contained in:
parent
b1e79c1e05
commit
4054c6ed57
@ -8,6 +8,7 @@
|
|||||||
draggable="true"
|
draggable="true"
|
||||||
:key="config.$key ?? index"
|
:key="config.$key ?? index"
|
||||||
:class="{ 'is-active': activeTabName === config.text }"
|
:class="{ 'is-active': activeTabName === config.text }"
|
||||||
|
:style="config.tabStyle || {}"
|
||||||
@click="activeTabName = config.text || `${index}`"
|
@click="activeTabName = config.text || `${index}`"
|
||||||
@dragstart="dragstartHandler"
|
@dragstart="dragstartHandler"
|
||||||
@dragend="dragendHandler(config.$key, $event)"
|
@dragend="dragendHandler(config.$key, $event)"
|
||||||
|
@ -371,8 +371,10 @@ export interface MenuBarData {
|
|||||||
export interface SideComponent extends MenuComponent {
|
export interface SideComponent extends MenuComponent {
|
||||||
/** 显示文案 */
|
/** 显示文案 */
|
||||||
text: string;
|
text: string;
|
||||||
|
/** tab样式 */
|
||||||
|
tabStyle?: string | Record<string, any>;
|
||||||
/** vue组件或url */
|
/** vue组件或url */
|
||||||
icon: Component<{}, {}, any>;
|
icon?: Component<{}, {}, any>;
|
||||||
/** slide 唯一标识 key */
|
/** slide 唯一标识 key */
|
||||||
$key: string;
|
$key: string;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user