@pisell/materials 6.8.17 → 6.9.2
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/es/components/PisellCards/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/components/Pagination/index.js +1 -6
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/lib/components/PisellCards/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +0 -4
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/es/components/cardPro/index.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -16
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -32
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -99
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -85
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/types.d.ts +0 -268
- package/es/components/translation/index.d.ts +0 -14
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/lib/components/cardPro/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -16
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -32
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -99
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -85
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/translation/index.d.ts +0 -14
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BadgeWrapperProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* BadgeWrapper 角标包装组件
|
|
5
|
-
* 负责角标的渲染和定位,支持红点、数字、文本三种类型
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* // 红点角标
|
|
10
|
-
* <BadgeWrapper badge={{ type: 'dot' }}>
|
|
11
|
-
* <TextCard text="Item" />
|
|
12
|
-
* </BadgeWrapper>
|
|
13
|
-
*
|
|
14
|
-
* // 数字角标
|
|
15
|
-
* <BadgeWrapper badge={{ type: 'number', content: 99 }}>
|
|
16
|
-
* <TextCard text="Item" />
|
|
17
|
-
* </BadgeWrapper>
|
|
18
|
-
*
|
|
19
|
-
* // 文本角标
|
|
20
|
-
* <BadgeWrapper badge={{ type: 'text', content: 'New' }}>
|
|
21
|
-
* <TextCard text="Item" />
|
|
22
|
-
* </BadgeWrapper>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare const BadgeWrapper: React.FC<BadgeWrapperProps>;
|
|
26
|
-
export default BadgeWrapper;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextContentProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* TextContent 文本内容组件
|
|
5
|
-
* 负责渲染主文本内容,处理文本省略逻辑
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <TextContent
|
|
10
|
-
* text="这是一段很长的文本内容"
|
|
11
|
-
* textConfig={{
|
|
12
|
-
* maxLines: 2,
|
|
13
|
-
* ellipsis: true,
|
|
14
|
-
* fontSize: 14,
|
|
15
|
-
* color: '#333'
|
|
16
|
-
* }}
|
|
17
|
-
* />
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
declare const TextContent: React.FC<TextContentProps>;
|
|
21
|
-
export default TextContent;
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { PisellBasicCardProps } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* 样式变体类型
|
|
5
|
-
*/
|
|
6
|
-
export declare type TextCardVariant = 'text' | 'filled' | 'outlined' | 'light' | 'gradient' | 'dashed';
|
|
7
|
-
/**
|
|
8
|
-
* 尺寸类型
|
|
9
|
-
*/
|
|
10
|
-
export declare type TextCardSize = 'small' | 'default' | 'large';
|
|
11
|
-
/**
|
|
12
|
-
* 宽度模式
|
|
13
|
-
*/
|
|
14
|
-
export declare type TextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
15
|
-
/**
|
|
16
|
-
* 图标配置
|
|
17
|
-
*/
|
|
18
|
-
export interface IconConfig {
|
|
19
|
-
/**
|
|
20
|
-
* 图标大小(单位:px)
|
|
21
|
-
*/
|
|
22
|
-
size?: number;
|
|
23
|
-
/**
|
|
24
|
-
* 图标颜色
|
|
25
|
-
*/
|
|
26
|
-
color?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 标签配置
|
|
30
|
-
*/
|
|
31
|
-
export interface TagConfig {
|
|
32
|
-
/**
|
|
33
|
-
* 标签颜色
|
|
34
|
-
*/
|
|
35
|
-
color?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 标签自定义样式
|
|
38
|
-
*/
|
|
39
|
-
style?: CSSProperties;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 角标类型
|
|
43
|
-
*/
|
|
44
|
-
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
45
|
-
/**
|
|
46
|
-
* 角标位置
|
|
47
|
-
*/
|
|
48
|
-
export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
49
|
-
/**
|
|
50
|
-
* 角标配置
|
|
51
|
-
*/
|
|
52
|
-
export interface BadgeConfig {
|
|
53
|
-
/**
|
|
54
|
-
* 角标类型
|
|
55
|
-
* @default 'dot'
|
|
56
|
-
*/
|
|
57
|
-
type?: BadgeType;
|
|
58
|
-
/**
|
|
59
|
-
* 角标内容(数字或文本)
|
|
60
|
-
* 当 type 为 'number' 或 'text' 时有效
|
|
61
|
-
*/
|
|
62
|
-
content?: ReactNode;
|
|
63
|
-
/**
|
|
64
|
-
* 角标位置
|
|
65
|
-
* @default 'top-right'
|
|
66
|
-
*/
|
|
67
|
-
position?: BadgePosition;
|
|
68
|
-
/**
|
|
69
|
-
* 角标偏移量 [x, y]
|
|
70
|
-
* 正数向右/下偏移,负数向左/上偏移
|
|
71
|
-
*/
|
|
72
|
-
offset?: [number, number];
|
|
73
|
-
/**
|
|
74
|
-
* 角标颜色
|
|
75
|
-
*/
|
|
76
|
-
color?: string;
|
|
77
|
-
/**
|
|
78
|
-
* 角标自定义样式
|
|
79
|
-
*/
|
|
80
|
-
style?: CSSProperties;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* 文本配置
|
|
84
|
-
*/
|
|
85
|
-
export interface TextConfig {
|
|
86
|
-
/**
|
|
87
|
-
* 字体大小(单位:px)
|
|
88
|
-
*/
|
|
89
|
-
fontSize?: number;
|
|
90
|
-
/**
|
|
91
|
-
* 字体粗细
|
|
92
|
-
*/
|
|
93
|
-
fontWeight?: string | number;
|
|
94
|
-
/**
|
|
95
|
-
* 文本颜色
|
|
96
|
-
*/
|
|
97
|
-
color?: string;
|
|
98
|
-
/**
|
|
99
|
-
* 最大显示行数
|
|
100
|
-
* @default 1
|
|
101
|
-
*/
|
|
102
|
-
maxLines?: number;
|
|
103
|
-
/**
|
|
104
|
-
* 是否显示省略号
|
|
105
|
-
* @default true
|
|
106
|
-
*/
|
|
107
|
-
ellipsis?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* 文本对齐方式
|
|
110
|
-
* @default 'left'
|
|
111
|
-
*/
|
|
112
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
113
|
-
flex?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* TextCard 组件 Props
|
|
117
|
-
* 基于 PisellBasicCardProps 扩展
|
|
118
|
-
* 注意:重写 onClick 为可选属性
|
|
119
|
-
*/
|
|
120
|
-
export interface TextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
121
|
-
/**
|
|
122
|
-
* 卡片显示的文本内容(必填)
|
|
123
|
-
*/
|
|
124
|
-
text: ReactNode;
|
|
125
|
-
/**
|
|
126
|
-
* 卡片样式变体
|
|
127
|
-
* @default 'text'
|
|
128
|
-
*/
|
|
129
|
-
variant?: TextCardVariant;
|
|
130
|
-
/**
|
|
131
|
-
* 卡片尺寸
|
|
132
|
-
* @default 'default'
|
|
133
|
-
*/
|
|
134
|
-
size?: TextCardSize;
|
|
135
|
-
/**
|
|
136
|
-
* 是否可点击
|
|
137
|
-
* @default true
|
|
138
|
-
*/
|
|
139
|
-
clickable?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* 前置图标
|
|
142
|
-
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
143
|
-
*/
|
|
144
|
-
prefixIcon?: ReactNode;
|
|
145
|
-
/**
|
|
146
|
-
* 后置图标
|
|
147
|
-
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
148
|
-
*/
|
|
149
|
-
suffixIcon?: ReactNode;
|
|
150
|
-
/**
|
|
151
|
-
* 图标配置
|
|
152
|
-
* 统一配置前置和后置图标的大小和颜色
|
|
153
|
-
*/
|
|
154
|
-
iconConfig?: IconConfig;
|
|
155
|
-
/**
|
|
156
|
-
* 后置标签
|
|
157
|
-
* 支持 ReactNode(如 antd Tag、Badge 等)
|
|
158
|
-
*/
|
|
159
|
-
tag?: ReactNode;
|
|
160
|
-
/**
|
|
161
|
-
* 标签配置
|
|
162
|
-
*/
|
|
163
|
-
tagConfig?: TagConfig;
|
|
164
|
-
/**
|
|
165
|
-
* 角标配置
|
|
166
|
-
* 用于显示红点、数字或文本提示
|
|
167
|
-
*/
|
|
168
|
-
badge?: BadgeConfig;
|
|
169
|
-
/**
|
|
170
|
-
* 前置插槽
|
|
171
|
-
* 用于替换前置图标,优先级高于 prefixIcon
|
|
172
|
-
*/
|
|
173
|
-
prefixSlot?: ReactNode;
|
|
174
|
-
/**
|
|
175
|
-
* 后置插槽
|
|
176
|
-
* 用于替换后置图标和标签,优先级高于 suffixIcon 和 tag
|
|
177
|
-
*/
|
|
178
|
-
suffixSlot?: ReactNode;
|
|
179
|
-
/**
|
|
180
|
-
* 文本配置
|
|
181
|
-
* 用于自定义文本样式和显示行为
|
|
182
|
-
*/
|
|
183
|
-
textConfig?: TextConfig;
|
|
184
|
-
/**
|
|
185
|
-
* 宽度模式
|
|
186
|
-
* - auto: 内容撑满,最大宽度 maxWidth
|
|
187
|
-
* - fixed: 固定宽度 width
|
|
188
|
-
* - full: 撑满父容器,最小宽度 28px
|
|
189
|
-
* @default 'auto'
|
|
190
|
-
*/
|
|
191
|
-
widthMode?: TextCardWidthMode;
|
|
192
|
-
/**
|
|
193
|
-
* 固定宽度值
|
|
194
|
-
* 当 widthMode='fixed' 时有效
|
|
195
|
-
*/
|
|
196
|
-
width?: number | string;
|
|
197
|
-
/**
|
|
198
|
-
* 最大宽度
|
|
199
|
-
* 当 widthMode='auto' 时有效
|
|
200
|
-
* @default 400
|
|
201
|
-
*/
|
|
202
|
-
maxWidth?: number | string;
|
|
203
|
-
/**
|
|
204
|
-
* 点击事件
|
|
205
|
-
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
206
|
-
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
207
|
-
*/
|
|
208
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
209
|
-
/**
|
|
210
|
-
* 自定义渲染函数
|
|
211
|
-
* 完全自定义组件的渲染内容
|
|
212
|
-
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
213
|
-
*/
|
|
214
|
-
render?: (props: TextCardProps) => ReactNode;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* TextContent 组件 Props
|
|
218
|
-
* 文本内容子组件
|
|
219
|
-
*/
|
|
220
|
-
export interface TextContentProps {
|
|
221
|
-
/**
|
|
222
|
-
* 文本内容
|
|
223
|
-
*/
|
|
224
|
-
text: ReactNode;
|
|
225
|
-
/**
|
|
226
|
-
* 文本配置
|
|
227
|
-
*/
|
|
228
|
-
textConfig?: TextConfig;
|
|
229
|
-
/**
|
|
230
|
-
* 自定义类名
|
|
231
|
-
*/
|
|
232
|
-
className?: string;
|
|
233
|
-
active?: PisellBasicCardProps['active'];
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* IconWrapper 组件 Props
|
|
237
|
-
* 图标包装子组件
|
|
238
|
-
*/
|
|
239
|
-
export interface IconWrapperProps {
|
|
240
|
-
/**
|
|
241
|
-
* 图标内容
|
|
242
|
-
*/
|
|
243
|
-
icon: ReactNode;
|
|
244
|
-
/**
|
|
245
|
-
* 图标配置
|
|
246
|
-
*/
|
|
247
|
-
config?: IconConfig;
|
|
248
|
-
/**
|
|
249
|
-
* 图标位置
|
|
250
|
-
*/
|
|
251
|
-
position: 'prefix' | 'suffix';
|
|
252
|
-
/**
|
|
253
|
-
* 自定义类名
|
|
254
|
-
*/
|
|
255
|
-
className?: string;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* BadgeWrapper 组件 Props
|
|
259
|
-
* 角标包装子组件
|
|
260
|
-
*/
|
|
261
|
-
export interface BadgeWrapperProps {
|
|
262
|
-
/**
|
|
263
|
-
* 角标配置
|
|
264
|
-
*/
|
|
265
|
-
badge?: BadgeConfig;
|
|
266
|
-
/**
|
|
267
|
-
* 子元素
|
|
268
|
-
*/
|
|
269
|
-
children: ReactNode;
|
|
270
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
export interface DataSourceType {
|
|
2
|
-
key: string;
|
|
3
|
-
displayName: string;
|
|
4
|
-
status: string;
|
|
5
|
-
type: string;
|
|
6
|
-
isDBInstance: boolean;
|
|
7
|
-
collections: Collection[];
|
|
8
|
-
}
|
|
9
|
-
export declare type ActionsItem = {
|
|
10
|
-
method: string;
|
|
11
|
-
path: string;
|
|
12
|
-
params: {
|
|
13
|
-
name: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}[];
|
|
16
|
-
headers: {
|
|
17
|
-
name: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}[];
|
|
20
|
-
body: Record<string, any>;
|
|
21
|
-
};
|
|
22
|
-
export interface Collection {
|
|
23
|
-
name: string;
|
|
24
|
-
title: string;
|
|
25
|
-
tableName: string;
|
|
26
|
-
timestamps: boolean;
|
|
27
|
-
autoGenId: boolean;
|
|
28
|
-
filterTargetKey: string;
|
|
29
|
-
fields: Field[];
|
|
30
|
-
introspected: boolean;
|
|
31
|
-
unavailableActions: any[];
|
|
32
|
-
actions: {
|
|
33
|
-
get: ActionsItem;
|
|
34
|
-
update: ActionsItem;
|
|
35
|
-
create: ActionsItem;
|
|
36
|
-
delete: ActionsItem;
|
|
37
|
-
list: ActionsItem;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
interface Field {
|
|
41
|
-
name: string;
|
|
42
|
-
type: string;
|
|
43
|
-
allowNull: boolean;
|
|
44
|
-
primaryKey: boolean;
|
|
45
|
-
unique: boolean;
|
|
46
|
-
autoIncrement: boolean;
|
|
47
|
-
description?: (null | string)[];
|
|
48
|
-
possibleTypes?: string[];
|
|
49
|
-
rawType: string;
|
|
50
|
-
interface: string;
|
|
51
|
-
uiSchema: UiSchema;
|
|
52
|
-
key?: string;
|
|
53
|
-
collectionName?: string;
|
|
54
|
-
collectionKey?: any;
|
|
55
|
-
dataSourceKey?: string;
|
|
56
|
-
defaultValue?: any;
|
|
57
|
-
}
|
|
58
|
-
interface UiSchema {
|
|
59
|
-
type?: string;
|
|
60
|
-
'x-component': string;
|
|
61
|
-
'x-component-props'?: Xcomponentprops;
|
|
62
|
-
'x-validator'?: string;
|
|
63
|
-
title: string;
|
|
64
|
-
default?: any;
|
|
65
|
-
enum?: any[];
|
|
66
|
-
}
|
|
67
|
-
interface Xcomponentprops {
|
|
68
|
-
style?: Style;
|
|
69
|
-
autoSize?: AutoSize;
|
|
70
|
-
stringMode?: boolean;
|
|
71
|
-
step?: string;
|
|
72
|
-
dateFormat?: string;
|
|
73
|
-
showTime?: boolean;
|
|
74
|
-
}
|
|
75
|
-
interface AutoSize {
|
|
76
|
-
minRows: number;
|
|
77
|
-
}
|
|
78
|
-
interface Style {
|
|
79
|
-
width: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* 获取nocobase自定义数据源
|
|
83
|
-
*/
|
|
84
|
-
export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
|
|
85
|
-
/**
|
|
86
|
-
* 获取nocobase主数据源
|
|
87
|
-
*/
|
|
88
|
-
export declare const getNocobaseMainDataSource: () => Promise<any>;
|
|
89
|
-
/**
|
|
90
|
-
* 获取nocobase数据源设置
|
|
91
|
-
*/
|
|
92
|
-
export declare const getNocobaseDataSourceOptions: () => Promise<any>;
|
|
93
|
-
/**
|
|
94
|
-
* 创建nocobase数据
|
|
95
|
-
*/
|
|
96
|
-
export declare const createNocobaseData: (params: {
|
|
97
|
-
key: string;
|
|
98
|
-
data: any;
|
|
99
|
-
headers?: any;
|
|
100
|
-
}) => Promise<any>;
|
|
101
|
-
/**
|
|
102
|
-
* nocobase get数据
|
|
103
|
-
*/
|
|
104
|
-
export declare const getNocobaseData: (params: {
|
|
105
|
-
key: string;
|
|
106
|
-
query: Record<string, any>;
|
|
107
|
-
headers?: any;
|
|
108
|
-
}) => Promise<any>;
|
|
109
|
-
/**
|
|
110
|
-
* 自定义api接口
|
|
111
|
-
*/
|
|
112
|
-
export declare const customApi: (url: string, data: Record<string, any>, options: {
|
|
113
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
114
|
-
baseUrl?: string | undefined;
|
|
115
|
-
headers?: {
|
|
116
|
-
name: string;
|
|
117
|
-
value: any;
|
|
118
|
-
}[] | undefined;
|
|
119
|
-
params?: {
|
|
120
|
-
name: string;
|
|
121
|
-
value: any;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
body?: Record<string, any> | undefined;
|
|
124
|
-
}) => Promise<any>;
|
|
125
|
-
/**
|
|
126
|
-
* 更新nocobase数据
|
|
127
|
-
*/
|
|
128
|
-
export declare const updateNocobaseData: (params: {
|
|
129
|
-
key: string;
|
|
130
|
-
data: any;
|
|
131
|
-
headers?: any;
|
|
132
|
-
query?: Record<string, any> | undefined;
|
|
133
|
-
}) => Promise<any>;
|
|
134
|
-
/**
|
|
135
|
-
* 获取nocobase数据列表
|
|
136
|
-
*/
|
|
137
|
-
export declare const getNocobaseDataList: (allParams: {
|
|
138
|
-
key: string;
|
|
139
|
-
params: {
|
|
140
|
-
page: number;
|
|
141
|
-
pageSize: number;
|
|
142
|
-
};
|
|
143
|
-
headers?: any;
|
|
144
|
-
}) => Promise<any>;
|
|
145
|
-
/**
|
|
146
|
-
* 删除nocobase数据
|
|
147
|
-
*/
|
|
148
|
-
export declare const deleteNocobaseData: (key: string, id: string, headers?: any) => Promise<any>;
|
|
149
|
-
/**
|
|
150
|
-
* 获取formSettingMeta数据
|
|
151
|
-
* @param params 请求参数
|
|
152
|
-
* @param params.sectionCodes 配置段代码数组,如 ['payment']
|
|
153
|
-
* @param params.businessCode 业务代码
|
|
154
|
-
* @param params.channelCode 渠道代码
|
|
155
|
-
* @param params.isBoard 是否包含board_code参数
|
|
156
|
-
* @returns Promise<any> 返回设置元数据
|
|
157
|
-
*/
|
|
158
|
-
export declare const getFormSettingMetaData: (params: {
|
|
159
|
-
sectionCodes: string[];
|
|
160
|
-
businessCode?: string | undefined;
|
|
161
|
-
channelCode?: string | undefined;
|
|
162
|
-
isBoard?: boolean | undefined;
|
|
163
|
-
}) => Promise<any>;
|
|
164
|
-
/**
|
|
165
|
-
* 更新租户设置数据
|
|
166
|
-
* @param params 请求参数
|
|
167
|
-
* @param params.businessCode 业务代码
|
|
168
|
-
* @param params.channelCode 渠道代码
|
|
169
|
-
* @param params.boardCode 板块代码
|
|
170
|
-
* @param params.data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
|
|
171
|
-
* @returns Promise<any> 返回更新结果
|
|
172
|
-
*/
|
|
173
|
-
export declare const updateTenantSetting: (params: {
|
|
174
|
-
business_code?: string | undefined;
|
|
175
|
-
channel_code?: string | undefined;
|
|
176
|
-
board_code?: string | undefined;
|
|
177
|
-
data: Record<string, any>;
|
|
178
|
-
}) => Promise<any>;
|
|
179
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* URL参数处理工具方法
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* 从浏览器URL获取查询参数
|
|
6
|
-
* @returns Record<string, string> URL查询参数对象
|
|
7
|
-
*/
|
|
8
|
-
export declare const getUrlParams: () => Record<string, string>;
|
|
9
|
-
/**
|
|
10
|
-
* 从URL参数中提取formSettingMeta相关的参数
|
|
11
|
-
* @param urlParams URL查询参数对象,如果不传则自动从浏览器获取
|
|
12
|
-
* @returns 包含business_code、channel_code和isBoard参数的对象
|
|
13
|
-
*/
|
|
14
|
-
export declare const getFormSettingParams: (urlParams?: Record<string, string>) => {
|
|
15
|
-
businessCode: string;
|
|
16
|
-
channelCode: string;
|
|
17
|
-
isBoard: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* 根据URL参数更新租户设置数据
|
|
21
|
-
* @param data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
|
|
22
|
-
* @returns Promise<any> 返回更新结果
|
|
23
|
-
*/
|
|
24
|
-
export declare const updateTenantSettingFromUrl: (data: Record<string, any>) => Promise<any>;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { LocalSettingsType } from '../../table/types';
|
|
4
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
5
|
-
export declare type OperationItem = {
|
|
6
|
-
label?: string;
|
|
7
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
8
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
9
|
-
openTitle: string;
|
|
10
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
11
|
-
key: string;
|
|
12
|
-
buttonProps?: any;
|
|
13
|
-
onClick?: (record: any) => void;
|
|
14
|
-
afterClose?: () => void;
|
|
15
|
-
};
|
|
16
|
-
export interface DataSourceTableProps {
|
|
17
|
-
__id?: string;
|
|
18
|
-
currentComponentId?: string;
|
|
19
|
-
currentSettingKey?: string;
|
|
20
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
21
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
22
|
-
titleButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
tableButtons?: {
|
|
28
|
-
show: boolean;
|
|
29
|
-
maxCount: number;
|
|
30
|
-
items: OperationItem[];
|
|
31
|
-
};
|
|
32
|
-
buttons?: any[];
|
|
33
|
-
operation?: {
|
|
34
|
-
show: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
width: number;
|
|
37
|
-
align: 'left' | 'center' | 'right';
|
|
38
|
-
fixed: 'left' | 'right' | false;
|
|
39
|
-
type: 'link' | 'button';
|
|
40
|
-
items: OperationItem[];
|
|
41
|
-
};
|
|
42
|
-
operationContent?: {
|
|
43
|
-
[key: string]: React.ReactNode;
|
|
44
|
-
};
|
|
45
|
-
dataSource: DataSourceType;
|
|
46
|
-
columns: ColumnType<any>[];
|
|
47
|
-
filter: any;
|
|
48
|
-
search?: {
|
|
49
|
-
show: boolean;
|
|
50
|
-
placeholder: string;
|
|
51
|
-
};
|
|
52
|
-
__designMode: string;
|
|
53
|
-
componentId: string;
|
|
54
|
-
clickToDetail?: {
|
|
55
|
-
show: boolean;
|
|
56
|
-
useCustomAction: boolean;
|
|
57
|
-
actionType: string;
|
|
58
|
-
openMode: 'modal' | 'drawer';
|
|
59
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
60
|
-
openTitle: string;
|
|
61
|
-
key: string;
|
|
62
|
-
};
|
|
63
|
-
onRow?: any;
|
|
64
|
-
filterBy?: Record<string, any>;
|
|
65
|
-
sortBy: string;
|
|
66
|
-
tabs?: {
|
|
67
|
-
show: boolean;
|
|
68
|
-
type: string;
|
|
69
|
-
items: {
|
|
70
|
-
name: string;
|
|
71
|
-
filterBy: Record<string, any>;
|
|
72
|
-
sortBy: string;
|
|
73
|
-
}[];
|
|
74
|
-
};
|
|
75
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
76
|
-
extraParams?: {
|
|
77
|
-
list?: Record<string, any>;
|
|
78
|
-
get?: Record<string, any>;
|
|
79
|
-
update?: Record<string, any>;
|
|
80
|
-
create?: Record<string, any>;
|
|
81
|
-
destroy?: Record<string, any>;
|
|
82
|
-
};
|
|
83
|
-
localSettings?: LocalSettingsType;
|
|
84
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
'zh-CN': string;
|
|
10
|
-
'zh-HK': string;
|
|
11
|
-
original: string;
|
|
12
|
-
};
|
|
13
|
-
code: string;
|
|
14
|
-
calling_code: string;
|
|
15
|
-
currency_code: string;
|
|
16
|
-
sort: number;
|
|
17
|
-
status: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCountries: () => {
|
|
23
|
-
data: Country[];
|
|
24
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
2
|
-
export interface TranslationValue {
|
|
3
|
-
en: string;
|
|
4
|
-
'zh-CN': string;
|
|
5
|
-
'zh-HK': string;
|
|
6
|
-
original: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TranslationProps {
|
|
9
|
-
renderMode: ModeType;
|
|
10
|
-
value?: TranslationValue;
|
|
11
|
-
onChange?: (value: TranslationValue) => void;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
type?: 'text' | 'textarea';
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface VariablesContextType {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
variables?: Record<string, any>;
|
|
5
|
-
registerVariable?: (value: Record<string, any>) => void;
|
|
6
|
-
parseVariable?: (str: string, localVariables?: Record<string, any>) => any;
|
|
7
|
-
registerValueVariable?: (componentId: string, value: Record<string, any>) => void;
|
|
8
|
-
registerFunctionVariable?: (componentId: string, value: Record<string, any>) => void;
|
|
9
|
-
subscribeVariables?: (listener: (allVariables: Record<string, any>, updateVariables: Record<string, any>) => void) => () => void;
|
|
10
|
-
config?: {
|
|
11
|
-
disabledHistoryListener?: boolean;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare const VariablesContext: import("react").Context<VariablesContextType>;
|
|
15
|
-
export default VariablesContext;
|