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

2 lines (1 loc) 543 B
"use strict";var e=require("vue"),l={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};const t=["value"];l.render=function(l,u,n,o,a,p){return e.openBlock(),e.createElementBlock("input",{class:e.normalizeClass(["p-inputtext p-component",{"p-filled":p.filled}]),value:n.modelValue,onInput:u[0]||(u[0]=(...e)=>p.onInput&&p.onInput(...e))},null,42,t)},module.exports=l;