@lingxiteam/ebe-utils 0.2.35 → 0.3.0

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.
@@ -43,14 +43,13 @@
43
43
  }
44
44
  }
45
45
 
46
- // TODO: 临时去掉 冒号
47
- // &::after {
48
- // content: ':';
49
- // display: inline-block;
50
- // width: 8px;
51
- // text-align: center;
52
- // margin-right: 8px;
53
- // }
46
+ &::after {
47
+ content: ':';
48
+ display: inline-block;
49
+ width: 8px;
50
+ text-align: center;
51
+ margin-right: 8px;
52
+ }
54
53
 
55
54
  &-no-colon {
56
55
  .formLabel-item-label-title {
@@ -340,14 +339,13 @@
340
339
  .@{form-item-prefix-cls} {
341
340
  // label不换行
342
341
  &-label {
343
- // TODO: 临时去掉 冒号
344
- // &::after {
345
- // content: ':';
346
- // display: inline-block;
347
- // width: 8px;
348
- // text-align: center;
349
- // margin-right: 8px;
350
- // }
342
+ &::after {
343
+ content: ':';
344
+ display: inline-block;
345
+ width: 8px;
346
+ text-align: center;
347
+ margin-right: 8px;
348
+ }
351
349
 
352
350
  &>label {
353
351
  // 减去冒号占位符宽度
@@ -620,8 +620,8 @@ export const FormFields = React.forwardRef<FormFieldsHooks, FormFieldsProps>((pr
620
620
  [`${hiddenClassName}`]: !!hiddenClassName,
621
621
  // 当无label时,应填充整个父容器长度,不应限制在col-16
622
622
  [`${antPrefix}-form-item-noLabel`]: !formItemLabel,
623
- // 当无name时,不显示冒号
624
- [`${antPrefix}-form-item-no-colon`]: !(props.name),
623
+ // 标题超出情况下省略冒号不隐藏优化
624
+ [`${antPrefix}-form-item-no-colon`]: !childProps.colon,
625
625
  })} // 用于主题自定义样式去查找对应的元素,固定pcFactory-from-component
626
626
  valuePropName={valuePropName}
627
627
  initialValue={initialValue}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/ebe-utils",
3
- "version": "0.2.35",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -19,7 +19,7 @@
19
19
  "@babel/types": "^7.12.12",
20
20
  "cac": "^6.7.14",
21
21
  "fs-extra": "9.x",
22
- "@lingxiteam/ebe": "0.2.35"
22
+ "@lingxiteam/ebe": "0.3.0"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"