@next-bricks/basic-bricks 1.258.12 → 1.259.0
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 +81 -81
- package/dist/bricks.json +26 -26
- package/dist/index.5b6d32e5.js +10 -0
- package/dist/index.5b6d32e5.js.map +1 -0
- package/dist/stories.json +5 -0
- package/dist/types/basic-bricks/src/advance-list-container/AdvanceListContainer.d.ts +20 -0
- package/dist/types/basic-bricks/src/advance-list-container/index.d.ts +141 -0
- package/dist/types/basic-bricks/src/app-bar/AppBar/AppBar.d.ts +10 -0
- package/dist/types/basic-bricks/src/app-bar/AppBarBreadcrumb/AppBarBreadcrumb.d.ts +11 -0
- package/dist/types/basic-bricks/src/app-bar/AppBarTips/AppBarTips.d.ts +15 -0
- package/dist/types/basic-bricks/src/app-bar/AppDocumentLink/AppDocumentLink.d.ts +9 -0
- package/dist/types/basic-bricks/src/app-bar/AppSetting/AppSetting.d.ts +5 -0
- package/dist/types/basic-bricks/src/app-bar/Desktop/Desktop.d.ts +10 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopApp/DesktopApp.d.ts +12 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopCell/DesktopCell.d.ts +13 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopCustom/DesktopCustom.d.ts +13 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopDir/DesktopDir.d.ts +3 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopDirContent/DesktopDirContent.d.ts +7 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopDirContext.d.ts +16 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopSlider/DesktopSlider.d.ts +10 -0
- package/dist/types/basic-bricks/src/app-bar/DesktopSlider/desktopCursor.d.ts +2 -0
- package/dist/types/basic-bricks/src/app-bar/FavoriteDesktopCell/FavoriteDesktopCell.d.ts +8 -0
- package/dist/types/basic-bricks/src/app-bar/Launchpad/Launchpad.d.ts +5 -0
- package/dist/types/basic-bricks/src/app-bar/LaunchpadButton/LaunchpadButton.d.ts +2 -0
- package/dist/types/basic-bricks/src/app-bar/LaunchpadPortal/LaunchpadPortal.d.ts +6 -0
- package/dist/types/basic-bricks/src/app-bar/LaunchpadService.d.ts +65 -0
- package/dist/types/basic-bricks/src/app-bar/LaunchpadSettingsContext.d.ts +7 -0
- package/dist/types/basic-bricks/src/app-bar/LaunchpadWrapper/LaunchpadWrapper.d.ts +6 -0
- package/dist/types/basic-bricks/src/app-bar/License-notification/LicenseNotification.d.ts +6 -0
- package/dist/types/basic-bricks/src/app-bar/MyDesktop/MyDesktop.d.ts +7 -0
- package/dist/types/basic-bricks/src/app-bar/SearchBar/SearchBar.d.ts +5 -0
- package/dist/types/basic-bricks/src/app-bar/index.d.ts +5 -0
- package/dist/types/basic-bricks/src/app-bar/interfaces.d.ts +4 -0
- package/dist/types/basic-bricks/src/app-bar/site-map/SiteMap.d.ts +20 -0
- package/dist/types/basic-bricks/src/app-bar/utils/getImageUrl.d.ts +2 -0
- package/dist/types/basic-bricks/src/app-bar-breadcrumb/AppbarBreadcrumb.d.ts +3 -0
- package/dist/types/basic-bricks/src/app-bar-breadcrumb/index.d.ts +33 -0
- package/dist/types/basic-bricks/src/app-bar-logo/AppBarLogo.d.ts +2 -0
- package/dist/types/basic-bricks/src/app-bar-logo/index.d.ts +19 -0
- package/dist/types/basic-bricks/src/app-bar-setting/AppBarSetting.d.ts +5 -0
- package/dist/types/basic-bricks/src/app-bar-setting/index.d.ts +24 -0
- package/dist/types/basic-bricks/src/app-bar-wrapper/AppBarWrapper.d.ts +6 -0
- package/dist/types/basic-bricks/src/app-bar-wrapper/index.d.ts +28 -0
- package/dist/types/basic-bricks/src/app-document-link/AppDocumentLink.d.ts +6 -0
- package/dist/types/basic-bricks/src/app-document-link/index.d.ts +31 -0
- package/dist/types/basic-bricks/src/brick-error/BrickError.d.ts +8 -0
- package/dist/types/basic-bricks/src/brick-error/index.d.ts +37 -0
- package/dist/types/basic-bricks/src/delete-confirm-modal/DeleteConfirmModal.d.ts +11 -0
- package/dist/types/basic-bricks/src/delete-confirm-modal/index.d.ts +35 -0
- package/dist/types/basic-bricks/src/easy-view/EasyView.d.ts +11 -0
- package/dist/types/basic-bricks/src/easy-view/index.d.ts +56 -0
- package/dist/types/basic-bricks/src/event-agent/index.d.ts +25 -0
- package/dist/types/basic-bricks/src/export-json-file/index.d.ts +51 -0
- package/dist/types/basic-bricks/src/flex-layout/index.d.ts +55 -0
- package/dist/types/basic-bricks/src/fold-brick/FoldBrick.d.ts +10 -0
- package/dist/types/basic-bricks/src/fold-brick/index.d.ts +28 -0
- package/dist/types/basic-bricks/src/fold-brick-v2/FoldBrickV2.d.ts +17 -0
- package/dist/types/basic-bricks/src/fold-brick-v2/index.d.ts +133 -0
- package/dist/types/basic-bricks/src/general-anchor/GeneralAnchor.d.ts +17 -0
- package/dist/types/basic-bricks/src/general-anchor/index.d.ts +91 -0
- package/dist/types/basic-bricks/src/general-button/GeneralButton.d.ts +38 -0
- package/dist/types/basic-bricks/src/general-button/index.d.ts +249 -0
- package/dist/types/basic-bricks/src/general-card/GeneralCard.d.ts +15 -0
- package/dist/types/basic-bricks/src/general-card/index.d.ts +120 -0
- package/dist/types/basic-bricks/src/general-custom-buttons/GeneralCustomButtons.d.ts +31 -0
- package/dist/types/basic-bricks/src/general-custom-buttons/index.d.ts +235 -0
- package/dist/types/basic-bricks/src/general-drawer/GeneralDrawer.d.ts +27 -0
- package/dist/types/basic-bricks/src/general-drawer/index.d.ts +191 -0
- package/dist/types/basic-bricks/src/general-heading/GeneralHeading.d.ts +9 -0
- package/dist/types/basic-bricks/src/general-heading/index.d.ts +43 -0
- package/dist/types/basic-bricks/src/general-hotkeys/index.d.ts +57 -0
- package/dist/types/basic-bricks/src/general-modal/GeneralModal.d.ts +33 -0
- package/dist/types/basic-bricks/src/general-modal/index.d.ts +330 -0
- package/dist/types/basic-bricks/src/general-notification/index.d.ts +131 -0
- package/dist/types/basic-bricks/src/general-popup/GeneralPopup.d.ts +21 -0
- package/dist/types/basic-bricks/src/general-popup/index.d.ts +95 -0
- package/dist/types/basic-bricks/src/general-text/GeneralText.d.ts +13 -0
- package/dist/types/basic-bricks/src/general-text/index.d.ts +81 -0
- package/dist/types/basic-bricks/src/general-timer/index.d.ts +70 -0
- package/dist/types/basic-bricks/src/general-title/GeneralTitle.d.ts +21 -0
- package/dist/types/basic-bricks/src/general-title/index.d.ts +129 -0
- package/dist/types/basic-bricks/src/grid-layout/index.d.ts +134 -0
- package/dist/types/basic-bricks/src/header-bar/HeaderBar.d.ts +6 -0
- package/dist/types/basic-bricks/src/header-bar/index.d.ts +46 -0
- package/dist/types/basic-bricks/src/home-redirect/index.d.ts +45 -0
- package/dist/types/basic-bricks/src/i18n/constants.d.ts +34 -0
- package/dist/types/basic-bricks/src/index-card/IndexCard.d.ts +7 -0
- package/dist/types/basic-bricks/src/index-card/index.d.ts +39 -0
- package/dist/types/basic-bricks/src/interfaces/general-card.d.ts +11 -0
- package/dist/types/basic-bricks/src/interfaces/index.d.ts +1 -0
- package/dist/types/basic-bricks/src/jsx.d.ts +172 -0
- package/dist/types/basic-bricks/src/launchpad-button/index.d.ts +18 -0
- package/dist/types/basic-bricks/src/list-container/ListContainer.d.ts +12 -0
- package/dist/types/basic-bricks/src/list-container/index.d.ts +71 -0
- package/dist/types/basic-bricks/src/loading-bar/LoadingBar.d.ts +2 -0
- package/dist/types/basic-bricks/src/loading-bar/index.d.ts +2 -0
- package/dist/types/basic-bricks/src/magic-brick/MagicBrick.d.ts +7 -0
- package/dist/types/basic-bricks/src/magic-brick/index.d.ts +36 -0
- package/dist/types/basic-bricks/src/menu-bar/AppMenu/AppMenu.d.ts +7 -0
- package/dist/types/basic-bricks/src/menu-bar/AppMenu/MenuTooltip/MenuTooltip.d.ts +7 -0
- package/dist/types/basic-bricks/src/menu-bar/AppSubMenu/AppSubMenu.d.ts +8 -0
- package/dist/types/basic-bricks/src/menu-bar/CollapseBar/CollapseBar.d.ts +6 -0
- package/dist/types/basic-bricks/src/menu-bar/LogoBar/LogoBar.d.ts +2 -0
- package/dist/types/basic-bricks/src/menu-bar/MenuBar/MenuBar.d.ts +7 -0
- package/dist/types/basic-bricks/src/menu-bar/index.d.ts +96 -0
- package/dist/types/basic-bricks/src/micro-app/BtnExitDashboardMode.d.ts +2 -0
- package/dist/types/basic-bricks/src/micro-app/MicroApp.d.ts +13 -0
- package/dist/types/basic-bricks/src/micro-app/index.d.ts +152 -0
- package/dist/types/basic-bricks/src/multiple-columns-card/MultipleColumnsCard.d.ts +7 -0
- package/dist/types/basic-bricks/src/multiple-columns-card/index.d.ts +38 -0
- package/dist/types/basic-bricks/src/page-error/PageError.d.ts +7 -0
- package/dist/types/basic-bricks/src/page-error/index.d.ts +4 -0
- package/dist/types/basic-bricks/src/page-not-found/PageNotFound.d.ts +6 -0
- package/dist/types/basic-bricks/src/page-not-found/index.d.ts +10 -0
- package/dist/types/basic-bricks/src/page-title/PageTitle.d.ts +8 -0
- package/dist/types/basic-bricks/src/page-title/index.d.ts +36 -0
- package/dist/types/basic-bricks/src/popover-container/PopoverContainer.d.ts +39 -0
- package/dist/types/basic-bricks/src/popover-container/index.d.ts +244 -0
- package/dist/types/basic-bricks/src/print-button/PrintButton.d.ts +10 -0
- package/dist/types/basic-bricks/src/print-button/index.d.ts +68 -0
- package/dist/types/basic-bricks/src/quick-visit-menu/FavouriteMenu.d.ts +3 -0
- package/dist/types/basic-bricks/src/quick-visit-menu/MenuTag.d.ts +14 -0
- package/dist/types/basic-bricks/src/quick-visit-menu/QuickVisitMenu.d.ts +34 -0
- package/dist/types/basic-bricks/src/quick-visit-menu/index.d.ts +92 -0
- package/dist/types/basic-bricks/src/redirect-to/index.d.ts +74 -0
- package/dist/types/basic-bricks/src/resizable-box/ResizableBox.d.ts +14 -0
- package/dist/types/basic-bricks/src/resizable-box/index.d.ts +38 -0
- package/dist/types/basic-bricks/src/script-brick/index.d.ts +91 -0
- package/dist/types/basic-bricks/src/shared/DeferredService.d.ts +10 -0
- package/dist/types/basic-bricks/src/sub-menu/SubMenu.d.ts +11 -0
- package/dist/types/basic-bricks/src/sub-menu/index.d.ts +49 -0
- package/dist/types/basic-bricks/src/sub-menu-filter/SubMenuFilter.d.ts +38 -0
- package/dist/types/basic-bricks/src/sub-menu-filter/index.d.ts +204 -0
- package/dist/types/basic-bricks/src/transform-agent/index.d.ts +54 -0
- package/dist/types/basic-bricks/src/utils.d.ts +1 -0
- package/dist/types/basic-bricks/src/virtual-list-container/VirtualListContainer.d.ts +16 -0
- package/dist/types/basic-bricks/src/virtual-list-container/index.d.ts +63 -0
- package/dist/types/presentational-bricks/src/brick-illustration/BrickIllustration.d.ts +14 -0
- package/dist/types/presentational-bricks/src/brick-illustration/index.d.ts +87 -0
- package/dist/types/presentational-bricks/src/brick-result/components/IllustrationWrapper.d.ts +16 -0
- package/package.json +5 -4
- package/dist/index.76908742.js +0 -10
- package/dist/index.76908742.js.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
|
|
2
|
+
export interface HeaderBarElementProps {
|
|
3
|
+
logoUrl?: string;
|
|
4
|
+
headerBackgroundColor?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @id basic-bricks.header-bar
|
|
8
|
+
* @author zekunpan
|
|
9
|
+
* @history
|
|
10
|
+
* 1.x.0: 新增构件 `basic-bricks.header-bar`,便于用户在basic-view模式下自由设定header头部
|
|
11
|
+
* @docKind brick
|
|
12
|
+
* @slots
|
|
13
|
+
* navbar:左侧导航栏插槽
|
|
14
|
+
* toolbar: 右侧工具栏插槽
|
|
15
|
+
* @noInheritDoc
|
|
16
|
+
*/
|
|
17
|
+
export declare class HeaderBarElement extends UpdatingElement implements HeaderBarElementProps {
|
|
18
|
+
private _mountPoint;
|
|
19
|
+
private _shadowRoot;
|
|
20
|
+
/**
|
|
21
|
+
* @kind string
|
|
22
|
+
* @required false
|
|
23
|
+
* @default -
|
|
24
|
+
* @description log 图片
|
|
25
|
+
* @group basic
|
|
26
|
+
*/
|
|
27
|
+
logoUrl: string;
|
|
28
|
+
/**
|
|
29
|
+
* @kind string
|
|
30
|
+
* @required false
|
|
31
|
+
* @default -
|
|
32
|
+
* @description 构件背景颜色
|
|
33
|
+
* @group basic
|
|
34
|
+
*/
|
|
35
|
+
headerBackgroundColor: string;
|
|
36
|
+
/**
|
|
37
|
+
* @detail `-`
|
|
38
|
+
* @description 点击logo时触发
|
|
39
|
+
*/
|
|
40
|
+
logoClickEvent: EventEmitter<any>;
|
|
41
|
+
constructor();
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
listenOnClick(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
protected _render(): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UpdatingElement } from "@next-core/brick-kit";
|
|
2
|
+
export interface HomeRedirectElementProps {
|
|
3
|
+
appId?: string;
|
|
4
|
+
redirectUrl?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @id basic-bricks.home-redirect
|
|
8
|
+
* @name basic-bricks.home-redirect
|
|
9
|
+
* @docKind brick
|
|
10
|
+
* @description 重定向到指定应用的首页
|
|
11
|
+
* @author steve
|
|
12
|
+
* @slots
|
|
13
|
+
* @history
|
|
14
|
+
* @memo
|
|
15
|
+
* ### DEMO
|
|
16
|
+
|
|
17
|
+
* ```json
|
|
18
|
+
* {
|
|
19
|
+
* "brick": "basic-bricks.home-redirect",
|
|
20
|
+
* "properties": {
|
|
21
|
+
* "appId": "search" // 目标应用Id
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
|
|
26
|
+
* @noInheritDoc
|
|
27
|
+
*/
|
|
28
|
+
export declare class HomeRedirectElement extends UpdatingElement implements HomeRedirectElementProps {
|
|
29
|
+
/**
|
|
30
|
+
* @kind string
|
|
31
|
+
* @required false
|
|
32
|
+
* @default -
|
|
33
|
+
* @description 指定的应用 Id
|
|
34
|
+
*/
|
|
35
|
+
appId: string;
|
|
36
|
+
/**
|
|
37
|
+
* @kind string
|
|
38
|
+
* @required false
|
|
39
|
+
* @default -
|
|
40
|
+
* @description 指定的跳转 url
|
|
41
|
+
*/
|
|
42
|
+
redirectUrl: string;
|
|
43
|
+
connectedCallback(): void;
|
|
44
|
+
protected _render(): Promise<void>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const NS_BASIC_BRICKS = "basic-bricks";
|
|
2
|
+
export declare enum K {
|
|
3
|
+
BASIC_BRICKS = "BASIC_BRICKS",
|
|
4
|
+
LOGOUT = "LOGOUT",
|
|
5
|
+
LOGIN = "LOGIN",
|
|
6
|
+
PAGE_NOT_FOUND_TITLE = "PAGE_NOT_FOUND_TITLE",
|
|
7
|
+
PAGE_NOT_FOUND_DESC = "PAGE_NOT_FOUND_DESC",
|
|
8
|
+
PAGE_ERROR_TITLE = "PAGE_ERROR_TITLE",
|
|
9
|
+
ACCOUNT_MANAGEMENT = "ACCOUNT_MANAGEMENT",
|
|
10
|
+
BRICK_ERROR = "BRICK_ERROR",
|
|
11
|
+
LEGACY_TEMPLATE_ERROR = "LEGACY_TEMPLATE_ERROR",
|
|
12
|
+
HELP = "HELP",
|
|
13
|
+
CANCEL = "CANCEL",
|
|
14
|
+
OK = "OK",
|
|
15
|
+
COVERT_TO_LANGUAGE = "COVERT_TO_LANGUAGE",
|
|
16
|
+
SWITCH_THEME = "SWITCH_THEME",
|
|
17
|
+
LIGHT_THEME = "LIGHT_THEME",
|
|
18
|
+
DARK_THEME = "DARK_THEME",
|
|
19
|
+
SEARCH_BY_NAME_KEYWORD = "SEARCH_BY_NAME_KEYWORD",
|
|
20
|
+
FORBIDDEN = "FORBIDDEN",
|
|
21
|
+
NOT_FOUND = "NOT_FOUND",
|
|
22
|
+
SERVER_ERROR = "SERVER_ERROR",
|
|
23
|
+
QUICK_ACCESS = "QUICK_ACCESS",
|
|
24
|
+
NO_VISIT_ACCESS = "NO_VISIT_ACCESS",
|
|
25
|
+
RECOMMEND_SEARCH = "RECOMMEND_SEARCH",
|
|
26
|
+
SEARCH_RESULT_EMPTY = "SEARCH_RESULT_EMPTY",
|
|
27
|
+
ENTER_KEY_WORDS = "ENTER_KEY_WORDS",
|
|
28
|
+
ADD_TO_QUICK_ACCESS = "ADD_TO_QUICK_ACCESS",
|
|
29
|
+
REMOVE_FROM_QUICK_ACCESS = "REMOVE_FROM_QUICK_ACCESS",
|
|
30
|
+
MANAGE = "MANAGE"
|
|
31
|
+
}
|
|
32
|
+
export declare type Locale = {
|
|
33
|
+
[key in K]: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface IndexCardElementProps {
|
|
2
|
+
contentGridGap?: number;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @id basic-bricks.index-card
|
|
7
|
+
* @name basic-bricks.index-card
|
|
8
|
+
* @docKind brick
|
|
9
|
+
* @description 页面容器,注意与micro-app的区别
|
|
10
|
+
* @author william
|
|
11
|
+
* @slots
|
|
12
|
+
* @history
|
|
13
|
+
* @memo
|
|
14
|
+
* @noInheritDoc
|
|
15
|
+
*/
|
|
16
|
+
export declare class IndexCardElement extends HTMLElement implements IndexCardElementProps {
|
|
17
|
+
private _mountPoint;
|
|
18
|
+
private _contentGridGap;
|
|
19
|
+
private _title;
|
|
20
|
+
/**
|
|
21
|
+
* @kind number
|
|
22
|
+
* @required false
|
|
23
|
+
* @default 24
|
|
24
|
+
* @description 内容区的 gap,内容区固定为 grid 布局
|
|
25
|
+
*/
|
|
26
|
+
set contentGridGap(value: number);
|
|
27
|
+
get contentGridGap(): number;
|
|
28
|
+
constructor();
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
/**
|
|
32
|
+
* @kind string
|
|
33
|
+
* @required false
|
|
34
|
+
* @default -
|
|
35
|
+
* @description 卡片标题
|
|
36
|
+
*/
|
|
37
|
+
set title(value: string);
|
|
38
|
+
private _render;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./general-card";
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AdvancedListContainerElementProps, AdvanceListContainerElementProps } from './advance-list-container/index';
|
|
3
|
+
import type { AppBarElementProps } from './app-bar/index';
|
|
4
|
+
import type { AppbarBreadcrumbElementProps } from './app-bar-breadcrumb/index';
|
|
5
|
+
import type { AppBarLogoElementProps } from './app-bar-logo/index';
|
|
6
|
+
import type { AppBarSettingElementProps } from './app-bar-setting/index';
|
|
7
|
+
import type { AppBarWrapperElementProps } from './app-bar-wrapper/index';
|
|
8
|
+
import type { AppBarDocumentLinkElementProps } from './app-document-link/index';
|
|
9
|
+
import type { BrickErrorElementProps } from './brick-error/index';
|
|
10
|
+
import type { DeleteConfirmModalElementProps } from './delete-confirm-modal/index';
|
|
11
|
+
import type { EasyViewElementProps } from './easy-view/index';
|
|
12
|
+
import type { EventAgentElementProps } from './event-agent/index';
|
|
13
|
+
import type { ExportJsonFileElementProps } from './export-json-file/index';
|
|
14
|
+
import type { FlexLayoutElementProps } from './flex-layout/index';
|
|
15
|
+
import type { FoldBrickElementProps } from './fold-brick/index';
|
|
16
|
+
import type { FoldBrickV2ElementProps } from './fold-brick-v2/index';
|
|
17
|
+
import type { GeneralAnchorElementProps } from './general-anchor/index';
|
|
18
|
+
import type { GeneralButtonElementProps } from './general-button/index';
|
|
19
|
+
import type { GeneralCardElementProps } from './general-card/index';
|
|
20
|
+
import type { GeneralCustomButtonsElementProps } from './general-custom-buttons/index';
|
|
21
|
+
import type { GeneralDrawerElementProps } from './general-drawer/index';
|
|
22
|
+
import type { GeneralHeadingElementProps } from './general-heading/index';
|
|
23
|
+
import type { GeneralHotkeysElementProps } from './general-hotkeys/index';
|
|
24
|
+
import type { GeneralModalElementProps } from './general-modal/index';
|
|
25
|
+
import type { GeneralNotificationElementProps } from './general-notification/index';
|
|
26
|
+
import type { GeneralPopupElementProps } from './general-popup/index';
|
|
27
|
+
import type { GeneralTextElementProps } from './general-text/index';
|
|
28
|
+
import type { GeneralTimerElementProps } from './general-timer/index';
|
|
29
|
+
import type { GeneralTitleElementProps } from './general-title/index';
|
|
30
|
+
import type { GridLayoutElementProps } from './grid-layout/index';
|
|
31
|
+
import type { HeaderBarElementProps } from './header-bar/index';
|
|
32
|
+
import type { HomeRedirectElementProps } from './home-redirect/index';
|
|
33
|
+
import type { IndexCardElementProps } from './index-card/index';
|
|
34
|
+
import type { LaunchpadButtonElementProps } from './launchpad-button/index';
|
|
35
|
+
import type { ListContainerElementProps } from './list-container/index';
|
|
36
|
+
import type { LoadingBarElementProps } from './loading-bar/index';
|
|
37
|
+
import type { MagicBrickElementProps } from './magic-brick/index';
|
|
38
|
+
import type { MenuBarElementProps } from './menu-bar/index';
|
|
39
|
+
import type { MicroViewElementProps } from './micro-app/index';
|
|
40
|
+
import type { MultipleColumnsCardElementProps } from './multiple-columns-card/index';
|
|
41
|
+
import type { PageErrorElementProps } from './page-error/index';
|
|
42
|
+
import type { PageNotFoundElementProps } from './page-not-found/index';
|
|
43
|
+
import type { PageTitleElementProps } from './page-title/index';
|
|
44
|
+
import type { PopoverContainerElementProps } from './popover-container/index';
|
|
45
|
+
import type { PrintButtonElementProps } from './print-button/index';
|
|
46
|
+
import type { QuickVisitMenuElementProps } from './quick-visit-menu/index';
|
|
47
|
+
import type { RedirectToElementProps } from './redirect-to/index';
|
|
48
|
+
import type { ResizableBoxElementProps } from './resizable-box/index';
|
|
49
|
+
import type { ScriptBrickElementProps } from './script-brick/index';
|
|
50
|
+
import type { SubMenuElementProps } from './sub-menu/index';
|
|
51
|
+
import type { SubMenuFilterElementProps, SubMenuFilterItem } from './sub-menu-filter/index';
|
|
52
|
+
import type { TransformAgentElementProps } from './transform-agent/index';
|
|
53
|
+
import type { VirtualListContainerElementProps } from './virtual-list-container/index';
|
|
54
|
+
declare global {
|
|
55
|
+
namespace JSX {
|
|
56
|
+
interface IntrinsicElements {
|
|
57
|
+
'basic-bricks--advanced-list-container': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AdvancedListContainerElementProps>, HTMLElement> & {
|
|
58
|
+
onItemClick?: (event: CustomEvent<any>) => void;
|
|
59
|
+
};
|
|
60
|
+
'basic-bricks--advance-list-container': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AdvanceListContainerElementProps>, HTMLElement> & {
|
|
61
|
+
onItemClick?: (event: CustomEvent<any>) => void;
|
|
62
|
+
};
|
|
63
|
+
'basic-bricks--app-bar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AppBarElementProps>, HTMLElement>;
|
|
64
|
+
'basic-bricks--app-bar-breadcrumb': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AppbarBreadcrumbElementProps>, HTMLElement>;
|
|
65
|
+
'basic-bricks--app-bar-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AppBarLogoElementProps>, HTMLElement>;
|
|
66
|
+
'basic-bricks--app-bar-setting': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AppBarSettingElementProps>, HTMLElement>;
|
|
67
|
+
'basic-bricks--app-bar-wrapper': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AppBarWrapperElementProps>, HTMLElement>;
|
|
68
|
+
'basic-bricks--app-document-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<AppBarDocumentLinkElementProps>, HTMLElement>;
|
|
69
|
+
'basic-bricks--brick-error': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<BrickErrorElementProps>, HTMLElement>;
|
|
70
|
+
'basic-bricks--delete-confirm-modal': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<DeleteConfirmModalElementProps>, HTMLElement>;
|
|
71
|
+
'basic-bricks--easy-view': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<EasyViewElementProps>, HTMLElement>;
|
|
72
|
+
'basic-bricks--event-agent': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<EventAgentElementProps>, HTMLElement> & {
|
|
73
|
+
onEventTrigger?: (event: CustomEvent<any>) => void;
|
|
74
|
+
};
|
|
75
|
+
'basic-bricks--export-json-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<ExportJsonFileElementProps>, HTMLElement> & {
|
|
76
|
+
onJsonFileExportSuccess?: (event: CustomEvent<any>) => void;
|
|
77
|
+
onJsonFileExportFailed?: (event: CustomEvent<any>) => void;
|
|
78
|
+
};
|
|
79
|
+
'basic-bricks--flex-layout': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<FlexLayoutElementProps>, HTMLElement>;
|
|
80
|
+
'basic-bricks--fold-brick': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<FoldBrickElementProps>, HTMLElement>;
|
|
81
|
+
'basic-bricks--fold-brick-v2': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<FoldBrickV2ElementProps>, HTMLElement> & {
|
|
82
|
+
onFoldChange?: (event: CustomEvent<boolean>) => void;
|
|
83
|
+
};
|
|
84
|
+
'basic-bricks--general-anchor': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralAnchorElementProps>, HTMLElement> & {
|
|
85
|
+
onAnchorClick?: (event: CustomEvent<Record<string, any>>) => void;
|
|
86
|
+
onAnchorChange?: (event: CustomEvent<Record<string, any>>) => void;
|
|
87
|
+
};
|
|
88
|
+
'basic-bricks--general-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralButtonElementProps>, HTMLElement> & {
|
|
89
|
+
onGeneralButtonClick?: (event: CustomEvent<Record<string, any>>) => void;
|
|
90
|
+
};
|
|
91
|
+
'basic-bricks--general-card': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralCardElementProps>, HTMLElement>;
|
|
92
|
+
'basic-bricks--general-custom-buttons': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralCustomButtonsElementProps>, HTMLElement> & {
|
|
93
|
+
onButtonsVisibleChange?: (event: CustomEvent<any>) => void;
|
|
94
|
+
};
|
|
95
|
+
'basic-bricks--general-drawer': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralDrawerElementProps>, HTMLElement> & {
|
|
96
|
+
onGeneralDrawerOpen?: (event: CustomEvent<Record<string, any>>) => void;
|
|
97
|
+
onGeneralDrawerClose?: (event: CustomEvent<Record<string, any>>) => void;
|
|
98
|
+
};
|
|
99
|
+
'basic-bricks--general-heading': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralHeadingElementProps>, HTMLElement>;
|
|
100
|
+
'basic-bricks--general-hotkeys': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralHotkeysElementProps>, HTMLElement>;
|
|
101
|
+
'basic-bricks--general-modal': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralModalElementProps>, HTMLElement> & {
|
|
102
|
+
onModalOpen?: (event: CustomEvent<Record<string, any>>) => void;
|
|
103
|
+
onModalClose?: (event: CustomEvent<Record<string, any>>) => void;
|
|
104
|
+
onModelAfterClose?: (event: CustomEvent<any>) => void;
|
|
105
|
+
onModalCancel?: (event: CustomEvent<any>) => void;
|
|
106
|
+
onModalConfirm?: (event: CustomEvent<any>) => void;
|
|
107
|
+
};
|
|
108
|
+
'basic-bricks--general-notification': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralNotificationElementProps>, HTMLElement> & {
|
|
109
|
+
onGeneralNotificationClick?: (event: CustomEvent<Record<string, any>>) => void;
|
|
110
|
+
onGeneralNotificationClose?: (event: CustomEvent<Record<string, any>>) => void;
|
|
111
|
+
};
|
|
112
|
+
'basic-bricks--general-popup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralPopupElementProps>, HTMLElement>;
|
|
113
|
+
'basic-bricks--general-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralTextElementProps>, HTMLElement>;
|
|
114
|
+
'basic-bricks--general-timer': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralTimerElementProps>, HTMLElement> & {
|
|
115
|
+
onTimeChange?: (event: CustomEvent<any>) => void;
|
|
116
|
+
};
|
|
117
|
+
'basic-bricks--general-title': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GeneralTitleElementProps>, HTMLElement>;
|
|
118
|
+
'basic-bricks--grid-layout': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<GridLayoutElementProps>, HTMLElement>;
|
|
119
|
+
'basic-bricks--header-bar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<HeaderBarElementProps>, HTMLElement> & {
|
|
120
|
+
onLogoClick?: (event: CustomEvent<any>) => void;
|
|
121
|
+
};
|
|
122
|
+
'basic-bricks--home-redirect': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<HomeRedirectElementProps>, HTMLElement>;
|
|
123
|
+
'basic-bricks--index-card': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<IndexCardElementProps>, HTMLElement>;
|
|
124
|
+
'basic-bricks--launchpad-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<LaunchpadButtonElementProps>, HTMLElement>;
|
|
125
|
+
'basic-bricks--list-container': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<ListContainerElementProps>, HTMLElement>;
|
|
126
|
+
'basic-bricks--loading-bar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<LoadingBarElementProps>, HTMLElement>;
|
|
127
|
+
'basic-bricks--magic-brick': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<MagicBrickElementProps>, HTMLElement>;
|
|
128
|
+
'basic-bricks--menu-bar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<MenuBarElementProps>, HTMLElement>;
|
|
129
|
+
'basic-bricks--micro-view': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<MicroViewElementProps>, HTMLElement> & {
|
|
130
|
+
onModeDashboardExit?: (event: CustomEvent<any>) => void;
|
|
131
|
+
};
|
|
132
|
+
'basic-bricks--micro-app': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<MicroViewElementProps>, HTMLElement> & {
|
|
133
|
+
onModeDashboardExit?: (event: CustomEvent<any>) => void;
|
|
134
|
+
};
|
|
135
|
+
'basic-bricks--multiple-columns-card': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<MultipleColumnsCardElementProps>, HTMLElement>;
|
|
136
|
+
'basic-bricks--page-error': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<PageErrorElementProps>, HTMLElement>;
|
|
137
|
+
'basic-bricks--page-not-found': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<PageNotFoundElementProps>, HTMLElement>;
|
|
138
|
+
'basic-bricks--page-title': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<PageTitleElementProps>, HTMLElement>;
|
|
139
|
+
'basic-bricks--popover-container': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<PopoverContainerElementProps>, HTMLElement> & {
|
|
140
|
+
onItemMouseEnter?: (event: CustomEvent<any>) => void;
|
|
141
|
+
onItemMouseLeave?: (event: CustomEvent<any>) => void;
|
|
142
|
+
onVisibleChange?: (event: CustomEvent<any>) => void;
|
|
143
|
+
};
|
|
144
|
+
'basic-bricks--print-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<PrintButtonElementProps>, HTMLElement>;
|
|
145
|
+
'basic-bricks--quick-visit-menu': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<QuickVisitMenuElementProps>, HTMLElement> & {
|
|
146
|
+
onMenuDrag?: (event: CustomEvent<Record<string, any>>) => void;
|
|
147
|
+
onMenuRemove?: (event: CustomEvent<Record<string, any>>) => void;
|
|
148
|
+
onMenuAdd?: (event: CustomEvent<Record<string, any>>) => void;
|
|
149
|
+
onMenuClick?: (event: CustomEvent<Record<string, any>>) => void;
|
|
150
|
+
onCollectFailed?: (event: CustomEvent<Record<string, any>>) => void;
|
|
151
|
+
};
|
|
152
|
+
'basic-bricks--redirect-to': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<RedirectToElementProps>, HTMLElement>;
|
|
153
|
+
'basic-bricks--resizable-box': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<ResizableBoxElementProps>, HTMLElement>;
|
|
154
|
+
'basic-bricks--script-brick': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<ScriptBrickElementProps>, HTMLElement> & {
|
|
155
|
+
onScriptExecute?: (event: CustomEvent<any>) => void;
|
|
156
|
+
onDataTrue?: (event: CustomEvent<any>) => void;
|
|
157
|
+
onDataFalse?: (event: CustomEvent<any>) => void;
|
|
158
|
+
};
|
|
159
|
+
'basic-bricks--sub-menu': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<SubMenuElementProps>, HTMLElement>;
|
|
160
|
+
'basic-bricks--sub-menu-filter': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<SubMenuFilterElementProps>, HTMLElement> & {
|
|
161
|
+
onMenuSelect?: (event: CustomEvent<SubMenuFilterItem[]>) => void;
|
|
162
|
+
onMenuSearch?: (event: CustomEvent<string>) => void;
|
|
163
|
+
onMenuClick?: (event: CustomEvent<SubMenuFilterItem>) => void;
|
|
164
|
+
};
|
|
165
|
+
'basic-bricks--transform-agent': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<TransformAgentElementProps>, HTMLElement>;
|
|
166
|
+
'basic-bricks--virtual-list-container': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & Partial<VirtualListContainerElementProps>, HTMLElement> & {
|
|
167
|
+
onBasicBricksScroll?: (event: CustomEvent<any>) => void;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UpdatingElement } from "@next-core/brick-kit";
|
|
2
|
+
export interface LaunchpadButtonElementProps {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @id basic-bricks.launchpad-button
|
|
6
|
+
* @author SailorF
|
|
7
|
+
* @history
|
|
8
|
+
* 1.x.0: 新增构件 `basic-bricks.launchpad-button`
|
|
9
|
+
* @deprecated
|
|
10
|
+
* @memo
|
|
11
|
+
* 该构件已迁移至 `nav-legacy` 包中维护,后续版本将不再维护该构件,请使用 `nav-legacy.launchpad-button` 构件
|
|
12
|
+
* @noInheritDoc
|
|
13
|
+
*/
|
|
14
|
+
export declare class LaunchpadButtonElement extends UpdatingElement implements LaunchpadButtonElementProps {
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
protected _render(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UseBrickConf } from "@next-core/brick-types";
|
|
3
|
+
interface ListContainerProps {
|
|
4
|
+
data: any[];
|
|
5
|
+
itemKey?: string;
|
|
6
|
+
useBrick: UseBrickConf;
|
|
7
|
+
gap?: string | number;
|
|
8
|
+
containerStyle?: React.CSSProperties;
|
|
9
|
+
extraContainerStyle?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export declare function ListContainer(props: ListContainerProps): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UpdatingElement } from "@next-core/brick-kit";
|
|
3
|
+
import { UseBrickConf } from "@next-core/brick-types";
|
|
4
|
+
export interface ListContainerElementProps {
|
|
5
|
+
data?: any[];
|
|
6
|
+
useBrick?: UseBrickConf;
|
|
7
|
+
extraContainerStyle?: React.CSSProperties;
|
|
8
|
+
itemKey?: string;
|
|
9
|
+
gap?: string | number;
|
|
10
|
+
containerStyle?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @id basic-bricks.list-container
|
|
14
|
+
* @name basic-bricks.list-container
|
|
15
|
+
* @docKind brick
|
|
16
|
+
* @description 可以指定子项使用特定构件的列表容器,相当于是动态的构件列表
|
|
17
|
+
* @author steve
|
|
18
|
+
* @slots
|
|
19
|
+
* @history
|
|
20
|
+
* 1.41.0:支持 `containerStyle` 配置
|
|
21
|
+
* 1.20.0:新增构件
|
|
22
|
+
* @memo
|
|
23
|
+
* @noInheritDoc
|
|
24
|
+
*/
|
|
25
|
+
export declare class ListContainerElement extends UpdatingElement implements ListContainerElementProps {
|
|
26
|
+
/**
|
|
27
|
+
* @kind `any[]`
|
|
28
|
+
* @required true
|
|
29
|
+
* @default []
|
|
30
|
+
* @description 数据列表
|
|
31
|
+
* @group basic
|
|
32
|
+
*/
|
|
33
|
+
data: any[];
|
|
34
|
+
/**
|
|
35
|
+
* @kind UseBrickConf
|
|
36
|
+
* @required true
|
|
37
|
+
* @default []
|
|
38
|
+
* @description 使用的子构件配置,具体查阅[UseBrickConf](/next-docs/docs/micro-app/brick-use-brick)
|
|
39
|
+
* @group basic
|
|
40
|
+
*/
|
|
41
|
+
useBrick: UseBrickConf;
|
|
42
|
+
/**
|
|
43
|
+
* @kind Record<string, any>
|
|
44
|
+
* @default -
|
|
45
|
+
* @description 容器本身默认是 grid 布局,可以设置额外的样式。
|
|
46
|
+
* @group basic
|
|
47
|
+
*/
|
|
48
|
+
extraContainerStyle?: React.CSSProperties;
|
|
49
|
+
/**
|
|
50
|
+
* @description 数据项的 key,不设置默认使用 index
|
|
51
|
+
* @group advanced
|
|
52
|
+
*/
|
|
53
|
+
itemKey?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @kind string | number
|
|
56
|
+
* @default "var(--card-content-gap)"
|
|
57
|
+
* @description 间距(配合extraContainerStyle使用)
|
|
58
|
+
* @group ui
|
|
59
|
+
*/
|
|
60
|
+
gap?: string | number;
|
|
61
|
+
/**
|
|
62
|
+
* @kind Record<string, any>
|
|
63
|
+
* @default -
|
|
64
|
+
* @description 自定义容器的样式,容器本身默认是 grid 布局,如果`containerStyle`不为空则覆盖掉容器本身的样式配置
|
|
65
|
+
* @group ui
|
|
66
|
+
*/
|
|
67
|
+
containerStyle?: React.CSSProperties;
|
|
68
|
+
connectedCallback(): void;
|
|
69
|
+
disconnectedCallback(): void;
|
|
70
|
+
protected _render(): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UpdatingElement } from "@next-core/brick-kit";
|
|
2
|
+
export interface MagicBrickElementProps {
|
|
3
|
+
showType?: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @id basic-bricks.magic-brick
|
|
8
|
+
* @name basic-bricks.magic-brick
|
|
9
|
+
* @docKind brick
|
|
10
|
+
* @description 指定数据渲染类型,直接调用对应的展示构件渲染
|
|
11
|
+
* @author lynette
|
|
12
|
+
* @slots
|
|
13
|
+
* @history
|
|
14
|
+
* 1.25.0:新增构件 `basic-bricks.magic-brick`
|
|
15
|
+
* @memo
|
|
16
|
+
* @noInheritDoc
|
|
17
|
+
*/
|
|
18
|
+
export declare class MagicBrickElement extends UpdatingElement implements MagicBrickElementProps {
|
|
19
|
+
/**
|
|
20
|
+
* @kind string
|
|
21
|
+
* @required true
|
|
22
|
+
* @default -
|
|
23
|
+
* @description 数据渲染类型,对[构件配置表](magic-brick)中的 selector 字段
|
|
24
|
+
*/
|
|
25
|
+
showType: string;
|
|
26
|
+
/**
|
|
27
|
+
* @kind any
|
|
28
|
+
* @required true
|
|
29
|
+
* @default -
|
|
30
|
+
* @description 数据源,通常情况该构件在一些容器构件中使用,数据源来自于容器构件例如 brick-table 的 rowData
|
|
31
|
+
*/
|
|
32
|
+
data: any;
|
|
33
|
+
connectedCallback(): void;
|
|
34
|
+
disconnectedCallback(): void;
|
|
35
|
+
protected _render(): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SidebarSubMenu } from "@next-core/brick-types";
|
|
3
|
+
interface AppSubMenuProps {
|
|
4
|
+
subMenu: SidebarSubMenu;
|
|
5
|
+
subMenuRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AppSubMenu({ subMenu, subMenuRef, }: AppSubMenuProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SidebarSubMenu } from "@next-core/brick-types";
|
|
3
|
+
import { AppMenuProps } from "../AppMenu/AppMenu";
|
|
4
|
+
export declare type MenuBarProps = AppMenuProps & {
|
|
5
|
+
subMenu: SidebarSubMenu;
|
|
6
|
+
};
|
|
7
|
+
export declare function MenuBar(props: MenuBarProps): React.ReactElement;
|