You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.8 KiB
2 lines
1.8 KiB
import{d as b,m as T,aT as h,aU as s,o as t,g as m,aV as a,i as o,j as d,a as n,x as f}from"./index-f4658ae7.js";import{D as y}from"./index-0e56c5c3.js";import C from"./index-b006d45a.js";import _ from"./TableTitle-c53d26d0.js";import"./ColumnSetting-e87d31b4.js";import"./index-297faa0c.js";import"./Checkbox-abf1420e.js";import"./createForOfIteratorHelper-eb4541b9.js";import"./useTableContext-e652508f.js";import"./sortable.esm-13e502da.js";import"./SettingOutlined-20e7662a.js";import"./SizeSetting-8dda6988.js";import"./RedoSetting-c42d8845.js";import"./RedoOutlined-3d2ca639.js";import"./FullScreenSetting-af3082e5.js";import"./FullscreenOutlined-71d2eabf.js";const S=b({name:"BasicTableHeader",components:{Divider:y,TableTitle:_,TableSetting:C},props:{title:{type:[Function,String]},tableSetting:{type:Object},showTableSetting:{type:Boolean},titleHelpMessage:{type:[String,Array],default:""}},emits:["columns-change"],setup(e,{emit:l}){const{prefixCls:i}=T("basic-table-header");function r(p){l("columns-change",p)}return{prefixCls:i,handleColumnChange:r}}});const $={style:{width:"100%"}},v={key:0,style:{margin:"5px"}},k={class:"flex items-center"};function B(e,l,i,r,p,D){const g=s("TableTitle"),c=s("Divider"),u=s("TableSetting");return t(),m("div",$,[e.$slots.headerTop?(t(),m("div",v,[a(e.$slots,"headerTop")])):o("",!0),d("div",k,[e.$slots.tableTitle?a(e.$slots,"tableTitle",{key:0}):o("",!0),!e.$slots.tableTitle&&e.title?(t(),n(g,{key:1,helpMessage:e.titleHelpMessage,title:e.title},null,8,["helpMessage","title"])):o("",!0),d("div",{class:f(`${e.prefixCls}__toolbar`)},[a(e.$slots,"toolbar"),e.$slots.toolbar&&e.showTableSetting?(t(),n(c,{key:0,type:"vertical"})):o("",!0),e.showTableSetting?(t(),n(u,{key:1,setting:e.tableSetting,onColumnsChange:e.handleColumnChange},null,8,["setting","onColumnsChange"])):o("",!0)],2)])])}const K=h(S,[["render",B]]);export{K as default};
|