resolver-egretimp-plus 0.0.168 → 0.0.169
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/dist/h5/index.js +1 -1
- package/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/form.scss +14 -0
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/packages-H5/CmiCell.vue +5 -0
- package/src/theme/element/components/form.scss +14 -0
- package/src/utils/render.jsx +2 -1
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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;
|
package/src/utils/render.jsx
CHANGED
|
@@ -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') {
|