resolver-egretimp-plus 0.1.95 → 0.1.97

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.1.95",
3
+ "version": "0.1.97",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -38,6 +38,12 @@
38
38
  align-items: center;
39
39
  height: 16px;
40
40
  word-break: break-word;
41
+ .custom-label-require {
42
+ &::first-letter {
43
+ color: #f5222d;
44
+ margin-right: 3px
45
+ }
46
+ }
41
47
  .custom-label-content {
42
48
  display: -webkit-box;
43
49
  line-height: 16px;
@@ -821,7 +821,7 @@ function getFormItemRule(config, lang, params, compProps) {
821
821
  return
822
822
  }
823
823
  const val = config?.refValue
824
- const message = lang.indexOf('zh') > -1 ? `${config.metaNameZh}不能为空` : `${config.metaNameEn} can not be empty`
824
+ const message = lang.indexOf('zh') > -1 ? `${config.metaNameZh || ''}不能为空` : `${config.metaNameEn || ''} can not be empty`
825
825
  if (!onlyRequiredFlag && required) {
826
826
  if (val === '' || val === null || val === undefined || (Array.isArray(val) && !val.length)) {
827
827
  callback(new Error(message))
@@ -981,11 +981,12 @@ function createFormLable(config, lang = 'zh') {
981
981
  <span
982
982
  onMouseenter={(e) => labelMouseEnenter(e, config, lang)}
983
983
  onMouseout={() => config._labelShowTip = false}
984
- class="custom-label-content" style={config.labelStyle}
984
+ class={`custom-label-content ${required ? 'custom-label-require' : ''}`} style={config.labelStyle}
985
985
  onClick={() => config.onLabelClick && config.onLabelClick?.(config)}
986
986
  >
987
- {required ? <span style="color: #f5222d; margin-right: 3px">*</span> : null}
988
- <span>{lang.indexOf('zh') > -1 ? (config.labelZh || config.metaNameZh) : (config.labelEn || config.metaNameEn)}</span>
987
+ {/* {required ? <span style="color: #f5222d; margin-right: 3px">*</span> : null} */}
988
+ {required ? '*' : null}
989
+ {lang.indexOf('zh') > -1 ? (config.labelZh || config.metaNameZh) : (config.labelEn || config.metaNameEn)}
989
990
  </span>
990
991
  {
991
992
  config._labelShowTip ?