UNPKG

yuang-framework-ui-pc

Version:

yuang-framework-ui-pc Library

47 lines (46 loc) 1.19 kB
import { tabsProps as tabsProps$1, tabsEmits as tabsEmits$1 } from "element-plus"; const tabsProps = { ...tabsProps$1, /** 标签页数据 */ items: { type: Array, required: true }, /** 尺寸 */ size: String, /** 风格类型 */ type: String, /** 标签是否居中显示 */ center: Boolean, /** 是否支持右键菜单 */ contextMenu: [Boolean, Object], /** 右键菜单 */ contextMenus: [Array, Function], /** 是否支持拖动排序 */ sortable: Boolean, /** 是否支持鼠标滚轮滑动 */ mousewheel: Boolean, /** 是否自己处理页签点击事件 */ handleClick: Boolean, /** 内部表格是否弹性布局 */ flexTable: Boolean }; const tabsEmits = { ...tabsEmits$1, /** 页签点击事件 */ tabItemClick: (_opt) => true, /** 页签右键菜单项点击事件 */ tabContextMenu: (_opt) => true, /** 页签右键菜单打开事件 */ tabContextOpen: (_ref, _item, _name) => true, /** 拖动排序改变事件 */ tabSortChange: (_data) => true }; const tabPropKeys = Object.keys(tabsProps$1); const TAB_WRAP_KEY = Symbol("tabWrap"); export { TAB_WRAP_KEY, tabPropKeys, tabsEmits, tabsProps };