bhd-components 0.7.36 → 0.7.38

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.
@@ -182,7 +182,6 @@ const initWarnModal = (obj)=>{
182
182
  };
183
183
  const BhdTipModal = {
184
184
  confirm: (obj)=>{
185
- console.log("Modal", Modal);
186
185
  let modal = Modal.confirm(initConFirmModal(obj));
187
186
  modal.updateModal = (updateObj = {})=>{
188
187
  modal.update(initConFirmModal(_object_spread({}, obj, updateObj)));
@@ -190,7 +189,6 @@ const BhdTipModal = {
190
189
  return modal;
191
190
  },
192
191
  success: (obj)=>{
193
- console.log("Modal", Modal);
194
192
  let modal = Modal.confirm(initSuccessModal(obj));
195
193
  modal.updateModal = (updateObj = {})=>{
196
194
  modal.update(initSuccessModal(_object_spread({}, obj, updateObj)));
@@ -198,7 +196,6 @@ const BhdTipModal = {
198
196
  return modal;
199
197
  },
200
198
  custom: (obj)=>{
201
- console.log("Modal", Modal);
202
199
  let modal = Modal.confirm(initCustomModal(obj));
203
200
  modal.updateModal = (updateObj = {})=>{
204
201
  modal.update(initCustomModal(_object_spread({}, obj, updateObj)));
@@ -9,7 +9,6 @@ export default (()=>{
9
9
  message = _object_spread({}, AntdMessage, staticFunction.message);
10
10
  Modal = _object_spread({}, AntdModal, staticFunction.modal);
11
11
  notification = _object_spread({}, AntdNotification, staticFunction.notification);
12
- console.log("mess1", staticFunction, message);
13
12
  return null;
14
13
  });
15
14
  export { Modal, message, notification };
@@ -9,7 +9,6 @@ import { ExclamationCircleFilled } from "../icons/index";
9
9
  const BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
10
10
  customSuccess: (config)=>{
11
11
  let className = styles.customSuccess;
12
- console.log("customSuccess", message);
13
12
  if (typeof config === "string") {
14
13
  return message.success({
15
14
  content: config,
@@ -17,19 +17,19 @@ const Provider = (Component, customConfig = {})=>{
17
17
  return (_param)=>{
18
18
  var props = _extends({}, _object_destructuring_empty(_param));
19
19
  return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, AppConfig), {
20
- children: /*#__PURE__*/ _jsx(StyleProvider, {
20
+ children: /*#__PURE__*/ _jsxs(StyleProvider, {
21
21
  hashPriority: "high",
22
22
  transformers: [
23
23
  legacyLogicalPropertiesTransformer
24
24
  ],
25
- children: /*#__PURE__*/ _jsxs(App, {
26
- message: message,
27
- notification: notification,
28
- children: [
29
- /*#__PURE__*/ _jsx(BhdTipModal, {}),
30
- /*#__PURE__*/ _jsx(Component, _object_spread({}, props))
31
- ]
32
- })
25
+ children: [
26
+ /*#__PURE__*/ _jsx(App, {
27
+ message: message,
28
+ notification: notification,
29
+ children: /*#__PURE__*/ _jsx(BhdTipModal, {})
30
+ }),
31
+ /*#__PURE__*/ _jsx(Component, _object_spread({}, props))
32
+ ]
33
33
  })
34
34
  }));
35
35
  };
@@ -40,19 +40,19 @@ Provider.Component = (props)=>{
40
40
  ConfigProvider.config(AppConfig);
41
41
  const { message ={} , notification ={} } = AppConfig;
42
42
  return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, AppConfig), {
43
- children: /*#__PURE__*/ _jsx(StyleProvider, {
43
+ children: /*#__PURE__*/ _jsxs(StyleProvider, {
44
44
  hashPriority: "high",
45
45
  transformers: [
46
46
  legacyLogicalPropertiesTransformer
47
47
  ],
48
- children: /*#__PURE__*/ _jsxs(App, {
49
- message: message,
50
- notification: notification,
51
- children: [
52
- /*#__PURE__*/ _jsx(BhdTipModal, {}),
53
- props.children
54
- ]
55
- })
48
+ children: [
49
+ /*#__PURE__*/ _jsx(App, {
50
+ message: message,
51
+ notification: notification,
52
+ children: /*#__PURE__*/ _jsx(BhdTipModal, {})
53
+ }),
54
+ props.children
55
+ ]
56
56
  })
57
57
  }));
58
58
  };
@@ -17,7 +17,6 @@ const TitleBar = (props)=>{
17
17
  if (rightContent) {
18
18
  const { width } = titleBarRef.current.getBoundingClientRect();
19
19
  const maxWidth = width * rightMaxWidth / 100;
20
- console.log("resize", maxWidth, screenWidth);
21
20
  if (screenWidth > maxWidth) {
22
21
  // kind minScreen
23
22
  setKind("minScreen");
@@ -12,7 +12,6 @@ import { Loading } from "../images/index";
12
12
  import BhdTipModal from "../bhdTipModal/index";
13
13
  class ViewImage extends React.Component {
14
14
  componentDidMount() {
15
- console.log("didMount");
16
15
  this.setState({
17
16
  multiSelect: !!this.props.multiSelect || false
18
17
  }, ()=>{
@@ -155,7 +154,6 @@ class ViewImage extends React.Component {
155
154
  });
156
155
  _define_property(this, "scaleChange", (value)=>{
157
156
  let { maxScale , minScale } = this.state;
158
- console.log("value", value);
159
157
  if (value >= maxScale) {
160
158
  value = maxScale;
161
159
  }
@@ -177,19 +175,15 @@ class ViewImage extends React.Component {
177
175
  if (imgTop == "auto") {
178
176
  imgTop = getStyle(dom, "top");
179
177
  }
180
- console.log(imgLeft, imgTop, "移动初始化");
181
178
  var disx = ev.pageX - imgLeft;
182
179
  var disy = ev.pageY - imgTop;
183
180
  const mouseMove = (ev)=>{
184
181
  this.setState({
185
182
  imgLeft: ev.pageX - disx,
186
183
  imgTop: ev.pageY - disy
187
- }, ()=>{
188
- console.log(this.state.imgLeft, this.state.imgTop, "单独");
189
- });
184
+ }, ()=>{});
190
185
  };
191
186
  const mouseUp = ()=>{
192
- console.log("鼠标抬起");
193
187
  document.removeEventListener("mousemove", mouseMove);
194
188
  document.removeEventListener("mouseup", mouseUp);
195
189
  };
@@ -236,7 +230,6 @@ class ViewImage extends React.Component {
236
230
  }
237
231
  } else if (/^(https?:\/\/[^\s]+)/.test(imgSrc)) {
238
232
  //在线url
239
- console.log("在线url");
240
233
  try {
241
234
  this.downloadFile(imgSrc);
242
235
  } catch (error) {
@@ -249,7 +242,6 @@ class ViewImage extends React.Component {
249
242
  }
250
243
  } else {
251
244
  //不支持下载
252
- console.log("不支持下载");
253
245
  BhdTipModal.confirm({
254
246
  title: "提示信息",
255
247
  centered: true,
@@ -283,7 +275,7 @@ class ViewImage extends React.Component {
283
275
  suffix = this.response.type.replace("image/", "");
284
276
  } catch (error) {
285
277
  suffix = "png";
286
- console.log(error);
278
+ console.error(error);
287
279
  }
288
280
  }
289
281
  //创键临时url对象
@@ -351,13 +343,11 @@ class ViewImage extends React.Component {
351
343
  await this.getSrc(curIndex + 1);
352
344
  });
353
345
  _define_property(this, "imgLoad", ()=>{
354
- console.log("加载成功");
355
346
  this.setState({
356
347
  imgError: false
357
348
  });
358
349
  });
359
350
  _define_property(this, "imgErr", ()=>{
360
- console.log("加载错误");
361
351
  this.setState({
362
352
  imgError: true
363
353
  });
@@ -182,7 +182,6 @@ var initWarnModal = function(obj) {
182
182
  };
183
183
  var BhdTipModal = {
184
184
  confirm: function(obj) {
185
- console.log("Modal", Modal);
186
185
  var modal = Modal.confirm(initConFirmModal(obj));
187
186
  modal.updateModal = function() {
188
187
  var updateObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -191,7 +190,6 @@ var BhdTipModal = {
191
190
  return modal;
192
191
  },
193
192
  success: function(obj) {
194
- console.log("Modal", Modal);
195
193
  var modal = Modal.confirm(initSuccessModal(obj));
196
194
  modal.updateModal = function() {
197
195
  var updateObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -200,7 +198,6 @@ var BhdTipModal = {
200
198
  return modal;
201
199
  },
202
200
  custom: function(obj) {
203
- console.log("Modal", Modal);
204
201
  var modal = Modal.confirm(initCustomModal(obj));
205
202
  modal.updateModal = function() {
206
203
  var updateObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -9,7 +9,6 @@ export default function() {
9
9
  message = _object_spread({}, AntdMessage, staticFunction.message);
10
10
  Modal = _object_spread({}, AntdModal, staticFunction.modal);
11
11
  notification = _object_spread({}, AntdNotification, staticFunction.notification);
12
- console.log("mess1", staticFunction, message);
13
12
  return null;
14
13
  };
15
14
  export { Modal, message, notification };
@@ -11,7 +11,6 @@ import { ExclamationCircleFilled } from "../icons/index";
11
11
  var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
12
12
  customSuccess: function(config) {
13
13
  var className = styles.customSuccess;
14
- console.log("customSuccess", message);
15
14
  if (typeof config === "string") {
16
15
  return message.success({
17
16
  content: config,
@@ -18,19 +18,19 @@ var Provider = function(Component) {
18
18
  return function(_param) {
19
19
  var props = _extends({}, _object_destructuring_empty(_param));
20
20
  return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, AppConfig), {
21
- children: /*#__PURE__*/ _jsx(StyleProvider, {
21
+ children: /*#__PURE__*/ _jsxs(StyleProvider, {
22
22
  hashPriority: "high",
23
23
  transformers: [
24
24
  legacyLogicalPropertiesTransformer
25
25
  ],
26
- children: /*#__PURE__*/ _jsxs(App, {
27
- message: message,
28
- notification: notification,
29
- children: [
30
- /*#__PURE__*/ _jsx(BhdTipModal, {}),
31
- /*#__PURE__*/ _jsx(Component, _object_spread({}, props))
32
- ]
33
- })
26
+ children: [
27
+ /*#__PURE__*/ _jsx(App, {
28
+ message: message,
29
+ notification: notification,
30
+ children: /*#__PURE__*/ _jsx(BhdTipModal, {})
31
+ }),
32
+ /*#__PURE__*/ _jsx(Component, _object_spread({}, props))
33
+ ]
34
34
  })
35
35
  }));
36
36
  };
@@ -41,19 +41,19 @@ Provider.Component = function(props) {
41
41
  ConfigProvider.config(AppConfig);
42
42
  var _AppConfig_message = AppConfig.message, message = _AppConfig_message === void 0 ? {} : _AppConfig_message, _AppConfig_notification = AppConfig.notification, notification = _AppConfig_notification === void 0 ? {} : _AppConfig_notification;
43
43
  return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, AppConfig), {
44
- children: /*#__PURE__*/ _jsx(StyleProvider, {
44
+ children: /*#__PURE__*/ _jsxs(StyleProvider, {
45
45
  hashPriority: "high",
46
46
  transformers: [
47
47
  legacyLogicalPropertiesTransformer
48
48
  ],
49
- children: /*#__PURE__*/ _jsxs(App, {
50
- message: message,
51
- notification: notification,
52
- children: [
53
- /*#__PURE__*/ _jsx(BhdTipModal, {}),
54
- props.children
55
- ]
56
- })
49
+ children: [
50
+ /*#__PURE__*/ _jsx(App, {
51
+ message: message,
52
+ notification: notification,
53
+ children: /*#__PURE__*/ _jsx(BhdTipModal, {})
54
+ }),
55
+ props.children
56
+ ]
57
57
  })
58
58
  }));
59
59
  };
@@ -18,7 +18,6 @@ var TitleBar = function(props) {
18
18
  if (rightContent) {
19
19
  var width = titleBarRef.current.getBoundingClientRect().width;
20
20
  var maxWidth = width * rightMaxWidth / 100;
21
- console.log("resize", maxWidth, screenWidth);
22
21
  if (screenWidth > maxWidth) {
23
22
  // kind minScreen
24
23
  setKind("minScreen");
@@ -40,7 +40,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
40
40
  });
41
41
  _define_property(_assert_this_initialized(_this), "scaleChange", function(value) {
42
42
  var _this_state = _this.state, maxScale = _this_state.maxScale, minScale = _this_state.minScale;
43
- console.log("value", value);
44
43
  if (value >= maxScale) {
45
44
  value = maxScale;
46
45
  }
@@ -62,19 +61,15 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
62
61
  if (imgTop == "auto") {
63
62
  imgTop = getStyle(dom, "top");
64
63
  }
65
- console.log(imgLeft, imgTop, "移动初始化");
66
64
  var disx = ev.pageX - imgLeft;
67
65
  var disy = ev.pageY - imgTop;
68
66
  var mouseMove = function(ev) {
69
67
  _this.setState({
70
68
  imgLeft: ev.pageX - disx,
71
69
  imgTop: ev.pageY - disy
72
- }, function() {
73
- console.log(_this.state.imgLeft, _this.state.imgTop, "单独");
74
- });
70
+ }, function() {});
75
71
  };
76
72
  var mouseUp = function() {
77
- console.log("鼠标抬起");
78
73
  document.removeEventListener("mousemove", mouseMove);
79
74
  document.removeEventListener("mouseup", mouseUp);
80
75
  };
@@ -121,7 +116,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
121
116
  }
122
117
  } else if (/^(https?:\/\/[^\s]+)/.test(imgSrc)) {
123
118
  //在线url
124
- console.log("在线url");
125
119
  try {
126
120
  _this.downloadFile(imgSrc);
127
121
  } catch (error) {
@@ -134,7 +128,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
134
128
  }
135
129
  } else {
136
130
  //不支持下载
137
- console.log("不支持下载");
138
131
  BhdTipModal.confirm({
139
132
  title: "提示信息",
140
133
  centered: true,
@@ -169,7 +162,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
169
162
  suffix = this.response.type.replace("image/", "");
170
163
  } catch (error) {
171
164
  suffix = "png";
172
- console.log(error);
165
+ console.error(error);
173
166
  }
174
167
  }
175
168
  //创键临时url对象
@@ -303,13 +296,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
303
296
  });
304
297
  }));
305
298
  _define_property(_assert_this_initialized(_this), "imgLoad", function() {
306
- console.log("加载成功");
307
299
  _this.setState({
308
300
  imgError: false
309
301
  });
310
302
  });
311
303
  _define_property(_assert_this_initialized(_this), "imgErr", function() {
312
- console.log("加载错误");
313
304
  _this.setState({
314
305
  imgError: true
315
306
  });
@@ -321,7 +312,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
321
312
  key: "componentDidMount",
322
313
  value: function componentDidMount() {
323
314
  var _this = this;
324
- console.log("didMount");
325
315
  this.setState({
326
316
  multiSelect: !!this.props.multiSelect || false
327
317
  }, function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.7.36",
3
+ "version": "0.7.38",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",