@farris/jit-engine 1.3.269 → 1.3.270
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/README.md +4 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js +41 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js +35 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js +38 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-binding.js +6 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-binding.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js +29 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-variable.js +4 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-variable.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js +28 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js +57 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/show-image.js +46 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/show-image.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js +47 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/input/common.js +12 -0
- package/lib/mobileapp/vue/domstructure/ui/input/common.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/index.js +1 -0
- package/lib/mobileapp/vue/domstructure/ui/input/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/picker-city.js +41 -0
- package/lib/mobileapp/vue/domstructure/ui/input/picker-city.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +7 -0
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +3 -1
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js +1 -0
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
- package/lib/template/ui/mobilevue/area-picker.pug +0 -2
- package/lib/template/ui/mobilevue/avatar.pug +19 -0
- package/lib/template/ui/mobilevue/common/text-common.pug +80 -0
- package/lib/template/ui/mobilevue/fm-staff-info.pug +10 -0
- package/lib/template/ui/mobilevue/icon.pug +11 -0
- package/lib/template/ui/mobilevue/label.pug +9 -12
- package/lib/template/ui/mobilevue/layout-container-col.pug +11 -0
- package/lib/template/ui/mobilevue/layout-container-row.pug +12 -0
- package/lib/template/ui/mobilevue/layout-container.pug +11 -0
- package/lib/template/ui/mobilevue/page-content-container.pug +10 -0
- package/lib/template/ui/mobilevue/page-footer-container.pug +10 -0
- package/lib/template/ui/mobilevue/page-header-container.pug +10 -0
- package/lib/template/ui/mobilevue/picker-area.pug +55 -0
- package/lib/template/ui/mobilevue/picker-city.pug +61 -0
- package/lib/template/ui/mobilevue/show-image.pug +22 -0
- package/lib/template/ui/mobilevue/tag.pug +33 -0
- package/lib/template/ui/mobilevue/text.pug +118 -0
- package/package.json +1 -1
- package/lib/mobileapp/vue/static/.npmignore +0 -13
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
-var previewPath =`$formatUtils.imageThumbnailPath(${variable.attachId}, '${variable.rootId}')`
|
|
6
|
+
-var srcMode = variable.srcMode
|
|
7
|
+
if(srcMode == "dynamicUrl")
|
|
8
|
+
-attrs[`:src`] = variable.dynamicSrc;
|
|
9
|
+
else if(srcMode == "staticUrl")
|
|
10
|
+
-attrs.src = variable.staticSrc;
|
|
11
|
+
else
|
|
12
|
+
-attrs[`:src`] = previewPath;
|
|
13
|
+
|
|
14
|
+
fm-image(
|
|
15
|
+
v-if!=""+visible
|
|
16
|
+
id!=variable.id?"" + variable.id:undefined
|
|
17
|
+
width!=variable.width?"" + variable.width:undefined
|
|
18
|
+
height!=variable.height?"" + variable.height:undefined
|
|
19
|
+
radius!=variable.radius?"" + variable.radius:undefined
|
|
20
|
+
:fit=variable.fit?"" + variable.fit:undefined
|
|
21
|
+
:round=variable.round?"" + variable.round:undefined
|
|
22
|
+
)&attributes(attrs)
|
|
@@ -0,0 +1,33 @@
|
|
|
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}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
-var enableLabel = variable.enableLabel
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
-attrs.class = variable.appearance && variable.appearance.class ?variable.appearance.class:'';
|
|
4
|
+
-attrs.style = variable.appearance && variable.appearance.style?variable.appearance.style:'';
|
|
5
|
+
-attrs.id = variable.replacedId? String(variable.replacedId) : undefined
|
|
6
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
7
|
+
-var binding = variable.binding? variable.binding : undefined
|
|
8
|
+
-var fontSize = variable.fontSize? String(variable.fontSize) : undefined
|
|
9
|
+
-var lineHeight = variable.lineHeight? String(variable.lineHeight) : undefined
|
|
10
|
+
-var textColor = variable.textColor? String(variable.textColor) : undefined
|
|
11
|
+
-var formatter = variable.formatter ? variable.formatter:{}
|
|
12
|
+
-var displayType = variable.displayType? String(variable.displayType) : undefined
|
|
13
|
+
-var formatterType = 'string'
|
|
14
|
+
-var valueStr = ''
|
|
15
|
+
-var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
|
|
16
|
+
-var wrapPosition = variable.wrapPosition? variable.wrapPosition : undefined
|
|
17
|
+
|
|
18
|
+
-var label = variable.label
|
|
19
|
+
-var labelAppearance = variable.labelAppearance;
|
|
20
|
+
-var labelSize = variable.labelSize
|
|
21
|
+
-var labelFontSize = variable.labelFontSize
|
|
22
|
+
-var labelLineHeight = variable.labelLineHeight
|
|
23
|
+
-var labelColor = variable.labelColor
|
|
24
|
+
-var labelattrs = {};
|
|
25
|
+
-labelattrs.class = 'fm-common-label ';
|
|
26
|
+
-labelattrs.class += variable.labelAppearance && variable.labelAppearance.class ?variable.labelAppearance.class:'';
|
|
27
|
+
-labelattrs.style = variable.labelAppearance && variable.labelAppearance.style?variable.labelAppearance.style:'';
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
//--启用标签时,文本的样式
|
|
31
|
+
-var textCls = 'fm-common-text '
|
|
32
|
+
|
|
33
|
+
//--样式class
|
|
34
|
+
-attrs.class = `fm-common-field ${attrs.class} `
|
|
35
|
+
-attrs.class += displayType && displayType.startsWith('title-') ? 'fm-common-title':''
|
|
36
|
+
if(displayType)
|
|
37
|
+
-attrs.class += ` fm-${displayType}`
|
|
38
|
+
|
|
39
|
+
if(enableLabel && wrapPosition === 'afterLabel')
|
|
40
|
+
-attrs.class += ' d-flex ';
|
|
41
|
+
|
|
42
|
+
if(binding && binding.type)
|
|
43
|
+
if(binding.type === 'Const')
|
|
44
|
+
-valueStr = `'${binding.value}'`;
|
|
45
|
+
if(binding.type === 'Form')
|
|
46
|
+
-valueStr = `${formBindingPrefix}${binding.bindingPath}`;
|
|
47
|
+
if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
|
|
48
|
+
-valueStr = `uiState.${binding.code}`;
|
|
49
|
+
|
|
50
|
+
-var labelContent = ''
|
|
51
|
+
if(enableLabel)
|
|
52
|
+
if(typeof label==='string')
|
|
53
|
+
-labelContent = `${label}`;
|
|
54
|
+
else if(label && typeof label==='object' && label.fullPath)
|
|
55
|
+
-labelContent = `{{ uiState.${label.fullPath} }}`;
|
|
56
|
+
else
|
|
57
|
+
-labelContent = '';
|
|
58
|
+
|
|
59
|
+
if(formatter && formatter.type)
|
|
60
|
+
-formatterType = formatter.type
|
|
61
|
+
-delete formatter.type
|
|
62
|
+
|
|
63
|
+
-var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
//--样式
|
|
67
|
+
if(attrs.style)
|
|
68
|
+
-attrs.style += `;`
|
|
69
|
+
|
|
70
|
+
if(textColor)
|
|
71
|
+
-attrs.style += ` color:${textColor};`
|
|
72
|
+
|
|
73
|
+
//--内容
|
|
74
|
+
if(variable.size && variable.size.width)
|
|
75
|
+
-attrs.style += `width:${variable.size.width}px;`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
if(variable.size && variable.size.height)
|
|
79
|
+
-attrs.style += `height:${variable.size.height}px;`
|
|
80
|
+
|
|
81
|
+
if(fontSize)
|
|
82
|
+
-attrs.style += `font-size:${fontSize}px;`
|
|
83
|
+
|
|
84
|
+
if(lineHeight)
|
|
85
|
+
-attrs.style += `line-height:${lineHeight}px;`
|
|
86
|
+
|
|
87
|
+
//--标签样式
|
|
88
|
+
if(enableLabel)
|
|
89
|
+
if(labelattrs.style)
|
|
90
|
+
-labelattrs.style += `;`
|
|
91
|
+
|
|
92
|
+
if(labelColor)
|
|
93
|
+
-labelattrs.style += ` color:${labelColor};`
|
|
94
|
+
|
|
95
|
+
if(variable.labelSize && variable.labelSize.width)
|
|
96
|
+
-labelattrs.style += `width:${variable.labelSize.width}px;`
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
if(variable.labelSize && variable.labelSize.height)
|
|
100
|
+
-labelattrs.style += `height:${variable.labelSize.height}px;`
|
|
101
|
+
|
|
102
|
+
if(labelFontSize)
|
|
103
|
+
-labelattrs.style += `font-size:${labelFontSize}px;`
|
|
104
|
+
|
|
105
|
+
if(labelLineHeight)
|
|
106
|
+
-labelattrs.style += `line-height:${labelLineHeight}px;`
|
|
107
|
+
|
|
108
|
+
div(
|
|
109
|
+
v-if=visible
|
|
110
|
+
)&attributes(attrs)
|
|
111
|
+
if(enableLabel)
|
|
112
|
+
label()&attributes(labelattrs)
|
|
113
|
+
| !{labelContent}
|
|
114
|
+
|
|
115
|
+
span(
|
|
116
|
+
class=textCls
|
|
117
|
+
)
|
|
118
|
+
| !{content}
|
package/package.json
CHANGED