|
@@ -64,7 +64,8 @@
|
|
|
<a-button v-else :icon="h(LayoutTwoTone)">{{ item.name }}</a-button>
|
|
<a-button v-else :icon="h(LayoutTwoTone)">{{ item.name }}</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
</a-space>
|
|
</a-space>
|
|
|
- <a-space size="small">
|
|
|
|
|
|
|
+ <div v-else />
|
|
|
|
|
+ <a-space v-if="rightTabButton && rightTabButton.length" size="small">
|
|
|
<template v-for="(item, index) in rightTabButton" :key="index">
|
|
<template v-for="(item, index) in rightTabButton" :key="index">
|
|
|
<a-button
|
|
<a-button
|
|
|
v-if="item.action === 'CREATE'"
|
|
v-if="item.action === 'CREATE'"
|
|
@@ -128,6 +129,7 @@
|
|
|
<a-button v-else :icon="h(LayoutTwoTone)">{{ item.name }}</a-button>
|
|
<a-button v-else :icon="h(LayoutTwoTone)">{{ item.name }}</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
</a-space>
|
|
</a-space>
|
|
|
|
|
+ <div v-else />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<Modal
|
|
<Modal
|
|
@@ -475,9 +477,10 @@ const tabButtonsHandler = nowTabButtons => {
|
|
|
leftTabButton.value.push(item);
|
|
leftTabButton.value.push(item);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if (leftTabButton.value.length > 0 && rightTabButton.value.length > 0) {
|
|
|
|
|
|
|
+ if (leftTabButton.value.length > 0 || rightTabButton.value.length > 0) {
|
|
|
emit('judgeIsHaveButtons', true);
|
|
emit('judgeIsHaveButtons', true);
|
|
|
- } else {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (leftTabButton.value.length === 0 && rightTabButton.value.length === 0) {
|
|
|
emit('judgeIsHaveButtons', false);
|
|
emit('judgeIsHaveButtons', false);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|