next-element-vue 0.4.8 → 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.
|
|
6
|
-
* 发布日期:2024-12-
|
|
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];
|
|
@@ -8228,7 +8230,7 @@
|
|
|
8228
8230
|
})(app);
|
|
8229
8231
|
};
|
|
8230
8232
|
var index = {
|
|
8231
|
-
version: "0.4.
|
|
8233
|
+
version: "0.4.9",
|
|
8232
8234
|
install: install
|
|
8233
8235
|
};
|
|
8234
8236
|
exports.NextContainer = NextContainer, exports.NextCrudTable = NextCrudTable, exports.NextCrudTableVirtualized = NextCrudTableVirtualized,
|
|
@@ -8276,7 +8278,7 @@
|
|
|
8276
8278
|
}), exports.useGetDerivedNamespace = useGetDerivedNamespace, exports.useLanguage = (locale, lang) => {
|
|
8277
8279
|
const localeRef = vue.isRef(locale) ? locale : vue.ref(locale), nextLang = localeLang[lang] || localeLang["zh-cn"];
|
|
8278
8280
|
localeRef.value.name = lang, localeRef.value.next = nextLang.next;
|
|
8279
|
-
}, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.4.
|
|
8281
|
+
}, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.4.9",
|
|
8280
8282
|
Object.defineProperty(exports, "__esModule", {
|
|
8281
8283
|
value: !0
|
|
8282
8284
|
});
|