@flatbiz/pro-layout 5.0.23 → 5.0.25

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/dist/index.d.ts CHANGED
@@ -575,8 +575,10 @@ export type BootstrapOptions = {
575
575
  /** 执行异常渲染 */
576
576
  errorRender?: (data?: TPlainObject) => ReactElement;
577
577
  };
578
- /** 显示生产环境的环境引导, 其他环境默认显示 */
578
+ /** 生产环境显示环境引导,其他环境默认显示 */
579
579
  showProdEnvGuide?: boolean;
580
+ /** 隐藏右下角环境引导 */
581
+ hidenEnvGuide?: boolean;
580
582
  /** 开发环境环境引导配置 */
581
583
  developmentEnvGuideConfigs?: {
582
584
  inte: string;
package/dist/index.js CHANGED
@@ -1827,7 +1827,7 @@ var DevFloatHelp = function DevFloatHelp(props) {
1827
1827
  setHidden = _useState2[1];
1828
1828
  var developmentEnvGuideConfigs = props.developmentEnvGuideConfigs;
1829
1829
  var operateList = [{
1830
- label: '测试',
1830
+ label: '测',
1831
1831
  onClick: function onClick() {
1832
1832
  if (developmentEnvGuideConfigs) {
1833
1833
  openNewWindow(developmentEnvGuideConfigs.inte);
@@ -1841,7 +1841,7 @@ var DevFloatHelp = function DevFloatHelp(props) {
1841
1841
  },
1842
1842
  active: currentEnv === 'inte'
1843
1843
  }, {
1844
- label: '预发',
1844
+ label: '预',
1845
1845
  onClick: function onClick() {
1846
1846
  if (developmentEnvGuideConfigs) {
1847
1847
  openNewWindow(developmentEnvGuideConfigs.rc);
@@ -1855,7 +1855,7 @@ var DevFloatHelp = function DevFloatHelp(props) {
1855
1855
  },
1856
1856
  active: currentEnv === 'rc'
1857
1857
  }, {
1858
- label: '生产',
1858
+ label: '生',
1859
1859
  onClick: function onClick() {
1860
1860
  if (developmentEnvGuideConfigs) {
1861
1861
  openNewWindow(developmentEnvGuideConfigs.prod);
@@ -1869,7 +1869,7 @@ var DevFloatHelp = function DevFloatHelp(props) {
1869
1869
  },
1870
1870
  active: currentEnv === 'prod'
1871
1871
  }, {
1872
- label: '开发 文档',
1872
+ label: '文档',
1873
1873
  onClick: function onClick() {
1874
1874
  openNewWindow('https://fex.qa.tcshuke.com/docs/admin/main/intro');
1875
1875
  },
@@ -1882,8 +1882,10 @@ var DevFloatHelp = function DevFloatHelp(props) {
1882
1882
  return null;
1883
1883
  }
1884
1884
  return /*#__PURE__*/jsxs(FloatButton.Group, {
1885
- shape: "square",
1886
- open: true,
1885
+ shape: "square"
1886
+ // trigger="click"
1887
+ // open={true}
1888
+ ,
1887
1889
  style: {
1888
1890
  bottom: 50,
1889
1891
  right: 2,
@@ -1894,13 +1896,19 @@ var DevFloatHelp = function DevFloatHelp(props) {
1894
1896
  return null;
1895
1897
  }
1896
1898
  return /*#__PURE__*/jsx(FloatButton, {
1897
- description: item.label,
1899
+ icon: /*#__PURE__*/jsx("span", {
1900
+ style: {
1901
+ fontSize: 14
1902
+ },
1903
+ children: item.label
1904
+ }),
1898
1905
  onClick: item.active ? undefined : item.onClick,
1899
1906
  style: {
1900
1907
  cursor: item.active ? 'default' : 'pointer'
1901
1908
  },
1902
1909
  type: item.active ? 'primary' : undefined,
1903
- className: item.active ? 'dev-float-help-active' : ''
1910
+ className: item.active ? 'dev-float-help-active' : '',
1911
+ children: /*#__PURE__*/jsx(Fragment, {})
1904
1912
  }, index);
1905
1913
  }), /*#__PURE__*/jsx(FloatButton, {
1906
1914
  icon: /*#__PURE__*/jsx(_CloseOutlined, {}),
@@ -1950,7 +1958,7 @@ var AppNoLayout = function AppNoLayout(props) {
1950
1958
  }), props.layoutMode === 'iframe-tab' && /*#__PURE__*/jsx(IframeTabRoutesTiming, {}), /*#__PURE__*/jsx(LayoutContent, {
1951
1959
  hideHeader: props.hideHeader,
1952
1960
  className: props.layoutPageClassName,
1953
- showDevFloatHelp: props.layoutMode != 'iframe-tab',
1961
+ showDevFloatHelp: props.layoutMode != 'iframe-tab' && props.hidenEnvGuide !== true,
1954
1962
  developmentEnvGuideConfigs: props.developmentEnvGuideConfigs,
1955
1963
  showProdEnvGuide: props.showProdEnvGuide,
1956
1964
  children: /*#__PURE__*/jsx(AppRoutes, _objectSpread2({}, props))
@@ -3683,7 +3691,7 @@ var App = function App() {
3683
3691
  hasSider: false,
3684
3692
  children: [!layoutCtx.hideHeader ? /*#__PURE__*/jsx(Header, {}) : null, isIframeMain ? /*#__PURE__*/jsx(LayoutIFrame, {}) : /*#__PURE__*/jsx(LayoutContent, {
3685
3693
  className: layoutCtx.layoutPageClassName,
3686
- showDevFloatHelp: true,
3694
+ showDevFloatHelp: layoutCtx.hidenEnvGuide !== true,
3687
3695
  developmentEnvGuideConfigs: layoutCtx.developmentEnvGuideConfigs,
3688
3696
  showProdEnvGuide: layoutCtx.showProdEnvGuide,
3689
3697
  children: /*#__PURE__*/jsx(AppRoutes, {
@@ -4726,7 +4734,8 @@ var Bootstrap = function Bootstrap(options) {
4726
4734
  layoutPageClassName: appProviderValue.layoutPageClassName,
4727
4735
  hideBreadsPathList: appProviderValue.hideBreadsPathList,
4728
4736
  developmentEnvGuideConfigs: appProviderValue.developmentEnvGuideConfigs,
4729
- showProdEnvGuide: appProviderValue.showProdEnvGuide
4737
+ showProdEnvGuide: appProviderValue.showProdEnvGuide,
4738
+ hidenEnvGuide: appProviderValue.hidenEnvGuide
4730
4739
  }) : /*#__PURE__*/jsx(AppProvider, _objectSpread2({}, appProviderValue))
4731
4740
  })]
4732
4741
  })