Skip to content

Commit

Permalink
Update schema.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
codebdy committed Jan 29, 2023
1 parent dddc9dd commit a5de75a
Showing 1 changed file with 2 additions and 97 deletions.
99 changes: 2 additions & 97 deletions src/expamples/ant5/materials/layouts/Content/schema.ts
Original file line number Diff line number Diff line change
@@ -1,99 +1,4 @@
import { INodeSchema } from "core";
import { createSchema } from "react-shells/ant5/shared/createSchema";

export const contentSchema: INodeSchema = {
componentName: "Tabs",
props: {},
"x-field": {
type: "object",
name: "props",
},
children: [
{
componentName: "TabPanel",
props: {
title: "$properties"
},
children: [
{
componentName: "FormItem",
props: {
label: "$title",
},
"x-field": {
name: "title",
},
children: [
{
componentName: "Input"
}
]
},
{
componentName: "FormItem",
props: {
label: "$type",
},
"x-field": {
name: "type",
},
children: [
{
componentName: "Select",
props: {
options: [
{
value: 'primary',
label: 'Primary',
},
{
value: 'ghost',
label: 'Ghost',
},
{
value: 'dashed',
label: 'Dashed',
},
{
value: 'link',
label: 'Link',
},
{
value: 'text',
label: 'Text',
},
{
value: 'default',
label: 'Default',
},
]
}
}
]
},
{
componentName: "FormItem",
props: {
label: "$disabled",
},
"x-field": {
name: "disabled",
params:{
valuePropName: "checked",
}
},
children: [
{
componentName: "Switch"
}
]
},
]
},
{
componentName: "TabPanel",
props: {
title: "样式"
},
}
]
}
export const contentSchema: INodeSchema = createSchema()

0 comments on commit a5de75a

Please sign in to comment.