@@ -111,49 +111,97 @@ export default {
111111 ! wrap && className ,
112112 ( noFormStoreData || noStoreData ) && 'no-store-data' ,
113113 ) ;
114-
115- return (
116- < InputTag
117- ref = "inputEl"
118- style = { inputStyle }
119- name = { name }
120- type = { needsType ? type : undefined }
121- placeholder = { placeholder }
122- id = { inputId }
123- value = { needsValue ? value : undefined }
124- defaultValue = { defaultValue }
125- size = { size }
126- accept = { accept }
127- autoComplete = { autocomplete }
128- autoCorrect = { autocorrect }
129- autoCapitalize = { autocapitalize }
130- spellCheck = { spellcheck }
131- autoFocus = { autofocus }
132- autoSave = { autosave }
133- checked = { checked }
134- disabled = { disabled }
135- max = { max }
136- maxLength = { maxlength }
137- min = { min }
138- minLength = { minlength }
139- step = { step }
140- multiple = { multiple }
141- readOnly = { readonly }
142- required = { required }
143- pattern = { pattern }
144- validate = { typeof validate === 'string' && validate . length ? validate : undefined }
145- data-validate = { validate === true || validate === '' ? true : undefined }
146- tabIndex = { tabindex }
147- data-error-message = { errorMessage }
148- className = { inputClassName }
149- onFocus = { self . onFocusBound }
150- onBlur = { self . onBlurBound }
151- onInput = { self . onInputBound }
152- onChange = { self . onChangeBound }
153- >
154- { children }
155- </ InputTag >
156- ) ;
114+ let input ;
115+ if ( process . env . COMPILER === 'react' ) {
116+ input = (
117+ < InputTag
118+ ref = "inputEl"
119+ style = { inputStyle }
120+ name = { name }
121+ type = { needsType ? type : undefined }
122+ placeholder = { placeholder }
123+ id = { inputId }
124+ value = { needsValue ? value : undefined }
125+ defaultValue = { defaultValue }
126+ size = { size }
127+ accept = { accept }
128+ autoComplete = { autocomplete }
129+ autoCorrect = { autocorrect }
130+ autoCapitalize = { autocapitalize }
131+ spellCheck = { spellcheck }
132+ autoFocus = { autofocus }
133+ autoSave = { autosave }
134+ checked = { checked }
135+ disabled = { disabled }
136+ max = { max }
137+ maxLength = { maxlength }
138+ min = { min }
139+ minLength = { minlength }
140+ step = { step }
141+ multiple = { multiple }
142+ readOnly = { readonly }
143+ required = { required }
144+ pattern = { pattern }
145+ validate = { typeof validate === 'string' && validate . length ? validate : undefined }
146+ data-validate = { validate === true || validate === '' ? true : undefined }
147+ tabIndex = { tabindex }
148+ data-error-message = { errorMessage }
149+ className = { inputClassName }
150+ onFocus = { self . onFocusBound }
151+ onBlur = { self . onBlurBound }
152+ onInput = { self . onInputBound }
153+ onChange = { self . onChangeBound }
154+ >
155+ { children }
156+ </ InputTag >
157+ ) ;
158+ }
159+ if ( process . env . COMPILER === 'vue' ) {
160+ input = (
161+ < InputTag
162+ ref = "inputEl"
163+ style = { inputStyle }
164+ name = { name }
165+ type = { needsType ? type : undefined }
166+ placeholder = { placeholder }
167+ id = { inputId }
168+ size = { size }
169+ accept = { accept }
170+ autoComplete = { autocomplete }
171+ autoCorrect = { autocorrect }
172+ autoCapitalize = { autocapitalize }
173+ spellCheck = { spellcheck }
174+ autoFocus = { autofocus }
175+ autoSave = { autosave }
176+ max = { max }
177+ maxLength = { maxlength }
178+ min = { min }
179+ minLength = { minlength }
180+ step = { step }
181+ pattern = { pattern }
182+ validate = { typeof validate === 'string' && validate . length ? validate : undefined }
183+ data-validate = { validate === true || validate === '' ? true : undefined }
184+ tabIndex = { tabindex }
185+ data-error-message = { errorMessage }
186+ className = { inputClassName }
187+ onFocus = { self . onFocusBound }
188+ onBlur = { self . onBlurBound }
189+ onInput = { self . onInputBound }
190+ onChange = { self . onChangeBound }
191+ domProps = { {
192+ value : needsValue ? value : undefined ,
193+ checked,
194+ disabled,
195+ readonly,
196+ multiple,
197+ required,
198+ } }
199+ >
200+ { children }
201+ </ InputTag >
202+ ) ;
203+ }
204+ return input ;
157205 } ;
158206
159207 const { default : slotsDefault , info : slotsInfo } = self . slots ;
0 commit comments