form-custom-test 3.0.60 → 3.0.61

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.
@@ -25245,6 +25245,7 @@ const _sfc_main$2W = {
25245
25245
  this.initFieldModel();
25246
25246
  this.registerToRefList();
25247
25247
  this.initEventHandler();
25248
+ this.buildFieldRules();
25248
25249
  this.handleOnCreated();
25249
25250
  },
25250
25251
  mounted() {
@@ -25253,7 +25254,17 @@ const _sfc_main$2W = {
25253
25254
  beforeUnmount() {
25254
25255
  this.unregisterFromRefList();
25255
25256
  },
25256
- methods: {}
25257
+ methods: {},
25258
+ watch: {
25259
+ "field.options.textContent": {
25260
+ handler(newVal) {
25261
+ if (newVal === void 0)
25262
+ return;
25263
+ this.fieldModel = newVal;
25264
+ },
25265
+ immediate: true
25266
+ }
25267
+ }
25257
25268
  };
25258
25269
  function _sfc_render$2W(_ctx, _cache, $props, $setup, $data, $options) {
25259
25270
  const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
@@ -25282,7 +25293,7 @@ function _sfc_render$2W(_ctx, _cache, $props, $setup, $data, $options) {
25282
25293
  _: 1
25283
25294
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
25284
25295
  }
25285
- var staticTextWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2W, [["render", _sfc_render$2W], ["__scopeId", "data-v-55fc605c"]]);
25296
+ var staticTextWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2W, [["render", _sfc_render$2W], ["__scopeId", "data-v-5ec8f7a0"]]);
25286
25297
  var __glob_0_21$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25287
25298
  __proto__: null,
25288
25299
  "default": staticTextWidget
@@ -68032,13 +68043,13 @@ function registerIcon(app) {
68032
68043
  if (typeof window !== "undefined") {
68033
68044
  let loadSvg = function() {
68034
68045
  var body = document.body;
68035
- var svgDom = document.getElementById("__svg__icons__dom__1773796332141__");
68046
+ var svgDom = document.getElementById("__svg__icons__dom__1773813906338__");
68036
68047
  if (!svgDom) {
68037
68048
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68038
68049
  svgDom.style.position = "absolute";
68039
68050
  svgDom.style.width = "0";
68040
68051
  svgDom.style.height = "0";
68041
- svgDom.id = "__svg__icons__dom__1773796332141__";
68052
+ svgDom.id = "__svg__icons__dom__1773813906338__";
68042
68053
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68043
68054
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68044
68055
  }