示例#1
0
class Form(mf.Form):
    name = mf.Str(__call__=input)
示例#2
0
class MyForm(mf.Form):
    name = mf.Str()

    class Meta:
        metadata = {"action": "#"}
示例#3
0
class StudentForm(mf.Form):
    color = mf.Select([])
    name = mf.Str()
示例#4
0
class MyForm2(mf.Form):
    name = mf.Str()
    ctime = mf.DateTime(disable=True)
示例#5
0
class PersonForm(mf.Form):
    name = mf.Str()
    age = mf.Int()

    def make_object(self, data):
        return Person(**data)