Improve tags settings (#3569)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="ui-textarea" :class="{ focused, filled, tall }">
|
||||
<div class="ui-textarea" :class="{ focused, filled, tall, pre }">
|
||||
<div class="input">
|
||||
<span class="label" ref="label"><slot></slot></span>
|
||||
<textarea ref="input"
|
||||
@@ -46,6 +46,11 @@ export default Vue.extend({
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
pre: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -175,6 +180,11 @@ root(fill)
|
||||
> textarea
|
||||
min-height 200px
|
||||
|
||||
&.pre
|
||||
> .input
|
||||
> textarea
|
||||
white-space pre
|
||||
|
||||
.ui-textarea.fill
|
||||
root(true)
|
||||
|
||||
|
Reference in New Issue
Block a user