Skip to content
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
260 changes: 258 additions & 2 deletions designer-demo/public/mock/bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,221 @@
"framework": "Vue",
"materials": {
"components": [
{
"version": "3.22.0",
"name": {
"zh_CN": "锚点"
},
"component": "TinyAnchor",
"icon": "anchor",
"description": "用于页内导航。",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "TinyAnchor",
"destructuring": true
},
"group": "component",
"category": "锚点",
"priority": 2,
"schema": {
"properties": [
{
"name": "0",
"label": {
"zh_CN": "基础属性"
},
"content": [
{
"cols": 12,
"type": "string",
"label": {
"text": {
"zh_CN": "容器id"
}
},
"widget": {
"props": {
"placeholder": "请输入..."
},
"component": "InputConfigurator"
},
"disabled": false,
"property": "container-id",
"readOnly": false,
"required": false,
"description": "用于单页面 hash 路由模式时指定滚动容器的 id 值,id 为空时则滚动容器默认为 HTML 文档的根节点 body 元素",
"defaultValue": "",
"labelPosition": "left"
},
{
"cols": 12,
"type": "string",
"label": {
"text": {
"zh_CN": "元素类名"
}
},
"widget": {
"props": {
"placeholder": "请输入..."
},
"component": "InputConfigurator"
},
"disabled": false,
"property": "mark-class",
"readOnly": false,
"required": false,
"description": "自定义滚动的目标元素类名",
"defaultValue": "",
"labelPosition": "left"
},
{
"property": "offset-top",
"label": {
"text": {
"zh_CN": "顶部偏移量"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "NumberConfigurator",
"props": {}
},
"description": {
"zh_CN": "锚点距离顶部的偏移量,用于调整滚动定位的位置"
},
"labelPosition": "left"
},
{
"property": "is-affix",
"label": {
"text": {
"zh_CN": "固定模式"
}
},
"description": {
"zh_CN": ""
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"labelPosition": "left",
"type": "boolean",
"defaultValue": true,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
}
},
{
"cols": 12,
"type": "string",
"label": {
"text": {
"zh_CN": "类型"
}
},
"widget": {
"props": {
"options": [
{
"label": "line",
"value": "line"
},
{
"label": "dot",
"value": "dot"
}
]
},
"component": "SelectConfigurator"
},
"disabled": false,
"property": "type",
"readOnly": false,
"required": false,
"description": "锚点类型",
"defaultValue": "line",
"labelPosition": "left"
},
{
"property": "links",
"label": {
"text": {
"zh_CN": "选项数据"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CodeConfigurator",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "导航数据配置项,可通过 children 嵌套"
},
"labelPosition": "top"
}
],
"description": {
"zh_CN": ""
}
}
],
"events": {},
"slots": {
"default": {
"label": {
"zh_CN": "默认插槽"
},
"description": {
"zh_CN": ""
}
}
}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": false,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": []
},
"contextMenu": {
"actions": [
"create symbol"
],
"disable": [
"copy",
"remove"
]
}
}
},
{
"version": "3.22.0",
"name": {
Expand Down Expand Up @@ -850,7 +1065,7 @@
"zh_CN": "动作菜单"
},
"component": "TinyActionMenu",
"icon": "dropdown",
"icon": "action-menu",
"description": "动作菜单",
"docUrl": "",
"screenshot": "",
Expand Down Expand Up @@ -28188,7 +28403,7 @@
"name": {
"zh_CN": "动作菜单"
},
"icon": "dropdown",
"icon": "action-menu",
"screenshot": "",
"snippetName": "TinyActionMenu",
"schema": {
Expand Down Expand Up @@ -28223,6 +28438,47 @@
]
}
}
},
{
"name": {
"zh_CN": "锚点"
},
"icon": "anchor",
"screenshot": "",
"snippetName": "TinyAnchor",
"schema": {
"componentName": "TinyAnchor",
"props": {
"links": [
{
"key": "basic-usage",
"link": "#basic-usage",
"title": "基本用法"
},
{
"key": "is-affix",
"link": "#is-affix",
"title": "固定模式"
},
{
"key": "set-container",
"link": "#set-container",
"title": "滚动容器"
},
{
"key": "offset-top",
"link": "#offset-top",
"title": "顶部偏移量"
},
{
"key": "on-change",
"link": "#change",
"title": "change 事件"
}
],
"type": "dot"
}
}
}
]
},
Expand Down
7 changes: 7 additions & 0 deletions mockServer/src/mock/get/app-center/v1/apps/schema/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2176,6 +2176,13 @@
"destructuring": true,
"version": "3.22.0"
},
{
"componentName": "TinyAnchor",
"package": "@opentiny/vue",
"exportName": "TinyAnchor",
"destructuring": true,
"version": "3.22.0"
},
{
"componentName": "TinyHuichartsFunnel",
"package": "@opentiny/vue-huicharts",
Expand Down
7 changes: 7 additions & 0 deletions mockServer/src/mock/get/app-center/v1/apps/schema/16.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,13 @@
"destructuring": true,
"version": "3.22.0"
},
{
"componentName": "TinyAnchor",
"package": "@opentiny/vue",
"exportName": "TinyAnchor",
"destructuring": true,
"version": "3.22.0"
},
{
"componentName": "TinyHuichartsFunnel",
"package": "@opentiny/vue-huicharts",
Expand Down
4 changes: 4 additions & 0 deletions packages/design-core/assets/action-menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading