Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BasicForm插槽支持 #302

Open
guinanlin opened this issue Mar 13, 2024 · 0 comments
Open

BasicForm插槽支持 #302

guinanlin opened this issue Mar 13, 2024 · 0 comments
Assignees

Comments

@guinanlin
Copy link

在BasicForm里头, 要能支持插槽, 最新的vben是是支持的.
大致的步骤如下:

  1. formschema 加入如下的定义:

          {
            "field": "field1",
            "label": "字段1",
            "slot": "customSlot"
          },
    
  2. 在BasicForm 里头引用。

            <BasicForm :schemas="schemas" @register="register">
    
            <template #customSlot>
              <span>Hello</span>
            </template>
    
            </BasicForm>
    
@wansenai-bot wansenai-bot added the status: waiting-for-triage An issue we've not yet triaged label Mar 13, 2024
@Jzow Jzow added type: enhancement A general enhancement theme: vue3 theme: typescript and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 14, 2024
@Jzow Jzow self-assigned this Mar 14, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants