|
@@ -284,28 +284,32 @@ export default {
|
|
|
<style lang="scss" rel="stylesheet/scss">
|
|
|
.edit-div {
|
|
|
width: 100%;
|
|
|
+
|
|
|
// height: 100%; 不可加
|
|
|
overflow: auto;
|
|
|
+ text-align: left;
|
|
|
word-break: break-all;
|
|
|
- outline: none;
|
|
|
- user-select: text;
|
|
|
white-space: pre-wrap;
|
|
|
- text-align: left;
|
|
|
+ user-select: text;
|
|
|
+ outline: none;
|
|
|
+
|
|
|
&[contenteditable='true'] {
|
|
|
user-modify: read-write-plaintext-only;
|
|
|
- &:empty:before {
|
|
|
- content: attr(placeholder);
|
|
|
+
|
|
|
+ &:empty::before {
|
|
|
display: block;
|
|
|
color: #ccc;
|
|
|
+ content: attr(placeholder);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.limit {
|
|
|
position: absolute;
|
|
|
- right: 0px;
|
|
|
- bottom: 0px;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
font-size: 16px;
|
|
|
line-height: 24px;
|
|
|
- color: rgba(0, 0, 0, 0.45);
|
|
|
+ color: rgba(0, 0, 0, 45%);
|
|
|
}
|
|
|
</style>
|