feat(component): 优化 contenteditable组件功能
- 添加 showAction 控制编辑按钮显示 - 实现文本域聚焦和失焦时的编辑按钮显示和隐藏 -优化键盘弹出和收起时的编辑按钮显示逻辑 -修复文档中描述的产品问卷配置- 优化问卷设计页面的题目编辑功能
This commit is contained in:
53
src/utils/QuestionJsons/Rate.js
Normal file
53
src/utils/QuestionJsons/Rate.js
Normal file
@@ -0,0 +1,53 @@
|
||||
export default {
|
||||
id: '',
|
||||
question_type: 5,
|
||||
question_index: '',
|
||||
stem: '请完成打分',
|
||||
title: '',
|
||||
options: [
|
||||
[
|
||||
{
|
||||
id: 'e46f51b1-bfd8-4d9c-becc-4fb7d175a6f4',
|
||||
is_fixed: 0,
|
||||
is_other: 0,
|
||||
is_remove_other: 0,
|
||||
option: '<p>选项1</p>',
|
||||
option_config: {
|
||||
image_url: [],
|
||||
title: '',
|
||||
instructions: [],
|
||||
option_type: 0,
|
||||
limit_right_content: ''
|
||||
},
|
||||
option_index: 1,
|
||||
parent_id: 0,
|
||||
type: 0,
|
||||
cascade: [],
|
||||
config: []
|
||||
}
|
||||
]
|
||||
],
|
||||
last_option_index: 1,
|
||||
config: {
|
||||
is_required: 1,
|
||||
quick_type: 0,
|
||||
is_show: [],
|
||||
max: 5,
|
||||
min: 1,
|
||||
prompt_center: '',
|
||||
prompt_left: '',
|
||||
prompt_right: '',
|
||||
score_interval: 1,
|
||||
score_type: 0,
|
||||
score_way: 0,
|
||||
prompt_score: 2
|
||||
},
|
||||
associate: [],
|
||||
question_code: '',
|
||||
logic_config: {
|
||||
order: 0,
|
||||
type: 0,
|
||||
expect: '',
|
||||
stay_time: ''
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user