UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 738 B
var t=this&&this.__assign||function(){return t=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},t.apply(this,arguments)};import{ref as e}from"vue";import{Modal as i}from"@jecloud/ui";import{useUserSelect as o}from"./hooks/use-renderer";export function userSelect(n){var r=n.width,l=void 0===r?1e3:r,s=n.height,u=void 0===s?700:s,a=n.title,h=void 0===a?"人员选择":a,c=e(),d=o({selectOptions:n,modal:c}),p=d.pluginSlot,m=d.modalOptions;return c.value=i.window(t(t({title:h,width:l,height:u,minWidth:l,resize:!1,minHeight:u,content:function(){return p()}},m),{buttonAlign:"right",className:"je-func-select-window"})),c.value}