made client form great
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
(let [prop-value (if (seq prop-value)
|
||||
prop-value
|
||||
[])]
|
||||
(println "PROP VALUE IS")
|
||||
[form-builder/virtual-builder {:value prop-value
|
||||
:schema schema
|
||||
:on-change on-change}
|
||||
@@ -60,7 +61,7 @@
|
||||
[:button.button.is-outline
|
||||
{:type "button"
|
||||
:on-click (fn [e]
|
||||
(on-change (conj prop-value {::key next-key}))
|
||||
(on-change (conj prop-value {::key (random-uuid)}))
|
||||
(.stopPropagation e)
|
||||
(.preventDefault e))}
|
||||
[:span.icon [:i.fa.fa-plus]]
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
:value text
|
||||
:type "number"
|
||||
:step "1"
|
||||
:style {:width "5em"}
|
||||
:style (or (:style props)
|
||||
{:width "5em"})
|
||||
:size 3)]]]))
|
||||
|
||||
(defn number-input []
|
||||
|
||||
Reference in New Issue
Block a user