dumi
dumi copied to clipboard
lerna 管理的仓库下,API 组件,如果是其他包 extends 来的属性不会被展示吗
Question
我测试了一下,如果继承来自 node_modules 中,页面会渲染成接口,如果是仓库内的其他包就不会,这个规则对吗,可以在哪里修改吗
Sample Code
不会渲染
import { PageWrapper, PageWrapperProps } from '@ty-bct-modules/utils';
interface SwapBookingPageProps extends PageWrapperProps {
/**
* @description 设置当前页面 path
* @default /swap-underlying-instrument-valuation-list-page
*/
path?: string;
}
会渲染
import { PageWrapper } from '@ty-bct-modules/utils';
import { PageContainerProps } from '@ty-ant-design/pro-layout';
interface SwapBookingPageProps extends PageContainerProps {
/**
* @description 设置当前页面 path
* @default /swap-underlying-instrument-valuation-list-page
*/
path?: string;
}
关注
我遇到了类似的问题.API组件不会渲染 继承来自于typing.d.ts
中定义的全局interface
dumi v2 提供了新的 API 特性,基于 ts program 类型识别会更准确,但目前尚处于实验性阶段:https://d.umijs.org/guide/auto-api-table
dumi v1 不再更新,issue 关闭