UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

38 lines (31 loc) 1.05 kB
this.primevue = this.primevue || {}; this.primevue.inputtext = (function (vue) { 'use strict'; var script = { name: 'InputText', emits: ['update:modelValue'], props: { modelValue: null }, methods: { onInput(event) { this.$emit('update:modelValue', event.target.value); } }, computed: { filled() { return this.modelValue != null && this.modelValue.toString().length > 0; } } }; const _hoisted_1 = ["value"]; function render(_ctx, _cache, $props, $setup, $data, $options) { return (vue.openBlock(), vue.createElementBlock("input", { class: vue.normalizeClass(['p-inputtext p-component', { 'p-filled': $options.filled }]), value: $props.modelValue, onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args))) }, null, 42, _hoisted_1)) } script.render = render; return script; })(Vue);