@next-bricks/presentational-bricks 1.337.0 → 1.337.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/deploy/contract.yaml +108 -108
- package/dist/bricks.json +22 -22
- package/dist/index.afcbac66.js +2 -0
- package/dist/index.afcbac66.js.map +1 -0
- package/package.json +3 -3
- package/dist/index.81d05616.js +0 -2
- package/dist/index.81d05616.js.map +0 -1
- package/dist/types/agent-status/AgentStatus.d.ts +0 -7
- package/dist/types/agent-status/index.d.ts +0 -59
- package/dist/types/avatar-upload/AvatarUpload.d.ts +0 -10
- package/dist/types/avatar-upload/index.d.ts +0 -51
- package/dist/types/banner-display-card-list/BannerDisplayCardList.d.ts +0 -15
- package/dist/types/banner-display-card-list/index.d.ts +0 -25
- package/dist/types/basic-icon/BasicIcon.d.ts +0 -17
- package/dist/types/basic-icon/index.d.ts +0 -96
- package/dist/types/basic-progress/BasicProgress.d.ts +0 -36
- package/dist/types/basic-progress/index.d.ts +0 -122
- package/dist/types/brick-alert/BrickAlert.d.ts +0 -21
- package/dist/types/brick-alert/index.d.ts +0 -204
- package/dist/types/brick-alert-level/BrickAlertLevel.d.ts +0 -7
- package/dist/types/brick-alert-level/index.d.ts +0 -48
- package/dist/types/brick-alert-number/BrickAlertNumber.d.ts +0 -6
- package/dist/types/brick-alert-number/index.d.ts +0 -27
- package/dist/types/brick-alert-status/BrickAlertStatus.d.ts +0 -8
- package/dist/types/brick-alert-status/index.d.ts +0 -68
- package/dist/types/brick-alert-value/BrickAlertValue.d.ts +0 -7
- package/dist/types/brick-alert-value/index.d.ts +0 -28
- package/dist/types/brick-button/BrickButton.d.ts +0 -11
- package/dist/types/brick-button/index.d.ts +0 -2
- package/dist/types/brick-calendar/index.d.ts +0 -141
- package/dist/types/brick-cluster-type/BrickClusterType.d.ts +0 -8
- package/dist/types/brick-cluster-type/index.d.ts +0 -63
- package/dist/types/brick-code-display/BrickCodeDisplay.d.ts +0 -13
- package/dist/types/brick-code-display/index.d.ts +0 -2
- package/dist/types/brick-collapse-card/BrickCollapseCard.d.ts +0 -25
- package/dist/types/brick-collapse-card/index.d.ts +0 -175
- package/dist/types/brick-collection-instance-execution/BrickCollectionInstanceExecution.d.ts +0 -7
- package/dist/types/brick-collection-instance-execution/index.d.ts +0 -2
- package/dist/types/brick-conditional-display/BrickConditionalDisplay.d.ts +0 -19
- package/dist/types/brick-conditional-display/index.d.ts +0 -99
- package/dist/types/brick-delete-confirm/BrickDeleteConfirm.d.ts +0 -21
- package/dist/types/brick-delete-confirm/index.d.ts +0 -2
- package/dist/types/brick-descriptions/BrickDescriptions.d.ts +0 -22
- package/dist/types/brick-descriptions/index.d.ts +0 -192
- package/dist/types/brick-display-structs/BrickDisplayStructs.d.ts +0 -9
- package/dist/types/brick-display-structs/index.d.ts +0 -66
- package/dist/types/brick-divider/BrickDivider.d.ts +0 -12
- package/dist/types/brick-divider/index.d.ts +0 -76
- package/dist/types/brick-form/BrickForm.d.ts +0 -73
- package/dist/types/brick-form/components/brick-checkbox/BrickCheckbox.d.ts +0 -11
- package/dist/types/brick-form/components/brick-date-picker/BrickDatePicker.d.ts +0 -9
- package/dist/types/brick-form/components/brick-input/BrickInput.d.ts +0 -15
- package/dist/types/brick-form/components/brick-input-number/BrickInputNumber.d.ts +0 -9
- package/dist/types/brick-form/components/brick-instance-selector/BrickInstanceSelector.d.ts +0 -13
- package/dist/types/brick-form/components/brick-radio/BrickRadio.d.ts +0 -12
- package/dist/types/brick-form/components/brick-select/BrickSelect.d.ts +0 -18
- package/dist/types/brick-form/components/brick-switch/BrickSwitch.d.ts +0 -14
- package/dist/types/brick-form/components/brick-time-picker/BrickTimePicker.d.ts +0 -8
- package/dist/types/brick-form/components/wrapper-form-item/WrapperFormItem.d.ts +0 -10
- package/dist/types/brick-form/index.d.ts +0 -12
- package/dist/types/brick-form/interfaces/brick-component.d.ts +0 -5
- package/dist/types/brick-form/interfaces/index.d.ts +0 -1
- package/dist/types/brick-form/processor/handleChange.d.ts +0 -1
- package/dist/types/brick-form/processor/index.d.ts +0 -1
- package/dist/types/brick-general-search/BrickGeneralSearch.d.ts +0 -28
- package/dist/types/brick-general-search/index.d.ts +0 -233
- package/dist/types/brick-humanize-time/BrickHumanizeTime.d.ts +0 -16
- package/dist/types/brick-humanize-time/index.d.ts +0 -101
- package/dist/types/brick-illustration/BrickIllustration.d.ts +0 -14
- package/dist/types/brick-illustration/index.d.ts +0 -87
- package/dist/types/brick-input/BrickInput.d.ts +0 -11
- package/dist/types/brick-input/index.d.ts +0 -73
- package/dist/types/brick-link/BrickLink.d.ts +0 -21
- package/dist/types/brick-link/index.d.ts +0 -208
- package/dist/types/brick-list/BrickList.d.ts +0 -20
- package/dist/types/brick-list/index.d.ts +0 -6
- package/dist/types/brick-placeholder/BrickPlaceholder.d.ts +0 -6
- package/dist/types/brick-placeholder/index.d.ts +0 -59
- package/dist/types/brick-quick-entries/BrickQuickEntries.d.ts +0 -16
- package/dist/types/brick-quick-entries/index.d.ts +0 -153
- package/dist/types/brick-rate/BrickRate.d.ts +0 -11
- package/dist/types/brick-rate/index.d.ts +0 -99
- package/dist/types/brick-result/BrickResult.d.ts +0 -21
- package/dist/types/brick-result/components/IllustrationWrapper.d.ts +0 -16
- package/dist/types/brick-result/index.d.ts +0 -77
- package/dist/types/brick-table/BrickTable.d.ts +0 -57
- package/dist/types/brick-table/brickTableHelper.d.ts +0 -6
- package/dist/types/brick-table/index.d.ts +0 -828
- package/dist/types/brick-tag/BrickTag.d.ts +0 -35
- package/dist/types/brick-tag/index.d.ts +0 -194
- package/dist/types/brick-timeline/BrickTimeline.d.ts +0 -16
- package/dist/types/brick-timeline/TimelineCard.d.ts +0 -15
- package/dist/types/brick-timeline/index.d.ts +0 -119
- package/dist/types/brick-timeline/processor.d.ts +0 -5
- package/dist/types/brick-tree/BrickTree.d.ts +0 -67
- package/dist/types/brick-tree/index.d.ts +0 -325
- package/dist/types/brick-user/BrickUser.d.ts +0 -15
- package/dist/types/brick-user/index.d.ts +0 -130
- package/dist/types/brick-user-group/BrickUserGroup.d.ts +0 -12
- package/dist/types/brick-user-group/index.d.ts +0 -61
- package/dist/types/brick-utils/index.d.ts +0 -44
- package/dist/types/brick-value-mapping/BrickValueMapping.d.ts +0 -24
- package/dist/types/brick-value-mapping/index.d.ts +0 -132
- package/dist/types/button-wrapper/ButtonWrapper.d.ts +0 -7
- package/dist/types/button-wrapper/index.d.ts +0 -4
- package/dist/types/card-item/CardItem.d.ts +0 -52
- package/dist/types/card-item/index.d.ts +0 -392
- package/dist/types/code-editor/CodeEditor.d.ts +0 -19
- package/dist/types/code-editor/brace/mode.d.ts +0 -4
- package/dist/types/code-editor/brace/theme.d.ts +0 -3
- package/dist/types/code-editor/index.d.ts +0 -118
- package/dist/types/collapse-info-list/CollapseInfoList.d.ts +0 -19
- package/dist/types/collapse-info-list/index.d.ts +0 -53
- package/dist/types/collapsible-card-item/CollapsibleCardItem.d.ts +0 -19
- package/dist/types/collapsible-card-item/index.d.ts +0 -165
- package/dist/types/copyable-text/CopyableText.d.ts +0 -12
- package/dist/types/copyable-text/index.d.ts +0 -73
- package/dist/types/cost-time/CostTime.d.ts +0 -9
- package/dist/types/cost-time/i18n/constants.d.ts +0 -20
- package/dist/types/cost-time/index.d.ts +0 -73
- package/dist/types/crontab-display/CrontabDisplay.d.ts +0 -5
- package/dist/types/crontab-display/index.d.ts +0 -47
- package/dist/types/datetime-selector/DatetimeSelector.d.ts +0 -19
- package/dist/types/datetime-selector/index.d.ts +0 -167
- package/dist/types/datetime-selector/processor.d.ts +0 -16
- package/dist/types/digital-number/DigitalNumber.d.ts +0 -21
- package/dist/types/digital-number/index.d.ts +0 -101
- package/dist/types/dropdown-button/DropdownButton.d.ts +0 -17
- package/dist/types/dropdown-button/index.d.ts +0 -106
- package/dist/types/dropdown-select/DropdownSelect.d.ts +0 -37
- package/dist/types/dropdown-select/index.d.ts +0 -231
- package/dist/types/dynamic-content/index.d.ts +0 -35
- package/dist/types/dynamic-grid-container/DynamicGridContainer.d.ts +0 -9
- package/dist/types/dynamic-grid-container/index.d.ts +0 -47
- package/dist/types/entry-card-item/EntryCardItem.d.ts +0 -20
- package/dist/types/entry-card-item/index.d.ts +0 -146
- package/dist/types/general-badge/index.d.ts +0 -95
- package/dist/types/general-carousel/GeneralCarousel.d.ts +0 -28
- package/dist/types/general-carousel/index.d.ts +0 -197
- package/dist/types/general-iframe/index.d.ts +0 -62
- package/dist/types/general-image/GeneralImage.d.ts +0 -14
- package/dist/types/general-image/index.d.ts +0 -124
- package/dist/types/general-label/GeneralLabel.d.ts +0 -12
- package/dist/types/general-label/index.d.ts +0 -79
- package/dist/types/general-list/GeneralList.d.ts +0 -8
- package/dist/types/general-list/index.d.ts +0 -59
- package/dist/types/general-pagination/GeneralPagination.d.ts +0 -12
- package/dist/types/general-pagination/index.d.ts +0 -108
- package/dist/types/general-preview-image/GeneralPreviewImage.d.ts +0 -9
- package/dist/types/general-preview-image/components/Image.d.ts +0 -35
- package/dist/types/general-preview-image/components/Operations.d.ts +0 -20
- package/dist/types/general-preview-image/components/Preview.d.ts +0 -24
- package/dist/types/general-preview-image/components/PreviewGroup.d.ts +0 -40
- package/dist/types/general-preview-image/components/getFixScaleEleTransPosition.d.ts +0 -16
- package/dist/types/general-preview-image/components/hooks/useImageTransform.d.ts +0 -23
- package/dist/types/general-preview-image/components/previewConfig.d.ts +0 -8
- package/dist/types/general-preview-image/index.d.ts +0 -75
- package/dist/types/general-slider/GeneralSlider.d.ts +0 -18
- package/dist/types/general-slider/index.d.ts +0 -118
- package/dist/types/general-tooltip/GeneralTooltip.d.ts +0 -19
- package/dist/types/general-tooltip/index.d.ts +0 -117
- package/dist/types/general-transfer/GeneralTransfer.d.ts +0 -19
- package/dist/types/general-transfer/index.d.ts +0 -160
- package/dist/types/general-video/GeneralVideo.d.ts +0 -11
- package/dist/types/general-video/index.d.ts +0 -51
- package/dist/types/i18n/constants.d.ts +0 -51
- package/dist/types/info-display-card-list/InfoDisplayCardList.d.ts +0 -27
- package/dist/types/info-display-card-list/index.d.ts +0 -148
- package/dist/types/interfaces/brick-collapse-card.d.ts +0 -4
- package/dist/types/interfaces/brick-result.d.ts +0 -27
- package/dist/types/interfaces/brick-tag.d.ts +0 -35
- package/dist/types/interfaces/brick-tree.d.ts +0 -5
- package/dist/types/interfaces/common.d.ts +0 -15
- package/dist/types/interfaces/dropdown-select.d.ts +0 -7
- package/dist/types/interfaces/index.d.ts +0 -2
- package/dist/types/jsx.d.ts +0 -315
- package/dist/types/log-display/LogDisplay.d.ts +0 -8
- package/dist/types/log-display/index.d.ts +0 -54
- package/dist/types/markdown-display/MarkdownDisplay.d.ts +0 -17
- package/dist/types/markdown-display/SyntaxHighlighter.d.ts +0 -13
- package/dist/types/markdown-display/index.d.ts +0 -88
- package/dist/types/markdown-editor/MarkdownEditor.d.ts +0 -23
- package/dist/types/markdown-editor/index.d.ts +0 -154
- package/dist/types/modal-confirm/ModalConfirm.d.ts +0 -30
- package/dist/types/modal-confirm/index.d.ts +0 -231
- package/dist/types/qrcode-download/index.d.ts +0 -77
- package/dist/types/qrcode-download/utils.d.ts +0 -6
- package/dist/types/rank-table/RankTable.d.ts +0 -21
- package/dist/types/rank-table/RankTableHelper.d.ts +0 -14
- package/dist/types/rank-table/index.d.ts +0 -215
- package/dist/types/single-field-edit/SingleFieldEdit.d.ts +0 -22
- package/dist/types/single-field-edit/index.d.ts +0 -148
- package/dist/types/statistic-card/StatisticCard.d.ts +0 -15
- package/dist/types/statistic-card/index.d.ts +0 -130
- package/dist/types/table-transfer/TableTransfer.d.ts +0 -32
- package/dist/types/table-transfer/TableTransferHelper.d.ts +0 -14
- package/dist/types/table-transfer/index.d.ts +0 -123
- package/dist/types/template-breadcrumb/index.d.ts +0 -67
- package/dist/types/text-collapse/TextCollapse.d.ts +0 -7
- package/dist/types/text-collapse/index.d.ts +0 -33
- package/dist/types/tree-transfer/TreeTransfer.d.ts +0 -18
- package/dist/types/tree-transfer/index.d.ts +0 -96
- package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleBox.d.ts +0 -19
- package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleBoxLeft.d.ts +0 -10
- package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleBoxRight.d.ts +0 -9
- package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleButton.d.ts +0 -7
- package/dist/types/tree-transfer/treeShuttleBox/index.d.ts +0 -3
- package/dist/types/tree-transfer/treeShuttleBox/interfaceType.d.ts +0 -14
- package/dist/types/tree-transfer/treeShuttleBox/tool.d.ts +0 -67
- package/dist/types/tree-transfer/treeShuttleBox/useTreeContext.d.ts +0 -35
- package/dist/types/tree-transfer/treeShuttleBox/useTreeShuttle.d.ts +0 -31
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TooltipProps } from "antd";
|
|
3
|
-
import { TagProps } from "antd/lib/tag";
|
|
4
|
-
import { CheckableTagProps } from "antd/lib/tag/CheckableTag";
|
|
5
|
-
import { MenuIcon } from "@next-core/brick-types";
|
|
6
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
7
|
-
import { TagTypeProps, TagListType } from "../interfaces/brick-tag";
|
|
8
|
-
export { Color } from "../interfaces/brick-tag";
|
|
9
|
-
export declare const circleIcon: MenuIcon;
|
|
10
|
-
export interface BrickTagProps extends TagProps {
|
|
11
|
-
componentType?: TagTypeProps;
|
|
12
|
-
configProps?: TagProps | CheckableTagProps;
|
|
13
|
-
tagList: TagListType[];
|
|
14
|
-
textEllipsis?: boolean;
|
|
15
|
-
tagStyle?: React.CSSProperties;
|
|
16
|
-
tagCheckedStyle?: React.CSSProperties;
|
|
17
|
-
tagHoverStyle?: React.CSSProperties;
|
|
18
|
-
handleOnChange?: (items: TagListType[]) => void;
|
|
19
|
-
handleOnClose?: (current: any, tagList: TagListType[]) => void;
|
|
20
|
-
handleOnClick?: (tag: TagListType) => void;
|
|
21
|
-
multipleCheck?: boolean;
|
|
22
|
-
label?: string;
|
|
23
|
-
defaultCheckedTag?: string | string[];
|
|
24
|
-
showTagCircle?: boolean;
|
|
25
|
-
shape?: "default" | "round";
|
|
26
|
-
closable?: boolean;
|
|
27
|
-
disabledTooltip?: string;
|
|
28
|
-
cancelable?: boolean;
|
|
29
|
-
tooltipProps?: TooltipProps;
|
|
30
|
-
afterBrick?: {
|
|
31
|
-
useBrick: UseBrickConf;
|
|
32
|
-
data?: any;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export declare function BrickTag(props: BrickTagProps): React.ReactElement;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
|
|
3
|
-
import { TooltipProps } from "antd";
|
|
4
|
-
import { Color, TagTypeProps, TagListType } from "../interfaces/brick-tag";
|
|
5
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
6
|
-
export interface BrickTagElementProps {
|
|
7
|
-
label?: string;
|
|
8
|
-
tagList?: TagListType[] | string[];
|
|
9
|
-
showTagCircle?: boolean;
|
|
10
|
-
color?: string | Color;
|
|
11
|
-
dataSource?: Record<string, any>;
|
|
12
|
-
closable?: boolean;
|
|
13
|
-
componentType?: TagTypeProps;
|
|
14
|
-
default?: string | string[];
|
|
15
|
-
configProps?: Record<string, any>;
|
|
16
|
-
disabledTooltip?: string;
|
|
17
|
-
tooltipProps?: TooltipProps;
|
|
18
|
-
fields?: {
|
|
19
|
-
label: string;
|
|
20
|
-
key: string;
|
|
21
|
-
icon?: string;
|
|
22
|
-
tagList?: string;
|
|
23
|
-
};
|
|
24
|
-
textEllipsis?: boolean;
|
|
25
|
-
tagStyle?: React.CSSProperties;
|
|
26
|
-
tagCheckedStyle?: React.CSSProperties;
|
|
27
|
-
tagHoverStyle?: React.CSSProperties;
|
|
28
|
-
afterBrick?: {
|
|
29
|
-
useBrick: UseBrickConf;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @id presentational-bricks.brick-tag
|
|
34
|
-
* @name presentational-bricks.brick-tag
|
|
35
|
-
* @editor shared-editors.general-tag--editor
|
|
36
|
-
* @docKind brick
|
|
37
|
-
* @description 进行标记和分类的小标签,同时支持基本标签和可选中标签
|
|
38
|
-
* @author lynette
|
|
39
|
-
* @slots
|
|
40
|
-
* @history
|
|
41
|
-
* 1.167.1:新增属性 `disabledTooltip`;在 TagListType 中新增 `color`,`disabled`,`disabledTooltip` 字段,支持对特定标签设置特殊颜色、禁用、禁用文案。
|
|
42
|
-
* 1.97.0:属性`default`支持数组,新增事件`checked.update.v2`
|
|
43
|
-
* 1.65.0:新增属性`shape`,支持大圆角
|
|
44
|
-
* 1.60.0:新增 `color` 属性代替 `configProps.color` 的使用方式
|
|
45
|
-
* @memo
|
|
46
|
-
* @noInheritDoc
|
|
47
|
-
*/
|
|
48
|
-
export declare class BrickTagElement extends UpdatingElement implements BrickTagElementProps {
|
|
49
|
-
/**
|
|
50
|
-
* @description 选中的 tag 的 key
|
|
51
|
-
*/
|
|
52
|
-
checkedUpdate: EventEmitter<string[]>;
|
|
53
|
-
/**
|
|
54
|
-
* @description 选中的 tag
|
|
55
|
-
*/
|
|
56
|
-
checkedUpdateV2: EventEmitter<{
|
|
57
|
-
label: string;
|
|
58
|
-
key: string;
|
|
59
|
-
}[]>;
|
|
60
|
-
/**
|
|
61
|
-
* @description 当前关闭的 tag 和剩余的tagList
|
|
62
|
-
*/
|
|
63
|
-
tagClose: EventEmitter<{
|
|
64
|
-
current: Record<string, any>;
|
|
65
|
-
tagList: Record<string, any>[];
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
* @detail TagListType
|
|
69
|
-
* @description 当前点击的tag
|
|
70
|
-
*/
|
|
71
|
-
tagClick: EventEmitter<TagListType>;
|
|
72
|
-
/**
|
|
73
|
-
* @description 标签前的 label
|
|
74
|
-
* @group basic
|
|
75
|
-
*/
|
|
76
|
-
label?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @description 标签列表
|
|
79
|
-
* @group basic
|
|
80
|
-
*/
|
|
81
|
-
tagList?: TagListType[] | string[];
|
|
82
|
-
/**
|
|
83
|
-
* @default false
|
|
84
|
-
* @description 是否在标签内显示小圆点
|
|
85
|
-
* @group basic
|
|
86
|
-
*/
|
|
87
|
-
showTagCircle?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* @description 是否显示卡片
|
|
90
|
-
* @group basic
|
|
91
|
-
*/
|
|
92
|
-
showCard?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* @description 标签的颜色配置,当 `componentType=Tag` 且 `closable!=true` 时才有效,除了提供内置八种主题色,也支持直接赋色值(如 `#f5f5f5`)使用
|
|
95
|
-
* @group basic
|
|
96
|
-
*/
|
|
97
|
-
color?: string | Color;
|
|
98
|
-
/**
|
|
99
|
-
* @description 是否能多选,多选场景下右上角会有小圆点提示
|
|
100
|
-
* @group basic
|
|
101
|
-
*/
|
|
102
|
-
multipleCheck?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* @description 数据源,通过 useResolves 从后台接口获取
|
|
105
|
-
* @deprecated
|
|
106
|
-
* @group advanced
|
|
107
|
-
*/
|
|
108
|
-
dataSource?: Record<string, any>;
|
|
109
|
-
/**
|
|
110
|
-
* @default false
|
|
111
|
-
* @description 标签是否可以关闭
|
|
112
|
-
* @group basic
|
|
113
|
-
*/
|
|
114
|
-
closable?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* @default "Tag"
|
|
117
|
-
* @description 组件类型,对应 ant-design 中的基本标签和可选中标签
|
|
118
|
-
* @group advanced
|
|
119
|
-
*/
|
|
120
|
-
componentType?: TagTypeProps;
|
|
121
|
-
/**
|
|
122
|
-
* @description componentType 为`CheckableTag`的时候默认选中的标签 key
|
|
123
|
-
* @group advanced
|
|
124
|
-
*/
|
|
125
|
-
default?: string | string[];
|
|
126
|
-
/**
|
|
127
|
-
* @description 标签是否可以取消单选,在 `componentType` 为 `CheckableTag` 且 `multipleCheck` 为 `false` 时生效。
|
|
128
|
-
* @group advanced
|
|
129
|
-
*/
|
|
130
|
-
cancelable?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* @description ant-design 相关配置项, [具体查阅](https://ant.design/components/tag-cn/#Tag) ,只有在 componentType=Tag 时才有效
|
|
133
|
-
* @group advanced
|
|
134
|
-
*/
|
|
135
|
-
configProps?: Record<string, any>;
|
|
136
|
-
/**
|
|
137
|
-
* @description 禁用标签的 tooltip
|
|
138
|
-
* @group basic
|
|
139
|
-
*/
|
|
140
|
-
disabledTooltip?: string;
|
|
141
|
-
/**
|
|
142
|
-
* @description 标签的 tooltip 相关配置项, [具体查阅](https://ant.design/components/tooltip-cn/#API)
|
|
143
|
-
* @group advanced
|
|
144
|
-
*/
|
|
145
|
-
tooltipProps?: TooltipProps;
|
|
146
|
-
/**
|
|
147
|
-
* @description 这里可以规定从 dataSource 中的哪个字段取标签渲染的数据,例如 dataSource 返回的数据为 [{key:"1"},{key:"2"}],则可写成 {label: "key", key: "key"}
|
|
148
|
-
* @deprecated
|
|
149
|
-
* @group advanced
|
|
150
|
-
*/
|
|
151
|
-
fields?: {
|
|
152
|
-
label: string;
|
|
153
|
-
key: string;
|
|
154
|
-
icon?: string;
|
|
155
|
-
tagList?: string;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* @default false
|
|
159
|
-
* @description 文字是否超出省略
|
|
160
|
-
* @group ui
|
|
161
|
-
*/
|
|
162
|
-
textEllipsis?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* @description 标签的自定义样式
|
|
165
|
-
* @group ui
|
|
166
|
-
*/
|
|
167
|
-
tagStyle?: React.CSSProperties;
|
|
168
|
-
/**
|
|
169
|
-
* @description 标签选中的自定义样式
|
|
170
|
-
* @group ui
|
|
171
|
-
*/
|
|
172
|
-
tagCheckedStyle?: React.CSSProperties;
|
|
173
|
-
/**
|
|
174
|
-
* @description 标签 Hover 的自定义样式
|
|
175
|
-
* @group ui
|
|
176
|
-
*/
|
|
177
|
-
tagHoverStyle?: React.CSSProperties;
|
|
178
|
-
/**
|
|
179
|
-
* @description 最后一个tag后面使用子构件,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)
|
|
180
|
-
* @group advanced
|
|
181
|
-
*/
|
|
182
|
-
afterBrick?: {
|
|
183
|
-
useBrick: UseBrickConf;
|
|
184
|
-
data: unknown;
|
|
185
|
-
};
|
|
186
|
-
connectedCallback(): void;
|
|
187
|
-
disconnectedCallback(): void;
|
|
188
|
-
private _getBrickTagNode;
|
|
189
|
-
private _initData;
|
|
190
|
-
protected _render(): void;
|
|
191
|
-
private _handleOnClose;
|
|
192
|
-
private _handleOnChange;
|
|
193
|
-
private _handleOnClick;
|
|
194
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
3
|
-
import { StatusColor, TimelineItem } from "./index";
|
|
4
|
-
export declare type TimeType = "second" | "default";
|
|
5
|
-
export declare type ItemProps = TimelineItem | Record<string, any>;
|
|
6
|
-
export interface BrickTimelineProps {
|
|
7
|
-
itemList: ItemProps[];
|
|
8
|
-
useBrick?: UseBrickConf;
|
|
9
|
-
statusMap?: Record<string, StatusColor>;
|
|
10
|
-
type?: "base" | "extension";
|
|
11
|
-
timeType?: TimeType;
|
|
12
|
-
showCard?: boolean;
|
|
13
|
-
mode?: "left" | "right" | "alternate";
|
|
14
|
-
onClick?: (data: ItemProps) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function BrickTimeline(props: BrickTimelineProps): React.ReactElement;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import moment from "moment";
|
|
3
|
-
import { ItemProps } from "./BrickTimeline";
|
|
4
|
-
export interface TimelineCardProps {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
timestamp: moment.Moment;
|
|
8
|
-
link?: string;
|
|
9
|
-
showLeftDate?: boolean;
|
|
10
|
-
highlight?: boolean;
|
|
11
|
-
itemData?: ItemProps;
|
|
12
|
-
onClick?: (data: ItemProps) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function TimelineBaseCard(props: TimelineCardProps): React.ReactElement;
|
|
15
|
-
export declare function TimelineExtensionCard(props: TimelineCardProps): React.ReactElement;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
|
|
2
|
-
import { BrickTimelineProps, ItemProps } from "./BrickTimeline";
|
|
3
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
4
|
-
export interface BrickTimelineElementProps {
|
|
5
|
-
itemList?: BrickTimelineProps["itemList"];
|
|
6
|
-
useBrick?: UseBrickConf;
|
|
7
|
-
statusMap?: BrickTimelineProps["statusMap"];
|
|
8
|
-
type?: BrickTimelineProps["type"];
|
|
9
|
-
timeType?: BrickTimelineProps["timeType"];
|
|
10
|
-
mode?: BrickTimelineProps["mode"];
|
|
11
|
-
}
|
|
12
|
-
export declare type StatusColor = "green" | "red" | "gray" | "blue";
|
|
13
|
-
export interface TimelineItem {
|
|
14
|
-
title: string;
|
|
15
|
-
description: string;
|
|
16
|
-
time: string | number;
|
|
17
|
-
status: string;
|
|
18
|
-
link: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @id presentational-bricks.brick-timeline
|
|
22
|
-
* @name presentational-bricks.brick-timeline
|
|
23
|
-
* @docKind brick
|
|
24
|
-
* @description 垂直展示的时间流信息,常用于变更历史、工作动态等
|
|
25
|
-
* @author jo
|
|
26
|
-
* @slots
|
|
27
|
-
* @history
|
|
28
|
-
* @memo
|
|
29
|
-
* ## useBrick
|
|
30
|
-
*
|
|
31
|
-
* 自定义展示子构件时,子构件收到的数据格式为:
|
|
32
|
-
*
|
|
33
|
-
* ```js
|
|
34
|
-
* export interface Data {
|
|
35
|
-
* item: object; // 单项数据
|
|
36
|
-
* index: number; // 序号
|
|
37
|
-
* list: object[]; // 所有数据
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* ## StatusColor
|
|
42
|
-
* ```js
|
|
43
|
-
* // 根据时间轴UI规范不同颜色代表不同的状态,通常绿色表示已完成或者成功状态的,红色表示告警或者错误状态,蓝色表示正在进行的当前状态,灰色表示普通状态
|
|
44
|
-
* export type StatusColor = "green" | "red" | "gray" | "blue";
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* ## TimelineItem
|
|
48
|
-
* ```js
|
|
49
|
-
* export interface TimelineItem {
|
|
50
|
-
* title: string;
|
|
51
|
-
* description: string;
|
|
52
|
-
* time: string | number;
|
|
53
|
-
* status: string;
|
|
54
|
-
* link?: string;
|
|
55
|
-
* [key: string]: any
|
|
56
|
-
* }
|
|
57
|
-
* ```
|
|
58
|
-
* @noInheritDoc
|
|
59
|
-
*/
|
|
60
|
-
export declare class BrickTimelineElement extends UpdatingElement implements BrickTimelineElementProps {
|
|
61
|
-
/**
|
|
62
|
-
* @kind TimelineItem[]|Record<string, any>[]
|
|
63
|
-
* @required true
|
|
64
|
-
* @default -
|
|
65
|
-
* @description 数据源
|
|
66
|
-
*/
|
|
67
|
-
itemList: BrickTimelineProps["itemList"];
|
|
68
|
-
/**
|
|
69
|
-
* @kind [UseBrickConf](http://docs.developers.easyops.cn/docs/api-reference/brick-types.usebrickconf)
|
|
70
|
-
* @required true
|
|
71
|
-
* @default -
|
|
72
|
-
* @description 自定义构件
|
|
73
|
-
*/
|
|
74
|
-
useBrick: UseBrickConf;
|
|
75
|
-
/**
|
|
76
|
-
* @kind Record<string, StatusColor>
|
|
77
|
-
* @required false
|
|
78
|
-
* @default -
|
|
79
|
-
* @description 根据数据源状态值映射到相应的颜色
|
|
80
|
-
*/
|
|
81
|
-
statusMap: BrickTimelineProps["statusMap"];
|
|
82
|
-
/**
|
|
83
|
-
* @kind base | extension
|
|
84
|
-
* @required false
|
|
85
|
-
* @default base
|
|
86
|
-
* @description 平台内置的标准时间轴类型,支持内置的基本类型和内置的扩展类型,不使用 `useBrick` 配置第三方构件时,该字段才有效
|
|
87
|
-
*/
|
|
88
|
-
type: BrickTimelineProps["type"];
|
|
89
|
-
/**
|
|
90
|
-
* @kind second | default
|
|
91
|
-
* @required false
|
|
92
|
-
* @default default
|
|
93
|
-
* @description 时间轴时间的具体配置,值为`default`时可以是格式化的字符串 `date` 对象或者毫秒级的时间戳等,除了时间是秒为单位的,其他单位都可不用设置该属性
|
|
94
|
-
*/
|
|
95
|
-
timeType: BrickTimelineProps["timeType"];
|
|
96
|
-
/**
|
|
97
|
-
* @kind boolean
|
|
98
|
-
* @required false
|
|
99
|
-
* @default true
|
|
100
|
-
* @description 是否显示 card 边框
|
|
101
|
-
*/
|
|
102
|
-
showCard: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* @kind left | right | alternate
|
|
105
|
-
* @required false
|
|
106
|
-
* @default left
|
|
107
|
-
* @description 时间轴和内容的相对位置,注意内置的标准时间轴类型不支持该字段的配置,只有使用 `useBrick` 配置第三方构件时可用
|
|
108
|
-
*/
|
|
109
|
-
mode: BrickTimelineProps["mode"];
|
|
110
|
-
/**
|
|
111
|
-
* @detail Record<string, any>
|
|
112
|
-
* @description 标题点击事件,事件详情为所对应的该项的数据(当配置该点击事件时,不要再配置 `TimelineItem` 中的跳转链接 `link` 属性,否则该点击事件无效会优先响应url跳转)
|
|
113
|
-
*/
|
|
114
|
-
clickEvent: EventEmitter<ItemProps>;
|
|
115
|
-
private _handleClick;
|
|
116
|
-
connectedCallback(): void;
|
|
117
|
-
disconnectedCallback(): void;
|
|
118
|
-
protected _render(): void;
|
|
119
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TreeProps, DataNode } from "antd/lib/tree";
|
|
3
|
-
import { BrickTreeNodeProps } from "./index";
|
|
4
|
-
import { checkedFilterProps } from "../interfaces/brick-tree";
|
|
5
|
-
import { EventDataNode } from "rc-tree/lib/interface";
|
|
6
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
7
|
-
export declare const compareFunMap: Record<string, any>;
|
|
8
|
-
export interface BrickTreeProps {
|
|
9
|
-
selectedKeys?: React.Key[];
|
|
10
|
-
checkedKeys?: React.Key[];
|
|
11
|
-
expandedKeys?: React.Key[];
|
|
12
|
-
configProps?: Omit<TreeProps, "selectedKeys" | "checkedKeys" | "expandedKeys">;
|
|
13
|
-
dataSource: BrickTreeNodeProps[];
|
|
14
|
-
searchable?: boolean;
|
|
15
|
-
searchQ?: string;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
searchParent?: boolean;
|
|
18
|
-
checkAllEnabled?: boolean;
|
|
19
|
-
checkedFilterConfig?: checkedFilterProps;
|
|
20
|
-
checkedNotRelevant?: boolean;
|
|
21
|
-
onSelect?(selectedKeys: React.Key[], info: {
|
|
22
|
-
event: "select";
|
|
23
|
-
selected: boolean;
|
|
24
|
-
node: EventDataNode;
|
|
25
|
-
selectedNodes: DataNode[];
|
|
26
|
-
nativeEvent: MouseEvent;
|
|
27
|
-
}): void;
|
|
28
|
-
onCheck?(checkedKeys: React.Key[] | {
|
|
29
|
-
checked: React.Key[];
|
|
30
|
-
halfChecked: React.Key[];
|
|
31
|
-
}): void;
|
|
32
|
-
onCheckV2?(checkedKeys: React.Key[] | {
|
|
33
|
-
checked: React.Key[];
|
|
34
|
-
halfChecked: React.Key[];
|
|
35
|
-
}, info: {
|
|
36
|
-
event: "check";
|
|
37
|
-
checked: boolean;
|
|
38
|
-
checkedNodes: DataNode[];
|
|
39
|
-
nativeEvent: MouseEvent;
|
|
40
|
-
}): void;
|
|
41
|
-
onExpand?(expandedKeys: React.Key[]): void;
|
|
42
|
-
onSearch?(value: string): void;
|
|
43
|
-
suffixBrick?: {
|
|
44
|
-
useBrick: UseBrickConf;
|
|
45
|
-
};
|
|
46
|
-
suffixStopEvent?: boolean;
|
|
47
|
-
afterSearchBrick?: {
|
|
48
|
-
useBrick: UseBrickConf;
|
|
49
|
-
};
|
|
50
|
-
beforeTreeBrick?: {
|
|
51
|
-
useBrick: UseBrickConf;
|
|
52
|
-
};
|
|
53
|
-
showSpecificationTitleStyle?: boolean;
|
|
54
|
-
defaultExpandAll?: boolean;
|
|
55
|
-
deselectable?: boolean;
|
|
56
|
-
alsoSearchByKey?: boolean;
|
|
57
|
-
isFilter?: boolean;
|
|
58
|
-
iconUseBrick?: {
|
|
59
|
-
useBrick: UseBrickConf;
|
|
60
|
-
};
|
|
61
|
-
isDirectory?: boolean;
|
|
62
|
-
hideSelectedNum?: boolean;
|
|
63
|
-
hideBackground?: boolean;
|
|
64
|
-
onlyHighlightBySearch?: boolean;
|
|
65
|
-
height?: number | "auto";
|
|
66
|
-
}
|
|
67
|
-
export declare function BrickTree(props: BrickTreeProps): React.ReactElement;
|