docs: fix display api table in website

This commit is contained in:
wwsun
2023-08-29 19:28:54 +08:00
parent 11c23d0998
commit 015a2d236b
18 changed files with 85372 additions and 29 deletions
@@ -4,6 +4,6 @@
## 属性列表
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
<TypeTable name="DesignerPanelProps" />
<TypesTable name="DesignerPanelProps" />
@@ -4,9 +4,9 @@
## 属性列表
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
<TypeTable name="DesignerProps" />
<TypesTable name="DesignerProps" />
## 设计器初始化
+1 -1
View File
@@ -2,7 +2,7 @@
设计器提供了一组 Hooks 用于快速获取设计器的各种状态。
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
## useWorkspace
@@ -2,8 +2,8 @@
设计器的运行时沙箱,用来执行代码,渲染页面。
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
默认沙箱是一个基于 CodeSandbox 的沙箱实例,可以直接在浏览器端执行代码。
<TypeTable name="SandboxProps" />
<TypesTable name="SandboxProps" />
@@ -4,6 +4,6 @@
## 属性列表
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
<TypeTable name="SettingPanelProps" />
<TypesTable name="SettingPanelProps" />
@@ -4,9 +4,9 @@
## 属性列表
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
<TypeTable name="SidebarPanelProps" />
<TypesTable name="SidebarPanelProps" />
## 创建浮动面板
@@ -4,7 +4,7 @@
## 属性列表
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
<TypeTable name="ViewPanelProps" />
<TypesTable name="ViewPanelProps" />
@@ -1,16 +1,16 @@
# 基础物料协议
import TypeTable from '@site/src/components/TypeTable';
import TypesTable from '@site/src/components/TypesTable';
物料协议定义了一个组件的基本信息,包括组件的名称、属性、拖拽规则等。物料协议是为组件附加的额外描述文件,不会侵入到你的组件代码中,因此你可以在不改动组件代码的情况下,为组件添加物料协议。
## 组件原型 prototype
<TypeTable name="ComponentPrototypeType" />
<TypesTable name="ComponentPrototypeType" />
## 组件属性 ComponentPropType
<TypeTable name="ComponentPropType" />
<TypesTable name="ComponentPropType" />
### 嵌套属性
@@ -115,7 +115,7 @@ import TypeTable from '@site/src/components/TypeTable';
## 组件拖拽规则 ComponentDndRulesType
<TypeTable name="ComponentDndRulesType" />
<TypesTable name="ComponentDndRulesType" />
### canDrag/canDrop
@@ -1,6 +1,6 @@
import React from 'react';
// import data from '../data/api.json';
const data: any = {};
// @ts-ignore
import data from './tango-types';
const typeMap = {};
if (data && data.children) {
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
+4
View File
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
+4
View File
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
@@ -1,5 +1,6 @@
import React, { useCallback, useEffect, useState } from 'react';
import { Box } from 'coral-system';
// @ts-ignore
import { toJSON } from 'cssjson';
import { InputNumber, Space } from 'antd';
import { SliderSetter } from './number-setter';
@@ -54,8 +55,8 @@ const cssPattern = (string: string, name: string): any => {
* @deprecated 使用嵌套属性代替
*/
export function CssSetter(props: FormItemComponentProps<string>) {
const { value, onChange } = props;
const [contentValue, setContentValue] = useState<string>(() => getRawCssValue(value));
const { value: valueProp, onChange } = props;
const [contentValue, setContentValue] = useState<string>(() => getRawCssValue(valueProp));
const [display, setDisplay] = useState('');
// 修改指定的CSS样式
+4
View File
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
+4
View File
@@ -0,0 +1,4 @@
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": true
}
+2 -1
View File
@@ -1,6 +1,7 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": ["packages/*"],
"name": "Tango LowCode Builder",
"entryPoints": ["packages/core", "packages/designer", "packages/helpers"],
"entryPointStrategy": "packages",
"exclude": ["packages/**/tests/**/*"],
"pretty": true,