Skip to content

Commit

Permalink
feat("init"): init
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjg committed Apr 23, 2024
1 parent 4864fb6 commit 9cc331f
Show file tree
Hide file tree
Showing 72 changed files with 14,848 additions and 16 deletions.
164 changes: 164 additions & 0 deletions materials/components/A.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"icon": "link",
"name": {
"zh_CN": "提示框"
},
"component": "a",
"description": "链接",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"group": "component",
"priority": 7,
"npm": {},
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "children",
"label": {
"text": {
"zh_CN": "类型"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaHtmlText",
"props": {}
},
"description": {
"zh_CN": ""
},
"labelPosition": "none"
},
{
"property": "href",
"label": {
"text": {
"zh_CN": "跳转链接"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaInput",
"props": {}
},
"description": {
"zh_CN": "链接"
}
},
{
"property": "target",
"label": {
"text": {
"zh_CN": "页面目标"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "当前页面",
"value": "_self"
},
{
"label": "打开新页面",
"value": "_blank"
}
]
}
},
"description": {
"zh_CN": "链接"
}
},
{
"property": "attributes3",
"label": {
"text": {
"zh_CN": "原生属性"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaHtmlAttributes",
"props": {}
},
"description": {
"zh_CN": ""
},
"labelPosition": "none"
}
]
}
]
},
"configure": {
"loop": true,
"condition": true,
"slots": [],
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": []
},
"contextMenu": {
"actions": [],
"disable": []
}
},
"snippets": [
{
"name": {
"zh_CN": "链接"
},
"icon": "link",
"screenshot": "",
"snippetName": "a",
"schema": {
"componentName": "a",
"children": "链接"
}
}
],
"category": "html"
}
100 changes: 100 additions & 0 deletions materials/components/Button.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"icon": "button",
"name": {
"zh_CN": "Button"
},
"component": "button",
"container": false,
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {},
"group": "component",
"category": "html",
"priority": 70,
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "attributes3",
"label": {
"text": {
"zh_CN": "原生属性"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaHtmlAttributes",
"props": {}
},
"description": {
"zh_CN": ""
},
"labelPosition": "none"
}
]
}
],
"events": {
"onClick": {
"label": {
"zh_CN": "点击时触发"
},
"description": {
"zh_CN": "点击时触发"
},
"type": "event",
"functionInfo": {
"params": [],
"returns": {}
},
"defaultValue": ""
}
},
"shortcuts": {
"properties": []
},
"contentMenu": {
"actions": []
}
},
"snippets": [
{
"name": {
"zh_CN": "按钮"
},
"icon": "button",
"screenshot": "",
"snippetName": "button",
"schema": {
"componentName": "button",
"props": {},
"children": [
{
"componentName": "Text",
"props": {
"text": "按钮文案"
}
}
]
}
}
]
}
Loading

0 comments on commit 9cc331f

Please sign in to comment.