improve(plugin): support textarea for settings input item

This commit is contained in:
charlie
2022-07-29 22:44:55 +08:00
committed by Andelf
parent a14b397899
commit 3e7c20fd80
3 changed files with 8 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
(let [input-as (util/safe-lower-case (or inputAs (name type)))
input-as (if (= input-as "string") :text (keyword input-as))]
[:input
[(if (= input-as :textarea) :textarea :input)
{:class (util/classnames [{:form-input (not (contains? #{:color :range} input-as))}])
:type (name input-as)
:defaultValue (or val default)