UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 684 B
import{createVNode as e,createTextVNode as n}from"vue";import{Panel as r}from"@jecloud/ui";export function useExtendPanel(){var t=["top","bottom","left","right"],u=["rgba(0, 180, 42, 1)","rgba(20, 201, 201, 1)","rgba(78, 131, 253, 1)","rgba(114, 46, 209, 1)"];return{extendPanelInner:function(){return t.map((function(t,o){return e(r.Item,{region:t,size:"60",hidden:!0,style:{background:u[o].replace("1)",".2)")}},{default:function(){return[n("内部【"),t,n("】")]}})}))},extendPanelOuter:function(){return t.map((function(t,o){return e(r.Item,{region:t,hidden:!0,size:"60",style:{background:u[o].replace("1)",".5)")}},{default:function(){return[n("外部【"),t,n("】")]}})}))}}}