<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 組件名:hsAnswer(在線考試簡易組件) ### 作者:屈磊 ### 效果: ![](https://img.kancloud.cn/7e/9b/7e9b6c88f7e3f730cc9c6fb12cb3444a_1184x598.png) ## 使用方式: ``` import hsExam from './answer/hs-exam.vue' import?hsAnswerJs?from'./answer/mixins/hs-answer' 事件方法 <hsExam :rule-form="ruleForm" :answer-dada="answerDada" :activeNumber="activeNumber" @clickPrev="clickPrev" @clickNext="clickNext" @submit="submit" /> ## 數據結構模板: getData() { for (let index = 0; index < 4; index++) { const type = Math.floor(Math.random() * 3 + 1) let topicType if (type === 1) { topicType = '單選' const key = 'radio' + index this.$set(this.ruleForm, key, '') } else if (type === 2) { topicType = '多選' const key = 'checkbox' + index this.$set(this.ruleForm, key, []) } else { const key = 'textarea' + index this.$set(this.ruleForm, key, '') } if (type === 3) { this.answerDada.push( { textarea: index + 1 + '.請提出您的寶貴意見,我們將不斷改進,為您提供優質的文化內容:', id: Math.random() * 10, index: index + 1, type: type, required: true } ) } else { this.answerDada.push( { id: Math.random() * 10, index: index + 1, type: type, /題目類型 1 單選 2 多選 3 問答題 required: true, //題目是否必填 topic: index + 1 + '.請問您最喜愛的資源類型是?【' + topicType + '】', //題目標題 children: [ //題目選項 { option: 'A', answer: '新聞咨詢類' }, { option: 'B', answer: '圖片展示類' }, { option: 'C', answer: '視頻類' }, { option: 'D', answer: '直播類' } ] } ) } } }, ?????????????????????????? ``` ### 說明: // 表單數據 ruleForm { radio + 數字 單選第幾題 如 radio1 單選題題目數列號1 checkbox +數字 多選第幾題 如 checkbox2 多選題目數列2 textarea +數字 填空第幾題 如 textarea3 填空題目數列3 } answerDada :[] 接受的題目數據 問卷/考試數據結構一致,可通用,只有答題部分, ### 參數: | 參數 | 作用 | 類型 | 默認 | 是否必傳 | 屬性 | | --- | --- | --- | --- | --- | --- | |answerDada|題目數據 |??Array?|??|??是?|???| |ruleForm|答題表單數據|??Object?|??|??是?|???| |activeNumber|考試的題目的數列號|Number|?0?|??是?|???|
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看