iglooform 2.5.33 → 2.5.35

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.
@@ -41,6 +41,8 @@ interface ClaimList {
41
41
  mobileSubTitle?: (record?: any) => any;
42
42
  mobileRedDot?: (record?: any) => boolean;
43
43
  mobileTagOnClick?: (record?: any, e?: any) => any;
44
+ mobileTagRender?: (record?: IClaimDateSource) => any;
45
+ mobileExtraRender?: () => any;
44
46
  }
45
47
  declare const ClaimList: (props: ClaimList) => JSX.Element;
46
48
  export default ClaimList;
@@ -151,7 +151,9 @@ var ClaimList = function ClaimList(props) {
151
151
  mobileInsurerName = props.mobileInsurerName,
152
152
  mobileSubTitle = props.mobileSubTitle,
153
153
  mobileRedDot = props.mobileRedDot,
154
- mobileTagOnClick = props.mobileTagOnClick;
154
+ mobileTagOnClick = props.mobileTagOnClick,
155
+ mobileTagRender = props.mobileTagRender,
156
+ mobileExtraRender = props.mobileExtraRender;
155
157
  var getSomeMustProps = dateSource.map(function (claim) {
156
158
  return _objectSpread(_objectSpread({}, claim), {}, {
157
159
  insurerLogo: mobileInsurerLogo && mobileInsurerLogo(claim),
@@ -159,7 +161,9 @@ var ClaimList = function ClaimList(props) {
159
161
  statusProps: mobileStatusProps && mobileStatusProps(claim),
160
162
  mobileSubTitle: mobileSubTitle && mobileSubTitle(claim),
161
163
  mobileRedDot: mobileRedDot && mobileRedDot(claim),
162
- mobileTagOnClick: mobileTagOnClick
164
+ mobileTagRender: mobileTagRender && mobileTagRender(claim),
165
+ mobileTagOnClick: mobileTagOnClick,
166
+ mobileExtraRender: mobileExtraRender
163
167
  });
164
168
  });
165
169
  return _jsx(ClaimListTags, {
@@ -17,7 +17,8 @@ var LayoutFooter = function LayoutFooter(_ref) {
17
17
  tel = _ref.tel,
18
18
  email = _ref.email,
19
19
  workTime = _ref.workTime,
20
- address = _ref.address;
20
+ address = _ref.address,
21
+ companyIcon = _ref.companyIcon;
21
22
  var useBreakpoint = _Grid.useBreakpoint;
22
23
 
23
24
  var _useBreakpoint = useBreakpoint(),
@@ -88,7 +89,9 @@ var LayoutFooter = function LayoutFooter(_ref) {
88
89
  className: "footer-top",
89
90
  children: [!hiddenIglooIcon && _jsx("div", {
90
91
  className: "top-left",
91
- children: _jsx("div", {
92
+ children: companyIcon ? _jsx("img", {
93
+ src: companyIcon
94
+ }) : _jsx("div", {
92
95
  className: "igloo-logo"
93
96
  })
94
97
  }), topRightContent]
@@ -37,6 +37,7 @@ export interface FooterConfig {
37
37
  email?: string;
38
38
  workTime?: any;
39
39
  address?: string;
40
+ companyIcon?: string;
40
41
  }
41
42
  interface layoutType {
42
43
  hiddenIglooIcon?: boolean;
@@ -138,6 +138,13 @@
138
138
  background: url(./logo.svg) no-repeat;
139
139
  background-size: contain;
140
140
  }
141
+
142
+ & > img {
143
+ width: 64px;
144
+ height: 36px;
145
+ object-fit: contain;
146
+ margin-right: 40px;
147
+ }
141
148
  }
142
149
 
143
150
  .no-address-info {
@@ -5,6 +5,8 @@ interface ICardProps extends IPolicyCardProps {
5
5
  mobileSubTitle?: string;
6
6
  mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
7
7
  mobileRedDot?: boolean;
8
+ mobileTagRender?: (cardInfo?: IPolicyCardProps) => any;
9
+ mobileExtraRender?: () => any;
8
10
  }
9
11
  interface IPolicyOrClaimMobileListProps {
10
12
  dataList: ICardProps[];
@@ -26,40 +26,52 @@ var MobileInsurerList = function MobileInsurerList(props) {
26
26
  mobileSubTitle = cardInfo.mobileSubTitle,
27
27
  statusProps = cardInfo.statusProps,
28
28
  mobileTagOnClick = cardInfo.mobileTagOnClick,
29
- mobileRedDot = cardInfo.mobileRedDot;
29
+ mobileRedDot = cardInfo.mobileRedDot,
30
+ mobileTagRender = cardInfo.mobileTagRender,
31
+ mobileExtraRender = cardInfo.mobileExtraRender;
30
32
  invariant(mobileTagOnClick == undefined || typeof mobileTagOnClick === 'function', 'mobileTagOnClick must be a function');
33
+
34
+ if (typeof mobileTagRender === 'function') {
35
+ return mobileTagRender(cardInfo);
36
+ }
37
+
31
38
  return _jsxs("div", {
32
39
  className: "mobile-tag-container",
33
40
  onClick: function onClick(e) {
34
41
  return mobileTagOnClick && mobileTagOnClick(cardInfo, e);
35
42
  },
36
43
  children: [_jsxs("div", {
37
- className: "mobile-tag-left",
38
- children: [insurerLogo && _jsx("div", {
39
- className: "left-insurer-icon",
40
- children: insurerLogo
41
- }), _jsxs("div", {
42
- className: "left-insurer-info-container",
43
- children: [_jsxs("div", {
44
- className: "left-insurer-title",
45
- children: [_jsxs(Typography, {
46
- level: "h4",
47
- children: [insurerName, " ", insurerType]
48
- }), mobileRedDot && _jsx("div", {
49
- className: "left-insurer-title-red-dot"
44
+ className: "mobile-tag-common",
45
+ children: [_jsxs("div", {
46
+ className: "mobile-tag-left",
47
+ children: [insurerLogo && _jsx("div", {
48
+ className: "left-insurer-icon",
49
+ children: insurerLogo
50
+ }), _jsxs("div", {
51
+ className: "left-insurer-info-container",
52
+ children: [_jsxs("div", {
53
+ className: "left-insurer-title",
54
+ children: [_jsxs(Typography, {
55
+ level: "h4",
56
+ children: [insurerName, " ", insurerType]
57
+ }), mobileRedDot && _jsx("div", {
58
+ className: "left-insurer-title-red-dot"
59
+ })]
60
+ }), mobileSubTitle && _jsx("div", {
61
+ className: "left-insurer-sub-title",
62
+ children: _jsx(Typography, {
63
+ level: "body2",
64
+ children: mobileSubTitle
65
+ })
66
+ }), statusProps && _jsx("div", {
67
+ className: "left-insurer-status",
68
+ children: _jsx(StatusBox, _objectSpread({}, statusProps))
50
69
  })]
51
- }), mobileSubTitle && _jsx("div", {
52
- className: "left-insurer-sub-title",
53
- children: _jsx(Typography, {
54
- level: "body2",
55
- children: mobileSubTitle
56
- })
57
- }), statusProps && _jsx("div", {
58
- className: "left-insurer-status",
59
- children: _jsx(StatusBox, _objectSpread({}, statusProps))
60
70
  })]
61
- })]
62
- }), _jsx(ArrowRightOutlined, {})]
71
+ }), _jsx(ArrowRightOutlined, {})]
72
+ }), _jsx("div", {
73
+ children: typeof mobileExtraRender === 'function' ? mobileExtraRender() : null
74
+ })]
63
75
  }, index);
64
76
  })
65
77
  });
@@ -2,7 +2,7 @@
2
2
  cursor: pointer;
3
3
  background-color: @white;
4
4
  display: flex;
5
- align-items: center;
5
+ flex-direction: column;
6
6
  padding: 16px 8px 16px 16px;
7
7
  border-left: 3px solid @purple-main;
8
8
 
@@ -16,6 +16,11 @@
16
16
  margin-left: 8px;
17
17
  }
18
18
 
19
+ .mobile-tag-common {
20
+ display: flex;
21
+ align-items: center;
22
+ }
23
+
19
24
  .mobile-tag-left {
20
25
  flex: 1;
21
26
  display: flex;
@@ -4,6 +4,8 @@ interface ICardProps extends IPolicyCardProps {
4
4
  mobileSubTitle?: string;
5
5
  mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
6
6
  mobileRedDot?: boolean;
7
+ mobileTagRender?: (cardInfo?: ICardProps) => any;
8
+ mobileExtraRender?: () => any;
7
9
  }
8
10
  interface IPolicyList {
9
11
  dataList: ICardProps[];
@@ -48,6 +48,7 @@
48
48
  .igloo-upload-preview-item-info {
49
49
  width: calc(~'100%' - 96px);
50
50
  display: flex;
51
+ flex: 1;
51
52
 
52
53
  .igloo-upload-preview-item-icon {
53
54
  margin-right: 16px;
@@ -80,6 +81,12 @@
80
81
  text-overflow: ellipsis;
81
82
  white-space: nowrap;
82
83
  vertical-align: top;
84
+
85
+ & > span {
86
+ overflow: hidden;
87
+ text-overflow: ellipsis;
88
+ white-space: nowrap;
89
+ }
83
90
  }
84
91
 
85
92
  .igloo-upload-preview-item-size {
@@ -41,6 +41,8 @@ interface ClaimList {
41
41
  mobileSubTitle?: (record?: any) => any;
42
42
  mobileRedDot?: (record?: any) => boolean;
43
43
  mobileTagOnClick?: (record?: any, e?: any) => any;
44
+ mobileTagRender?: (record?: IClaimDateSource) => any;
45
+ mobileExtraRender?: () => any;
44
46
  }
45
47
  declare const ClaimList: (props: ClaimList) => JSX.Element;
46
48
  export default ClaimList;
@@ -178,7 +178,9 @@ var ClaimList = function ClaimList(props) {
178
178
  mobileInsurerName = props.mobileInsurerName,
179
179
  mobileSubTitle = props.mobileSubTitle,
180
180
  mobileRedDot = props.mobileRedDot,
181
- mobileTagOnClick = props.mobileTagOnClick;
181
+ mobileTagOnClick = props.mobileTagOnClick,
182
+ mobileTagRender = props.mobileTagRender,
183
+ mobileExtraRender = props.mobileExtraRender;
182
184
  var getSomeMustProps = dateSource.map(function (claim) {
183
185
  return _objectSpread(_objectSpread({}, claim), {}, {
184
186
  insurerLogo: mobileInsurerLogo && mobileInsurerLogo(claim),
@@ -186,7 +188,9 @@ var ClaimList = function ClaimList(props) {
186
188
  statusProps: mobileStatusProps && mobileStatusProps(claim),
187
189
  mobileSubTitle: mobileSubTitle && mobileSubTitle(claim),
188
190
  mobileRedDot: mobileRedDot && mobileRedDot(claim),
189
- mobileTagOnClick: mobileTagOnClick
191
+ mobileTagRender: mobileTagRender && mobileTagRender(claim),
192
+ mobileTagOnClick: mobileTagOnClick,
193
+ mobileExtraRender: mobileExtraRender
190
194
  });
191
195
  });
192
196
  return (0, _jsxRuntime.jsx)(_mobileInsurerList.default, {
@@ -35,7 +35,8 @@ var LayoutFooter = function LayoutFooter(_ref) {
35
35
  tel = _ref.tel,
36
36
  email = _ref.email,
37
37
  workTime = _ref.workTime,
38
- address = _ref.address;
38
+ address = _ref.address,
39
+ companyIcon = _ref.companyIcon;
39
40
  var useBreakpoint = _grid.default.useBreakpoint;
40
41
 
41
42
  var _useBreakpoint = useBreakpoint(),
@@ -106,7 +107,9 @@ var LayoutFooter = function LayoutFooter(_ref) {
106
107
  className: "footer-top",
107
108
  children: [!hiddenIglooIcon && (0, _jsxRuntime.jsx)("div", {
108
109
  className: "top-left",
109
- children: (0, _jsxRuntime.jsx)("div", {
110
+ children: companyIcon ? (0, _jsxRuntime.jsx)("img", {
111
+ src: companyIcon
112
+ }) : (0, _jsxRuntime.jsx)("div", {
110
113
  className: "igloo-logo"
111
114
  })
112
115
  }), topRightContent]
@@ -37,6 +37,7 @@ export interface FooterConfig {
37
37
  email?: string;
38
38
  workTime?: any;
39
39
  address?: string;
40
+ companyIcon?: string;
40
41
  }
41
42
  interface layoutType {
42
43
  hiddenIglooIcon?: boolean;
@@ -138,6 +138,13 @@
138
138
  background: url(./logo.svg) no-repeat;
139
139
  background-size: contain;
140
140
  }
141
+
142
+ & > img {
143
+ width: 64px;
144
+ height: 36px;
145
+ object-fit: contain;
146
+ margin-right: 40px;
147
+ }
141
148
  }
142
149
 
143
150
  .no-address-info {
@@ -5,6 +5,8 @@ interface ICardProps extends IPolicyCardProps {
5
5
  mobileSubTitle?: string;
6
6
  mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
7
7
  mobileRedDot?: boolean;
8
+ mobileTagRender?: (cardInfo?: IPolicyCardProps) => any;
9
+ mobileExtraRender?: () => any;
8
10
  }
9
11
  interface IPolicyOrClaimMobileListProps {
10
12
  dataList: ICardProps[];
@@ -41,40 +41,52 @@ var MobileInsurerList = function MobileInsurerList(props) {
41
41
  mobileSubTitle = cardInfo.mobileSubTitle,
42
42
  statusProps = cardInfo.statusProps,
43
43
  mobileTagOnClick = cardInfo.mobileTagOnClick,
44
- mobileRedDot = cardInfo.mobileRedDot;
44
+ mobileRedDot = cardInfo.mobileRedDot,
45
+ mobileTagRender = cardInfo.mobileTagRender,
46
+ mobileExtraRender = cardInfo.mobileExtraRender;
45
47
  (0, _invariant.default)(mobileTagOnClick == undefined || typeof mobileTagOnClick === 'function', 'mobileTagOnClick must be a function');
48
+
49
+ if (typeof mobileTagRender === 'function') {
50
+ return mobileTagRender(cardInfo);
51
+ }
52
+
46
53
  return (0, _jsxRuntime.jsxs)("div", {
47
54
  className: "mobile-tag-container",
48
55
  onClick: function onClick(e) {
49
56
  return mobileTagOnClick && mobileTagOnClick(cardInfo, e);
50
57
  },
51
58
  children: [(0, _jsxRuntime.jsxs)("div", {
52
- className: "mobile-tag-left",
53
- children: [insurerLogo && (0, _jsxRuntime.jsx)("div", {
54
- className: "left-insurer-icon",
55
- children: insurerLogo
56
- }), (0, _jsxRuntime.jsxs)("div", {
57
- className: "left-insurer-info-container",
58
- children: [(0, _jsxRuntime.jsxs)("div", {
59
- className: "left-insurer-title",
60
- children: [(0, _jsxRuntime.jsxs)(_typography.default, {
61
- level: "h4",
62
- children: [insurerName, " ", insurerType]
63
- }), mobileRedDot && (0, _jsxRuntime.jsx)("div", {
64
- className: "left-insurer-title-red-dot"
59
+ className: "mobile-tag-common",
60
+ children: [(0, _jsxRuntime.jsxs)("div", {
61
+ className: "mobile-tag-left",
62
+ children: [insurerLogo && (0, _jsxRuntime.jsx)("div", {
63
+ className: "left-insurer-icon",
64
+ children: insurerLogo
65
+ }), (0, _jsxRuntime.jsxs)("div", {
66
+ className: "left-insurer-info-container",
67
+ children: [(0, _jsxRuntime.jsxs)("div", {
68
+ className: "left-insurer-title",
69
+ children: [(0, _jsxRuntime.jsxs)(_typography.default, {
70
+ level: "h4",
71
+ children: [insurerName, " ", insurerType]
72
+ }), mobileRedDot && (0, _jsxRuntime.jsx)("div", {
73
+ className: "left-insurer-title-red-dot"
74
+ })]
75
+ }), mobileSubTitle && (0, _jsxRuntime.jsx)("div", {
76
+ className: "left-insurer-sub-title",
77
+ children: (0, _jsxRuntime.jsx)(_typography.default, {
78
+ level: "body2",
79
+ children: mobileSubTitle
80
+ })
81
+ }), statusProps && (0, _jsxRuntime.jsx)("div", {
82
+ className: "left-insurer-status",
83
+ children: (0, _jsxRuntime.jsx)(_statusBox.default, _objectSpread({}, statusProps))
65
84
  })]
66
- }), mobileSubTitle && (0, _jsxRuntime.jsx)("div", {
67
- className: "left-insurer-sub-title",
68
- children: (0, _jsxRuntime.jsx)(_typography.default, {
69
- level: "body2",
70
- children: mobileSubTitle
71
- })
72
- }), statusProps && (0, _jsxRuntime.jsx)("div", {
73
- className: "left-insurer-status",
74
- children: (0, _jsxRuntime.jsx)(_statusBox.default, _objectSpread({}, statusProps))
75
85
  })]
76
- })]
77
- }), (0, _jsxRuntime.jsx)(_iglooicon.ArrowRightOutlined, {})]
86
+ }), (0, _jsxRuntime.jsx)(_iglooicon.ArrowRightOutlined, {})]
87
+ }), (0, _jsxRuntime.jsx)("div", {
88
+ children: typeof mobileExtraRender === 'function' ? mobileExtraRender() : null
89
+ })]
78
90
  }, index);
79
91
  })
80
92
  });
@@ -2,7 +2,7 @@
2
2
  cursor: pointer;
3
3
  background-color: @white;
4
4
  display: flex;
5
- align-items: center;
5
+ flex-direction: column;
6
6
  padding: 16px 8px 16px 16px;
7
7
  border-left: 3px solid @purple-main;
8
8
 
@@ -16,6 +16,11 @@
16
16
  margin-left: 8px;
17
17
  }
18
18
 
19
+ .mobile-tag-common {
20
+ display: flex;
21
+ align-items: center;
22
+ }
23
+
19
24
  .mobile-tag-left {
20
25
  flex: 1;
21
26
  display: flex;
@@ -4,6 +4,8 @@ interface ICardProps extends IPolicyCardProps {
4
4
  mobileSubTitle?: string;
5
5
  mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
6
6
  mobileRedDot?: boolean;
7
+ mobileTagRender?: (cardInfo?: ICardProps) => any;
8
+ mobileExtraRender?: () => any;
7
9
  }
8
10
  interface IPolicyList {
9
11
  dataList: ICardProps[];
@@ -48,6 +48,7 @@
48
48
  .igloo-upload-preview-item-info {
49
49
  width: calc(~'100%' - 96px);
50
50
  display: flex;
51
+ flex: 1;
51
52
 
52
53
  .igloo-upload-preview-item-icon {
53
54
  margin-right: 16px;
@@ -80,6 +81,12 @@
80
81
  text-overflow: ellipsis;
81
82
  white-space: nowrap;
82
83
  vertical-align: top;
84
+
85
+ & > span {
86
+ overflow: hidden;
87
+ text-overflow: ellipsis;
88
+ white-space: nowrap;
89
+ }
83
90
  }
84
91
 
85
92
  .igloo-upload-preview-item-size {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.5.33",
3
+ "version": "2.5.35",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",