fix: table filter (#3650)
parent
18ce372a13
commit
ae41fa1127
|
@ -38,7 +38,9 @@ const MenuItem = defineComponent({
|
|||
setup(props) {
|
||||
const uniKey = `menu_item_${++indexGuid}`;
|
||||
const store = inject('menuStore', () => ({}));
|
||||
const isSelected = computed(() => store.selectedKeys.indexOf(props.eventKey) !== -1);
|
||||
const isSelected = computed(
|
||||
() => store.selectedKeys && store.selectedKeys.indexOf(props.eventKey) !== -1,
|
||||
);
|
||||
onMounted(() => {
|
||||
store.addChildrenInfo(
|
||||
uniKey,
|
||||
|
|
Loading…
Reference in New Issue