next-element-vue 0.4.7 → 0.4.9

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.umd.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * 作  者:huangteng
4
4
  * 邮  箱:htengweb@163.com
5
- * 当前版本:0.4.7 v
6
- * 发布日期:2024-12-19
5
+ * 当前版本:0.4.9 v
6
+ * 发布日期:2024-12-24
7
7
  * 地  址:https://www.npmjs.com/package/next-element-vue
8
8
  */
9
9
 
@@ -1647,7 +1647,9 @@
1647
1647
  }, [ vue.createVNode(elementPlus.ElSwitch, {
1648
1648
  modelValue: _config.showTabs,
1649
1649
  "onUpdate:modelValue": $event => _config.showTabs = $event
1650
- }, null) ]) ]), _slots.setting?.() ]
1650
+ }, null) ]) ]), _slots.setting?.({
1651
+ config: settingConfig
1652
+ }) ]
1651
1653
  });
1652
1654
  }
1653
1655
  });
@@ -2897,7 +2899,7 @@
2897
2899
  const updateSubmentTree = vue.inject("updateSubmentTree"), router = vue.getCurrentInstance().appContext.config.globalProperties.$router, currentPath = router.currentRoute?.value.fullPath, parentNode = findParentNode(currentPath, props.menuTree), activeMenuId = vue.ref(parentNode?.id);
2898
2900
  parentNode?.id && updateSubmentTree(parentNode.children), vue.watch((() => router.currentRoute?.value), (to => {
2899
2901
  const parentNode = findParentNode(to.fullPath, props.menuTree);
2900
- activeMenuId.value = parentNode?.id, parentNode?.id && updateSubmentTree(parentNode.children);
2902
+ activeMenuId.value = parentNode?.id, parentNode?.id && 1 === parentNode.meta?.level && updateSubmentTree(parentNode.children);
2901
2903
  }));
2902
2904
  const findTreeFirst = tree => {
2903
2905
  let result = tree[0];
@@ -3955,7 +3957,8 @@
3955
3957
  })) ]);
3956
3958
  if (slots[columnSlotName(columnOption.prop)]) return slots[columnSlotName(columnOption.prop)]({
3957
3959
  row: row,
3958
- index: $index
3960
+ index: $index,
3961
+ column: columnOption
3959
3962
  });
3960
3963
  if (columnOption.dicData?.length > 0) {
3961
3964
  const loopDicData = list => {
@@ -3975,7 +3978,11 @@
3975
3978
  }
3976
3979
  return columnOption.cellUnit ? vue.createVNode(vue.Fragment, null, [ vue.createVNode("span", null, [ row[columnOption.prop] ]), vue.createVNode("em", {
3977
3980
  class: "cell-unit"
3978
- }, [ columnOption.cellUnit ]) ]) : null;
3981
+ }, [ columnOption.cellUnit ]) ]) : columnOption.renderColumnCell ? columnOption.renderColumnCell({
3982
+ row: row,
3983
+ index: $index,
3984
+ column: columnOption
3985
+ }) : null;
3979
3986
  };
3980
3987
  return () => vue.createVNode(vue.Fragment, null, [ !columnOption.hide && vue.createVNode(elementPlus.ElTableColumn, {
3981
3988
  prop: columnOption.prop,
@@ -4864,7 +4871,7 @@
4864
4871
  }), col.rules?.length && rules.push(...col.rules), formRules[col.prop] = rules,
4865
4872
  !col.dicData?.length && col.loadDicData && col.loadDicData(col, (data => {
4866
4873
  data?.length && (col.dicData = data);
4867
- })), "boolean" == typeof col.disabled && col.disabled || (col.disabled = !_isEditing.value);
4874
+ }), formParams), "boolean" == typeof col.disabled && col.disabled || (col.disabled = !_isEditing.value);
4868
4875
  }
4869
4876
  })();
4870
4877
  }), {
@@ -5370,6 +5377,7 @@
5370
5377
  disabled: valueExist(col.formDisabled, col.disabled, !1),
5371
5378
  clearable: valueExist(col.formClearable, col.clearable, !0),
5372
5379
  readonly: valueExist(col.formReadonly, col.readonly, !1),
5380
+ disabledDate: valueExist(col.formDisabledDate, col.disabledDate, !1),
5373
5381
  tip: valueExist(col.formTip, col.tip, null),
5374
5382
  rules: valueExist(col.formRules, col.rules, null),
5375
5383
  span: valueExist(col.formSpan, col.span, null),
@@ -8222,7 +8230,7 @@
8222
8230
  })(app);
8223
8231
  };
8224
8232
  var index = {
8225
- version: "0.4.7",
8233
+ version: "0.4.9",
8226
8234
  install: install
8227
8235
  };
8228
8236
  exports.NextContainer = NextContainer, exports.NextCrudTable = NextCrudTable, exports.NextCrudTableVirtualized = NextCrudTableVirtualized,
@@ -8270,7 +8278,7 @@
8270
8278
  }), exports.useGetDerivedNamespace = useGetDerivedNamespace, exports.useLanguage = (locale, lang) => {
8271
8279
  const localeRef = vue.isRef(locale) ? locale : vue.ref(locale), nextLang = localeLang[lang] || localeLang["zh-cn"];
8272
8280
  localeRef.value.name = lang, localeRef.value.next = nextLang.next;
8273
- }, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.4.7",
8281
+ }, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.4.9",
8274
8282
  Object.defineProperty(exports, "__esModule", {
8275
8283
  value: !0
8276
8284
  });