@tntd/reference 1.2.1 → 1.2.3

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.
@@ -49,36 +49,36 @@ export default WrapLocaleReceiver((props) => {
49
49
  };
50
50
 
51
51
  return (
52
- <>
53
- <Drawer
54
- className="reference-drawer"
55
- width={900}
56
- title={typeof title==='string' ? <Ellipsis title={title || ''}/>:title}
57
- onClose={onClose}
58
- visible={visible}
59
- destroyOnClose={destroyOnClose}
60
- showFooter={false}
61
- {...rest}
62
- >
63
- {referenceLoad && <Spin className="globalSpin" tip={I18N.referencedrawer.index.chaXunZhong}></Spin>}
64
- {!referenceLoad && (
65
- <div className="drawer-reference-body">
66
- <ReferenceInfo
67
- jumpFun={jumpFun}
68
- iframeJump={iframeJump}
69
- emptyType={emptyType}
70
- referenceData={referenceData || []}
71
- appList={appList || []}
72
- orgMap={orgMap || {}}
73
- unmountHandle={onClose}
74
- setOtherVisible={handleSetOtherVisible}
75
- showPagination={showPagination}
76
- onViewOpen={onViewOpen}
77
- />
78
- </div>
79
- )}
80
- {customDrawer}
81
- </Drawer>
82
- </>
52
+ <Drawer
53
+ className="reference-drawer"
54
+ width={900}
55
+ title={typeof title==='string' ? <Ellipsis title={title || ''}/>:title}
56
+ onClose={onClose}
57
+ visible={visible}
58
+ destroyOnClose={destroyOnClose}
59
+ showFooter={false}
60
+ {...rest}
61
+ >
62
+ {referenceLoad && <Spin className="globalSpin" tip={I18N.referencedrawer.index.chaXunZhong}>
63
+ <div className="globalSpin-div"></div>
64
+ </Spin>}
65
+ {!referenceLoad && (
66
+ <div className="drawer-reference-body">
67
+ <ReferenceInfo
68
+ jumpFun={jumpFun}
69
+ iframeJump={iframeJump}
70
+ emptyType={emptyType}
71
+ referenceData={referenceData || []}
72
+ appList={appList || []}
73
+ orgMap={orgMap || {}}
74
+ unmountHandle={onClose}
75
+ setOtherVisible={handleSetOtherVisible}
76
+ showPagination={showPagination}
77
+ onViewOpen={onViewOpen}
78
+ />
79
+ </div>
80
+ )}
81
+ {customDrawer}
82
+ </Drawer>
83
83
  );
84
84
  });
@@ -0,0 +1,9 @@
1
+ .reference-drawer {
2
+ .globalSpin {
3
+ &-div {
4
+ display: block;
5
+ width: 100%;
6
+ min-height: 160px;
7
+ }
8
+ }
9
+ }