UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 871 B
var t=this&&this.__extends||function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},t(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}();import r from"../base";import{toBoolean as e,toNumber as o,decode as n}from"@jecloud/utils";var i=function(r){function i(t){var n=r.call(this)||this;return n.id=t.JE_CORE_QUERYSTRATEGY_ID,n.text=t.QUERYSTRATEGY_NAME,n.fn=t.QUERYSTRATEGY_FN,n.sql=t.QUERYSTRATEGY_SQL,n.default=e(t.QUERYSTRATEGY_DEF),n.orderIndex=o(t.SY_ORDERINDEX),n}return t(i,r),Object.defineProperty(i.prototype,"querys",{get:function(){return this.sql&&n(this.sql)},enumerable:!1,configurable:!0}),i}(r);export default i;