<!--
 * @Author: zwq
 * @Date: 2025-10-13 16:40:08
 * @LastEditors: zwq
 * @LastEditTime: 2025-11-04 16:08:57
 * @Description:
-->
<template>
	<div>
		<el-button type="text" size="mini" @click="moveUp()" style="display:inline-block">↑</el-button>
		<el-button type="text" size="mini" @click="moveDown()" style="display:inline-block;float:right">↓</el-button>
	</div>
</template>

<script>
export default {
	props: {
		injectData: {
			type: Object,
			default: () => ({}),
		},
	},
	data() {
		return {};
	},
	created() {},
	methods: {
		moveUp() {
			const val = {
				type: 'up',
				index: this.injectData._pageIndex - 1,
			};
			this.$emit('emitData', val);
		},
		moveDown() {
			const val = {
				type: 'down',
				index: this.injectData._pageIndex - 1,
			};
			this.$emit('emitData', val);
		},
	},
};
</script>
