Skip to content

Commit

Permalink
feat(nav-menu): [nav-menu] Simplify the demo data (#2728)
Browse files Browse the repository at this point in the history
* feat(nav-menu): [nav-menu] Simplify the demo data

* feat(nav-menu): [nav-menu] Simplify the demo data
  • Loading branch information
wuyiping0628 authored Jan 3, 2025
1 parent 8fc1a9d commit 40339b8
Show file tree
Hide file tree
Showing 28 changed files with 855 additions and 4,647 deletions.
260 changes: 46 additions & 214 deletions examples/sites/demos/pc/app/nav-menu/allow-full-url-composition-api.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,293 +11,125 @@ import { TinyNavMenu } from '@opentiny/vue'
const menuData = ref([
{
title: '首页',
url: 'https://www.baidu.com/'
url: 'https://www.baidu.com/',
id: '1'
},
{
title: '指南',
url: '#/zh-CN/component/button',
url: '',
id: '2',
children: [
{
title: '引入组件',
url: '',
children: [
{
title: '按需引入',
url: ''
},
{
title: '完整引入',
url: ''
}
]
id: '2-1'
},
{
title: '后端适配器',
url: '',
children: [
{
title: 'Gateway 适配器',
url: ''
},
{
title: 'Jalor 适配器',
url: ''
},
{
title: 'Standalone 适配器',
url: ''
}
]
},
{
title: '服务代理',
url: '',
children: [
{
title: '本地代理',
url: ''
},
{
title: '远程代理',
url: ''
}
]
},
{
title: '构建部署',
url: '',
children: [
{
title: '本地构建',
url: ''
},
{
title: '查看构建报告',
url: ''
},
{
title: '静态资源构建',
url: ''
},
{
title: '多环境部署',
url: ''
},
{
title: '静态资源部署',
url: ''
},
{
title: 'CI 部署',
url: ''
},
{
title: '引入静态资源',
url: ''
}
]
id: '2-2'
}
]
},
{
title: '组件',
url: '',
id: '3',
children: [
{
title: '表单组件',
url: '',
id: '3-1',
children: [
{
title: 'Button 按钮',
url: '#/zh-CN/component/button'
},
{
title: 'Datepicker 日期',
url: '#/zh-CN/component/datepicker'
url: 'datepicker',
id: '3-1-1'
},
{
title: 'Dropdown 下拉框',
url: '#/zh-CN/component/dropdown'
title: 'Cascader 级联选择器',
url: 'cascader',
id: '3-1-2'
},
{
title: 'DropTimes 下拉时间',
url: '#/zh-CN/component/droptimes'
},
{
title: 'Input 输入框',
url: '#/zh-CN/component/input'
},
{
title: 'Textarea 文本域',
url: '#/zh-CN/component/textarea'
url: 'droptimes',
id: '3-1-3'
}
]
},
{
title: '数据组件',
title: '数据展示',
url: '',
id: '3-2',
children: [
{
title: 'Chart 图表',
url: '#/zh-CN/component/chart'
},
{
title: 'Grid 数据表格',
url: '#/zh-CN/component/grid'
title: 'Card 卡片',
url: 'card',
id: '3-2-1'
},
{
title: 'Pager 分页',
url: '#/zh-CN/component/pager'
title: 'Collapse 折叠面板',
url: 'collapse',
id: '3-2-2'
},
{
title: 'Tree 树形控件',
url: '#/zh-CN/component/tree'
title: 'Guide 引导',
url: 'guide',
id: '3-2-3'
}
]
},
{
title: '导航组件',
url: '',
id: '3-3',
children: [
{
title: 'ToggleMenu 收缩菜单',
url: '#/zh-CN/component/toggleMenu'
url: 'toggleMenu',
id: '3-3-1'
},
{
title: 'TreeMenu 树型菜单',
url: '#/zh-CN/component/treemenu'
url: 'treemenu',
id: '3-3-2'
},
{
title: 'Breadcrumb 面包屑',
url: 'breadcrumb',
id: '3-3-3'
}
]
},
{
title: '业务组件',
url: '',
id: '3-4',
children: [
{
title: 'Amount 金额',
url: '#/zh-CN/component/amount'
url: 'amount',
id: '3-4-1'
},
{
title: 'Area 片区',
url: '#/zh-CN/component/area'
url: 'area',
id: '3-4-2'
},
{
title: 'Company 公司',
url: '#/zh-CN/component/company'
},
{
title: 'Dept 部门',
url: '#/zh-CN/component/dept'
},
{
title: 'eDoc 企业文档',
url: '#/zh-CN/component/Edoc'
},
{
title: 'User 用户',
url: '#/zh-CN/component/user'
}
]
}
]
},
{
title: '教程',
url: '',
children: [
{
title: '页面布局',
url: '',
children: [
{
title: '添加标签页',
url: '#/zh-CN/tutorial/addtabs'
},
{
title: '标签页配置',
url: '#/zh-CN/tutorial/tabsattr'
}
]
},
{
title: '查询功能',
url: '',
children: [
{
title: '添加查询页面',
url: '#/zh-CN/tutorial/addlist'
},
{
title: '列表属性配置',
url: '#/zh-CN/tutorial/listattr'
},
{
title: '通讯录查询',
url: '#/zh-CN/tutorial/searchfunc'
}
]
},
{
title: '新增功能',
url: '',
children: [
{
title: '表单新增功能',
url: '#/zh-CN/tutorial/addservice'
},
{
title: '表单数据验证',
url: '#/zh-CN/tutorial/valid'
}
]
},
{
title: '编辑功能',
url: '',
children: [
{
title: '开启编辑功能',
url: '#/zh-CN/tutorial/editattr'
},
{
title: '保存表格数据',
url: '#/zh-CN/tutorial/savefunc'
url: 'company',
id: '3-4-3'
}
]
}
]
},
{
title: '规范',
url: '#/zh-CN/regular/rulelevel'
},
{
title: '性能',
url: '#/zh-CN/speed'
},
{
title: '案例',
url: '#/zh-CN/example'
},
{
title: '更新日志',
url: '#/zh-CN/guide/changelog'
},
{
title: '测试',
url: '#/zh-CN/guide/aaa'
},
{
title: '资源',
url: ''
},
{
title: 'SDK',
url: ''
},
{
title: 'TINY 学院',
url: ''
title: '其他',
url: 'crop',
id: '4'
}
])
</script>
Expand Down
Loading

0 comments on commit 40339b8

Please sign in to comment.