     isBusy.value = true;
                capacity.value = inputs.capacity;
                stack.value = [];
                top.value = -1;
                
                await nextTick(); // 等待DOM更新
                
                // 预填充一些数据
                const initialData = ['Z', 'Y', 'X'];
                for (const val of initialData) {
                    if (top.value < capacity.value - 1) {
                         top.value++;
                         stack.v