|
| 1 | +{ |
| 2 | + "component": { |
| 3 | + "icon": "navigation", |
| 4 | + "name": { |
| 5 | + "zh_CN": "导航条" |
| 6 | + }, |
| 7 | + "component": "CanvasNavigation", |
| 8 | + "schema": { |
| 9 | + "slots": {}, |
| 10 | + "properties": [ |
| 11 | + { |
| 12 | + "label": { |
| 13 | + "zh_CN": "基础信息" |
| 14 | + }, |
| 15 | + "description": { |
| 16 | + "zh_CN": "基础信息" |
| 17 | + }, |
| 18 | + "collapse": { |
| 19 | + "number": 6, |
| 20 | + "text": { |
| 21 | + "zh_CN": "显示更多" |
| 22 | + } |
| 23 | + }, |
| 24 | + "content": [ |
| 25 | + { |
| 26 | + "property": "type", |
| 27 | + "label": { |
| 28 | + "text": { |
| 29 | + "zh_CN": "类型" |
| 30 | + } |
| 31 | + }, |
| 32 | + "description": { |
| 33 | + "zh_CN": "类型" |
| 34 | + }, |
| 35 | + "cols": 12, |
| 36 | + "labelPosition": "left", |
| 37 | + "type": "string", |
| 38 | + "defaultValue": "horizontal", |
| 39 | + "widget": { |
| 40 | + "component": "SelectConfigurator", |
| 41 | + "props": { |
| 42 | + "options": [ |
| 43 | + { |
| 44 | + "label": "horizontal", |
| 45 | + "value": "horizontal" |
| 46 | + }, |
| 47 | + { |
| 48 | + "label": "vertical", |
| 49 | + "value": "vertical" |
| 50 | + } |
| 51 | + ] |
| 52 | + } |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "property": "tabs", |
| 57 | + "label": { |
| 58 | + "text": { |
| 59 | + "zh_CN": "选项卡" |
| 60 | + } |
| 61 | + }, |
| 62 | + "required": true, |
| 63 | + "readOnly": false, |
| 64 | + "disabled": false, |
| 65 | + "defaultValue": "", |
| 66 | + "cols": 12, |
| 67 | + "bindState": false, |
| 68 | + "widget": { |
| 69 | + "component": "TabBarConfigurator", |
| 70 | + "props": {} |
| 71 | + }, |
| 72 | + "description": { |
| 73 | + "zh_CN": "tabs 选项卡" |
| 74 | + }, |
| 75 | + "labelPosition": "none" |
| 76 | + } |
| 77 | + ] |
| 78 | + } |
| 79 | + ], |
| 80 | + "events": { |
| 81 | + "onClick": { |
| 82 | + "label": { |
| 83 | + "zh_CN": "点击事件" |
| 84 | + }, |
| 85 | + "description": { |
| 86 | + "zh_CN": "点击时触发的回调函数" |
| 87 | + }, |
| 88 | + "type": "event", |
| 89 | + "functionInfo": { |
| 90 | + "params": [], |
| 91 | + "returns": {} |
| 92 | + }, |
| 93 | + "defaultValue": "" |
| 94 | + } |
| 95 | + }, |
| 96 | + "shortcuts": { |
| 97 | + "properties": [] |
| 98 | + }, |
| 99 | + "contentMenu": { |
| 100 | + "actions": [] |
| 101 | + } |
| 102 | + }, |
| 103 | + "configure": { |
| 104 | + "loop": true, |
| 105 | + "isContainer": true, |
| 106 | + "nestingRule": { |
| 107 | + "childWhitelist": [], |
| 108 | + "descendantBlacklist": [] |
| 109 | + } |
| 110 | + } |
| 111 | + }, |
| 112 | + "snippet": { |
| 113 | + "name": { |
| 114 | + "zh_CN": "导航条" |
| 115 | + }, |
| 116 | + "snippetName": "CanvasNavigation", |
| 117 | + "icon": "navigation", |
| 118 | + "schema": { |
| 119 | + "componentName": "CanvasNavigation", |
| 120 | + "props": { |
| 121 | + "style": "text-align: center; padding: 8px 12px; box-shadow: 0 0 4px #0003;" |
| 122 | + }, |
| 123 | + "children": [ |
| 124 | + { |
| 125 | + "componentName": "RouterLink", |
| 126 | + "props": { |
| 127 | + "to": "", |
| 128 | + "style": "display: inline-flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;" |
| 129 | + }, |
| 130 | + "children": [ |
| 131 | + { |
| 132 | + "componentName": "Icon", |
| 133 | + "props": { |
| 134 | + "name": "IconPublicHome", |
| 135 | + "style": "margin-top: 3px;" |
| 136 | + } |
| 137 | + }, |
| 138 | + { |
| 139 | + "componentName": "Text", |
| 140 | + "props": { |
| 141 | + "text": "首页" |
| 142 | + } |
| 143 | + } |
| 144 | + ] |
| 145 | + }, |
| 146 | + { |
| 147 | + "componentName": "RouterLink", |
| 148 | + "props": { |
| 149 | + "to": "", |
| 150 | + "style": "display: inline-flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;" |
| 151 | + }, |
| 152 | + "children": [ |
| 153 | + { |
| 154 | + "componentName": "Icon", |
| 155 | + "props": { |
| 156 | + "name": "IconTaskCooperation", |
| 157 | + "style": "margin-top: 3px;" |
| 158 | + } |
| 159 | + }, |
| 160 | + { |
| 161 | + "componentName": "Text", |
| 162 | + "props": { |
| 163 | + "text": "介绍" |
| 164 | + } |
| 165 | + } |
| 166 | + ] |
| 167 | + }, |
| 168 | + { |
| 169 | + "componentName": "RouterLink", |
| 170 | + "props": { |
| 171 | + "to": "", |
| 172 | + "style": "display: flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;" |
| 173 | + }, |
| 174 | + "children": [ |
| 175 | + { |
| 176 | + "componentName": "Icon", |
| 177 | + "props": { |
| 178 | + "name": "IconText", |
| 179 | + "style": "margin-top: 3px;" |
| 180 | + } |
| 181 | + }, |
| 182 | + { |
| 183 | + "componentName": "Text", |
| 184 | + "props": { |
| 185 | + "text": "文档" |
| 186 | + } |
| 187 | + } |
| 188 | + ] |
| 189 | + } |
| 190 | + ] |
| 191 | + } |
| 192 | + } |
| 193 | +} |
0 commit comments