@ibiz-template/runtime 0.7.41-alpha.4 → 0.7.41-alpha.5

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
@@ -37025,6 +37025,8 @@ var ControlController = class extends BaseController {
37025
37025
  super.initState();
37026
37026
  this.state.activated = true;
37027
37027
  this.state.isLoading = false;
37028
+ this.state.disabled = false;
37029
+ this.state.maskOption = { mode: "BLANK" };
37028
37030
  }
37029
37031
  async onCreated() {
37030
37032
  var _a3;
@@ -37397,6 +37399,23 @@ var ControlController = class extends BaseController {
37397
37399
  cb();
37398
37400
  }
37399
37401
  }
37402
+ /**
37403
+ * @description 取消部件禁用
37404
+ * @memberof ControlController
37405
+ */
37406
+ enable() {
37407
+ this.state.disabled = false;
37408
+ this.state.maskOption = { mode: "BLANK" };
37409
+ }
37410
+ /**
37411
+ * @description 设置部件禁用
37412
+ * @param {IApiMaskOption} [options={ mode: 'BLANK' }]
37413
+ * @memberof ControlController
37414
+ */
37415
+ disabled(options = { mode: "BLANK" }) {
37416
+ this.state.disabled = true;
37417
+ this.state.maskOption = options;
37418
+ }
37400
37419
  };
37401
37420
 
37402
37421
  // src/controller/common/control/md-control.controller.ts
@@ -52211,7 +52230,8 @@ var FormItemController = class extends FormDetailController {
52211
52230
  * @type {unknown}
52212
52231
  */
52213
52232
  get value() {
52214
- return this.data[this.name];
52233
+ var _a3;
52234
+ return (_a3 = this.data) == null ? void 0 : _a3[this.name];
52215
52235
  }
52216
52236
  /**
52217
52237
  * 值项