|
9222 | 9222 | } |
9223 | 9223 | } |
9224 | 9224 | }, |
| 9225 | + { |
| 9226 | + "icon": "tabs", |
| 9227 | + "name": { |
| 9228 | + "zh_CN": "导航菜单" |
| 9229 | + }, |
| 9230 | + "component": "TinyNavMenu", |
| 9231 | + "description": "主要用于定义页面顶部导航的菜单", |
| 9232 | + "docUrl": "", |
| 9233 | + "screenshot": "", |
| 9234 | + "tags": "", |
| 9235 | + "keywords": "", |
| 9236 | + "devMode": "proCode", |
| 9237 | + "npm": { |
| 9238 | + "package": "@opentiny/vue", |
| 9239 | + "exportName": "NavMenu" |
| 9240 | + }, |
| 9241 | + "group": "component", |
| 9242 | + "priority": 10, |
| 9243 | + "schema": { |
| 9244 | + "properties": [ |
| 9245 | + { |
| 9246 | + "label": { |
| 9247 | + "zh_CN": "基础信息" |
| 9248 | + }, |
| 9249 | + "description": { |
| 9250 | + "zh_CN": "基础信息" |
| 9251 | + }, |
| 9252 | + "content": [ |
| 9253 | + { |
| 9254 | + "property": "data", |
| 9255 | + "label": { |
| 9256 | + "text": { |
| 9257 | + "zh_CN": "菜单数据" |
| 9258 | + } |
| 9259 | + }, |
| 9260 | + "required": true, |
| 9261 | + "readOnly": false, |
| 9262 | + "disabled": false, |
| 9263 | + "cols": 12, |
| 9264 | + "widget": { |
| 9265 | + "component": "CodeConfigurator", |
| 9266 | + "props": { |
| 9267 | + "language": "json" |
| 9268 | + } |
| 9269 | + }, |
| 9270 | + "description": { |
| 9271 | + "zh_CN": "配置菜单数据" |
| 9272 | + }, |
| 9273 | + "labelPosition": "top" |
| 9274 | + }, |
| 9275 | + { |
| 9276 | + "property": "overflow", |
| 9277 | + "label": { |
| 9278 | + "text": { |
| 9279 | + "zh_CN": "超出显示" |
| 9280 | + } |
| 9281 | + }, |
| 9282 | + "required": true, |
| 9283 | + "readOnly": false, |
| 9284 | + "disabled": false, |
| 9285 | + "cols": 12, |
| 9286 | + "widget": { |
| 9287 | + "component": "SelectConfigurator", |
| 9288 | + "props": { |
| 9289 | + "options": [ |
| 9290 | + { |
| 9291 | + "label": "auto", |
| 9292 | + "value": "auto" |
| 9293 | + }, |
| 9294 | + { |
| 9295 | + "label": "fixed", |
| 9296 | + "value": "fixed" |
| 9297 | + }, |
| 9298 | + { |
| 9299 | + "label": "retract", |
| 9300 | + "value": "retract" |
| 9301 | + }, |
| 9302 | + { |
| 9303 | + "label": "hidden", |
| 9304 | + "value": "hidden" |
| 9305 | + } |
| 9306 | + ] |
| 9307 | + } |
| 9308 | + }, |
| 9309 | + "description": { |
| 9310 | + "zh_CN": "当一级菜单内容过多溢出时,通过 overflow 配置显示方式,共有 auto、retract、fixed、hidden 4 种方式,默认为 auto。" |
| 9311 | + }, |
| 9312 | + "labelPosition": "left" |
| 9313 | + } |
| 9314 | + ] |
| 9315 | + } |
| 9316 | + ], |
| 9317 | + "events": { |
| 9318 | + "onClick": { |
| 9319 | + "label": { |
| 9320 | + "zh_CN": "点击页签时触发事件" |
| 9321 | + }, |
| 9322 | + "description": { |
| 9323 | + "zh_CN": "在 Input 值改变时触发" |
| 9324 | + }, |
| 9325 | + "type": "event", |
| 9326 | + "functionInfo": { |
| 9327 | + "params": [ |
| 9328 | + { |
| 9329 | + "name": "component", |
| 9330 | + "type": "Object", |
| 9331 | + "defaultValue": "", |
| 9332 | + "description": { |
| 9333 | + "zh_CN": "当前点击的页签对象" |
| 9334 | + } |
| 9335 | + }, |
| 9336 | + { |
| 9337 | + "name": "event", |
| 9338 | + "type": "Object", |
| 9339 | + "defaultValue": "", |
| 9340 | + "description": { |
| 9341 | + "zh_CN": "原生 event" |
| 9342 | + } |
| 9343 | + } |
| 9344 | + ], |
| 9345 | + "returns": {} |
| 9346 | + }, |
| 9347 | + "defaultValue": "" |
| 9348 | + }, |
| 9349 | + "onEdit": { |
| 9350 | + "label": { |
| 9351 | + "zh_CN": "点击新增按钮或关闭按钮或者编辑按钮后触发" |
| 9352 | + }, |
| 9353 | + "description": { |
| 9354 | + "zh_CN": "点击新增按钮或关闭按钮或者编辑按钮后触发" |
| 9355 | + }, |
| 9356 | + "type": "event", |
| 9357 | + "functionInfo": { |
| 9358 | + "params": [ |
| 9359 | + { |
| 9360 | + "name": "tab", |
| 9361 | + "type": "Object", |
| 9362 | + "defaultValue": "", |
| 9363 | + "description": { |
| 9364 | + "zh_CN": "当前操作的页签对象" |
| 9365 | + } |
| 9366 | + }, |
| 9367 | + { |
| 9368 | + "name": "type", |
| 9369 | + "type": "String", |
| 9370 | + "defaultValue": "", |
| 9371 | + "description": { |
| 9372 | + "zh_CN": "当前操作的类型(remove || add || edit)" |
| 9373 | + } |
| 9374 | + } |
| 9375 | + ], |
| 9376 | + "returns": {} |
| 9377 | + }, |
| 9378 | + "defaultValue": "" |
| 9379 | + }, |
| 9380 | + "onClose": { |
| 9381 | + "label": { |
| 9382 | + "zh_CN": "关闭页签时触发" |
| 9383 | + }, |
| 9384 | + "description": { |
| 9385 | + "zh_CN": "关闭页签时触发" |
| 9386 | + }, |
| 9387 | + "type": "event", |
| 9388 | + "functionInfo": { |
| 9389 | + "params": [ |
| 9390 | + { |
| 9391 | + "name": "name", |
| 9392 | + "type": "String", |
| 9393 | + "defaultValue": "", |
| 9394 | + "description": { |
| 9395 | + "zh_CN": "页签名称" |
| 9396 | + } |
| 9397 | + } |
| 9398 | + ], |
| 9399 | + "returns": {} |
| 9400 | + }, |
| 9401 | + "defaultValue": "" |
| 9402 | + } |
| 9403 | + } |
| 9404 | + }, |
| 9405 | + "configure": { |
| 9406 | + "loop": true, |
| 9407 | + "condition": true, |
| 9408 | + "styles": true, |
| 9409 | + "isContainer": true, |
| 9410 | + "clickCapture": false, |
| 9411 | + "isModal": false, |
| 9412 | + "nestingRule": { |
| 9413 | + "childWhitelist": [], |
| 9414 | + "parentWhitelist": [], |
| 9415 | + "descendantBlacklist": [], |
| 9416 | + "ancestorWhitelist": [] |
| 9417 | + }, |
| 9418 | + "isNullNode": false, |
| 9419 | + "isLayout": false, |
| 9420 | + "rootSelector": "", |
| 9421 | + "shortcuts": { |
| 9422 | + "properties": ["size", "tab-style"] |
| 9423 | + }, |
| 9424 | + "contextMenu": { |
| 9425 | + "actions": ["create symbol"], |
| 9426 | + "disable": ["copy", "remove"] |
| 9427 | + } |
| 9428 | + } |
| 9429 | + }, |
9225 | 9430 | { |
9226 | 9431 | "icon": "grid", |
9227 | 9432 | "name": { |
@@ -14187,6 +14392,143 @@ |
14187 | 14392 | } |
14188 | 14393 | ] |
14189 | 14394 | } |
| 14395 | + }, |
| 14396 | + { |
| 14397 | + "name": { |
| 14398 | + "zh_CN": "导航菜单" |
| 14399 | + }, |
| 14400 | + "icon": "tabs", |
| 14401 | + "screenshot": "", |
| 14402 | + "snippetName": "TinyNavMenu", |
| 14403 | + "schema": { |
| 14404 | + "componentName": "TinyNavMenu", |
| 14405 | + "props": { |
| 14406 | + "data": [ |
| 14407 | + { |
| 14408 | + "title": "首页", |
| 14409 | + "url": "", |
| 14410 | + "id": "1" |
| 14411 | + }, |
| 14412 | + { |
| 14413 | + "title": "指南", |
| 14414 | + "url": "", |
| 14415 | + "id": "2", |
| 14416 | + "children": [ |
| 14417 | + { |
| 14418 | + "title": "引入组件", |
| 14419 | + "url": "", |
| 14420 | + "id": "2-1" |
| 14421 | + }, |
| 14422 | + { |
| 14423 | + "title": "后端适配器", |
| 14424 | + "url": "", |
| 14425 | + "id": "2-2" |
| 14426 | + } |
| 14427 | + ] |
| 14428 | + }, |
| 14429 | + { |
| 14430 | + "title": "组件", |
| 14431 | + "url": "", |
| 14432 | + "id": "3", |
| 14433 | + "children": [ |
| 14434 | + { |
| 14435 | + "title": "表单组件", |
| 14436 | + "url": "", |
| 14437 | + "id": "3-1", |
| 14438 | + "children": [ |
| 14439 | + { |
| 14440 | + "title": "Datepicker 日期", |
| 14441 | + "url": "datepicker", |
| 14442 | + "id": "3-1-1" |
| 14443 | + }, |
| 14444 | + { |
| 14445 | + "title": "Cascader 级联选择器", |
| 14446 | + "url": "cascader", |
| 14447 | + "id": "3-1-2" |
| 14448 | + }, |
| 14449 | + { |
| 14450 | + "title": "DropTimes 下拉时间", |
| 14451 | + "url": "droptimes", |
| 14452 | + "id": "3-1-3" |
| 14453 | + } |
| 14454 | + ] |
| 14455 | + }, |
| 14456 | + { |
| 14457 | + "title": "数据展示", |
| 14458 | + "url": "", |
| 14459 | + "id": "3-2", |
| 14460 | + "children": [ |
| 14461 | + { |
| 14462 | + "title": "Card 卡片", |
| 14463 | + "url": "card", |
| 14464 | + "id": "3-2-1" |
| 14465 | + }, |
| 14466 | + { |
| 14467 | + "title": "Collapse 折叠面板", |
| 14468 | + "url": "collapse", |
| 14469 | + "id": "3-2-2" |
| 14470 | + }, |
| 14471 | + { |
| 14472 | + "title": "Guide 引导", |
| 14473 | + "url": "guide", |
| 14474 | + "id": "3-2-3" |
| 14475 | + } |
| 14476 | + ] |
| 14477 | + }, |
| 14478 | + { |
| 14479 | + "title": "导航组件", |
| 14480 | + "url": "", |
| 14481 | + "id": "3-3", |
| 14482 | + "children": [ |
| 14483 | + { |
| 14484 | + "title": "ToggleMenu 收缩菜单", |
| 14485 | + "url": "toggleMenu", |
| 14486 | + "id": "3-3-1" |
| 14487 | + }, |
| 14488 | + { |
| 14489 | + "title": "TreeMenu 树型菜单", |
| 14490 | + "url": "treemenu", |
| 14491 | + "id": "3-3-2" |
| 14492 | + }, |
| 14493 | + { |
| 14494 | + "title": "Breadcrumb 面包屑", |
| 14495 | + "url": "breadcrumb", |
| 14496 | + "id": "3-3-3" |
| 14497 | + } |
| 14498 | + ] |
| 14499 | + }, |
| 14500 | + { |
| 14501 | + "title": "业务组件", |
| 14502 | + "url": "", |
| 14503 | + "id": "3-4", |
| 14504 | + "children": [ |
| 14505 | + { |
| 14506 | + "title": "Amount 金额", |
| 14507 | + "url": "amount", |
| 14508 | + "id": "3-4-1" |
| 14509 | + }, |
| 14510 | + { |
| 14511 | + "title": "Area 片区", |
| 14512 | + "url": "area", |
| 14513 | + "id": "3-4-2" |
| 14514 | + }, |
| 14515 | + { |
| 14516 | + "title": "Company 公司", |
| 14517 | + "url": "company", |
| 14518 | + "id": "3-4-3" |
| 14519 | + } |
| 14520 | + ] |
| 14521 | + } |
| 14522 | + ] |
| 14523 | + }, |
| 14524 | + { |
| 14525 | + "title": "其他", |
| 14526 | + "url": "crop", |
| 14527 | + "id": "4" |
| 14528 | + } |
| 14529 | + ] |
| 14530 | + } |
| 14531 | + } |
14190 | 14532 | } |
14191 | 14533 | ] |
14192 | 14534 | }, |
|
0 commit comments