
            </div>
        </div>
    </div>
</div>

<script>
    const { createApp, ref, reactive, computed, onMounted, nextTick, watch } = Vue;

    createApp({
        setup() {
            // --- State ---
            const stack = ref([]); // 使用数组模拟栈
            const capacity = ref(8); // 栈的总容量
            const top = ref(-1); // 栈顶指针，-1 表示空栈
            const isBusy = ref(false);
            const inputs = reactive({ value: 'A', capacity: 8 })