UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

2 lines (1 loc) 923 B
import t from"primevue/basecomponent";import e from"primevue/inputtext/style";import{openBlock as n,createElementBlock as u,mergeProps as l}from"vue";var a={name:"InputText",extends:{name:"BaseInputText",extends:t,props:{modelValue:null,size:{type:String,default:null}},style:e,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue"],methods:{onInput:function(t){this.$emit("update:modelValue",t.target.value)}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{filled:this.filled,disabled:this.$attrs.disabled||""===this.$attrs.disabled}}}}},o=["value"];a.render=function(t,e,a,r,i,p){return n(),u("input",l({class:t.cx("root"),value:t.modelValue,onInput:e[0]||(e[0]=function(){return p.onInput&&p.onInput.apply(p,arguments)})},t.ptm("root",p.ptmParams),{"data-pc-name":"inputtext"}),null,16,o)};export{a as default};