vap1 0.4.0 → 0.4.1
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.
|
@@ -123,7 +123,6 @@ var BasicLayout = /** @class */ (function (_super) {
|
|
|
123
123
|
return react_1.default.createElement(layout_1.LayoutContext.Provider, { value: { siderHook: this.getSiderHook() } },
|
|
124
124
|
react_1.default.createElement("section", __assign({ className: clazz.join(' ') }, others, { ref: function (el) {
|
|
125
125
|
if (el && _this.props.elref) {
|
|
126
|
-
// console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx set er')
|
|
127
126
|
_this.props.elref.current = el;
|
|
128
127
|
}
|
|
129
128
|
} }), children));
|
|
@@ -97,7 +97,6 @@ exports.ImageButton = ImageButton;
|
|
|
97
97
|
// return true;
|
|
98
98
|
// }
|
|
99
99
|
// const insertImage = (editor, url) => {
|
|
100
|
-
// console.log('inserimg')
|
|
101
100
|
// const text = { text: '' }
|
|
102
101
|
// const image: ImageElement = { type: 'image', url, children: [text] }
|
|
103
102
|
// Transforms.insertNodes(editor, image)
|
|
@@ -85,7 +85,6 @@ var Button = function (_a) {
|
|
|
85
85
|
return utils_1.Const.NONE;
|
|
86
86
|
}
|
|
87
87
|
else if (define.type == 'action') {
|
|
88
|
-
// console.log(type)
|
|
89
88
|
switch (type) {
|
|
90
89
|
case 'hr':
|
|
91
90
|
return react_1.default.createElement(_InsertButton_1.HR, __assign({}, define, { cmd: type, disabled: disabled }));
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"vap1","version":"0.4.
|
|
1
|
+
{"name":"vap1","version":"0.4.1","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
|
package/utils/PageUtil.d.ts
CHANGED
package/utils/PageUtil.js
CHANGED
|
@@ -50,7 +50,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.getParentByClassName = exports.submitForm = exports.waitFor = exports.getOptions = exports.currentApp = exports.clearURL = exports.resolveURL = exports.hasRole = exports.IpToInt = exports.paramToUri = exports.stopEvent = void 0;
|
|
53
|
+
exports.getParentByClassName = exports.submitForm = exports.waitFor = exports.getOptions = exports.currentApp = exports.urlPath = exports.clearURL = exports.resolveURL = exports.hasRole = exports.IpToInt = exports.paramToUri = exports.stopEvent = void 0;
|
|
54
54
|
var lodash_1 = __importDefault(require("lodash"));
|
|
55
55
|
var StringUtil_1 = require("./StringUtil");
|
|
56
56
|
var _Support_1 = require("./_Support");
|
|
@@ -118,18 +118,25 @@ exports.resolveURL = len == 0 ? DEFAULT_RESOLVER : function (url) {
|
|
|
118
118
|
/**
|
|
119
119
|
* 兼容二级目录-恢复URL
|
|
120
120
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
exports.clearURL = len == 0 ? DEFAULT_RESOLVER : function (url) {
|
|
122
|
+
if (!url.startsWith(window.APP_ROOT))
|
|
123
|
+
return url;
|
|
124
|
+
return url.substring(len);
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* 获取 URL 路径
|
|
128
|
+
*/
|
|
129
|
+
var urlPath = function (url) {
|
|
130
|
+
var result = (0, exports.clearURL)(url);
|
|
123
131
|
var idx = result.indexOf('?');
|
|
124
|
-
if (
|
|
132
|
+
if (idx = 0)
|
|
133
|
+
result = result.substring(0, idx);
|
|
134
|
+
idx = result.indexOf('#');
|
|
135
|
+
if (idx >= 0)
|
|
125
136
|
result = result.substring(0, idx);
|
|
126
|
-
|
|
127
|
-
return result;
|
|
128
|
-
if (!result.startsWith(window.APP_ROOT))
|
|
129
|
-
return result;
|
|
130
|
-
return result.substring(len);
|
|
137
|
+
return result;
|
|
131
138
|
};
|
|
132
|
-
exports.
|
|
139
|
+
exports.urlPath = urlPath;
|
|
133
140
|
var GLOBAL_APPS = new Map();
|
|
134
141
|
/**
|
|
135
142
|
* 获取当前 APP 名称
|