@pisell/materials 3.3.88 → 3.3.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/TextCard/types.d.ts +270 -0
- package/es/components/PisellCards/index.d.ts +14 -0
- package/es/components/config-provider/index.d.ts +10 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/drag-sort-tree/index.d.ts +5 -0
- package/es/components/filter/components/Dropdown/types.d.ts +13 -0
- package/es/components/filter/components/FilterButton/types.d.ts +24 -0
- package/es/components/filter/types.d.ts +48 -0
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
- package/es/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/es/components/pisellFilter/type.d.ts +5 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/es/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/es/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/es/components/pisellPhone/components/EditView.d.ts +19 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/es/components/pisellPhone/types.d.ts +209 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellQuickFilter/type.d.ts +12 -0
- package/es/components/pisellRating/PisellRating.d.ts +31 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
- package/es/components/pisellRecordBoard/types.d.ts +315 -0
- package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
- package/es/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/utils.d.ts +2 -2
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/es/components/sort/index.d.ts +5 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/types.d.ts +268 -0
- package/es/components/translation/index.d.ts +17 -0
- package/es/components/translation/utils.d.ts +9 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TextCard/types.d.ts +270 -0
- package/lib/components/PisellCards/index.d.ts +14 -0
- package/lib/components/config-provider/index.d.ts +10 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/drag-sort-tree/index.d.ts +5 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
- package/lib/components/filter/types.d.ts +48 -0
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
- package/lib/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/lib/components/pisellFilter/type.d.ts +5 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/lib/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/lib/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/lib/components/pisellPhone/components/EditView.d.ts +19 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/lib/components/pisellPhone/types.d.ts +209 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellQuickFilter/type.d.ts +12 -0
- package/lib/components/pisellRating/PisellRating.d.ts +31 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
- package/lib/components/pisellRecordBoard/types.d.ts +315 -0
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
- package/lib/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/lib/components/sort/index.d.ts +5 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/types.d.ts +268 -0
- package/lib/components/translation/index.d.ts +17 -0
- package/lib/components/translation/utils.d.ts +9 -0
- package/lowcode/auto-resize-text/meta.ts +9 -9
- package/package.json +3 -3
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellProcedure/index.d.ts +0 -5
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/dataSourceComponents/dataSourceSubForm/types.d.ts +0 -117
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +0 -9
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +0 -23
- package/es/components/dataSourceComponents/fields/Tabs/type.d.ts +0 -38
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
- package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellProcedure/index.d.ts +0 -5
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.d.ts +0 -117
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +0 -9
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +0 -23
- package/lib/components/dataSourceComponents/fields/Tabs/type.d.ts +0 -38
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
- package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
-
export interface RecordListWrapperOption {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
value: string | number;
|
|
6
|
-
}
|
|
7
|
-
export interface RecordListWrapperFieldSchema {
|
|
8
|
-
name: string;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
component?: string;
|
|
11
|
-
componentName?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
/** 接口类型,用于映射到具体组件(如 Select、Input 等) */
|
|
14
|
-
interface?: string;
|
|
15
|
-
options?: RecordListWrapperOption[];
|
|
16
|
-
props?: Record<string, any>;
|
|
17
|
-
/** 子字段(用于嵌套结构,如 Input.JSON) */
|
|
18
|
-
children?: RecordListWrapperFieldSchema[];
|
|
19
|
-
_children?: RecordListWrapperFieldSchema[];
|
|
20
|
-
schema?: Record<string, any>;
|
|
21
|
-
uiSchema?: {
|
|
22
|
-
title?: React.ReactNode;
|
|
23
|
-
enum?: RecordListWrapperOption[];
|
|
24
|
-
'x-component'?: string;
|
|
25
|
-
'x-component-props'?: Record<string, any>;
|
|
26
|
-
'x-read-pretty'?: boolean;
|
|
27
|
-
'x-validator'?: string;
|
|
28
|
-
'x-display'?: 'visible' | 'hidden' | 'none';
|
|
29
|
-
'x-pattern'?: 'editable' | 'disabled' | 'readPretty';
|
|
30
|
-
'x-data-source'?: {
|
|
31
|
-
type?: string;
|
|
32
|
-
options?: Array<{
|
|
33
|
-
id?: string;
|
|
34
|
-
label: string | Record<string, any>;
|
|
35
|
-
value: string;
|
|
36
|
-
color?: string;
|
|
37
|
-
}>;
|
|
38
|
-
labelField?: string;
|
|
39
|
-
valueField?: string;
|
|
40
|
-
dataSource?: any;
|
|
41
|
-
extraParams?: Record<string, any>;
|
|
42
|
-
};
|
|
43
|
-
'x-record-schema'?: RecordListWrapperSchema | RecordListWrapperFieldSchema[] | string;
|
|
44
|
-
default?: any;
|
|
45
|
-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export interface RecordListWrapperSchema {
|
|
49
|
-
fields?: RecordListWrapperFieldSchema[];
|
|
50
|
-
properties?: Record<string, any>;
|
|
51
|
-
children?: RecordListWrapperFieldSchema[];
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @title RecordListWrapper 组件 Props
|
|
55
|
-
* @description
|
|
56
|
-
* 值结构为 Map:key 是 xDataSource option 的 value,value 是该 option 对应的表单字段值。
|
|
57
|
-
* 例如:{ "5": { "code": "xxx", "type": "yyy" }, "3": { "code": "aaa" } }
|
|
58
|
-
*/
|
|
59
|
-
export interface RecordListWrapperProps {
|
|
60
|
-
renderMode: ModeType;
|
|
61
|
-
/**
|
|
62
|
-
* 值: Map 结构
|
|
63
|
-
* - key: xDataSource option 的 value
|
|
64
|
-
* - value: 该 option 对应的 xRecordSchema 字段值对象
|
|
65
|
-
*/
|
|
66
|
-
value?: Record<string, Record<string, any>>;
|
|
67
|
-
onChange?: (value: Record<string, Record<string, any>>) => void;
|
|
68
|
-
/** xDataSource 选项列表,驱动 tabs 导航和 records 结构 */
|
|
69
|
-
options?: RecordListWrapperOption[];
|
|
70
|
-
/**
|
|
71
|
-
* 上部插槽:用户可在低代码平台拖入自定义导航组件。
|
|
72
|
-
* RecordListWrapper 会通过 cloneElement 注入 options、value(activeKey)、onChange。
|
|
73
|
-
*/
|
|
74
|
-
topSlot?: React.ReactNode;
|
|
75
|
-
slot?: React.ReactNode;
|
|
76
|
-
/** xRecordSchema:定义每条记录的子字段结构 */
|
|
77
|
-
xRecordSchema?: string | RecordListWrapperSchema | RecordListWrapperFieldSchema[];
|
|
78
|
-
/** 容器 children:低代码引擎渲染的子组件节点 */
|
|
79
|
-
children?: React.ReactNode;
|
|
80
|
-
/** 低代码设计模式标识 */
|
|
81
|
-
__designMode?: string;
|
|
82
|
-
/**
|
|
83
|
-
* 默认激活的 Tab key,外部传入时优先于 options[0].value
|
|
84
|
-
*/
|
|
85
|
-
defaultValue?: string;
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TabsProps } from './type';
|
|
3
|
-
import './Tabs.less';
|
|
4
|
-
/**
|
|
5
|
-
* Tabs 胶囊风格选项卡组件
|
|
6
|
-
*
|
|
7
|
-
* @description 提供类似 Segmented 控件的胶囊风格选项卡,支持受控与非受控模式。
|
|
8
|
-
* 用于表单中替代 Radio.Group,展示更为直观的标签页切换交互。
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <Tabs
|
|
13
|
-
* value={current}
|
|
14
|
-
* options={[
|
|
15
|
-
* { label: '校区', value: 'campus' },
|
|
16
|
-
* { label: '场地', value: 'venue' },
|
|
17
|
-
* ]}
|
|
18
|
-
* onChange={(val) => setCurrent(val)}
|
|
19
|
-
* />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare const Tabs: React.FC<TabsProps>;
|
|
23
|
-
export default Tabs;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
-
/**
|
|
4
|
-
* Tabs 选项配置
|
|
5
|
-
*/
|
|
6
|
-
export interface TabOption {
|
|
7
|
-
/** 选项显示文本 */
|
|
8
|
-
label: React.ReactNode;
|
|
9
|
-
/** 选项对应的值 */
|
|
10
|
-
value: string | number;
|
|
11
|
-
/** 是否禁用该选项 */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Tabs 基础 Props(编辑态组件使用,不含 renderMode)
|
|
16
|
-
*/
|
|
17
|
-
export interface TabsProps {
|
|
18
|
-
/** 当前选中的值(受控) */
|
|
19
|
-
value?: string | number;
|
|
20
|
-
/** 默认选中的值(非受控) */
|
|
21
|
-
defaultValue?: string | number;
|
|
22
|
-
/** 选项列表 */
|
|
23
|
-
options?: TabOption[];
|
|
24
|
-
/** 是否禁用整个组件 */
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/** 选中值变化时的回调 */
|
|
27
|
-
onChange?: (value: string | number) => void;
|
|
28
|
-
/** 自定义类名 */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** 自定义样式 */
|
|
31
|
-
style?: React.CSSProperties;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Tabs ReadPretty Props(只读态组件使用,包含必填 renderMode)
|
|
35
|
-
*/
|
|
36
|
-
export interface TabsReadPrettyProps extends TabsProps {
|
|
37
|
-
renderMode: ModeType;
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
3
|
-
export interface TranslationValue {
|
|
4
|
-
en: string;
|
|
5
|
-
'zh-CN': string;
|
|
6
|
-
'zh-HK': string;
|
|
7
|
-
'ja': string;
|
|
8
|
-
'pt': string;
|
|
9
|
-
original: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TranslationProps {
|
|
12
|
-
renderMode: ModeType;
|
|
13
|
-
value?: TranslationValue;
|
|
14
|
-
onChange?: (value: TranslationValue) => void;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
className?: string;
|
|
18
|
-
type?: 'text' | 'textarea';
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
inputStyle?: React.CSSProperties;
|
|
21
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import PisellProcedure from './PisellProcedure';
|
|
3
|
-
/**
|
|
4
|
-
* PisellProcedure 流程容器组件
|
|
5
|
-
*
|
|
6
|
-
* 用于管理多步骤流程的复合容器组件,基于 PisellLayout 实现三段式布局
|
|
7
|
-
* 包含头部区域(步骤条)、主体区域(内容区+信息区)、底部区域(操作按钮)
|
|
8
|
-
*/
|
|
9
|
-
declare const meta: Meta<typeof PisellProcedure>;
|
|
10
|
-
export default meta;
|
|
11
|
-
declare type Story = StoryObj<typeof PisellProcedure>;
|
|
12
|
-
/**
|
|
13
|
-
* 基础用法
|
|
14
|
-
* @description 默认流程容器,包含头部、主体、底部三个区域
|
|
15
|
-
*/
|
|
16
|
-
export declare const Default: Story;
|
|
17
|
-
/**
|
|
18
|
-
* 页面模式
|
|
19
|
-
* @description 默认模式,支持响应式和移动端适配
|
|
20
|
-
*/
|
|
21
|
-
export declare const PageMode: Story;
|
|
22
|
-
/**
|
|
23
|
-
* 弹窗模式
|
|
24
|
-
* @description 用于弹窗场景,不应用移动端适配
|
|
25
|
-
*/
|
|
26
|
-
export declare const ModalMode: Story;
|
|
27
|
-
/**
|
|
28
|
-
* 步骤控制
|
|
29
|
-
* @description 使用 onStepsChange 监听步骤变化
|
|
30
|
-
*/
|
|
31
|
-
export declare const StepControl: Story;
|
|
32
|
-
/**
|
|
33
|
-
* 步骤拦截
|
|
34
|
-
* @description 通过 onNext/onPrev 返回 false 阻止步骤切换
|
|
35
|
-
*/
|
|
36
|
-
export declare const StepIntercept: Story;
|
|
37
|
-
/**
|
|
38
|
-
* 无侧边栏
|
|
39
|
-
*/
|
|
40
|
-
export declare const WithoutSidebar: Story;
|
|
41
|
-
/**
|
|
42
|
-
* 无头部
|
|
43
|
-
*/
|
|
44
|
-
export declare const WithoutHeader: Story;
|
|
45
|
-
/**
|
|
46
|
-
* 无底部
|
|
47
|
-
*/
|
|
48
|
-
export declare const WithoutFooter: Story;
|
|
49
|
-
/**
|
|
50
|
-
* 最小配置
|
|
51
|
-
* @description 仅显示主体内容
|
|
52
|
-
*/
|
|
53
|
-
export declare const MinimalConfig: Story;
|
|
54
|
-
/**
|
|
55
|
-
* 头部插槽顺序 - 默认
|
|
56
|
-
* @description left 在左,right 在右
|
|
57
|
-
*/
|
|
58
|
-
export declare const HeaderSlotDefault: Story;
|
|
59
|
-
/**
|
|
60
|
-
* 头部插槽顺序 - 反转
|
|
61
|
-
* @description left 在右,right 在左
|
|
62
|
-
*/
|
|
63
|
-
export declare const HeaderSlotReverse: Story;
|
|
64
|
-
/**
|
|
65
|
-
* 隐藏步骤条
|
|
66
|
-
* @description 仅显示头部插槽,不显示步骤条
|
|
67
|
-
*/
|
|
68
|
-
export declare const HideSteps: Story;
|
|
69
|
-
/**
|
|
70
|
-
* 第一步显示返回按钮
|
|
71
|
-
* @description 通过 showBackOnFirstStep 控制
|
|
72
|
-
*/
|
|
73
|
-
export declare const ShowBackOnFirstStep: Story;
|
|
74
|
-
/**
|
|
75
|
-
* 返回确认弹窗
|
|
76
|
-
* @description 点击返回时弹出确认弹窗
|
|
77
|
-
*/
|
|
78
|
-
export declare const BackConfirmModal: Story;
|
|
79
|
-
/**
|
|
80
|
-
* 关闭确认弹窗
|
|
81
|
-
* @description 点击关闭时弹出确认弹窗
|
|
82
|
-
*/
|
|
83
|
-
export declare const CloseConfirmModal: Story;
|
|
84
|
-
/**
|
|
85
|
-
* 主体布局 - 比例布局
|
|
86
|
-
* @description 使用比例分配内容区和侧边栏宽度
|
|
87
|
-
*/
|
|
88
|
-
export declare const BodyRatioLayout: Story;
|
|
89
|
-
/**
|
|
90
|
-
* 主体布局 - 固定宽度
|
|
91
|
-
* @description 侧边栏使用固定宽度
|
|
92
|
-
*/
|
|
93
|
-
export declare const BodyFixedLayout: Story;
|
|
94
|
-
/**
|
|
95
|
-
* 主体布局 - 垂直布局
|
|
96
|
-
* @description 内容区和侧边栏上下排列
|
|
97
|
-
*/
|
|
98
|
-
export declare const BodyVerticalLayout: Story;
|
|
99
|
-
/**
|
|
100
|
-
* 主体布局 - 内容顺序反转
|
|
101
|
-
* @description 侧边栏在左/上,内容区在右/下
|
|
102
|
-
*/
|
|
103
|
-
export declare const BodyContentOrderReverse: Story;
|
|
104
|
-
/**
|
|
105
|
-
* 底部位置 - 悬浮在侧边栏
|
|
106
|
-
* @description 默认位置,底部悬浮在侧边栏区域
|
|
107
|
-
*/
|
|
108
|
-
export declare const FooterFloatSidebar: Story;
|
|
109
|
-
/**
|
|
110
|
-
* 底部位置 - 固定在整体底部
|
|
111
|
-
*/
|
|
112
|
-
export declare const FooterFixedBottom: Story;
|
|
113
|
-
/**
|
|
114
|
-
* 底部位置 - 悬浮在整体区域
|
|
115
|
-
* @description 移动端默认使用此模式
|
|
116
|
-
*/
|
|
117
|
-
export declare const FooterFloatAll: Story;
|
|
118
|
-
/**
|
|
119
|
-
* 底部位置 - 悬浮在内容区
|
|
120
|
-
*/
|
|
121
|
-
export declare const FooterFloatContent: Story;
|
|
122
|
-
/**
|
|
123
|
-
* 底部位置 - 内嵌在内容区底部
|
|
124
|
-
*/
|
|
125
|
-
export declare const FooterFixedContentBottom: Story;
|
|
126
|
-
/**
|
|
127
|
-
* 底部位置 - 内嵌在侧边栏底部
|
|
128
|
-
*/
|
|
129
|
-
export declare const FooterFixedSidebarBottom: Story;
|
|
130
|
-
/**
|
|
131
|
-
* 移动端总结按钮
|
|
132
|
-
* @description 移动端显示总结按钮,点击可查看侧边栏内容
|
|
133
|
-
*/
|
|
134
|
-
export declare const MobileSummaryButton: Story;
|
|
135
|
-
/**
|
|
136
|
-
* 溢出收纳功能
|
|
137
|
-
* @description 当宽度不足时,按钮会被收纳到 More 菜单中
|
|
138
|
-
*/
|
|
139
|
-
export declare const OverflowActions: Story;
|
|
140
|
-
/**
|
|
141
|
-
* 禁用溢出收纳
|
|
142
|
-
* @description 不启用溢出收纳,按钮会换行显示
|
|
143
|
-
*/
|
|
144
|
-
export declare const DisableOverflow: Story;
|
|
145
|
-
/**
|
|
146
|
-
* 完整示例 - 购物流程
|
|
147
|
-
* @description 模拟真实的购物流程
|
|
148
|
-
*/
|
|
149
|
-
export declare const ShoppingFlow: Story;
|
|
150
|
-
/**
|
|
151
|
-
* 完整示例 - 注册流程
|
|
152
|
-
* @description 模拟用户注册流程
|
|
153
|
-
*/
|
|
154
|
-
export declare const RegistrationFlow: Story;
|
|
155
|
-
/**
|
|
156
|
-
* 完整示例 - 表单向导
|
|
157
|
-
* @description 多步表单向导
|
|
158
|
-
*/
|
|
159
|
-
export declare const FormWizard: Story;
|
|
160
|
-
/**
|
|
161
|
-
* 交互测试 - 组件渲染
|
|
162
|
-
*/
|
|
163
|
-
export declare const InteractionTest: Story;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PisellProcedure 组件导出
|
|
3
|
-
*/
|
|
4
|
-
export { default } from './PisellProcedure';
|
|
5
|
-
export type { PisellProcedureProps, PisellProcedureRef, ProcedureHeaderProps, ProcedureBodyProps, ProcedureFooterProps, FooterPositionMode, BackConfirmModalConfig, BodyLayoutMode, BodyLayoutRatio, BodyDirection, StepItem, StepChangeResult, } from './types';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellSteps.less';
|
|
3
|
-
import type { PisellStepsProps } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* PisellSteps 步骤条组件
|
|
6
|
-
*
|
|
7
|
-
* 基于 Ant Design Steps 组件进行二次封装和增强
|
|
8
|
-
* 支持多种展示样式、布局方式和丰富的交互功能
|
|
9
|
-
*
|
|
10
|
-
* @author Pisell Team
|
|
11
|
-
* @version 1.0.0
|
|
12
|
-
*/
|
|
13
|
-
declare const PisellSteps: React.FC<PisellStepsProps>;
|
|
14
|
-
export default PisellSteps;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModeType } from '../dataSourceForm/type';
|
|
3
|
-
/**
|
|
4
|
-
* @title 字段选项接口
|
|
5
|
-
* @description 用于下拉框、单选框等组件的选项配置
|
|
6
|
-
*/
|
|
7
|
-
export interface DataSourceSubFormOption {
|
|
8
|
-
label?: React.ReactNode;
|
|
9
|
-
value: string | number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title 字段 Schema 接口
|
|
13
|
-
* @description 定义表单字段的结构和配置
|
|
14
|
-
*/
|
|
15
|
-
export interface DataSourceSubFormFieldSchema {
|
|
16
|
-
/** 字段名称(必填) */
|
|
17
|
-
name: string;
|
|
18
|
-
/** 字段标签 */
|
|
19
|
-
label?: React.ReactNode;
|
|
20
|
-
/** 组件类型(兼容多种命名方式) */
|
|
21
|
-
component?: string;
|
|
22
|
-
componentName?: string;
|
|
23
|
-
/** 字段数据类型 */
|
|
24
|
-
type?: string;
|
|
25
|
-
/** 接口类型,用于映射到具体组件(如 Select、Input 等) */
|
|
26
|
-
interface?: string;
|
|
27
|
-
/** 字段选项列表(用于 Select、Radio 等) */
|
|
28
|
-
options?: DataSourceSubFormOption[];
|
|
29
|
-
/** 组件额外配置 */
|
|
30
|
-
props?: Record<string, any>;
|
|
31
|
-
/** 子字段(用于嵌套结构,如 Input.JSON) */
|
|
32
|
-
children?: DataSourceSubFormFieldSchema[];
|
|
33
|
-
_children?: DataSourceSubFormFieldSchema[];
|
|
34
|
-
/** 字段 Schema 配置 */
|
|
35
|
-
schema?: Record<string, any>;
|
|
36
|
-
/** UI Schema 配置(支持低代码平台的各种配置项) */
|
|
37
|
-
uiSchema?: {
|
|
38
|
-
title?: React.ReactNode;
|
|
39
|
-
enum?: DataSourceSubFormOption[];
|
|
40
|
-
'x-component'?: string;
|
|
41
|
-
'x-component-props'?: Record<string, any>;
|
|
42
|
-
'x-read-pretty'?: boolean;
|
|
43
|
-
'x-validator'?: string;
|
|
44
|
-
'x-display'?: 'visible' | 'hidden' | 'none';
|
|
45
|
-
'x-pattern'?: 'editable' | 'disabled' | 'readPretty';
|
|
46
|
-
'x-data-source'?: {
|
|
47
|
-
type?: string;
|
|
48
|
-
options?: Array<{
|
|
49
|
-
id?: string;
|
|
50
|
-
label: string | Record<string, any>;
|
|
51
|
-
value: string;
|
|
52
|
-
color?: string;
|
|
53
|
-
}>;
|
|
54
|
-
labelField?: string;
|
|
55
|
-
valueField?: string;
|
|
56
|
-
dataSource?: any;
|
|
57
|
-
extraParams?: Record<string, any>;
|
|
58
|
-
};
|
|
59
|
-
'x-record-schema'?: DataSourceSubFormSchema | DataSourceSubFormFieldSchema[] | string;
|
|
60
|
-
default?: any;
|
|
61
|
-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @title Schema 接口
|
|
66
|
-
* @description 表单字段集合的结构定义
|
|
67
|
-
*/
|
|
68
|
-
export interface DataSourceSubFormSchema {
|
|
69
|
-
/** 字段列表 */
|
|
70
|
-
fields?: DataSourceSubFormFieldSchema[];
|
|
71
|
-
/** 属性映射(key-value 形式) */
|
|
72
|
-
properties?: Record<string, any>;
|
|
73
|
-
/** 子字段列表 */
|
|
74
|
-
children?: DataSourceSubFormFieldSchema[];
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @title DataSourceSubForm 组件 Props
|
|
78
|
-
* @description
|
|
79
|
-
* 独立的子表单组件,用于渲染一组表单字段。
|
|
80
|
-
* 支持通过 xRecordSchema 配置字段,或直接传入 children 低代码子组件。
|
|
81
|
-
*/
|
|
82
|
-
export interface DataSourceSubFormProps {
|
|
83
|
-
/** 渲染模式:edit(编辑)、disabled(禁用)、preview(预览) */
|
|
84
|
-
renderMode?: ModeType;
|
|
85
|
-
/**
|
|
86
|
-
* 表单值对象
|
|
87
|
-
* @example { "fieldName1": "value1", "fieldName2": "value2" }
|
|
88
|
-
*/
|
|
89
|
-
value?: Record<string, any>;
|
|
90
|
-
/**
|
|
91
|
-
* 值变化回调
|
|
92
|
-
* @param value 更新后的表单值对象
|
|
93
|
-
*/
|
|
94
|
-
onChange?: (value: Record<string, any>) => void;
|
|
95
|
-
/**
|
|
96
|
-
* xRecordSchema:定义表单字段结构
|
|
97
|
-
* 支持三种格式:
|
|
98
|
-
* 1. JSON 字符串
|
|
99
|
-
* 2. Schema 对象(包含 fields/properties/children)
|
|
100
|
-
* 3. 字段数组
|
|
101
|
-
*/
|
|
102
|
-
xRecordSchema?: string | DataSourceSubFormSchema | DataSourceSubFormFieldSchema[];
|
|
103
|
-
/**
|
|
104
|
-
* 容器 children:低代码引擎渲染的子组件节点
|
|
105
|
-
* 优先使用 children,如果没有则回退到 xRecordSchema 渲染
|
|
106
|
-
*/
|
|
107
|
-
children?: React.ReactNode;
|
|
108
|
-
/** 低代码设计模式标识 */
|
|
109
|
-
__designMode?: string;
|
|
110
|
-
/** 表单布局方式 */
|
|
111
|
-
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
112
|
-
/** 自定义类名 */
|
|
113
|
-
className?: string;
|
|
114
|
-
/** 自定义样式 */
|
|
115
|
-
style?: React.CSSProperties;
|
|
116
|
-
[key: string]: any;
|
|
117
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RecordListWrapperProps } from './type';
|
|
3
|
-
/**
|
|
4
|
-
* @title: RecordListWrapper 只读态
|
|
5
|
-
* @description: 低代码详情模式下展示每个 option 对应的 record 数据。
|
|
6
|
-
* 值结构: { optionValue: { field1: v1, field2: v2 } }
|
|
7
|
-
*/
|
|
8
|
-
declare const RecordListWrapperReadPretty: React.FC<RecordListWrapperProps>;
|
|
9
|
-
export default RecordListWrapperReadPretty;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
-
export interface RecordListWrapperOption {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
value: string | number;
|
|
6
|
-
}
|
|
7
|
-
export interface RecordListWrapperFieldSchema {
|
|
8
|
-
name: string;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
component?: string;
|
|
11
|
-
componentName?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
/** 接口类型,用于映射到具体组件(如 Select、Input 等) */
|
|
14
|
-
interface?: string;
|
|
15
|
-
options?: RecordListWrapperOption[];
|
|
16
|
-
props?: Record<string, any>;
|
|
17
|
-
/** 子字段(用于嵌套结构,如 Input.JSON) */
|
|
18
|
-
children?: RecordListWrapperFieldSchema[];
|
|
19
|
-
_children?: RecordListWrapperFieldSchema[];
|
|
20
|
-
schema?: Record<string, any>;
|
|
21
|
-
uiSchema?: {
|
|
22
|
-
title?: React.ReactNode;
|
|
23
|
-
enum?: RecordListWrapperOption[];
|
|
24
|
-
'x-component'?: string;
|
|
25
|
-
'x-component-props'?: Record<string, any>;
|
|
26
|
-
'x-read-pretty'?: boolean;
|
|
27
|
-
'x-validator'?: string;
|
|
28
|
-
'x-display'?: 'visible' | 'hidden' | 'none';
|
|
29
|
-
'x-pattern'?: 'editable' | 'disabled' | 'readPretty';
|
|
30
|
-
'x-data-source'?: {
|
|
31
|
-
type?: string;
|
|
32
|
-
options?: Array<{
|
|
33
|
-
id?: string;
|
|
34
|
-
label: string | Record<string, any>;
|
|
35
|
-
value: string;
|
|
36
|
-
color?: string;
|
|
37
|
-
}>;
|
|
38
|
-
labelField?: string;
|
|
39
|
-
valueField?: string;
|
|
40
|
-
dataSource?: any;
|
|
41
|
-
extraParams?: Record<string, any>;
|
|
42
|
-
};
|
|
43
|
-
'x-record-schema'?: RecordListWrapperSchema | RecordListWrapperFieldSchema[] | string;
|
|
44
|
-
default?: any;
|
|
45
|
-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export interface RecordListWrapperSchema {
|
|
49
|
-
fields?: RecordListWrapperFieldSchema[];
|
|
50
|
-
properties?: Record<string, any>;
|
|
51
|
-
children?: RecordListWrapperFieldSchema[];
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @title RecordListWrapper 组件 Props
|
|
55
|
-
* @description
|
|
56
|
-
* 值结构为 Map:key 是 xDataSource option 的 value,value 是该 option 对应的表单字段值。
|
|
57
|
-
* 例如:{ "5": { "code": "xxx", "type": "yyy" }, "3": { "code": "aaa" } }
|
|
58
|
-
*/
|
|
59
|
-
export interface RecordListWrapperProps {
|
|
60
|
-
renderMode: ModeType;
|
|
61
|
-
/**
|
|
62
|
-
* 值: Map 结构
|
|
63
|
-
* - key: xDataSource option 的 value
|
|
64
|
-
* - value: 该 option 对应的 xRecordSchema 字段值对象
|
|
65
|
-
*/
|
|
66
|
-
value?: Record<string, Record<string, any>>;
|
|
67
|
-
onChange?: (value: Record<string, Record<string, any>>) => void;
|
|
68
|
-
/** xDataSource 选项列表,驱动 tabs 导航和 records 结构 */
|
|
69
|
-
options?: RecordListWrapperOption[];
|
|
70
|
-
/**
|
|
71
|
-
* 上部插槽:用户可在低代码平台拖入自定义导航组件。
|
|
72
|
-
* RecordListWrapper 会通过 cloneElement 注入 options、value(activeKey)、onChange。
|
|
73
|
-
*/
|
|
74
|
-
topSlot?: React.ReactNode;
|
|
75
|
-
slot?: React.ReactNode;
|
|
76
|
-
/** xRecordSchema:定义每条记录的子字段结构 */
|
|
77
|
-
xRecordSchema?: string | RecordListWrapperSchema | RecordListWrapperFieldSchema[];
|
|
78
|
-
/** 容器 children:低代码引擎渲染的子组件节点 */
|
|
79
|
-
children?: React.ReactNode;
|
|
80
|
-
/** 低代码设计模式标识 */
|
|
81
|
-
__designMode?: string;
|
|
82
|
-
/**
|
|
83
|
-
* 默认激活的 Tab key,外部传入时优先于 options[0].value
|
|
84
|
-
*/
|
|
85
|
-
defaultValue?: string;
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TabsProps } from './type';
|
|
3
|
-
import './Tabs.less';
|
|
4
|
-
/**
|
|
5
|
-
* Tabs 胶囊风格选项卡组件
|
|
6
|
-
*
|
|
7
|
-
* @description 提供类似 Segmented 控件的胶囊风格选项卡,支持受控与非受控模式。
|
|
8
|
-
* 用于表单中替代 Radio.Group,展示更为直观的标签页切换交互。
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <Tabs
|
|
13
|
-
* value={current}
|
|
14
|
-
* options={[
|
|
15
|
-
* { label: '校区', value: 'campus' },
|
|
16
|
-
* { label: '场地', value: 'venue' },
|
|
17
|
-
* ]}
|
|
18
|
-
* onChange={(val) => setCurrent(val)}
|
|
19
|
-
* />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare const Tabs: React.FC<TabsProps>;
|
|
23
|
-
export default Tabs;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
-
/**
|
|
4
|
-
* Tabs 选项配置
|
|
5
|
-
*/
|
|
6
|
-
export interface TabOption {
|
|
7
|
-
/** 选项显示文本 */
|
|
8
|
-
label: React.ReactNode;
|
|
9
|
-
/** 选项对应的值 */
|
|
10
|
-
value: string | number;
|
|
11
|
-
/** 是否禁用该选项 */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Tabs 基础 Props(编辑态组件使用,不含 renderMode)
|
|
16
|
-
*/
|
|
17
|
-
export interface TabsProps {
|
|
18
|
-
/** 当前选中的值(受控) */
|
|
19
|
-
value?: string | number;
|
|
20
|
-
/** 默认选中的值(非受控) */
|
|
21
|
-
defaultValue?: string | number;
|
|
22
|
-
/** 选项列表 */
|
|
23
|
-
options?: TabOption[];
|
|
24
|
-
/** 是否禁用整个组件 */
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/** 选中值变化时的回调 */
|
|
27
|
-
onChange?: (value: string | number) => void;
|
|
28
|
-
/** 自定义类名 */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** 自定义样式 */
|
|
31
|
-
style?: React.CSSProperties;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Tabs ReadPretty Props(只读态组件使用,包含必填 renderMode)
|
|
35
|
-
*/
|
|
36
|
-
export interface TabsReadPrettyProps extends TabsProps {
|
|
37
|
-
renderMode: ModeType;
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
3
|
-
export interface TranslationValue {
|
|
4
|
-
en: string;
|
|
5
|
-
'zh-CN': string;
|
|
6
|
-
'zh-HK': string;
|
|
7
|
-
'ja': string;
|
|
8
|
-
'pt': string;
|
|
9
|
-
original: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TranslationProps {
|
|
12
|
-
renderMode: ModeType;
|
|
13
|
-
value?: TranslationValue;
|
|
14
|
-
onChange?: (value: TranslationValue) => void;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
className?: string;
|
|
18
|
-
type?: 'text' | 'textarea';
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
inputStyle?: React.CSSProperties;
|
|
21
|
-
}
|