antd-management-fast-framework 2.7.0 → 2.8.1

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.
@@ -0,0 +1,8 @@
1
+ export class MenuWrapper extends BaseComponent {
2
+ getUsableKey: () => string;
3
+ checkActiveKey: () => void;
4
+ getActiveKey: () => any;
5
+ renderFurther(): React.JSX.Element;
6
+ }
7
+ import { BaseComponent } from 'antd-management-fast-component';
8
+ import React from 'react';
@@ -1,6 +1,7 @@
1
- export class PageExtraWrapper extends React.PureComponent<any, any, any> {
2
- constructor(props: any);
3
- constructor(props: any, context: any);
4
- render(): React.JSX.Element;
1
+ export class PageExtraWrapper extends BaseComponent {
2
+ getUsableKey: () => string;
3
+ checkActiveKey: () => void;
4
+ renderFurther(): React.JSX.Element;
5
5
  }
6
+ import { BaseComponent } from 'antd-management-fast-component';
6
7
  import React from 'react';
@@ -1,8 +1,9 @@
1
- export class TopProgressBar extends BaseComponent {
2
- renderFurther(): React.JSX.Element;
1
+ export class TopProgressBar extends React.PureComponent<any, any, any> {
2
+ constructor(props: any);
3
+ constructor(props: any, context: any);
4
+ render(): React.JSX.Element;
3
5
  }
4
6
  export namespace TopProgressBar {
5
7
  let defaultProps: {};
6
8
  }
7
- import { BaseComponent } from 'antd-management-fast-component';
8
9
  import React from 'react';
@@ -3,6 +3,7 @@ export * from "./Bootstrap";
3
3
  export * from "./DataPreviewDrawer";
4
4
  export * from "./DrawerExtra";
5
5
  export * from "./LoadingOverlay";
6
+ export * from "./MenuWrapper";
6
7
  export * from "./MobileContainor";
7
8
  export * from "./ModalExtra";
8
9
  export * from "./ReloadAnimalPrompt";
@@ -1,4 +1,4 @@
1
- export class InternalBuild extends InternalTabFlow {
1
+ export class InternalBuild extends InternalSwitchoverFlow {
2
2
  buildCardCollectionArea: (config?: null) => React.JSX.Element | null;
3
3
  buildCardCollectionItem: ({ config: cardItemConfig, key: cardItemKey, mode, justify: justifyGeneral, align: alignGeneral, }: {
4
4
  config: any;
@@ -23,5 +23,5 @@ export class InternalBuild extends InternalTabFlow {
23
23
  buildExtraAction: () => React.JSX.Element;
24
24
  buildPageHeaderSubTitle: () => null;
25
25
  }
26
- import { InternalTabFlow } from '../InternalTabFlow';
26
+ import { InternalSwitchoverFlow } from '../InternalSwitchoverFlow';
27
27
  import React from 'react';
@@ -2,6 +2,7 @@ export class InternalFlow extends Core {
2
2
  static getDerivedStateFromProps(nextProperties: any, previousState: any): any;
3
3
  reloadHeaderOnSubmitSuccess: boolean;
4
4
  showPageHeader: boolean;
5
+ showReloadButton: boolean;
5
6
  contentWrapperType: string;
6
7
  showExtraActionDivider: boolean;
7
8
  loadRemoteRequestDelay: number;
@@ -12,7 +13,6 @@ export class InternalFlow extends Core {
12
13
  };
13
14
  state: {
14
15
  backPath: string;
15
- showReloadButton: boolean;
16
16
  loadApiPath: string;
17
17
  pageTitle: string;
18
18
  pageSubTitle: string;
@@ -2,7 +2,8 @@ export class InternalLayout extends InternalBuild {
2
2
  renderPresetSiderTopArea: () => React.JSX.Element | null;
3
3
  renderPresetSiderBottomArea: () => React.JSX.Element | null;
4
4
  renderPresetContentArea: () => void;
5
- renderPresetPageBodyContent: () => React.JSX.Element;
5
+ renderPresetPageBodyContent: () => React.JSX.Element | null;
6
+ renderPresetPageLeftArea: () => null;
6
7
  renderPresetPageBody: () => React.JSX.Element;
7
8
  renderPresetPageFooter: () => null;
8
9
  renderPresetFloatButton: () => React.JSX.Element;
@@ -1,5 +1,11 @@
1
- export class InternalTabFlow extends InternalFlow {
1
+ export class InternalSwitchoverFlow extends InternalFlow {
2
2
  tabList: any[];
3
+ menuList: any[];
4
+ adjustMenuListAvailable: (menuListAvailable: any) => any;
5
+ getMenuListAvailable: () => any;
6
+ handleMenuChange: ({ key }: {
7
+ key: any;
8
+ }) => Promise<void>;
3
9
  establishTabBarExtraContentLeftConfig: () => null;
4
10
  establishTabBarExtraContentRightConfig: () => null;
5
11
  adjustTabListAvailable: (tabListAvailable: any) => any;
@@ -11,6 +11,7 @@ export class Core extends BaseComponent {
11
11
  viewReloadingFlag: string;
12
12
  viewProcessingFlag: string;
13
13
  viewTabFlag: string;
14
+ viewMenuFlag: string;
14
15
  viewAnimalPromptFlag: string;
15
16
  state: {
16
17
  dataLoading: boolean;
@@ -27,10 +28,13 @@ export class Core extends BaseComponent {
27
28
  viewReloadingFlag: string;
28
29
  viewProcessingFlag: string;
29
30
  viewTabFlag: string;
31
+ viewMenuFlag: string;
30
32
  viewAnimalPromptFlag: string;
31
33
  };
32
- getTabActiveKey(): any;
34
+ getTabActiveKey: () => any;
33
35
  setTabActiveKey(key: any): void;
36
+ getMenuActiveKey: () => any;
37
+ setMenuActiveKey(key: any): void;
34
38
  startLoading(...message: any[]): void;
35
39
  stopLoading(...message: any[]): void;
36
40
  startSearching(...message: any[]): void;
@@ -0,0 +1,4 @@
1
+ export class BaseUpdateFormMenu extends BaseUpdateFormContent {
2
+ showPageHeader: boolean;
3
+ }
4
+ import { BaseUpdateFormContent } from '../BaseUpdateFormContent';
@@ -3,8 +3,10 @@ export namespace DataForm {
3
3
  export { BaseUpdateForm };
4
4
  export { BaseUpdateFormContent };
5
5
  export { BaseUpdateFormTab };
6
+ export { BaseUpdateFormMenu };
6
7
  }
7
8
  import { BaseAddForm } from './BaseAddForm';
8
9
  import { BaseUpdateForm } from './BaseUpdateForm';
9
10
  import { BaseUpdateFormContent } from './BaseUpdateFormContent';
10
11
  import { BaseUpdateFormTab } from './BaseUpdateFormTab';
12
+ import { BaseUpdateFormMenu } from './BaseUpdateFormMenu';
@@ -1,5 +1,6 @@
1
1
  export class Base extends AuthorizationWrapper {
2
2
  constructor(properties: any);
3
+ showReloadButton: boolean;
3
4
  /**
4
5
  * 使用远端分页
5
6
  */
@@ -1,29 +1,27 @@
1
- export class DataMenuContainer extends AuthorizationWrapper {
2
- constructor(properties: any);
1
+ export class DataMenuContainer extends DataTabContainer {
2
+ showHeader: boolean;
3
3
  loadRemoteRequestAfterMount: boolean;
4
- resetDataAfterLoad: boolean;
5
- menuList: any[];
6
- state: any;
7
- doWorkBeforeAdjustDidMount: () => void;
8
- doWorkBeforeUnmount: () => void;
9
- doWorkWhenDidUpdate: (preProperties: any, preState: any, snapshot: any) => void;
10
- getMenuListAvailable: () => any;
11
- getMenuActiveKeyCore: (defaultKey: any) => string;
12
- getMenuActiveKey: () => string;
13
- getDefaultMenuKey: () => string;
14
- getRightTitleConfig: () => {};
15
- buildRightTitle: ({ icon, text }: {
16
- icon?: null | undefined;
17
- text?: null | undefined;
18
- }) => React.JSX.Element;
4
+ state: {
5
+ menuMode: string;
6
+ defaultAvatarIcon: React.JSX.Element;
7
+ showPageHeaderAvatar: boolean;
8
+ errorFieldName: string;
9
+ submitApiPath: string;
10
+ loadApiPath: string;
11
+ pageTitle: string;
12
+ pageSubTitle: string;
13
+ metaData: null;
14
+ metaExtra: null;
15
+ metaListData: never[];
16
+ metaOriginalData: null;
17
+ dataLoading: boolean;
18
+ firstLoadSuccess: boolean;
19
+ loadSuccess: boolean;
20
+ urlParams: null;
21
+ externalData: null;
22
+ };
19
23
  buildMenu: () => any;
20
- selectKey: ({ key }: {
21
- key: any;
22
- }) => void;
23
- resize: () => void;
24
- renderPresetRightTitle: () => React.JSX.Element;
25
- renderFurther(): React.JSX.Element;
26
- main: HTMLDivElement | null | undefined;
24
+ renderPresetPageLeftArea: () => React.JSX.Element;
27
25
  }
28
- import { AuthorizationWrapper } from '../AuthorizationWrapper';
26
+ import { DataTabContainer } from '../DataTabContainer';
29
27
  import React from 'react';
@@ -18,9 +18,9 @@ export class DataCore extends BaseView {
18
18
  renderPresetMainTitleIcon: () => React.JSX.Element;
19
19
  renderPresetMainTitleText: () => string;
20
20
  renderPresetMainTitle: () => React.JSX.Element;
21
- renderPresetFormWrapper: () => React.JSX.Element;
22
- renderPresetContentArea: () => React.JSX.Element;
23
- renderPresetForm: () => React.JSX.Element;
21
+ renderPresetFormWrapper: () => React.JSX.Element | null;
22
+ renderPresetContentArea: () => React.JSX.Element | null;
23
+ renderPresetForm: () => React.JSX.Element | null;
24
24
  establishCardCollectionConfig: () => null;
25
25
  renderPresetFormContent: () => any;
26
26
  }
@@ -1,7 +1,6 @@
1
1
  export class DataLoad extends DataCore {
2
2
  lastLoadParams: any;
3
3
  state: {
4
- showReloadButton: boolean;
5
4
  errorFieldName: string;
6
5
  submitApiPath: string;
7
6
  loadApiPath: string;
@@ -3,7 +3,6 @@ export class DataTabContainer extends DataLoad {
3
3
  state: {
4
4
  defaultAvatarIcon: import("react").JSX.Element;
5
5
  showPageHeaderAvatar: boolean;
6
- showReloadButton: boolean;
7
6
  errorFieldName: string;
8
7
  submitApiPath: string;
9
8
  loadApiPath: string;
package/es/index.css CHANGED
@@ -8,6 +8,5 @@
8
8
  .index_batchAction__oUDJ-{width:auto}
9
9
  .index_columnSetting__3pXyD{width:auto}.index_topTitle__DukWj{align-items:center;display:flex;height:32px;justify-content:space-between}.index_list__Sawo5{display:flex;flex-direction:column;width:168px}.index_list__Sawo5 .index_title__6PP8V{color:#8c8c8c;font-size:12px;margin-bottom:8px}.index_list__Sawo5 .index_item__26IUr{display:block;width:100%}.index_list__Sawo5 .index_item__26IUr .index_option__fh9qw{cursor:pointer;display:none;float:right}.index_list__Sawo5 .index_item__26IUr .index_option__fh9qw>span>i.index_anticon__rcn9B{color:var(--amf-primary-color)}.index_list__Sawo5 .index_item__26IUr .index_option__fh9qw>span+span{margin-left:8px}.index_list__Sawo5 .index_item__26IUr:hover .index_columnSettingList-item-option__WVIeN{display:block}.index_list__Sawo5 .index_checkbox__NKL4Z{margin-bottom:8px;margin-left:0}.index_list__Sawo5 .index_checkbox__NKL4Z :last-child{margin-bottom:0}
10
10
  @media screen and (min-width:var(--amf-screen-lg )){.index_amf-data-list-view-base_containorSearch__Peuxu .ant-card-body{padding-bottom:0}}@media screen and (min-width:var(--amf-screen-md )){.index_amf-data-list-view-base_containorSearch__Peuxu .ant-card-body{padding-bottom:0}}@media screen and (min-width:var(--amf-screen-xl )){.index_amf-data-list-view-base_containorSearch__Peuxu .ant-card-body{padding-bottom:0}}@media screen and (min-width:var(--amf-screen-xxl )){.index_amf-data-list-view-base_containorSearch__Peuxu .ant-card-body{padding-bottom:0}}.index_amf-data-list-view-base_containorTable_alertContainor__Pwdgj{margin:0 0 16px}.index_amf-data-list-view-base_containorTable_alertContainor_alertInfo__Ola2i{display:flex}.index_amf-data-list-view-base_containorTable_alertContainor_alertInfo_alertContent__KJoeG{flex:1}.index_amf-data-list-view-base_containorTable_alertContainor_alertInfo_alertOption__AjD2E{min-width:48px;padding-left:16px}.index_amf-data-list-view-base_tableListForm__U4Ev2 .ant-form-item{display:flex;margin-right:0}.index_amf-data-list-view-base_tableListForm__U4Ev2 .ant-form-item>.ant-form-item-label{line-height:32px;padding-right:8px;width:auto}.index_amf-data-list-view-base_tableListForm__U4Ev2 .ant-form-item .ant-form-item-control{flex:1;line-height:32px}.index_amf-data-list-view-base_tableListForm_submitButtons__1uoXF{margin-bottom:24px;white-space:nowrap}.ant-page-header-heading-title{font-size:16px}.ant-page-header{padding-bottom:12px}.amf-data-list-view-base_containorTable.ant-card{border-radius:0;box-shadow:none}@media screen and (max-width:var(--amf-screen-lg )){.index_tableListForm__j6880 .ant-form-item{margin-right:24px}}@media screen and (max-width:var(--amf-screen-md )){.index_tableListForm__j6880 .ant-form-item{margin-right:8px}}
11
- .index_main__8WA-d{background-color:var(--amf-body-background);display:flex;height:100%;overflow:auto;width:100%}.index_main__8WA-d .index_leftMenu__urYtH{border-right:var(--amf-border-width-base) var(--amf-border-style-base) var(--amf-border-color-split);margin-bottom:16px;margin-top:16px;width:224px}.index_main__8WA-d .index_leftMenu__urYtH .ant-menu-inline{border:none}.index_main__8WA-d .index_leftMenu__urYtH .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{font-weight:700}.index_main__8WA-d .index_right__IUROV{background-color:#f0f2f5;flex:1;padding:0 0 0 20px}.index_main__8WA-d .ant-list-split .ant-list-item:last-child{border-bottom:1px solid #e8e8e8}.index_main__8WA-d .ant-list-item{padding-bottom:14px;padding-top:14px}.ant-list-item-meta .taobao{border-radius:var(--amf-border-radius-base);color:#ff4000;display:block;font-size:48px;line-height:48px}.ant-list-item-meta .dingding{background-color:#2eabff;border-radius:var(--amf-border-radius-base);color:#fff;font-size:32px;line-height:32px;margin:2px;padding:6px}.ant-list-item-meta .alipay{border-radius:var(--amf-border-radius-base);color:#2eabff;font-size:48px;line-height:48px}font.strong{color:var(--amf-success-color)}font.medium{color:var(--amf-warning-color)}font.weak{color:var(--amf-error-color)}@media screen and (max-width:var(--amf-screen-md )){.index_main__8WA-d{flex-direction:column}.index_main__8WA-d .index_leftMenu__urYtH{border:none;width:100%}.index_main__8WA-d .index_right__IUROV{padding:0}}
12
11
  .index_buttonText__n69Cb{margin-left:10px}.index_modalExtraInner__Moowl .ant-card{border-radius:0;box-shadow:none}
13
12
  .index_containorBox__fgRQw .index_titleIcon__tkFlu{margin-right:10px}.index_containorBox__fgRQw .index_titleText__WYAKq{margin-left:2px}.index_containorBox__fgRQw .index_mainContainor__4lPyG .index_contentContainor__nqqOe{padding:24px}.index_containorBox__fgRQw .index_mainContainor__4lPyG .index_containorTable__4LcOW .index_iconAction__OAVDt{border:0;color:#000}.index_containorBox__fgRQw .index_mainContainor__4lPyG .index_backendPagination__kPEj8 .ant-table,.index_containorBox__fgRQw .index_mainContainor__4lPyG .index_frontendPagination__hD81U .ant-table{height:calc(100% - 52px)}.index_containorBox__fgRQw .index_mainContainor__4lPyG .index_noneFrontendPagination__xrLoA .ant-table{height:100%}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-layout{background-color:#fff;min-height:calc(100vh - 55px)}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-layout-footer{padding:0}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-card{border-radius:0;box-shadow:none}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper,.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading{height:100%}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container{height:100%;overflow-x:hidden}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container{display:flex;flex-direction:column;height:100%}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-content,.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container:before{height:100%}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header{flex:0 1 auto}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header .ant-table-thead{max-height:47px}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-body{flex:1 1 auto}.index_containorBox__fgRQw .index_mainContainor__4lPyG .ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-pagination{box-shadow:inset 0 9px 8px -5px rgba(5,5,5,.06);margin-bottom:0;margin-top:0;padding-bottom:10px;padding-top:10px}