vap1 0.5.0 → 0.5.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.
- package/components/UForm/FormWrapper.js +1 -1
- package/package.json +1 -1
- package/utils/Global.d.ts +4 -0
- package/utils/Global.js +1 -0
|
@@ -71,7 +71,6 @@ var LAYOUTS = {
|
|
|
71
71
|
compress: [1080, 3, 9],
|
|
72
72
|
};
|
|
73
73
|
var COLS_SPLIT = 8;
|
|
74
|
-
var FONT_SIZE = 12;
|
|
75
74
|
var getDefault = function (props) {
|
|
76
75
|
var _a, _b;
|
|
77
76
|
var isGroup = lodash_1.default.has(props.fields[0], 'fields');
|
|
@@ -259,6 +258,7 @@ var FormWrapper = function (props) {
|
|
|
259
258
|
_LOOP(fields, maxLabelRef, isInfo, isEdit, isAdd, HiddenFieldRef.current, DisableFieldRef.current);
|
|
260
259
|
}
|
|
261
260
|
var fieldWidth = width / cols;
|
|
261
|
+
var FONT_SIZE = utils_1.GLOBAL.CONFIG.FORM.LABEL_FONT_SIZE || 12;
|
|
262
262
|
var percent = (maxLabelRef.current * FONT_SIZE + 20) / fieldWidth;
|
|
263
263
|
var labelSpan = Math.ceil(percent * 24);
|
|
264
264
|
if (labelSpan > colMax) {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"vap1","version":"0.5.
|
|
1
|
+
{"name":"vap1","version":"0.5.1","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
|
package/utils/Global.d.ts
CHANGED
package/utils/Global.js
CHANGED