|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
- <div :class="['OptionComponents', 'OptionComponents-' + judgeAnswer]">
|
|
|
|
- <ul v-if="option && items" :class="[items.optionAlign&&items.optionAlign=='right'?'OptionComponents-right':'']">
|
|
|
|
|
|
+ <div :class="['OptionComponents-npc', 'OptionComponents-npc-' + judgeAnswer]">
|
|
|
|
+ <ul v-if="option && items" :class="[items.optionAlign&&items.optionAlign=='right'?'OptionComponents-npc-right':'']">
|
|
<li
|
|
<li
|
|
v-for="(item, index) in option"
|
|
v-for="(item, index) in option"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -410,7 +410,7 @@ export default {
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
/* @import url(); 引入css类 */
|
|
/* @import url(); 引入css类 */
|
|
-.OptionComponents {
|
|
|
|
|
|
+.OptionComponents-npc {
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|
|
ul {
|
|
ul {
|
|
@@ -421,7 +421,7 @@ ul {
|
|
justify-content: start;
|
|
justify-content: start;
|
|
flex-flow: wrap;
|
|
flex-flow: wrap;
|
|
padding: 0;
|
|
padding: 0;
|
|
- &.OptionComponents-right{
|
|
|
|
|
|
+ &.OptionComponents-npc-right{
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
li {
|
|
li {
|
|
@@ -527,7 +527,7 @@ ul {
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
// //@import "../common.scss";
|
|
// //@import "../common.scss";
|
|
|
|
|
|
-.OptionComponents {
|
|
|
|
|
|
+.OptionComponents-npc {
|
|
.el-radio__label,
|
|
.el-radio__label,
|
|
.el-checkbox__label {
|
|
.el-checkbox__label {
|
|
padding-left: 12px;
|
|
padding-left: 12px;
|