resolver-egretimp-plus 0.0.168 → 0.0.170

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.168",
3
+ "version": "0.0.170",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -116,7 +116,15 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
116
116
  // ret.data = {result: {pageTotalCount: 100, result: [{},{},{},{},{}]}}
117
117
  initOutParamData(service.outParamMappingList, {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, outResult: ret.data})
118
118
  if (tableConfig?.vm) {
119
- const total = parseInt(getPathVal(ret.data?.result || {}, service.pageTotalCount || 'pageCount'))
119
+ let totalObj = ret.data?.result
120
+ let pageTotalCountKey = service.pageTotalCount
121
+ const deepMatch = /^_deep:(.+)$/
122
+ const matchs = service.pageTotalCount?.match(deepMatch)
123
+ if (matchs) {
124
+ totalObj = ret.data
125
+ pageTotalCountKey = matchs[1]
126
+ }
127
+ const total = parseInt(getPathVal(totalObj || {}, pageTotalCountKey || 'pageCount'))
120
128
  tableConfig.vm.page.total = total
121
129
  // tableConfig.vm?.changePage(total, 'total')
122
130
  }
@@ -16,6 +16,8 @@ const props = defineProps({
16
16
  }
17
17
  })
18
18
 
19
+ const emptyValDisplay = props.config?.emptyValDisplay ?? "--"
20
+
19
21
  const normalVal = computed(() => {
20
22
  const findItem = props?.options?.find(item => item.columnValue == modelValue.value)
21
23
  if (findItem) {
@@ -48,6 +50,9 @@ const calcProps = computed(() => {
48
50
  if (props.formatter && typeof props.formatter === "function") {
49
51
  desc = props.formatter(desc, props.config, props)
50
52
  }
53
+ if (desc === "" || desc === undefined || desc === null) {
54
+ desc = emptyValDisplay
55
+ }
51
56
  if (props.titleFormatter && typeof props.titleFormatter === "function") {
52
57
  title = props.titleFormatter(title, props.config, props)
53
58
  }
@@ -71,17 +71,15 @@
71
71
  }
72
72
  }
73
73
 
74
- .CustomComponentCollapse:first-child {
75
- margin-bottom: 12px;
76
- }
77
- .CustomComponentCollapse + .CustomComponentCollapse {
74
+ .CustomComponentCollapse:has(+ .CustomComponentCollapse) {
78
75
  margin-bottom: 12px;
79
76
  }
80
77
 
81
- .CustomComponentCollapse.is-card:first-child {
82
- margin-bottom: 16px;
83
- }
84
- .CustomComponentCollapse.is-card + .CustomComponentCollapse.is-card {
78
+ // 选择第一个
79
+ // :not(.CustomComponentCollapse.is-card) + .CustomComponentCollapse.is-card {
80
+ // background: red;
81
+ // }
82
+ .CustomComponentCollapse.is-card:has(+ .CustomComponentCollapse.is-card) {
85
83
  margin-bottom: 16px;
86
84
  }
87
85
 
@@ -14,6 +14,20 @@
14
14
  display: none;
15
15
  }
16
16
  }
17
+ & > .el-form-item__label-wrap {
18
+ & > .el-form-item__label {
19
+ // 表单label中使用弹性居中
20
+ display: flex;
21
+ align-items: center;
22
+ box-sizing: content-box;
23
+
24
+ // 不需要自带的必填*提示符合
25
+ &::before {
26
+ display: none;
27
+ }
28
+ }
29
+ }
30
+
17
31
  .custom-label {
18
32
  display: inline-flex;
19
33
  align-items: center;
@@ -851,7 +851,7 @@ function createFormLable(config, lang = 'zh') {
851
851
  }
852
852
  return (
853
853
  <div title={lang.indexOf('zh') > -1 ? config.metaNameZh : config.metaNameEn} class="custom-label">
854
- <span class="custom-label-content" style={config.labelStyle}>
854
+ <span class="custom-label-content" style={config.labelStyle} onClick={() => config.onLabelClick && config.onLabelClick?.(config)}>
855
855
  {required ? <span style="color: #f5222d; margin-right: 3px">*</span> : null}
856
856
  <span>{lang.indexOf('zh') > -1 ? config.metaNameZh : config.metaNameEn}</span>
857
857
  </span>
@@ -866,6 +866,7 @@ function createFormLable(config, lang = 'zh') {
866
866
  )
867
867
  }
868
868
 
869
+
869
870
  export function getComponentPropsKeys(comp, config) {
870
871
  let propsKeys = []
871
872
  if (typeof comp === 'string') {