mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Components added. Build issues fixed
This commit is contained in:
parent
5b66ed1093
commit
18c3721848
344 changed files with 12446 additions and 8758 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<textarea :class="['p-inputtextarea p-inputtext p-component', {'p-filled': filled, 'p-inputtextarea-resizable ': autoResize}]" :value="modelValue" @input="onInput"></textarea>
|
||||
<textarea :class="['p-inputtextarea p-inputtext p-component', { 'p-filled': filled, 'p-inputtextarea-resizable ': autoResize }]" :value="modelValue" @input="onInput"></textarea>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -23,15 +23,15 @@ export default {
|
|||
methods: {
|
||||
resize() {
|
||||
const style = window.getComputedStyle(this.$el);
|
||||
|
||||
this.$el.style.height = 'auto';
|
||||
this.$el.style.height = `calc(${style.borderTopWidth} + ${style.borderBottomWidth} + ${this.$el.scrollHeight}px)`;
|
||||
|
||||
if (parseFloat(this.$el.style.height) >= parseFloat(this.$el.style.maxHeight)) {
|
||||
this.$el.style.overflowY = "scroll";
|
||||
this.$el.style.overflowY = 'scroll';
|
||||
this.$el.style.height = this.$el.style.maxHeight;
|
||||
}
|
||||
else {
|
||||
this.$el.style.overflow = "hidden";
|
||||
} else {
|
||||
this.$el.style.overflow = 'hidden';
|
||||
}
|
||||
},
|
||||
onInput(event) {
|
||||
|
@ -44,10 +44,10 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
filled() {
|
||||
return (this.modelValue != null && this.modelValue.toString().length > 0)
|
||||
return this.modelValue != null && this.modelValue.toString().length > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue