refactor(Design): 重构设计页面组件和逻辑
- 修改 QuestionAction 组件,优化题前隐藏和题后跳转的逻辑和界面 - 更新 ChooseQuestion 组件,改进选项索引的处理方式 - 调整 Design/Index 组件,替换 BaseSelect 为 Choice 组件 - 更新 components.d.ts,添加 VanButton 和 VanDialog 的类型声明
This commit is contained in:
@@ -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 事件
|
||||
|
||||
Reference in New Issue
Block a user