Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

BasicForm插槽支持 #302

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

BasicForm插槽支持 #302

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

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: improve Provide improve suggest to Eairp 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
@Jzow Jzow closed this as completed Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants