feat(component): 优化 contenteditable组件功能
- 添加 showAction 控制编辑按钮显示 - 实现文本域聚焦和失焦时的编辑按钮显示和隐藏 -优化键盘弹出和收起时的编辑按钮显示逻辑 -修复文档中描述的产品问卷配置- 优化问卷设计页面的题目编辑功能
This commit is contained in:
60
src/utils/QuestionJsons/Completion.js
Normal file
60
src/utils/QuestionJsons/Completion.js
Normal file
@@ -0,0 +1,60 @@
|
||||
export default {
|
||||
id: '',
|
||||
title: '',
|
||||
stem: '<p>请输入题目(填空)</p>',
|
||||
other: '',
|
||||
question_index: '',
|
||||
question_type: 4,
|
||||
config: {
|
||||
min: '',
|
||||
max: '',
|
||||
version: '',
|
||||
scene: null,
|
||||
shelf: null,
|
||||
ware: null,
|
||||
placeholder: '',
|
||||
is_required: 1,
|
||||
is_three_dimensions: 0,
|
||||
material_sn: '',
|
||||
scene_information: null,
|
||||
simple_scene_information: null,
|
||||
is_behavior: 0,
|
||||
is_price_tag: 0,
|
||||
is_brand: 0,
|
||||
is_initialize: 0,
|
||||
is_default_perspective: 0,
|
||||
left_prompt: '',
|
||||
right_prompt: '',
|
||||
text_type: 0,
|
||||
include_mark: 0,
|
||||
line_type: 1,
|
||||
line_height: 3,
|
||||
decimal_few: 1,
|
||||
type_name: '',
|
||||
float_window: 0,
|
||||
float_window_content: '',
|
||||
popup_window: 0,
|
||||
popup_window_content: '',
|
||||
is_show: [],
|
||||
quick_type: 0
|
||||
},
|
||||
created_at: '',
|
||||
created_user_id: 1180,
|
||||
updated_user_id: null,
|
||||
survey_id: 8721,
|
||||
logic_config: {
|
||||
expect: '',
|
||||
order: 0,
|
||||
type: 0,
|
||||
stay_time: ''
|
||||
},
|
||||
options: [],
|
||||
associate: [],
|
||||
logics_has: false,
|
||||
last_option_index: 0,
|
||||
question_code: '',
|
||||
question_value: '',
|
||||
question_tag: '',
|
||||
planet_id: '',
|
||||
permissions: {}
|
||||
};
|
||||
Reference in New Issue
Block a user