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

feat: optimize material group #765

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,065 changes: 490 additions & 575 deletions designer-demo/public/mock/bundle.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/builtinComponent/src/meta/CanvasCol.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"components": {
"component": {
"icon": "Box",
"name": {
"zh_CN": "CanvasCol"
Expand Down
2 changes: 1 addition & 1 deletion packages/builtinComponent/src/meta/CanvasRow.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"components": {
"component": {
"icon": "Box",
"name": {
"zh_CN": "CanvasRow"
Expand Down
4 changes: 2 additions & 2 deletions packages/builtinComponent/src/meta/CanvasRowColContainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"components": {
"component": {
"icon": "Box",
"name": {
"zh_CN": "行列容器"
Expand Down Expand Up @@ -58,7 +58,7 @@
}
}
},
"snippets": {
"snippet": {
"name": {
"zh_CN": "行列容器"
},
Expand Down
14 changes: 6 additions & 8 deletions packages/builtinComponent/src/meta/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ import CanvasRow from './CanvasRow.json'
import CanvasRowColContainer from './CanvasRowColContainer.json'

export default {
components: [
{
group: '内置组件',
children: [{ ...CanvasCol.components }, { ...CanvasRow.components }, { ...CanvasRowColContainer.components }]
}
],
components: [CanvasCol.component, CanvasRow.component, CanvasRowColContainer.component],
snippets: [
{
group: '内置组件',
children: [{ ...CanvasRowColContainer.snippets }]
group: 'layout',
label: {
zh_CN: '布局与容器'
},
children: [CanvasRowColContainer.snippet]
}
]
}
Loading