UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 681 B
var r=this&&this.__assign||function(){return r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},r.apply(this,arguments)};import{treeSelect as e}from"./src/tree";import{gridSelect as t}from"./src/grid";import{userSelect as n}from"./src/user";export var SelectWindow={show:function(r){switch(r.type){case"tree":return e(r);case"grid":return t(r);case"user":return n(r)}},showTree:function(t){return e(r(r({},t),{type:"tree"}))},showGrid:function(e){return t(r(r({},e),{type:"grid"}))},showUser:function(e){return n(r(r({},e),{type:"user"}))}};export default SelectWindow;