mirror of
https://github.com/NetEase/tango.git
synced 2026-08-28 17:41:30 +08:00
docs: fix display api table in website
This commit is contained in:
@@ -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" />
|
||||
|
||||
## 设计器初始化
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": ["../../typedoc.base.json"],
|
||||
"entryPoints": ["src/index.ts"]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": ["../../typedoc.base.json"],
|
||||
"entryPoints": ["src/index.ts"]
|
||||
}
|
||||
@@ -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样式
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": ["../../typedoc.base.json"],
|
||||
"entryPoints": ["src/index.ts"]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "https://typedoc.org/schema.json",
|
||||
"includeVersion": true
|
||||
}
|
||||
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user