alibaba / alibaba/lowcode-engine

编辑自定义物料的snippets时使用antd的tabs指定JSSlot出现并未起效果

Open
#1,121 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## 复现截图
在自定义物料的 `snippet` 里使用antd的Tabs并配置了`items.children`如下图:
![image](https://user-images.githubusercontent.com/26290798/195025729-816dff8c-f3e0-4519-967f-1ce8d765b213.png)
相同场景下,使用antd的PageHeader并配置了`footer`如下图:
![image](https://user-images.githubusercontent.com/26290798/195025979-3ed26ed8-9e09-44fa-8ed3-d16f937fa6b7.png)
反映在界面上的效果:
![image](https://user-images.githubusercontent.com/26290798/195026059-bfbf1c23-43a4-455c-9158-defa4298d20a.png)

## 复现流程与链接

- 脚手架生成一套,物料库
- 新建meta.ts文件
- 编写snippets
- 代码见[复现截图](#复现截图)。

## 期望结果

Tabs的items能像PageHeader的footer一样正常使用JSSlot

## 环境信息

- 引擎版本 1.0.14
- ext 版本 1.0.4
- 物料
- moment﹫2.24.0
- lodash
- iconfont-icons
- ﹫ant-design/icons﹫4.7.0
- antd﹫4.19.5
- ﹫alifd/next﹫1.23.0
- ﹫alilc/antd-lowcode-materials﹫1.0.6
- ﹫h/lc-component﹫0.1.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by following the reported scaffold-and-material-library reproduction flow and inspect the snippets in the new meta.ts file. Compare how Tabs items.children and PageHeader footer are handled, then verify that the Tabs JSSlot renders like the PageHeader JSSlot in the provided scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.