UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 1.34 kB
var O=this&&this.__extends||function(){var O=function(o,E){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,o){O.__proto__=o}||function(O,o){for(var E in o)Object.prototype.hasOwnProperty.call(o,E)&&(O[E]=o[E])},O(o,E)};return function(o,E){function t(){this.constructor=o}O(o,E),o.prototype=null===E?Object.create(E):(t.prototype=E.prototype,new t)}}();import{toBoolean as o,toNumber as E}from"@jecloud/utils";import t from"../base";import{parseEvents as R}from"./util";var r=function(t){function r(O){var r;void 0===O&&(O={});var T=t.call(this)||this;return T.id=O.JE_CORE_RESOURCEBUTTON_ID,T.code=O.RESOURCEBUTTON_CODE,T.text=O.RESOURCEBUTTON_NAME,T.postion=O.RESOURCEBUTTON_TYPE,T.gridBarPosition=O.RESOURCEBUTTON_POSITION,T.groupName=null!==(r=O.RESOURCEBUTTON_YFAN)&&void 0!==r?r:"",T.hidden=o(O.RESOURCEBUTTON_HIDDEN),T.icon=O.RESOURCEBUTTON_ICON,T.iconColor=O.RESOURCEBUTTON_ICONCOLOR,T.bgColor=O.RESOURCEBUTTON_BGCOLOR,T.fontColor=O.RESOURCEBUTTON_FONTCOLOR,T.borderColor=O.RESOURCEBUTTON_BORDERCOLOR,T.cls=O.RESOURCEBUTTON_CLS,T.visibleExp=O.RESOURCEBUTTON_INTERPRETER,T.orderIndex=E(O.SY_ORDERINDEX),T.noReadOnly=o(O.RESOURCEBUTTON_NOREADONLY),T.disabled=o(O.RESOURCEBUTTON_DISABLED),T.funcId=O.RESOURCEBUTTON_FUNCINFO_ID,T.events=R(O.RESOURCEBUTTON_JSLISTENER),T}return O(r,t),r}(t);export default r;