Skip to content

Commit 5e1d0b5

Browse files
Amber-Nan杨楠
and
杨楠
authored
doc(website): 增加DragDrawer目录 (#341)
* fix(Divider):优化 gutter属性不生效问题 * feat(Divider): 增加分割线标题的位置调整功能 & 更新文档 * feat(Rating):增加自定义每项的提示信息 & 更新文档 * feat(Rating):增加只读功能 & 文档更新 * feat(Timeline): 增加改变时间轴内容相对位置功能 & 文档更新 * style(Timeline):Update Readme.md img * feat(Timeline):增加自定义图标 & 文档更新 * feat(Timeline):优化自定义图标 & 文档更新 * feat:新增Calendar 日历组件 * doc(website): Update Calendar Readme.md * feat(Calendar):增加农历及假期展示 && 文档更新 * feat(Calendar):增加假日文字颜色 * feat(Calendar):左上角按钮增加自定义跳转功能&文档更新 * feat(Calendar):优化农历假日及文字排版 * feat(Calendar):处理文字长度 * fix(Calendar):优化安卓文字排版 * feat(Calendar):增加农历详情展示 & 文档更新 * feat(DragDrawer):新增DragDrawer 拖曳抽屉 & 文档更新 * doc(website): 增加DragDrawer目录 Co-authored-by: 杨楠 <[email protected]>
1 parent be47772 commit 5e1d0b5

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Markdown, { importAll } from '../../../component/Markdown';
2+
3+
export default class Page extends Markdown {
4+
path = '/packages/core/src/DragDrawer/README.md';
5+
getMarkdown = async () => {
6+
const md = await import('@uiw/react-native/lib/DragDrawer/README.md');
7+
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
8+
importAll((require as any).context('./', true, /\.(png|gif|jpg|svg)$/), this.imageFiles);
9+
return md.default || md;
10+
};
11+
}

website/src/routes/menus.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const componentMenus: MenuData[] = [
1414
{ path: '/components/winblank', name: 'WingBlank 两翼留白' },
1515
{ divider: true, name: 'Navigation' },
1616
{ path: '/components/drawer', name: 'Drawer 抽屉' },
17+
{ path: '/components/dragdrawer', name: 'DragDrawer 拖曳抽屉' },
1718
{ path: '/components/menudropdown', name: 'MenuDropdown 菜单下拉按钮' },
1819
{ path: '/components/swipeaction', name: 'SwipeAction 滑动操作组件' },
1920
{ path: '/components/expandablesection', name: 'ExpandableSection 展开缩放组件' },

website/src/routes/router.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ export const routeData = [
269269
path: '/components/calendar',
270270
component: lazy(() => import('../pages/components/calendar')),
271271
},
272+
{
273+
path: '/components/dragdrawer',
274+
component: lazy(() => import('../pages/components/dragdrawer')),
275+
},
272276
],
273277
},
274278
];

0 commit comments

Comments
 (0)