@ibiz-template/core 0.0.1-alpha.3 → 0.0.1-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/index.system.js +1 -0
- package/out/constant/http-status-message/http-status-message.d.ts +5 -0
- package/out/constant/http-status-message/http-status-message.d.ts.map +1 -0
- package/out/constant/http-status-message/http-status-message.js +20 -0
- package/out/constant/index.d.ts +3 -0
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +3 -0
- package/out/constant/login-mode/login-mode.d.ts +23 -0
- package/out/constant/login-mode/login-mode.d.ts.map +1 -0
- package/out/constant/login-mode/login-mode.js +24 -0
- package/out/constant/menu-permission-mode/menu-permission-mode.d.ts +23 -0
- package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
- package/out/constant/menu-permission-mode/menu-permission-mode.js +24 -0
- package/out/context/index.d.ts +2 -39
- package/out/context/index.d.ts.map +1 -1
- package/out/context/index.js +34 -65
- package/out/environment/environment.d.ts.map +1 -1
- package/out/environment/environment.js +9 -1
- package/out/error/http-error/http-error.d.ts +18 -0
- package/out/error/http-error/http-error.d.ts.map +1 -0
- package/out/error/http-error/http-error.js +36 -0
- package/out/error/index.d.ts +3 -0
- package/out/error/index.d.ts.map +1 -0
- package/out/error/index.js +2 -0
- package/out/error/runtime-error/runtime-error.d.ts +15 -0
- package/out/error/runtime-error/runtime-error.d.ts.map +1 -0
- package/out/error/runtime-error/runtime-error.js +15 -0
- package/out/factory-center.d.ts +11 -0
- package/out/factory-center.d.ts.map +1 -0
- package/out/factory-center.js +10 -0
- package/out/index.d.ts +3 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +3 -1
- package/out/install.d.ts.map +1 -1
- package/out/install.js +2 -0
- package/out/interface/i-environment/i-environment.d.ts +59 -0
- package/out/interface/i-environment/i-environment.d.ts.map +1 -1
- package/out/types.d.ts +20 -0
- package/out/types.d.ts.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/net/http-response.d.ts +4 -9
- package/out/utils/net/http-response.d.ts.map +1 -1
- package/out/utils/net/http-response.js +0 -7
- package/out/utils/net/net.d.ts +18 -11
- package/out/utils/net/net.d.ts.map +1 -1
- package/out/utils/net/net.js +57 -24
- package/out/utils/url-helper/url-helper.d.ts +51 -0
- package/out/utils/url-helper/url-helper.d.ts.map +1 -0
- package/out/utils/url-helper/url-helper.js +59 -0
- package/out/utils/util/util.d.ts +29 -0
- package/out/utils/util/util.d.ts.map +1 -1
- package/out/utils/util/util.js +50 -0
- package/package.json +19 -7
- package/src/constant/http-status-message/http-status-message.ts +20 -0
- package/src/constant/index.ts +3 -0
- package/src/constant/login-mode/login-mode.ts +23 -0
- package/src/constant/menu-permission-mode/menu-permission-mode.ts +23 -0
- package/src/context/index.ts +35 -69
- package/src/environment/environment.ts +9 -1
- package/src/error/http-error/http-error.ts +43 -0
- package/src/error/index.ts +2 -0
- package/src/error/runtime-error/runtime-error.ts +14 -0
- package/src/factory-center.ts +9 -0
- package/src/index.ts +3 -1
- package/src/install.ts +2 -0
- package/src/interface/i-environment/i-environment.ts +67 -0
- package/src/types.ts +21 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/net/http-response.ts +6 -9
- package/src/utils/net/net.ts +66 -33
- package/src/utils/url-helper/url-helper.ts +62 -0
- package/src/utils/util/util.ts +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["axios","lodash-es","qx-util","qs","pluralize"],(function(t){"use strict";var e,n,r,o,i,s;return{setters:[function(t){e=t.default},function(t){n=t.debounce},function(t){r=t.getCookie,o=t.notNilEmpty},function(t){i=t.stringify},function(t){s=t.default}],execute:function(){t({debounceAndMerge:function(t,e,r,o){var i,s=n((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i=void 0,t.apply(void 0,v([],b(e),!1))}),r,o);return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t;return i&&(r=e(i,r)),i=r,s.apply(void 0,v([],b(r),!1))}},getToken:m,install:function(){if(window.ibiz)throw new Error("ibiz 已经存在, 无需重复安装");window.ibiz=new x,window.___fc=new E,new g},isOverlap:function(t,e){return Array.from(new Set(v(v([],b(t),!1),b(e),!1))).length!==t.length+e.length},plural:k,pluralLower:function(t){return k(t).toLowerCase()}});var a,c,u=t("CoreConst",function(){function t(){}return t.DEFAULT_MODEL_SERVICE_TAG="default",t.TOKEN="access_token",t}()),l=t("HttpStatusMessageConst",{200:"服务器成功返回请求的数据。",201:"新建或修改数据成功。",202:"一个请求已经进入后台排队(异步任务)。",204:"删除数据成功。",400:"发出的请求有错误,服务器没有进行新建或修改数据的操作。",401:"用户没有权限(令牌、用户名、密码错误)。",403:"用户得到授权,但是访问是被禁止的。",404:"发出的请求针对的是不存在的记录,服务器没有进行操作。",406:"请求的格式不可得。",410:"请求的资源被永久删除,且不会再得到的。",422:"当创建一个对象时,发生一个验证错误。",500:"服务器发生错误,请检查服务器。",502:"网关错误。",503:"服务不可用,服务器暂时过载或维护。",504:"网关超时。"});t("LoginMode",a),function(t){t.DEFAULT="DEFAULT",t.CUSTOM="CUSTOM",t.CAS="CAS"}(a||t("LoginMode",a={})),t("MenuPermissionMode",c),function(t){t.MIXIN="MIXIN",t.RESOURCE="RESOURCE",t.RT="RT"}(c||t("MenuPermissionMode",c={}));t("IBizContext",(function(t,e){if(void 0===t&&(t={}),e){var n=this;Object.defineProperty(this,"_context",{enumerable:!1,value:{}});var r={};Object.keys(e).forEach((function(t){r[t]={enumerable:!0,set:function(e){n._context[t]=null==e?null:e},get:function(){return void 0!==n._context[t]?n._context[t]:e[t]}}})),Object.defineProperties(this,r)}Object.assign(this,t)}));var h=t("Environment",{dev:!1,jsCdn:"https://cdn.jsdelivr.net",baseUrl:"",remoteModelUrl:"/remotemodel",assetsUrl:"./assets",dcSystem:"",ExportFile:"/ibizutil/download",UploadFile:"/ibizutil/upload",casLoginUrl:"",loginMode:a.DEFAULT,menuPermissionMode:c.MIXIN,enablePermission:!0}),f=t("HttpError",(function(t){this.name="HttpError";var e=t.response;this.response=t.response,e?(e.data?this.message=e.data.message:this.message=e.statusText,this.message||(this.message=l[e.status]),this.message||(this.message="网络异常,请稍后重试!"),this.status=e.status):(this.message=t.message,this.status=500)})),p=(t("RuntimeError",(function(t){this.message=t,this.name="Runtime Error"})),function(){return p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},p.apply(this,arguments)});function d(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function y(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function v(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function m(){return r(u.TOKEN)}var g=t("Interceptor",function(){function t(){this.init()}return t.prototype.init=function(){e.interceptors.request.use((function(t){t.headers||(t.headers={}),t.headers.Authorization="Bearer ".concat(m());var e=ibiz.orgData;return e&&(e.systemid&&(t.headers.srfsystemid=e.systemid),e.orgid&&(t.headers.srforgid=e.orgid)),t}))},t}());function w(t,e,n,r,o){var i="".concat(t,"-").concat(e);return n&&(i+="-".concat(n)),r&&(i+="__".concat(r)),o&&(i+="--".concat(o)),i}t("Namespace",function(){function t(t,e){this.block=t,this.namespace=e||"ibiz"}return t.prototype.b=function(t){return void 0===t&&(t=""),w(this.namespace,this.block,t,"","")},t.prototype.e=function(t){return t?w(this.namespace,this.block,"",t,""):""},t.prototype.m=function(t){return t?w(this.namespace,this.block,"","",t):""},t.prototype.be=function(t,e){return t&&e?w(this.namespace,this.block,t,e,""):""},t.prototype.em=function(t,e){return t&&e?w(this.namespace,this.block,"",t,e):""},t.prototype.bm=function(t,e){return t&&e?w(this.namespace,this.block,t,"",e):""},t.prototype.bem=function(t,e,n){return t&&e&&n?w(this.namespace,this.block,t,e,n):""},t.prototype.is=function(t,e){return t&&e?"".concat("is-").concat(t):""},t.prototype.cssVar=function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarName(n)]=t[n]);return e},t.prototype.cssVarBlock=function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarBlockName(n)]=t[n]);return e},t.prototype.cssVarName=function(t){return"--".concat(this.namespace,"-").concat(t)},t.prototype.cssVarBlockName=function(t){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(t)},t}()),t("HttpResponse",(function(t,e,n){this.local=!0,this.ok=!1,this.headers={},this.config={},this.data=t,this.status=e||200,this.statusText=n||"",this.status>=200&&this.status<300&&(this.ok=!0)}));var P=t("Net",function(){function t(t){this._prefix="",t&&(this._prefix=t)}return Object.defineProperty(t.prototype,"prefix",{get:function(){return this._prefix||ibiz.env.baseUrl},enumerable:!1,configurable:!0}),t.prototype.post=function(t,n,r,o){return void 0===r&&(r={}),void 0===o&&(o={}),d(this,void 0,void 0,(function(){var i,s;return y(this,(function(a){switch(a.label){case 0:t=this.handleAppPresetParam(t,r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,e({method:"post",url:t,data:n,headers:p({"Content-Type":"application/json;charset=UTF-8",Accept:"application/json"},o)})];case 2:return i=a.sent(),[2,this.doResponseResult(i)];case 3:throw s=a.sent(),new f(s);case 4:return[2]}}))}))},t.prototype.get=function(t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),d(this,void 0,void 0,(function(){var i,s;return y(this,(function(a){switch(a.label){case 0:t=this.attachUrlParam(t,n),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,e.get(t,p({headers:r},o))];case 2:return i=a.sent(),[2,this.doResponseResult(i)];case 3:throw s=a.sent(),new f(s);case 4:return[2]}}))}))},t.prototype.delete=function(t,n,r){return void 0===r&&(r={}),d(this,void 0,void 0,(function(){var o,i;return y(this,(function(s){switch(s.label){case 0:t=this.handleAppPresetParam(t,n),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,e.delete(t,{headers:r})];case 2:return o=s.sent(),[2,this.doResponseResult(o)];case 3:throw i=s.sent(),new f(i);case 4:return[2]}}))}))},t.prototype.put=function(t,n,r,o){return void 0===r&&(r={}),void 0===o&&(o={}),d(this,void 0,void 0,(function(){var i,s;return y(this,(function(a){switch(a.label){case 0:t=this.handleAppPresetParam(t,r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,e.put(t,n,{headers:o})];case 2:return i=a.sent(),[2,this.doResponseResult(i)];case 3:throw s=a.sent(),new f(s);case 4:return[2]}}))}))},t.prototype.getModel=function(t,n){return void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,o;return y(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e.get(t,{headers:n})];case 1:return r=i.sent(),[2,this.doResponseResult(r)];case 2:throw o=i.sent(),new f(o);case 3:return[2]}}))}))},t.prototype.doResponseResult=function(t){var e=t;return e.status>=200&&e.status<=299&&(e.ok=!0),e},t.prototype.handleAppPresetParam=function(t,e){if(e){var n=Object.keys(e),r={};return n.forEach((function(t){t.startsWith("srf")&&o(e[t])&&(r[t]=e[t])})),this.attachUrlParam(t,e)}return t},t.prototype.attachUrlParam=function(t,e){t=this.attachUrl(t);var n=i(e);return o(n)&&(t=t.endsWith("?")||-1!==t.indexOf("?")&&t.endsWith("&")?"".concat(t).concat(n):-1===t.indexOf("?")||t.endsWith("&")?"".concat(t,"?").concat(n):"".concat(t,"&").concat(n)),t},t.prototype.attachUrl=function(t){return"".concat(this.prefix).concat(t)},t}());function k(t){return s(t)}t("UrlHelper",function(){function t(){}return Object.defineProperty(t,"routeBase",{get:function(){return"".concat(this.appBase,"/#")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"appBase",{get:function(){var t=window.location,e=t.origin,n=t.pathname;return"".concat(e).concat(n).replace(/\/$/,"")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"routePath",{get:function(){return window.location.hash.replace("#","")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"fullPath",{get:function(){return window.location.href},enumerable:!1,configurable:!0}),t}());var x=t("IBizSys",(function(){this.env=h,this.net=new P})),E=t("FactoryCenter",(function(){}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-status-message.d.ts","sourceRoot":"","sources":["../../../src/constant/http-status-message/http-status-message.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgBzD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 请求状态码文本
|
|
3
|
+
*/
|
|
4
|
+
export const HttpStatusMessageConst = {
|
|
5
|
+
200: '服务器成功返回请求的数据。',
|
|
6
|
+
201: '新建或修改数据成功。',
|
|
7
|
+
202: '一个请求已经进入后台排队(异步任务)。',
|
|
8
|
+
204: '删除数据成功。',
|
|
9
|
+
400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。',
|
|
10
|
+
401: '用户没有权限(令牌、用户名、密码错误)。',
|
|
11
|
+
403: '用户得到授权,但是访问是被禁止的。',
|
|
12
|
+
404: '发出的请求针对的是不存在的记录,服务器没有进行操作。',
|
|
13
|
+
406: '请求的格式不可得。',
|
|
14
|
+
410: '请求的资源被永久删除,且不会再得到的。',
|
|
15
|
+
422: '当创建一个对象时,发生一个验证错误。',
|
|
16
|
+
500: '服务器发生错误,请检查服务器。',
|
|
17
|
+
502: '网关错误。',
|
|
18
|
+
503: '服务不可用,服务器暂时过载或维护。',
|
|
19
|
+
504: '网关超时。',
|
|
20
|
+
};
|
package/out/constant/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { CoreConst } from './core/core';
|
|
2
|
+
export { HttpStatusMessageConst } from './http-status-message/http-status-message';
|
|
3
|
+
export { LoginMode } from './login-mode/login-mode';
|
|
4
|
+
export { MenuPermissionMode } from './menu-permission-mode/menu-permission-mode';
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC"}
|
package/out/constant/index.js
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 登录模式
|
|
3
|
+
*
|
|
4
|
+
* @author lxm
|
|
5
|
+
* @date 2022-10-12 14:10:56
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {number}
|
|
8
|
+
*/
|
|
9
|
+
export declare enum LoginMode {
|
|
10
|
+
/**
|
|
11
|
+
* 默认标准登录
|
|
12
|
+
*/
|
|
13
|
+
DEFAULT = "DEFAULT",
|
|
14
|
+
/**
|
|
15
|
+
* 自定义登录
|
|
16
|
+
*/
|
|
17
|
+
CUSTOM = "CUSTOM",
|
|
18
|
+
/**
|
|
19
|
+
* 中央认证登录
|
|
20
|
+
*/
|
|
21
|
+
CAS = "CAS"
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=login-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-mode.d.ts","sourceRoot":"","sources":["../../../src/constant/login-mode/login-mode.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable no-shadow */
|
|
2
|
+
/**
|
|
3
|
+
* 登录模式
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-10-12 14:10:56
|
|
7
|
+
* @export
|
|
8
|
+
* @enum {number}
|
|
9
|
+
*/
|
|
10
|
+
export var LoginMode;
|
|
11
|
+
(function (LoginMode) {
|
|
12
|
+
/**
|
|
13
|
+
* 默认标准登录
|
|
14
|
+
*/
|
|
15
|
+
LoginMode["DEFAULT"] = "DEFAULT";
|
|
16
|
+
/**
|
|
17
|
+
* 自定义登录
|
|
18
|
+
*/
|
|
19
|
+
LoginMode["CUSTOM"] = "CUSTOM";
|
|
20
|
+
/**
|
|
21
|
+
* 中央认证登录
|
|
22
|
+
*/
|
|
23
|
+
LoginMode["CAS"] = "CAS";
|
|
24
|
+
})(LoginMode || (LoginMode = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 菜单权限校验模式
|
|
3
|
+
*
|
|
4
|
+
* @author lxm
|
|
5
|
+
* @date 2022-10-12 14:10:56
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {number}
|
|
8
|
+
*/
|
|
9
|
+
export declare enum MenuPermissionMode {
|
|
10
|
+
/**
|
|
11
|
+
* 混合模式(默认)
|
|
12
|
+
*/
|
|
13
|
+
MIXIN = "MIXIN",
|
|
14
|
+
/**
|
|
15
|
+
* 统一资源模式
|
|
16
|
+
*/
|
|
17
|
+
RESOURCE = "RESOURCE",
|
|
18
|
+
/**
|
|
19
|
+
* RT模式
|
|
20
|
+
*/
|
|
21
|
+
RT = "RT"
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=menu-permission-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-permission-mode.d.ts","sourceRoot":"","sources":["../../../src/constant/menu-permission-mode/menu-permission-mode.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,EAAE,OAAO;CACV"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable no-shadow */
|
|
2
|
+
/**
|
|
3
|
+
* 菜单权限校验模式
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-10-12 14:10:56
|
|
7
|
+
* @export
|
|
8
|
+
* @enum {number}
|
|
9
|
+
*/
|
|
10
|
+
export var MenuPermissionMode;
|
|
11
|
+
(function (MenuPermissionMode) {
|
|
12
|
+
/**
|
|
13
|
+
* 混合模式(默认)
|
|
14
|
+
*/
|
|
15
|
+
MenuPermissionMode["MIXIN"] = "MIXIN";
|
|
16
|
+
/**
|
|
17
|
+
* 统一资源模式
|
|
18
|
+
*/
|
|
19
|
+
MenuPermissionMode["RESOURCE"] = "RESOURCE";
|
|
20
|
+
/**
|
|
21
|
+
* RT模式
|
|
22
|
+
*/
|
|
23
|
+
MenuPermissionMode["RT"] = "RT";
|
|
24
|
+
})(MenuPermissionMode || (MenuPermissionMode = {}));
|
package/out/context/index.d.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 上下文代理处理
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2022-07-14 10:07:45
|
|
6
|
-
* @class IBizContextProxyHandle
|
|
7
|
-
* @implements {ProxyHandler<IBizContext>}
|
|
8
|
-
*/
|
|
9
|
-
export declare class IBizContextProxyHandle implements ProxyHandler<IBizContext> {
|
|
10
|
-
set(target: IBizContext, p: string | symbol, value: unknown): boolean;
|
|
11
|
-
get(target: IBizContext, p: string | symbol, _receiver: unknown): unknown;
|
|
12
|
-
}
|
|
13
1
|
/**
|
|
14
2
|
* 上下文处理类
|
|
15
3
|
*
|
|
@@ -19,41 +7,16 @@ export declare class IBizContextProxyHandle implements ProxyHandler<IBizContext>
|
|
|
19
7
|
* @class IBizContext
|
|
20
8
|
*/
|
|
21
9
|
export declare class IBizContext implements IContext {
|
|
22
|
-
context: IContext;
|
|
23
10
|
[key: string | symbol]: any;
|
|
24
|
-
|
|
25
|
-
* 父上下文
|
|
26
|
-
*
|
|
27
|
-
* @author chitanda
|
|
28
|
-
* @date 2022-07-14 10:07:06
|
|
29
|
-
* @protected
|
|
30
|
-
* @type {(IBizContext | null)}
|
|
31
|
-
*/
|
|
32
|
-
protected _parent: IBizContext | null;
|
|
11
|
+
protected _context: IContext;
|
|
33
12
|
/**
|
|
34
13
|
* Creates an instance of IBizContext.
|
|
35
14
|
*
|
|
36
15
|
* @author chitanda
|
|
37
16
|
* @date 2022-07-14 10:07:15
|
|
38
|
-
* @param {IContext} [context={}]
|
|
17
|
+
* @param {IContext} [context={}] 自身的上下文
|
|
39
18
|
* @param {IBizContext} [parent]
|
|
40
19
|
*/
|
|
41
20
|
constructor(context?: IContext, parent?: IBizContext);
|
|
42
|
-
/**
|
|
43
|
-
* 创建代理
|
|
44
|
-
*
|
|
45
|
-
* @author chitanda
|
|
46
|
-
* @date 2022-07-14 11:07:37
|
|
47
|
-
* @protected
|
|
48
|
-
* @return {*} {IBizContext}
|
|
49
|
-
*/
|
|
50
|
-
protected createProxy(): IBizContext;
|
|
51
|
-
/**
|
|
52
|
-
* 销毁上下文,避免内存泄漏
|
|
53
|
-
*
|
|
54
|
-
* @author chitanda
|
|
55
|
-
* @date 2022-07-14 11:07:45
|
|
56
|
-
*/
|
|
57
|
-
destroy(): void;
|
|
58
21
|
}
|
|
59
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,qBAAa,WAAY,YAAW,QAAQ;IAE1C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B,SAAS,CAAC,QAAQ,EAAG,QAAQ,CAAC;IAE9B;;;;;;;OAOG;gBAES,OAAO,GAAE,QAAa,EAAE,MAAM,CAAC,EAAE,WAAW;CAmCzD"}
|
package/out/context/index.js
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-param-reassign */
|
|
2
|
-
/* eslint-disable no-constructor-return */
|
|
3
|
-
/* eslint-disable no-underscore-dangle */
|
|
4
|
-
/* eslint-disable max-classes-per-file */
|
|
5
|
-
/**
|
|
6
|
-
* 上下文代理处理
|
|
7
|
-
*
|
|
8
|
-
* @author chitanda
|
|
9
|
-
* @date 2022-07-14 10:07:45
|
|
10
|
-
* @class IBizContextProxyHandle
|
|
11
|
-
* @implements {ProxyHandler<IBizContext>}
|
|
12
|
-
*/
|
|
13
|
-
export class IBizContextProxyHandle {
|
|
14
|
-
set(target, p, value) {
|
|
15
|
-
target.context[p] = value;
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
get(target, p, _receiver) {
|
|
19
|
-
if (target[p] !== undefined) {
|
|
20
|
-
return target[p];
|
|
21
|
-
}
|
|
22
|
-
if (target.context[p] !== undefined) {
|
|
23
|
-
return target.context[p];
|
|
24
|
-
}
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
-
if (target._parent && target._parent[p] !== undefined) {
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
-
return target._parent[p];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
1
|
/**
|
|
33
2
|
* 上下文处理类
|
|
34
3
|
*
|
|
@@ -43,44 +12,44 @@ export class IBizContext {
|
|
|
43
12
|
*
|
|
44
13
|
* @author chitanda
|
|
45
14
|
* @date 2022-07-14 10:07:15
|
|
46
|
-
* @param {IContext} [context={}]
|
|
15
|
+
* @param {IContext} [context={}] 自身的上下文
|
|
47
16
|
* @param {IBizContext} [parent]
|
|
48
17
|
*/
|
|
18
|
+
// eslint-disable-next-line default-param-last
|
|
49
19
|
constructor(context = {}, parent) {
|
|
50
|
-
this.context = context;
|
|
51
|
-
/**
|
|
52
|
-
* 父上下文
|
|
53
|
-
*
|
|
54
|
-
* @author chitanda
|
|
55
|
-
* @date 2022-07-14 10:07:06
|
|
56
|
-
* @protected
|
|
57
|
-
* @type {(IBizContext | null)}
|
|
58
|
-
*/
|
|
59
|
-
this._parent = null;
|
|
60
20
|
if (parent) {
|
|
61
|
-
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
22
|
+
const self = this;
|
|
23
|
+
// 定义私有变量,用于存储父已有上下文,方便覆盖
|
|
24
|
+
Object.defineProperty(this, '_context', {
|
|
25
|
+
enumerable: false,
|
|
26
|
+
value: {},
|
|
27
|
+
});
|
|
28
|
+
// 监控父上下文参数,自身不存在时从父取
|
|
29
|
+
const properties = {};
|
|
30
|
+
const keys = Object.keys(parent);
|
|
31
|
+
keys.forEach(key => {
|
|
32
|
+
properties[key] = {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
set(val) {
|
|
35
|
+
if (val == null) {
|
|
36
|
+
self._context[key] = null;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
self._context[key] = val;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
get() {
|
|
43
|
+
if (self._context[key] !== undefined) {
|
|
44
|
+
return self._context[key];
|
|
45
|
+
}
|
|
46
|
+
return parent[key];
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperties(this, properties);
|
|
62
51
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* 创建代理
|
|
67
|
-
*
|
|
68
|
-
* @author chitanda
|
|
69
|
-
* @date 2022-07-14 11:07:37
|
|
70
|
-
* @protected
|
|
71
|
-
* @return {*} {IBizContext}
|
|
72
|
-
*/
|
|
73
|
-
createProxy() {
|
|
74
|
-
return new Proxy(this, new IBizContextProxyHandle());
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* 销毁上下文,避免内存泄漏
|
|
78
|
-
*
|
|
79
|
-
* @author chitanda
|
|
80
|
-
* @date 2022-07-14 11:07:45
|
|
81
|
-
*/
|
|
82
|
-
destroy() {
|
|
83
|
-
this.context = {};
|
|
84
|
-
this._parent = null;
|
|
52
|
+
// 合并给入上下文
|
|
53
|
+
Object.assign(this, context);
|
|
85
54
|
}
|
|
86
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/environment/environment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/environment/environment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,YAazB,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import { LoginMode, MenuPermissionMode } from '../constant';
|
|
1
2
|
/**
|
|
2
3
|
* 环境变量
|
|
3
4
|
*/
|
|
4
5
|
export const Environment = {
|
|
6
|
+
dev: false,
|
|
7
|
+
jsCdn: 'https://cdn.jsdelivr.net',
|
|
5
8
|
baseUrl: '',
|
|
6
|
-
|
|
9
|
+
remoteModelUrl: '/remotemodel',
|
|
10
|
+
assetsUrl: './assets',
|
|
7
11
|
dcSystem: '',
|
|
8
12
|
ExportFile: '/ibizutil/download',
|
|
9
13
|
UploadFile: '/ibizutil/upload',
|
|
14
|
+
casLoginUrl: '',
|
|
15
|
+
loginMode: LoginMode.DEFAULT,
|
|
16
|
+
menuPermissionMode: MenuPermissionMode.MIXIN,
|
|
17
|
+
enablePermission: true,
|
|
10
18
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
/**
|
|
3
|
+
* 请求异常
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2022-09-18 17:09:10
|
|
7
|
+
* @export
|
|
8
|
+
* @class HttpError
|
|
9
|
+
* @implements {Error}
|
|
10
|
+
*/
|
|
11
|
+
export declare class HttpError implements Error {
|
|
12
|
+
name: string;
|
|
13
|
+
message: string;
|
|
14
|
+
status: number;
|
|
15
|
+
response?: AxiosResponse;
|
|
16
|
+
constructor(err: AxiosError);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=http-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-error.d.ts","sourceRoot":"","sources":["../../../src/error/http-error/http-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGlD;;;;;;;;GAQG;AACH,qBAAa,SAAU,YAAW,KAAK;IACrC,IAAI,EAAE,MAAM,CAAe;IAE3B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,aAAa,CAAC;gBAEb,GAAG,EAAE,UAAU;CAqB5B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { HttpStatusMessageConst } from '../../constant';
|
|
2
|
+
/**
|
|
3
|
+
* 请求异常
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2022-09-18 17:09:10
|
|
7
|
+
* @export
|
|
8
|
+
* @class HttpError
|
|
9
|
+
* @implements {Error}
|
|
10
|
+
*/
|
|
11
|
+
export class HttpError {
|
|
12
|
+
constructor(err) {
|
|
13
|
+
this.name = 'HttpError';
|
|
14
|
+
const res = err.response;
|
|
15
|
+
this.response = err.response;
|
|
16
|
+
if (res) {
|
|
17
|
+
if (res.data) {
|
|
18
|
+
this.message = res.data.message;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.message = res.statusText;
|
|
22
|
+
}
|
|
23
|
+
if (!this.message) {
|
|
24
|
+
this.message = HttpStatusMessageConst[res.status];
|
|
25
|
+
}
|
|
26
|
+
if (!this.message) {
|
|
27
|
+
this.message = '网络异常,请稍后重试!';
|
|
28
|
+
}
|
|
29
|
+
this.status = res.status;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.message = err.message;
|
|
33
|
+
this.status = 500;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 运行时异常
|
|
3
|
+
*
|
|
4
|
+
* @author lxm
|
|
5
|
+
* @date 2022-09-21 18:09:09
|
|
6
|
+
* @export
|
|
7
|
+
* @class RuntimeError
|
|
8
|
+
* @implements {Error}
|
|
9
|
+
*/
|
|
10
|
+
export declare class RuntimeError implements Error {
|
|
11
|
+
message: string;
|
|
12
|
+
name: string;
|
|
13
|
+
constructor(message: string);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=runtime-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-error.d.ts","sourceRoot":"","sources":["../../../src/error/runtime-error/runtime-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,qBAAa,YAAa,YAAW,KAAK;IAGrB,OAAO,EAAE,MAAM;IAFlC,IAAI,EAAE,MAAM,CAAmB;gBAEZ,OAAO,EAAE,MAAM;CACnC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 运行时异常
|
|
3
|
+
*
|
|
4
|
+
* @author lxm
|
|
5
|
+
* @date 2022-09-21 18:09:09
|
|
6
|
+
* @export
|
|
7
|
+
* @class RuntimeError
|
|
8
|
+
* @implements {Error}
|
|
9
|
+
*/
|
|
10
|
+
export class RuntimeError {
|
|
11
|
+
constructor(message) {
|
|
12
|
+
this.message = message;
|
|
13
|
+
this.name = 'Runtime Error';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory-center.d.ts","sourceRoot":"","sources":["../src/factory-center.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,qBAAa,aAAa;CAAG"}
|
package/out/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import './types';
|
|
2
2
|
export * from './constant';
|
|
3
|
-
export { IBizContext
|
|
3
|
+
export { IBizContext } from './context';
|
|
4
4
|
export { Environment } from './environment/environment';
|
|
5
|
+
export * from './error';
|
|
5
6
|
export * from './interface';
|
|
6
7
|
export * from './utils';
|
|
7
8
|
export { IBizSys } from './ibizsys';
|
|
9
|
+
export { FactoryCenter } from './factory-center';
|
|
8
10
|
export { install } from './install';
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import './types';
|
|
2
2
|
export * from './constant';
|
|
3
|
-
export { IBizContext
|
|
3
|
+
export { IBizContext } from './context';
|
|
4
4
|
export { Environment } from './environment/environment';
|
|
5
|
+
export * from './error';
|
|
5
6
|
export * from './interface';
|
|
6
7
|
export * from './utils';
|
|
7
8
|
export { IBizSys } from './ibizsys';
|
|
9
|
+
export { FactoryCenter } from './factory-center';
|
|
8
10
|
export { install } from './install';
|
package/out/install.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAO9B"}
|
package/out/install.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FactoryCenter } from './factory-center';
|
|
1
2
|
import { IBizSys } from './ibizsys';
|
|
2
3
|
import { Interceptor } from './utils';
|
|
3
4
|
/**
|
|
@@ -12,5 +13,6 @@ export function install() {
|
|
|
12
13
|
throw new Error('ibiz 已经存在, 无需重复安装');
|
|
13
14
|
}
|
|
14
15
|
window.ibiz = new IBizSys();
|
|
16
|
+
window.___fc = new FactoryCenter();
|
|
15
17
|
new Interceptor();
|
|
16
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LoginMode, MenuPermissionMode } from '../../constant';
|
|
1
2
|
/**
|
|
2
3
|
* 配置参数
|
|
3
4
|
*
|
|
@@ -15,6 +16,24 @@ export interface IEnvironment {
|
|
|
15
16
|
* @type {string}
|
|
16
17
|
*/
|
|
17
18
|
namespace?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否为开发模式
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
* @author chitanda
|
|
24
|
+
* @date 2022-10-21 11:10:29
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
*/
|
|
27
|
+
dev: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* js 静态文件 cdn 地址
|
|
30
|
+
*
|
|
31
|
+
* @default https://cdn.jsdelivr.net/
|
|
32
|
+
* @author chitanda
|
|
33
|
+
* @date 2022-10-24 11:10:14
|
|
34
|
+
* @type {string}
|
|
35
|
+
*/
|
|
36
|
+
jsCdn: string;
|
|
18
37
|
/**
|
|
19
38
|
* 请求根路径
|
|
20
39
|
*
|
|
@@ -23,6 +42,30 @@ export interface IEnvironment {
|
|
|
23
42
|
* @type {string}
|
|
24
43
|
*/
|
|
25
44
|
baseUrl: string;
|
|
45
|
+
/**
|
|
46
|
+
* 登录模式
|
|
47
|
+
*
|
|
48
|
+
* @author lxm
|
|
49
|
+
* @date 2022-10-12 14:10:51
|
|
50
|
+
* @type {LoginMode}
|
|
51
|
+
*/
|
|
52
|
+
loginMode: LoginMode;
|
|
53
|
+
/**
|
|
54
|
+
* 中央认证登录地址
|
|
55
|
+
*
|
|
56
|
+
* @author lxm
|
|
57
|
+
* @date 2022-10-11 12:10:21
|
|
58
|
+
* @type {string}
|
|
59
|
+
*/
|
|
60
|
+
casLoginUrl: string;
|
|
61
|
+
/**
|
|
62
|
+
* 远程模型路径
|
|
63
|
+
*
|
|
64
|
+
* @author chitanda
|
|
65
|
+
* @date 2022-09-22 18:09:25
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
remoteModelUrl: string;
|
|
26
69
|
/**
|
|
27
70
|
* 资源文件根路径
|
|
28
71
|
*
|
|
@@ -55,5 +98,21 @@ export interface IEnvironment {
|
|
|
55
98
|
* @type {string}
|
|
56
99
|
*/
|
|
57
100
|
UploadFile: string;
|
|
101
|
+
/**
|
|
102
|
+
* 是否启用权限校验(默认true)
|
|
103
|
+
*
|
|
104
|
+
* @author lxm
|
|
105
|
+
* @date 2022-10-12 18:10:25
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
*/
|
|
108
|
+
enablePermission: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* 菜单权限校验模式(默认MIXIN)
|
|
111
|
+
*
|
|
112
|
+
* @author lxm
|
|
113
|
+
* @date 2022-10-12 18:10:27
|
|
114
|
+
* @type {MenuPermissionMode}
|
|
115
|
+
*/
|
|
116
|
+
menuPermissionMode: MenuPermissionMode;
|
|
58
117
|
}
|
|
59
118
|
//# sourceMappingURL=i-environment.d.ts.map
|