TexteaInc / funix

Building web apps without manually creating widgets
http://funix.io
MIT License
89 stars 10 forks source link

fix(backend): child widget type does not handle #45

Closed Yazawazi closed 1 year ago

Yazawazi commented 1 year ago

The backend does not handle the type of child widget, which can make the rendering of widgets in simple or sheet not conform to expectations.

You can reproduce this problem.

Python Code:

from typing import List
from pydatafront.decorator import textea_export

@textea_export(
    path="backend",
    description="reproduce",
    a={
        "treat_as": "column",
        "widget": "switch"
    }
)
def backend(a: List[bool]):
    return {
        "result": a
    }

image

After fixing:

image

vercel[bot] commented 1 year ago

@Yazawazi is attempting to deploy a commit to the Textea Team on Vercel.

To accomplish this, @Yazawazi needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.