UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 1.27 kB
var t=this&&this.__extends||function(){var t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)};return function(o,n){function r(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();import{toBoolean as o,toNumber as n}from"@jecloud/utils";import r from"../base";import e from"./func-children-association";var i=function(r){function i(t){var i;void 0===t&&(t={});var N=r.call(this)||this;return N.id=t.JE_CORE_FUNCRELATION_ID,N.code=t.FUNCRELATION_CODE,N.title=t.FUNCRELATION_NAME,N.funcId=t.FUNCRELATION_FUNCID,N.type=t.SY_STATUS,N.configInfo=t.FUNCRELATION_TABLENAME,N.layout=t.FUNCRELATION_SHOWTYPE,N.visibleExp=t.FUNCRELATION_INTERPRETER,N.orderIndex=n(t.SY_ORDERINDEX),N.enable=o(t.FUNCRELATION_ENABLED),N.hidden=!1,N.readOnly=!1,N.showTitle=o(t.FUNCRELATION_SHOWTITLE),N.anchor=o(t.FUNCRELATION_LOCATE),N.groupName=t.FUNCRELATION_GROUP,N.height=n(t.FUNCRELATION_HEIGHT),N.icon=t.FUNCRELATION_ICON,N.funcId=t.FUNCRELATION_FUNCINFO_ID,N.associations=(null!==(i=t.associations)&&void 0!==i?i:[]).map((function(t){return new e(t)})),N}return t(i,r),i}(r);export default i;