1.1.1 • Published 5 years ago

recruit-questionnaire-topic v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

组件API

QuestionList 题目列表
<QuestionList
  status={4}
  isComments={true}
  questionList={questionnaireDetail.Comments}
  updateQuestionList={::this.updateQuestionList}>
</QuestionList>
QuestionList.propTypes = {
  // 题目列表
  questionList: PropTypes.array,
  // 是否属于综合评价
  isComments: PropTypes.boolean,
  // 状态 1:编辑 2:预览 3:提交 4:回答结果
  status: PropTypes.number,
  // 当数据更新后会调用该方法,回传最新的questionList数据,如果需要有任何编辑的情况(包括选中答案),需要提供该方法
  updateQuestionList: PropTypes.func,
  // // 如果是编辑态,即status === 1,需要提供下面的方法
  operConfig: PropTypes.shape({
    moveUpQuestion: PropTypes.func, // 上移题目
    moveDoneQuestion: PropTypes.func, // 下移题目
    copyQuestion: PropTypes.func,   // 拷贝题目
    deleteQuestion: PropTypes.func  // 删除题目
  }),
  // 选项操作事件
  optOperConfig: PropTypes.shape({
      addOption: PropTypes.func, // 添加选项
      deleteOption: PropTypes.func, // 删除选项
      moveUpOption: PropTypes.func, // 上移选项
      moveDownOption: PropTypes.func // 下移选项
    })
};
SingleChoiceQuestion 单选题
<SingleChoiceQuestion
</SingleChoiceQuestion>
SingleChoiceQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交 4禁用
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func, //移除题目函数
  addOption: PropTypes.func, //添加选项函数
  deleteOption: PropTypes.func, //删除选项函数
  moveUpOption: PropTypes.func, //选项上移函数
  moveDownOption: PropTypes.func //选项下移函数
};
MultiChoiceQuestion
<MutiChoiceQuestion   
</MutiChoiceQuestion>
MutiChoiceQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func, //移除题目函数
  addOption: PropTypes.func, //添加选项函数
  deleteOption: PropTypes.func, //删除选项函数
  moveUpOption: PropTypes.func, //选项上移函数
  moveDownOption: PropTypes.func //选项下移函数
};
TextQuestion
<TextQuestion   
</TextQuestion>
TextQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交 4禁用
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func //移除题目函数
};
RateQuestion
<RateQuestion   
</RateQuestion>
RateQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交 4禁用
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func //移除题目函数
};
1.1.1

5 years ago

1.1.0-r15

5 years ago

1.1.0

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49-r15

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46-r15

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44-r15

5 years ago

1.0.43-r15

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41-r15

5 years ago

1.0.41

5 years ago

1.0.40-r15

5 years ago

1.0.40

5 years ago

1.0.39-r15

5 years ago

1.0.39

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.29-r15

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.25-r15

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19-r15

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17-r15

5 years ago

1.0.16

5 years ago

1.0.1-5.r15

5 years ago

1.0.1-4.react-15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.1-2.react-15

5 years ago

1.0.11

5 years ago

1.0.10-rc.3

5 years ago

1.0.10-rc.2

5 years ago

1.0.1-0.react-15

5 years ago

1.0.10-rc.1

5 years ago

1.0.10

5 years ago

1.0.9-rc.9

5 years ago

1.0.9-rc.8

5 years ago

1.0.9

5 years ago

1.0.8-rc20.4

5 years ago

1.0.8-rc20.3

5 years ago

1.0.8-rc20.2

5 years ago

1.0.8-rc20

5 years ago

1.0.8-rc19

5 years ago

1.0.8-rc18

5 years ago

1.0.8-rc17

5 years ago

1.0.8-rc16

5 years ago

1.0.8-rc15

5 years ago

1.0.8-rc11

5 years ago

1.0.8-rc10

5 years ago

1.0.8-rc9

5 years ago

1.0.8-rc7

5 years ago

1.0.8-rc6

5 years ago

1.0.8-rc5

5 years ago

1.0.8-rc4

5 years ago