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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.283",
3
+ "version": "0.0.285",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -229,7 +229,7 @@ export default {
229
229
  const normalColumnConfig = (config) => {
230
230
  return {
231
231
  ...config,
232
- labelWidth: '0px'
232
+ labelHidden: '1'
233
233
  }
234
234
  }
235
235
 
@@ -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') && !config.showLabel,
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' ? (