|
@@ -58,7 +58,7 @@
|
|
|
display: tdHeaderIsNone(i, j),
|
|
|
}"
|
|
|
>
|
|
|
- <div class="cell-wrap">
|
|
|
+ <div class="cell-wrap" :class="[col.isCross?'cell-wrap-between':'','cell-wrap-'+curQue.textAlign]">
|
|
|
<template v-if="col.type === 'content'">
|
|
|
<span v-if="col.text.length > 0" class="content">
|
|
|
{{ col.text }}
|
|
@@ -77,6 +77,7 @@
|
|
|
curQue.Bookanswer[i].content[j].answer.trim())
|
|
|
"
|
|
|
type="textarea"
|
|
|
+ :class="[`text-${curQue.textAlign}`]"
|
|
|
:placeholder="`${isAnswerMode ? '' : ''}`"
|
|
|
:disabled="isAnswerMode"
|
|
|
:autosize="{ minRows: 1, maxRows: 6 }"
|
|
@@ -714,11 +715,26 @@ export default {
|
|
|
.cell-wrap {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
+ &-center{
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+ &-right{
|
|
|
+ justify-content: flex-end;
|
|
|
+ }
|
|
|
+ &-between{
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
.content {
|
|
|
font-family: "FZJCGFKTK", "GB-PINYINOK-B", "robot";
|
|
|
}
|
|
|
+
|
|
|
+ @each $type in left, center, right {
|
|
|
+ .text-#{$type} {
|
|
|
+ ::v-deep .el-textarea__inner {
|
|
|
+ text-align: $type;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 下划线
|
|
@@ -821,9 +837,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-.stem-content {
|
|
|
- flex: 1;
|
|
|
-}
|
|
|
+// .stem-content {
|
|
|
+// flex: 1;
|
|
|
+// }
|
|
|
.sent-main {
|
|
|
position: relative;
|
|
|
width: 100%;
|