Form

Introduction to using the Form component

Form 介紹示意圖

Dropdown - a drop-down menu used to let users take the next interaction for selected data. Clicking the button opens a floating area containing a series of options. It looks similar to Select, but the biggest difference is that Dropdown triggers the option event when an option is clicked and then closes the floating area.

Example

Validation

Fieldset

bpa-form attributes

Name
Value
Type
Default
Required
Note

model

Object

random

autofocus

Boolean

true

automatic focus

bpa-form methods

Name
Parameters

validate

Function () : Promise({valid: booleaml; error: object})

bpa-form-item attributes

Name
Value
Type
Default
Required
Note

prop

String

label

String

labelFor

String

required

Boolean

error

Boolean

hint

String

rules

[Object, Array]

model

[Object, Array, Boolean, String, Number]

bpa-form-item methods

Name
Parameters
Note

validate

{ valid: boolean, message: string }

Demo

Last updated

Was this helpful?