refactor(Design): 重构设计页面组件和逻辑

- 修改 QuestionAction 组件,优化题前隐藏和题后跳转的逻辑和界面
- 更新 ChooseQuestion 组件,改进选项索引的处理方式
- 调整 Design/Index 组件,替换 BaseSelect 为 Choice 组件
- 更新 components.d.ts,添加 VanButton 和 VanDialog 的类型声明
This commit is contained in:
陈昱达
2025-03-05 16:14:09 +08:00
parent 5f32c9eeee
commit af00e94f87
12 changed files with 1072 additions and 273 deletions

View File

@@ -79,13 +79,14 @@ const radioAddOption = () => {
option_type: 0,
limit_right_content: ''
},
option_index: 1,
option_index: element.value.last_option_index + 1,
parent_id: 0,
type: 0,
cascade: [],
config: []
});
});
element.value.last_option_index += 1;
};
// emit 事件