@farris/jit-engine 1.3.313 → 1.3.314
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/lib/mobileapp/vue/domstructure/ui/basic/button/button.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js +3 -4
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js +3 -19
- package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/index.js +0 -3
- package/lib/mobileapp/vue/domstructure/ui/basic/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js +2 -5
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-position.js +5 -2
- package/lib/mobileapp/vue/domstructure/ui/common/vue-position.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/index.js +0 -4
- package/lib/mobileapp/vue/domstructure/ui/container/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js +0 -9
- package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js +6 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js +6 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/index.js +0 -2
- package/lib/mobileapp/vue/domstructure/ui/display/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js +0 -16
- package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/common.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/common.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/number.js +0 -1
- package/lib/mobileapp/vue/domstructure/ui/input/number.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-box.js +0 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-box.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +1 -11
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +1 -17
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
- package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js +0 -12
- package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js.map +1 -1
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js +0 -8
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
- package/lib/template/ui/mobilevue/icon.pug +1 -2
- package/lib/template/ui/mobilevue/image.pug +9 -19
- package/lib/template/ui/mobilevue/list-view.pug +4 -5
- package/lib/template/ui/mobilevue/lookup-employee.pug +2 -0
- package/lib/template/ui/mobilevue/number.pug +0 -2
- package/lib/template/ui/mobilevue/tab-bar.pug +0 -1
- package/lib/template/ui/mobilevue/text-box.pug +3 -7
- package/package.json +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js +0 -14
- package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js +0 -35
- package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js +0 -14
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js +0 -42
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js +0 -38
- package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js +0 -29
- package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js +0 -27
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js +0 -27
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js +0 -27
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js +0 -28
- package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js +0 -57
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js +0 -14
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/display/text/index.js +0 -14
- package/lib/mobileapp/vue/domstructure/ui/display/text/index.js.map +0 -1
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js +0 -50
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js.map +0 -1
- package/lib/template/ui/mobilevue/avatar.pug +0 -19
- package/lib/template/ui/mobilevue/label.pug +0 -12
- package/lib/template/ui/mobilevue/layout-container-col.pug +0 -11
- package/lib/template/ui/mobilevue/layout-container-row.pug +0 -12
- package/lib/template/ui/mobilevue/layout-container.pug +0 -11
- package/lib/template/ui/mobilevue/tag.pug +0 -33
- package/lib/template/ui/mobilevue/text.pug +0 -105
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VueAvatar = void 0;
|
|
4
|
-
const vue_base_component_1 = require("../../vue-base-component");
|
|
5
|
-
class VueAvatar extends vue_base_component_1.VueBaseComponent {
|
|
6
|
-
constructor(param, context) {
|
|
7
|
-
var _a;
|
|
8
|
-
super(param, context);
|
|
9
|
-
let obj;
|
|
10
|
-
if (typeof param === 'string') {
|
|
11
|
-
obj = JSON.parse(param);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
obj = param;
|
|
15
|
-
}
|
|
16
|
-
if (!obj) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const keys = `id,fit,border,srcMode,sysUserId,dynamicSrc,attachId,rootId,avatarText,width,height`;
|
|
20
|
-
Object.keys(obj).forEach((key) => {
|
|
21
|
-
if (keys.includes(key)) {
|
|
22
|
-
switch (key) {
|
|
23
|
-
case 'sysUserId':
|
|
24
|
-
this.sysUserId =
|
|
25
|
-
obj.sysUserId && obj.sysUserId.bindingPath
|
|
26
|
-
? 'currentEntityData.' + obj.sysUserId.bindingPath
|
|
27
|
-
: undefined;
|
|
28
|
-
break;
|
|
29
|
-
case 'attachId':
|
|
30
|
-
this.attachId =
|
|
31
|
-
obj.attachId && obj.attachId.bindingPath
|
|
32
|
-
? 'currentEntityData.' + obj.attachId.bindingPath
|
|
33
|
-
: undefined;
|
|
34
|
-
break;
|
|
35
|
-
case 'dynamicSrc':
|
|
36
|
-
this.dynamicSrc =
|
|
37
|
-
obj.dynamicSrc && obj.dynamicSrc.bindingPath
|
|
38
|
-
? 'currentEntityData.' + obj.dynamicSrc.bindingPath
|
|
39
|
-
: undefined;
|
|
40
|
-
break;
|
|
41
|
-
case 'avatarText':
|
|
42
|
-
this.avatarText =
|
|
43
|
-
obj.avatarText && obj.avatarText.bindingPath
|
|
44
|
-
? 'currentEntityData.' + obj.avatarText.bindingPath
|
|
45
|
-
: undefined;
|
|
46
|
-
break;
|
|
47
|
-
default:
|
|
48
|
-
this[key] = obj[key];
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
((_a = this.margin) === null || _a === void 0 ? void 0 : _a.getStyle) && this.addStyle(this.margin.getStyle());
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.VueAvatar = VueAvatar;
|
|
57
|
-
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/display/avatar/avatar.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAG5D,MAAa,SAAU,SAAQ,qCAAgB;IAG7C,YAAY,KAAmB,EAAE,OAAyB;;QACxD,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACtB,IAAI,GAAQ,CAAA;QACZ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACxB;aAAM;YACL,GAAG,GAAG,KAAK,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAM;SACP;QAED,MAAM,IAAI,GAAG,oFAAoF,CAAA;QACjG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACtB,QAAQ,GAAG,EAAE;oBACX,KAAK,WAAW;wBACd,IAAI,CAAC,SAAS;4BACZ,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,CAAC,WAAW;gCACxC,CAAC,CAAC,oBAAoB,GAAG,GAAG,CAAC,SAAS,CAAC,WAAW;gCAClD,CAAC,CAAC,SAAS,CAAA;wBACf,MAAK;oBACP,KAAK,UAAU;wBACb,IAAI,CAAC,QAAQ;4BACX,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW;gCACtC,CAAC,CAAC,oBAAoB,GAAG,GAAG,CAAC,QAAQ,CAAC,WAAW;gCACjD,CAAC,CAAC,SAAS,CAAA;wBACf,MAAK;oBACP,KAAK,YAAY;wBACf,IAAI,CAAC,UAAU;4BACb,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,UAAU,CAAC,WAAW;gCAC1C,CAAC,CAAC,oBAAoB,GAAG,GAAG,CAAC,UAAU,CAAC,WAAW;gCACnD,CAAC,CAAC,SAAS,CAAA;wBACf,MAAK;oBACP,KAAK,YAAY;wBACf,IAAI,CAAC,UAAU;4BACb,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,UAAU,CAAC,WAAW;gCAC1C,CAAC,CAAC,oBAAoB,GAAG,GAAG,CAAC,UAAU,CAAC,WAAW;gCACnD,CAAC,CAAC,SAAS,CAAA;wBACf,MAAK;oBACP;wBACE,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAA;wBACpB,MAAK;iBACR;aACF;QACH,CAAC,CAAC,CAAA;QAEF,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,KAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;IAEhE,CAAC;CACF;AAtDD,8BAsDC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./avatar"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/display/avatar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./vue-text"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/display/text/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VueText = void 0;
|
|
4
|
-
const vue_base_component_1 = require("../../vue-base-component");
|
|
5
|
-
class VueText extends vue_base_component_1.VueBaseComponent {
|
|
6
|
-
constructor(param, context) {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
super(param, context);
|
|
9
|
-
let obj;
|
|
10
|
-
if (typeof param === 'string') {
|
|
11
|
-
obj = JSON.parse(param);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
obj = param;
|
|
15
|
-
}
|
|
16
|
-
if (!obj) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const keys = `demoText,textTheme,lineHeight,fontWeight,binding,displayType,wrapPosition,color,formatter,fontSize
|
|
20
|
-
,enableLabel,labelText,labelSize,labelFontSize,labelFontWeight,labelColor,labelWidth,click,textTheme`;
|
|
21
|
-
Object.keys(obj).forEach(key => {
|
|
22
|
-
if (keys.includes(key)) {
|
|
23
|
-
if (key === 'formatter') {
|
|
24
|
-
if (obj[key]) {
|
|
25
|
-
for (const prop in obj[key]) {
|
|
26
|
-
if (obj[key][prop] === null || obj[key][prop] === undefined || obj[key][prop] === '') {
|
|
27
|
-
delete obj[key][prop];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
if (obj[key]['dateFormat']) {
|
|
31
|
-
obj[key]['format'] = obj[key]['dateFormat'];
|
|
32
|
-
delete obj[key]['dateFormat'];
|
|
33
|
-
}
|
|
34
|
-
if (obj[key]['thousand']) {
|
|
35
|
-
obj[key]['thousand'] = ',';
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
this[key] = obj[key];
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this[key] = obj[key];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
((_a = this.padding) === null || _a === void 0 ? void 0 : _a.getStyle) && this.addStyle(this.padding.getStyle());
|
|
46
|
-
((_b = this.margin) === null || _b === void 0 ? void 0 : _b.getStyle) && this.addStyle(this.margin.getStyle());
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.VueText = VueText;
|
|
50
|
-
//# sourceMappingURL=vue-text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vue-text.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/display/text/vue-text.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAG5D,MAAa,OAAQ,SAAQ,qCAAgB;IAiBzC,YAAY,KAAU,EAAE,OAAyB;;QAC7C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEtB,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC3B;aAAM;YACH,GAAG,GAAG,KAAK,CAAC;SACf;QAED,IAAI,CAAC,GAAG,EAAE;YACN,OAAO;SACV;QAED,MAAM,IAAI,GAAI;6GACuF,CAAC;QACtG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC3B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACpB,IAAI,GAAG,KAAK,WAAW,EAAE;oBACrB,IAAG,GAAG,CAAC,GAAG,CAAC,EAAC;wBACR,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;4BACzB,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE;gCACpF,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;6BACvB;yBACJ;wBACD,IAAG,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,EAAC;4BACtB,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;4BAC5C,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;yBACjC;wBACD,IAAG,GAAG,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,EAAC;4BACpB,GAAG,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC;yBAC9B;qBACJ;oBAED,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;iBAExB;qBAAO;oBACJ,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;iBACxB;aACJ;QACL,CAAC,CAAC,CAAC;QACH,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,QAAQ,KAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;QAChE,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,KAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;IAClE,CAAC;CACJ;AA7DD,0BA6DC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
-var attrs = {};
|
|
2
|
-
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
-
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
-
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
-
div(
|
|
6
|
-
v-if!=""+visible
|
|
7
|
-
)
|
|
8
|
-
fm-avatar(
|
|
9
|
-
fit!=variable.fit?"" + variable.fit:undefined
|
|
10
|
-
border!=variable.border?"" + variable.border:undefined
|
|
11
|
-
srcMode!=variable.srcMode?"" + variable.srcMode:undefined
|
|
12
|
-
:sysUserId!=variable.sysUserId?"" + variable.sysUserId:undefined
|
|
13
|
-
:dynamicSrc!=variable.dynamicSrc?"" + variable.dynamicSrc:undefined
|
|
14
|
-
:attachId!=variable.attachId?"" + variable.attachId:undefined
|
|
15
|
-
rootId!=variable.rootId?"" + variable.rootId:undefined
|
|
16
|
-
:avatarText !=variable.avatarText?"" + variable.avatarText:undefined
|
|
17
|
-
width!=variable.width?"" + variable.width:undefined
|
|
18
|
-
height!=variable.height?"" + variable.height:undefined
|
|
19
|
-
)&attributes(attrs)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
-var attrs = {};
|
|
3
|
-
-attrs.class = variable.appearance && variable.appearance.class;
|
|
4
|
-
-attrs.style = variable.appearance && variable.appearance.style;
|
|
5
|
-
- var visible = variable.visible ? String(variable.visible.value) : undefined;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
span(
|
|
9
|
-
v-if=visible
|
|
10
|
-
)&attributes(attrs)
|
|
11
|
-
| !{variable.text}
|
|
12
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
-var attrs = {};
|
|
2
|
-
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
-
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
-
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
-
|
|
6
|
-
fm-layout-column(
|
|
7
|
-
v-if=visible
|
|
8
|
-
id=variable.replacedId ? String(variable.replacedId) : undefined
|
|
9
|
-
width=variable.colWidth ? String(variable.colWidth) : undefined
|
|
10
|
-
)&attributes(attrs)
|
|
11
|
-
| {{content}}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
-var attrs = {};
|
|
2
|
-
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
-
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
-
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
-
|
|
6
|
-
fm-layout-row(
|
|
7
|
-
v-if=visible
|
|
8
|
-
id=variable.replacedId ? String(variable.replacedId) : undefined
|
|
9
|
-
height=variable.rowHeight ? String(variable.rowHeight) : undefined
|
|
10
|
-
:gutter=variable.gutter ? String(variable.gutter) : undefined
|
|
11
|
-
)&attributes(attrs)
|
|
12
|
-
| {{content}}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
-var attrs = {};
|
|
2
|
-
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
-
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
-
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
-
|
|
6
|
-
fm-layout(
|
|
7
|
-
v-if=visible
|
|
8
|
-
id=variable.replacedId ? String(variable.replacedId) : undefined
|
|
9
|
-
:gutter=variable.gutter ? String(variable.gutter) : undefined
|
|
10
|
-
)&attributes(attrs)
|
|
11
|
-
| {{content}}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
-var attrs = {};
|
|
3
|
-
-attrs.class = variable.appearance && variable.appearance.class;
|
|
4
|
-
-attrs.style = variable.appearance && variable.appearance.style;
|
|
5
|
-
- var visible = variable.visible ? String(variable.visible.value) : undefined;
|
|
6
|
-
-var binding = variable.binding? variable.binding : undefined
|
|
7
|
-
-var formatter = variable.formatter? variable.formatter : undefined
|
|
8
|
-
-var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
|
|
9
|
-
-var formatterType = 'string'
|
|
10
|
-
|
|
11
|
-
-var valueStr = ''
|
|
12
|
-
|
|
13
|
-
if(binding && binding.type)
|
|
14
|
-
if(binding.type === 'Const')
|
|
15
|
-
-valueStr = `'${binding.value}'`;
|
|
16
|
-
if(binding.type === 'Form')
|
|
17
|
-
-valueStr = `${formBindingPrefix}${binding.bindingPath}`;
|
|
18
|
-
if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
|
|
19
|
-
-valueStr = `uiState.${binding.code}`;
|
|
20
|
-
|
|
21
|
-
if(formatter && formatter.type)
|
|
22
|
-
-formatterType = formatter.type
|
|
23
|
-
-delete formatter.type
|
|
24
|
-
|
|
25
|
-
-var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
|
|
26
|
-
|
|
27
|
-
fm-tag(
|
|
28
|
-
v-if=visible
|
|
29
|
-
type=variable.displayType ? String(variable.displayType) : undefined
|
|
30
|
-
size=variable.tagSize ? String(variable.tagSize) : undefined
|
|
31
|
-
color=variable.tagColor ? String(variable.tagColor) : undefined
|
|
32
|
-
)&attributes(attrs)
|
|
33
|
-
| !{content}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
-var enableLabel = variable.enableLabel
|
|
2
|
-
|
|
3
|
-
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
4
|
-
-var binding = variable.binding? variable.binding : undefined
|
|
5
|
-
-var fontSize = variable.fontSize? String(variable.fontSize) : undefined
|
|
6
|
-
-var lineHeight = variable.lineHeight? String(variable.lineHeight) : undefined
|
|
7
|
-
-var fontWeight = variable.fontWeight? String(variable.fontWeight) : undefined
|
|
8
|
-
-var color = variable.color? String(variable.color) : undefined
|
|
9
|
-
-var formatter = variable.formatter ? variable.formatter:{}
|
|
10
|
-
-var displayType = variable.displayType? String(variable.displayType) : undefined
|
|
11
|
-
-var formatterType = 'string'
|
|
12
|
-
-var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
|
|
13
|
-
|
|
14
|
-
-var wrapPosition = variable.wrapPosition? variable.wrapPosition : undefined
|
|
15
|
-
-var labelText = variable.labelText
|
|
16
|
-
-var labelFontSize = variable.labelFontSize
|
|
17
|
-
-var labelLineHeight = variable.labelLineHeight
|
|
18
|
-
-var labelColor = variable.labelColor
|
|
19
|
-
-var labelFontWeight = variable.labelFontWeight
|
|
20
|
-
-var labelWidth = variable.labelWidth
|
|
21
|
-
|
|
22
|
-
//--文本样式
|
|
23
|
-
-var textAttrs = {};
|
|
24
|
-
-textAttrs.id = variable.replacedId? String(variable.replacedId) : undefined
|
|
25
|
-
-textAttrs.class = displayType && displayType.startsWith('title-') ? 'fm-common-title ':'fm-common-text ';
|
|
26
|
-
-textAttrs.style = '';
|
|
27
|
-
if(displayType)
|
|
28
|
-
-textAttrs.class += ` fm-${displayType}`
|
|
29
|
-
if(enableLabel && wrapPosition === 'afterLabel')
|
|
30
|
-
-textAttrs.class += ' d-flex ';
|
|
31
|
-
if(variable.appearance && variable.appearance.class)
|
|
32
|
-
-textAttrs.class += variable.appearance.class;
|
|
33
|
-
|
|
34
|
-
if(color)
|
|
35
|
-
-textAttrs.style += `color:${color};`
|
|
36
|
-
if(variable.size && variable.size.width)
|
|
37
|
-
-textAttrs.style += `width:${variable.size.width}px;`
|
|
38
|
-
if(variable.size && variable.size.height)
|
|
39
|
-
-textAttrs.style += `height:${variable.size.height}px;`
|
|
40
|
-
if(fontSize)
|
|
41
|
-
-textAttrs.style += `font-size:${fontSize}px;`
|
|
42
|
-
if(lineHeight)
|
|
43
|
-
-textAttrs.style += `line-height:${lineHeight}px;`
|
|
44
|
-
if(fontWeight)
|
|
45
|
-
-textAttrs.style += `font-weight:${fontWeight};`
|
|
46
|
-
if(variable.appearance && variable.appearance.style)
|
|
47
|
-
-textAttrs.style += variable.appearance.style;
|
|
48
|
-
|
|
49
|
-
//--标签属性
|
|
50
|
-
-var labelAttrs = {};
|
|
51
|
-
if(enableLabel)
|
|
52
|
-
-labelAttrs.class = 'fm-common-label ';
|
|
53
|
-
-labelAttrs.style = '';
|
|
54
|
-
if(variable.labelAppearance && variable.labelAppearance.class)
|
|
55
|
-
-labelAttrs.class += variable.labelAppearance.class;
|
|
56
|
-
if(labelColor)
|
|
57
|
-
-labelAttrs.style += `color:${labelColor};`
|
|
58
|
-
if(labelFontSize)
|
|
59
|
-
-labelAttrs.style += `font-size:${labelFontSize}px;`
|
|
60
|
-
if(labelFontWeight)
|
|
61
|
-
-labelAttrs.style += `font-weight:${labelFontWeight};`
|
|
62
|
-
if(labelWidth)
|
|
63
|
-
-labelAttrs.style += `width:${labelWidth}px;`
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
//--文本内容属性
|
|
67
|
-
-var contenAtttrs = {};
|
|
68
|
-
-contenAtttrs.class = 'fm-common-content '
|
|
69
|
-
|
|
70
|
-
//--绑定值
|
|
71
|
-
-var contentStr = ''
|
|
72
|
-
if(binding && binding.type)
|
|
73
|
-
if(binding.type === 'Static')
|
|
74
|
-
-contentStr = `'${binding.value}'`;
|
|
75
|
-
if(binding.type === 'Form')
|
|
76
|
-
-contentStr = `${formBindingPrefix}${binding.bindingPath}`;
|
|
77
|
-
if(binding.type === 'Variable')
|
|
78
|
-
-contentStr = `uiState.${binding.path}`;
|
|
79
|
-
|
|
80
|
-
if(formatter && formatter.type)
|
|
81
|
-
-formatterType = formatter.type==='boolean'?'bool':formatter.type;
|
|
82
|
-
-delete formatter.type
|
|
83
|
-
-contentStr = `{{$formatUtils.${formatterType}(${contentStr},${JSON.stringify(formatter)})}}`
|
|
84
|
-
else if(binding.type === 'Form' || binding.type === 'Variable')
|
|
85
|
-
-contentStr = `{{ ${contentStr} }}`;
|
|
86
|
-
|
|
87
|
-
-var labelStr = ''
|
|
88
|
-
if(enableLabel)
|
|
89
|
-
if(typeof labelText==='string')
|
|
90
|
-
-labelStr = `${labelText}`;
|
|
91
|
-
else if(labelText && typeof labelText==='object' && labelText.path)
|
|
92
|
-
-labelStr = `{{ uiState.${labelText.path} }}`;
|
|
93
|
-
else
|
|
94
|
-
-labelStr = '';
|
|
95
|
-
|
|
96
|
-
div(
|
|
97
|
-
v-if=visible
|
|
98
|
-
@click=variable.click ? String(variable.click) : undefined
|
|
99
|
-
)&attributes(textAttrs)
|
|
100
|
-
if(enableLabel)
|
|
101
|
-
label()&attributes(labelAttrs)
|
|
102
|
-
| !{labelStr}
|
|
103
|
-
span(
|
|
104
|
-
)&attributes(textAttrs)
|
|
105
|
-
| !{contentStr}
|