Skip to content

Commit

Permalink
question.cssClasses, vue implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jun 16, 2017
1 parent af73d3a commit 7ac9d85
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/vue/checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<input type="checkbox" :name="question.name" :value="item.value" v-model="value" :id="question.inputId + '_' + item.value" :disabled="question.isReadOnly" />
<span class="checkbox-material"><span class="check"></span></span>
<survey-string :locString="item.locText"/>
<survey-other-choice v-show="question.hasOther && question.isOtherSelected" :class="question.cssClasses.other" :question="question" :css="css"/>
<survey-other-choice v-show="question.hasOther && question.isOtherSelected" :class="question.cssClasses.other" :question="question" />
</label>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/vue/dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<option v-for="(item, index) in question.visibleChoices" :value="item.value">{{item.text}}</option>
</select>
<div v-else :text="question.value" :class="question.cssClasses.control"></div>
<survey-other-choice v-show="question.hasOther && question.isOtherSelected" :class="question.cssClasses.other" :question="question" :css="css"/>
<survey-other-choice v-show="question.hasOther && question.isOtherSelected" :class="question.cssClasses.other" :question="question"/>
</div>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/vue/matrixdropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<tr v-for="row in rows">
<td><survey-string :locString="row.locText"/></td>
<td v-for="cell in row.cells" :class="question.cssClasses.itemValue">
<survey-errors :question="question" :css="css"/>
<component v-show="question.visible" :is="getWidgetComponentName(cell.question)" :question="cell.question" :css="css"/>
<survey-errors :question="question"/>
<component v-show="question.visible" :is="getWidgetComponentName(cell.question)" :question="cell.question"/>
</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/vue/matrixdynamic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<tbody>
<tr v-for="row in rows">
<td v-for="cell in row.cells">
<survey-errors :question="cell.question" :css="css"/>
<component v-show="question.visible" :is="getWidgetComponentName(cell.question)" :question="cell.question" :css="css"/>
<survey-errors :question="cell.question" />
<component v-show="question.visible" :is="getWidgetComponentName(cell.question)" :question="cell.question" />
</td>
<td v-if="!question.isReadOnly">
<input type="button" v-if="question.canRemoveRow" :class="question.cssClasses.button" :value="question.removeRowText" @click="removeRowClick(row)" />
Expand Down
2 changes: 1 addition & 1 deletion src/vue/radiogroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<survey-string :locString="item.locText"/>
</label>
</div>
<survey-other-choice v-show="question.hasOther && question.isOtherSelected" :class="question.cssClasses.other" :question="question" :css="css"/>
<survey-other-choice v-show="question.hasOther && question.isOtherSelected" :class="question.cssClasses.other" :question="question"/>
</form>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/vue/rating.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span v-if="index === question.visibleRateValues.length-1"><survey-string :locString="question.locMaxRateDescription"/></span>
</label>
</div>
<survey-other-choice v-show="question.hasOther" :class="question.cssClasses.other" :question="question" :css="css"/>
<survey-other-choice v-show="question.hasOther" :class="question.cssClasses.other" :question="question"/>
</div>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/vue/row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<div>
<div v-for="element in row.elements" :class="css.question.mainRoot" style="vertical-align:top" :id="element.id" :style="{display: element.visible ? 'inline-block': 'none', paddingLeft: getIndentSize(element, element.indent), paddingRight: getIndentSize(element, element.rightIndent), width: element.renderWidth }">
<h5 v-if="element.hasTitle" :class="css.question.title" v-show="survey.questionTitleLocation === 'top'"><survey-string :locString="element.locTitle"/></h5>
<survey-errors :question="element" :css="css"/>
<survey-errors :question="element"/>
<component :is="getWidgetComponentName(element)" :question="element"/>
<div v-show="element.hasComment">
<div>{{element.commentText}}</div>
<survey-comment :question="element" :css="css"/>
<survey-comment :question="element"/>
</div>
<h5 v-if="element.hasTitle" v-show="survey.questionTitleLocation === 'bottom'" :class="css.question.title"><survey-string :locString="element.locTitle"/></h5>
</div>
Expand Down

0 comments on commit 7ac9d85

Please sign in to comment.