变更
This commit is contained in:
@@ -36,12 +36,17 @@ const _sfc_main = defineComponent({
|
||||
const isCollapse = inject("isCollapse");
|
||||
const theme = inject("menuTheme");
|
||||
const indent = inject("indent");
|
||||
const dropdownCtx = inject(dropdownInjectionKey, void 0);
|
||||
const dropdownCtx = inject(
|
||||
dropdownInjectionKey,
|
||||
void 0
|
||||
);
|
||||
const selectHandle = function() {
|
||||
selectedKey.value = props.id;
|
||||
dropdownCtx == null ? void 0 : dropdownCtx.hide();
|
||||
};
|
||||
const needTooltip = computed(() => isTree.value && (isCollapse.value === true || isCollapse.value === "true") && level.value === 1);
|
||||
const needTooltip = computed(
|
||||
() => isTree.value && (isCollapse.value === true || isCollapse.value === "true") && level.value === 1
|
||||
);
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createElementBlock("li", {
|
||||
class: normalizeClass(["layui-nav-item", { "layui-this": unref(selectedKey) === __props.id }]),
|
||||
|
||||
Reference in New Issue
Block a user