@bit-sun/business-component 2.2.0-alpha.13 → 2.2.0-alpha.14

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/index.esm.js CHANGED
@@ -30590,6 +30590,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
30590
30590
  if (returnField) {
30591
30591
  var _returnField$name;
30592
30592
  returnField.label = field === null || field === void 0 ? void 0 : field.label;
30593
+ if (field === null || field === void 0 ? void 0 : field.disabled) {
30594
+ // 字段设置只读属性
30595
+ returnField.field.props.disabled = true;
30596
+ }
30597
+ if (field === null || field === void 0 ? void 0 : field.invisible) {
30598
+ // 字段设置不可见属性
30599
+ returnField.initialVisible = false;
30600
+ }
30593
30601
  if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
30594
30602
  returnField.notShowLabel = true;
30595
30603
  }
package/dist/index.js CHANGED
@@ -30608,6 +30608,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
30608
30608
  if (returnField) {
30609
30609
  var _returnField$name;
30610
30610
  returnField.label = field === null || field === void 0 ? void 0 : field.label;
30611
+ if (field === null || field === void 0 ? void 0 : field.disabled) {
30612
+ // 字段设置只读属性
30613
+ returnField.field.props.disabled = true;
30614
+ }
30615
+ if (field === null || field === void 0 ? void 0 : field.invisible) {
30616
+ // 字段设置不可见属性
30617
+ returnField.initialVisible = false;
30618
+ }
30611
30619
  if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
30612
30620
  returnField.notShowLabel = true;
30613
30621
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.2.0-alpha.13",
3
+ "version": "2.2.0-alpha.14",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -82,7 +82,14 @@ function convertFileds (fields, falltValue, faltFieldRange, containerName) {
82
82
  } else {
83
83
  const returnField = field.isStaticCode ? falltValue[containerName ? (containerName + field.name) : field.name] : faltFieldRange[field.name];
84
84
  if (returnField) {
85
- returnField.label = field?.label;
85
+ returnField.label = field?.label;
86
+ if(field?.disabled){ // 字段设置只读属性
87
+ returnField.field.props.disabled = true;
88
+ }
89
+ if(field?.invisible){ // 字段设置不可见属性
90
+ returnField.initialVisible = false;
91
+ }
92
+
86
93
  if(Array.isArray(returnField.name)&&returnField.name?.includes("extensionFields")){
87
94
  returnField.notShowLabel = true;
88
95
  }