resolver-egretimp-plus 0.0.283 → 0.0.285
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
package/src/utils/render.jsx
CHANGED
|
@@ -787,7 +787,7 @@ function getFormItemExtendProps(config, lang, params) {
|
|
|
787
787
|
class: {
|
|
788
788
|
[`vertical-${config['label-vertical'] || config['labelVertical'] || 'center'}`]: true,
|
|
789
789
|
'content-right': config.contentRight,
|
|
790
|
-
'hidden-label': (config.labelWidth == 0 || config.labelWidth === '0px' || config.labelHidden == '1') &&
|
|
790
|
+
'hidden-label': (config.labelWidth == 0 || config.labelWidth === '0px' || config.labelHidden == '1') && config.showLabel != '1',
|
|
791
791
|
[`label-position-${config['label-position'] || config['labelPosition'] || 'right'}`]: true // label-position 支持三个值,right、left、top
|
|
792
792
|
},
|
|
793
793
|
style,
|
|
@@ -959,7 +959,7 @@ function normalLabelTipContent(content = '') {
|
|
|
959
959
|
function createFormLable(config, lang = 'zh') {
|
|
960
960
|
const ElTooltip = resolveComponent('el-tooltip')
|
|
961
961
|
const elIcon = resolveComponent('el-icon')
|
|
962
|
-
const required = config.requiredFlag === '1'
|
|
962
|
+
const required = config.requiredFlag === '1' && config.hiddenRequiredFlag != '1'
|
|
963
963
|
const slots = {}
|
|
964
964
|
slots.default = () => {
|
|
965
965
|
return <span class="label-tip"><elIcon size="17">
|
|
@@ -973,7 +973,7 @@ function createFormLable(config, lang = 'zh') {
|
|
|
973
973
|
<div title={lang.indexOf('zh') > -1 ? (config.labelZh || config.metaNameZh) : (config.labelEn || config.metaNameEn)} class="custom-label">
|
|
974
974
|
<span class="custom-label-content" style={config.labelStyle} onClick={() => config.onLabelClick && config.onLabelClick?.(config)}>
|
|
975
975
|
{required ? <span style="color: #f5222d; margin-right: 3px">*</span> : null}
|
|
976
|
-
<span>{lang.indexOf('zh') > -1 ? config.metaNameZh : config.metaNameEn}</span>
|
|
976
|
+
<span>{lang.indexOf('zh') > -1 ? (config.labelZh || config.metaNameZh) : (config.labelEn || config.metaNameEn)}</span>
|
|
977
977
|
</span>
|
|
978
978
|
{
|
|
979
979
|
config.hintFlag == '1' ? (
|