@farris/jit-engine 1.4.96 → 1.4.98

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.
Files changed (39) hide show
  1. package/README.md +8 -0
  2. package/lib/template/ui/mobileapprove/html-panel-for-mobileapprove.pug +12 -25
  3. package/lib/template/ui/mobilevue/approval-info.pug +0 -3
  4. package/lib/template/ui/mobilevue/area-picker.pug +55 -0
  5. package/lib/template/ui/mobilevue/avatar.pug +19 -0
  6. package/lib/template/ui/mobilevue/common/text-common.pug +80 -0
  7. package/lib/template/ui/mobilevue/fm-staff-info.pug +10 -0
  8. package/lib/template/ui/mobilevue/footer.pug +10 -0
  9. package/lib/template/ui/mobilevue/label.pug +12 -0
  10. package/lib/template/ui/mobilevue/layout-container-col.pug +11 -0
  11. package/lib/template/ui/mobilevue/layout-container-row.pug +12 -0
  12. package/lib/template/ui/mobilevue/layout-container.pug +11 -0
  13. package/lib/template/ui/mobilevue/page-content-container.pug +10 -0
  14. package/lib/template/ui/mobilevue/page-footer-container.pug +10 -0
  15. package/lib/template/ui/mobilevue/page-header-container.pug +10 -0
  16. package/lib/template/ui/mobilevue/show-image.pug +22 -0
  17. package/lib/template/ui/mobilevue/tag.pug +33 -0
  18. package/lib/template/ui/mobilevue/text.pug +118 -0
  19. package/lib/template/ui/mobilevue/vant-tabpage.pug +6 -0
  20. package/lib/template/ui/mobilevue/vant-tabs.pug +6 -0
  21. package/lib/utility/directory-file-helper.js +241 -246
  22. package/lib/utility/directory-file-helper.js.map +1 -1
  23. package/lib/utility/farris-datagrid/textbox-editor.js +8 -1
  24. package/lib/utility/farris-datagrid/textbox-editor.js.map +1 -1
  25. package/lib/utility/mobile-approve/entity/index.js +5 -1
  26. package/lib/utility/mobile-approve/entity/index.js.map +1 -1
  27. package/lib/utility/mobile-approve/mobile-approve-manager.js +5 -1
  28. package/lib/utility/mobile-approve/mobile-approve-manager.js.map +1 -1
  29. package/lib/utility/mobile-approve/recuresive-generate-mobileapprove.js +3 -5
  30. package/lib/utility/mobile-approve/recuresive-generate-mobileapprove.js.map +1 -1
  31. package/lib/utility/mobile-approve/template-generator/index-html-generator.js +0 -18
  32. package/lib/utility/mobile-approve/template-generator/index-html-generator.js.map +1 -1
  33. package/lib/utility/mobile-approve/template-generator/index.js +5 -1
  34. package/lib/utility/mobile-approve/template-generator/index.js.map +1 -1
  35. package/lib/utility/template-generator/devkit/component-generator/component-events-parameter-generator.js +3 -4
  36. package/lib/utility/template-generator/devkit/component-generator/component-events-parameter-generator.js.map +1 -1
  37. package/lib/utility/template-generator/devkit/event-template-generator.js +1 -1
  38. package/lib/utility/template-generator/devkit/event-template-generator.js.map +1 -1
  39. package/package.json +1 -1
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ 1.4.98
2
+
3
+ 特性整合版本
4
+
5
+ 1.4.97
6
+
7
+ 修复可编辑列表文本列最大长度问题
8
+
1
9
  1.4.96
2
10
 
3
11
  修复筛选条智能输入框国际化问题
@@ -1,36 +1,23 @@
1
1
  -var stringTitle = String(variable.title)
2
2
  -var localTitle = /[\s\S]*?\{\{=([\s\S]+?)\}\}[\s\S]*?/g.test(stringTitle) ? variable.title : `{{= translate('${stringTitle}') || '${stringTitle}'}}`
3
-
4
- if(variable.showTitle && stringTitle && variable.showTitleType === "custom")
5
- div(class="fm-apply-panel-list" data-navigable="true")
6
- div(class="panel-list--header")
7
- h5(class="panel-list--header-title header-title--with-icon")
8
- i(class="fm-icon fm-icon-triangle")
9
- span(class="header-title-text")
10
- | !{localTitle}
11
- div(class="fm-apply-panel fm-apply-html-panel")
12
- if(variable.contents && variable.contents.length > 0)
13
- | {{content}}
14
- else if(variable.showTitle && variable.headerIcon && variable.showTitleType !== "custom")
15
- div(class="fm-apply-panel-list" data-navigable="true")
3
+ if(variable.showTitle&&variable.headerIcon)
4
+ div(class="fm-apply-panel-list")
16
5
  div(class="panel-list--header")
17
6
  h5(class="panel-list--header-title header-title--with-icon")
18
7
  span(class="img-round--wrapper "+(variable.headerIcon && variable.headerIcon.color?"fm-bg-icon-"+""+variable.headerIcon.color+"":""))
19
8
  i(class="fm-icon "+(variable.headerIcon && variable.headerIcon.icon ? "fm-icon-" + ""+variable.headerIcon.icon+"": ""))
20
- | !{localTitle}
21
- div(class="fm-apply-panel fm-apply-html-panel")
9
+ |!{localTitle}
10
+ div(class="fm-apply-panel")
22
11
  if(variable.contents && variable.contents.length > 0)
23
12
  | {{content}}
24
- else if(variable.showTitle && stringTitle && !variable.headerIcon && variable.showTitleType !== "custom")
25
- div(class="fm-apply-panel-list" data-navigable="true")
13
+ else if(variable.showTitle&&!variable.headerIcon)
14
+ div(class="fm-apply-panel-list")
26
15
  div(class="panel-list--header")
27
16
  h5(class="panel-list--header-title header-title--with-icon")
28
- | !{localTitle}
29
- div(class="fm-apply-panel fm-apply-html-panel")
30
- if(variable.contents && variable.contents.length > 0)
31
- | {{content}}
17
+ |!{localTitle}
18
+ if(variable.contents && variable.contents.length > 0)
19
+ div(class="fm-apply-panel")
20
+ |{{content}}
32
21
  else
33
- div(class="fm-apply-panel-list")
34
- div(class="fm-apply-panel fm-apply-html-panel fm-apply-html-panel--no-header")
35
- if(variable.contents && variable.contents.length > 0)
36
- | {{content}}
22
+ if(variable.contents && variable.contents.length > 0)
23
+ | {{content}}
@@ -11,6 +11,3 @@ fm-approval-info(
11
11
  releaseDate=variable.releaseDate?""+variable.releaseDate:undefined
12
12
  description=variable.description?""+variable.description:undefined
13
13
  )&attributes(attrs)
14
- if(variable.description)
15
- template(#description)
16
- | !{variable.description}
@@ -0,0 +1,55 @@
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
5
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
+ -attrs.label = variable.title? String(variable.title) : undefined
8
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
10
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
11
+ -var require = variable.require ? String(variable.require.value) : undefined;
12
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
13
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
14
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
15
+
16
+ div(
17
+ v-if=visible
18
+ class="fm-input-wrapper"
19
+ )
20
+ fm-area-picker(
21
+ v-model=binding
22
+ :required=require
23
+ :readonly=readonly
24
+ :disabled=disable
25
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
26
+ direction=variable.direction?variable.direction+"":undefined
27
+ title=variable.title?""+variable.title:undefined
28
+ input-align="right"
29
+ :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
30
+ :columns-num!=variable.displayType?variable.displayType+"":undefined
31
+ :error-message!=variable.errorMessage
32
+ error-message-align=variable.errorMessage ? "right" : undefined
33
+ @change=variable.change ? String(variable.change) : undefined
34
+ )&attributes(attrs)
35
+ if(variable.leftTemplate)
36
+ template(#left-icon)
37
+ | !{variable.leftTemplate}
38
+ if(variable.rightTemplate)
39
+ template(#right-icon)
40
+ | !{variable.rightTemplate}
41
+ if(variable.extraTemplate)
42
+ template(#extra)
43
+ | !{variable.extraTemplate}
44
+ if(variable.valueTemplate)
45
+ template(v-slot:value="slotProps")
46
+ | !{variable.valueTemplate}
47
+ if(variable.labelTips)
48
+ template(#title)
49
+ <span>!{variable.title}</span>
50
+ <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
51
+ <fm-icon name="s-illustrate-o"/>
52
+ <template #content>
53
+ <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
54
+ </template>
55
+ </fm-popover>
@@ -0,0 +1,19 @@
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)
@@ -0,0 +1,80 @@
1
+ mixin getData(variable,isLabel)
2
+ -var attrs = {};
3
+ -attrs.class = isLabel?'fm-common-label ':'';
4
+ -attrs.class += variable.appearance && variable.appearance.class ?variable.appearance.class:'';
5
+ -attrs.style = variable.appearance && variable.appearance.style?variable.appearance.style:'';
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
8
+ -var binding = variable.binding? variable.binding : undefined
9
+ -var fontSize = variable.fontSize? String(variable.fontSize) : undefined
10
+ -var lineHeight = variable.lineHeight? String(variable.lineHeight) : undefined
11
+ -var semanticColor = variable.semanticColor? String(variable.semanticColor) : undefined
12
+ -var formatter = variable.formatter ? variable.formatter:{}
13
+ -var displayType = variable.displayType? String(variable.displayType) : undefined
14
+ -var formatterType = 'string'
15
+ -var valueStr = ''
16
+ -var textBindingPrefix = variable.textBindingPrefix? String(variable.textBindingPrefix):undefined
17
+
18
+
19
+ //--样式class
20
+ if(displayType)
21
+ if(displayType.startsWith('title-'))
22
+ -attrs.class = `fm-common-title fm-${displayType} ${attrs.class}`
23
+ if(displayType.startsWith('text-'))
24
+ -attrs.class = `fm-common-text fm-${displayType} ${attrs.class}`
25
+
26
+ if(semanticColor)
27
+ -attrs.class += ` fm-text-color-${semanticColor}`
28
+
29
+ //--内容
30
+ if(!isLabel)
31
+ if(binding && binding.type)
32
+ if(binding.type === 'Const')
33
+ -valueStr = `'${binding.value}'`;
34
+ if(binding.type === 'Form')
35
+ -valueStr = `${textBindingPrefix}${binding.bindingPath}`;
36
+ if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
37
+ -valueStr = `uiState.${binding.code}`;
38
+ else
39
+ if(typeof binding==='string')
40
+ -valueStr = `'${binding}'`;
41
+ else
42
+ -valueStr = `uiState.${binding.fullPath}`;
43
+
44
+ if(formatter && formatter.type)
45
+ -formatterType = formatter.type
46
+ -delete formatter.type
47
+ -var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
48
+
49
+
50
+ //--样式
51
+ if(attrs.style)
52
+ -attrs.style += `;`
53
+
54
+ if(variable.size && variable.size.width)
55
+ -attrs.style += `width:${variable.size.width}px;`
56
+
57
+
58
+ if(variable.size && variable.size.height)
59
+ -attrs.style += `height:${variable.size.height}px;`
60
+
61
+ if(fontSize)
62
+ -attrs.style += `font-size:${fontSize}px;`
63
+
64
+ if(lineHeight)
65
+ -attrs.style += `line-height:${lineHeight}px;`
66
+
67
+ if(isLabel)
68
+ label()&attributes(attrs)
69
+ | !{content}
70
+ else if(displayType && displayType.startsWith('title-'))
71
+ div(
72
+ v-if=visible
73
+ )&attributes(attrs)
74
+ | !{content}
75
+ else
76
+ span(
77
+ v-if=visible
78
+ )&attributes(attrs)
79
+ | !{content}
80
+
@@ -0,0 +1,10 @@
1
+ fm-staff-info(
2
+ v-if!=variable.visible?variable.visible+"":"false"
3
+ style!=(variable.appearance && variable.appearance.style)
4
+ class!=(variable.appearance && variable.appearance.class)
5
+ :name!=variable.staffName?"" + variable.name:undefined
6
+ :title!=variable.titleText?"" + variable.titleText:undefined
7
+ :sub-title!=variable.departmentName?"" + variable.department:undefined
8
+ :staffId!=variable.staffId?"" + variable.staffId:undefined
9
+ avatarType!=variable.avatarType?"" + variable.avatarType:undefined
10
+ )
@@ -0,0 +1,10 @@
1
+ -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+
3
+ div(
4
+ v-if=variable.visible?variable.visible+"":"false"
5
+ style=(variable.appearance && variable.appearance.style)
6
+ class=(variable.appearance && variable.appearance.class)
7
+ id=variable.id?"" + variable.id:undefined
8
+ )
9
+ | {{content}}
10
+
@@ -0,0 +1,12 @@
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
+
@@ -0,0 +1,11 @@
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}}
@@ -0,0 +1,12 @@
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}}
@@ -0,0 +1,11 @@
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}}
@@ -0,0 +1,10 @@
1
+ -var attrs = {};
2
+ -attrs.class = variable.appearance && variable.appearance.class;
3
+ -attrs.style = variable.appearance && variable.appearance.style;
4
+ -var visible = variable.visible ? variable.visible.value : undefined;
5
+
6
+ div(
7
+ v-if=visible
8
+ id=variable.replacedId?""+variable.replacedId:undefined
9
+ )&attributes(attrs)
10
+ | {{content}}
@@ -0,0 +1,10 @@
1
+ -var attrs = {};
2
+ -attrs.class = variable.appearance && variable.appearance.class;
3
+ -attrs.style = variable.appearance && variable.appearance.style;
4
+ -var visible = variable.visible ? variable.visible.value : undefined;
5
+
6
+ div(
7
+ v-if=visible
8
+ id=variable.replacedId?""+variable.replacedId:undefined
9
+ )&attributes(attrs)
10
+ | {{content}}
@@ -0,0 +1,10 @@
1
+ -var attrs = {};
2
+ -attrs.class = variable.appearance && variable.appearance.class;
3
+ -attrs.style = variable.appearance && variable.appearance.style;
4
+ -var visible = variable.visible ? variable.visible.value : undefined;
5
+
6
+ div(
7
+ v-if=visible
8
+ id=variable.replacedId?""+variable.replacedId:undefined
9
+ )&attributes(attrs)
10
+ | {{content}}
@@ -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}
@@ -0,0 +1,6 @@
1
+ van-tab(
2
+ v-if=variable.visible?variable.visible+"":"false"
3
+ title=variable.title?""+variable.title:undefined
4
+ name=variable.id?""+variable.id:undefined
5
+ )
6
+ | {{content}}
@@ -0,0 +1,6 @@
1
+ van-tabs(
2
+ class=(variable.appearance && variable.appearance.class)
3
+ v-if=variable.visible?variable.visible+"":"false"
4
+ @change=variable.tabChange?""+variable.tabChange:undefined
5
+ )
6
+ | {{content}}