@form-create/element-ui 3.2.24 → 3.2.25

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @form-create/element-ui v3.2.24
2
+ * @form-create/element-ui v3.2.25
3
3
  * (c) 2018-2025 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -6761,19 +6761,34 @@
6761
6761
 
6762
6762
  var hook = (_ctx$prop = ctx.prop) === null || _ctx$prop === void 0 ? void 0 : (_ctx$prop$hook = _ctx$prop.hook) === null || _ctx$prop$hook === void 0 ? void 0 : _ctx$prop$hook[name];
6763
6763
 
6764
- if (hook) {
6765
- hook = Array.isArray(hook) ? hook : [hook];
6766
- hook.forEach(function (fn) {
6767
- invoke(function () {
6768
- return fn(_objectSpread2(_objectSpread2({}, args || {}), {}, {
6769
- self: ctx.rule,
6770
- rule: ctx.rule,
6771
- $f: _this2.api,
6772
- api: _this2.api,
6773
- option: _this2.vm.props.option
6774
- }));
6764
+ var run = function run(on, p) {
6765
+ if (on) {
6766
+ on = Array.isArray(on) ? on : [on];
6767
+ on.forEach(function (fn) {
6768
+ invoke(function () {
6769
+ return fn(_objectSpread2(_objectSpread2({}, args || {}), {}, {
6770
+ self: ctx.rule,
6771
+ rule: ctx.rule,
6772
+ parent: p === null || p === void 0 ? void 0 : p.rule,
6773
+ $f: _this2.api,
6774
+ api: _this2.api,
6775
+ option: _this2.vm.props.option
6776
+ }));
6777
+ });
6775
6778
  });
6776
- });
6779
+ }
6780
+ };
6781
+
6782
+ run(hook);
6783
+ var deepName = 'deep' + upper(name);
6784
+ var parent = ctx.parent;
6785
+
6786
+ while (parent) {
6787
+ var _parent$prop, _parent$prop$hook;
6788
+
6789
+ var deepHook = (_parent$prop = parent.prop) === null || _parent$prop === void 0 ? void 0 : (_parent$prop$hook = _parent$prop.hook) === null || _parent$prop$hook === void 0 ? void 0 : _parent$prop$hook[deepName];
6790
+ run(deepHook, parent);
6791
+ parent = parent.parent;
6777
6792
  }
6778
6793
  }
6779
6794
  });
@@ -7151,7 +7166,8 @@
7151
7166
  }
7152
7167
  },
7153
7168
  h: function h(tag, data, children) {
7154
- var isNativeTag = this.vm.appContext.config.isNativeTag(tag);
7169
+ var vm = this.vm || vue.getCurrentInstance();
7170
+ var isNativeTag = vm.appContext.config.isNativeTag(tag);
7155
7171
 
7156
7172
  if (isNativeTag) {
7157
7173
  delete data.formCreateInject;
@@ -9607,7 +9623,7 @@
9607
9623
  function elmFormCreate() {
9608
9624
  return FormCreateFactory({
9609
9625
  ui: 'element-ui',
9610
- version: '3.2.24',
9626
+ version: '3.2.25',
9611
9627
  manager: manager,
9612
9628
  extendApi: extendApi,
9613
9629
  install: install,