bhd-components 0.7.36 → 0.7.37
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/README.md +1 -1
- package/dist/{60ad30a5.esm.es5.production.js → 8776245e.esm.es5.production.js} +1 -1
- package/dist/{d10092aa.esm.es5.development.js → c2a80e02.esm.es5.development.js} +1 -1
- package/dist/index.esm.es5.development.js +4 -20
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/bhdTipModal/index.js +0 -3
- package/es2017/bhdTipModal/modal.js +0 -1
- package/es2017/message/index.js +0 -1
- package/es2017/titleBar/index.js +0 -1
- package/es2017/viewImage/index.js +2 -12
- package/esm/bhdTipModal/index.js +0 -3
- package/esm/bhdTipModal/modal.js +0 -1
- package/esm/message/index.js +0 -1
- package/esm/titleBar/index.js +0 -1
- package/esm/viewImage/index.js +2 -12
- package/package.json +1 -1
|
@@ -120933,7 +120933,7 @@ function requireD () {
|
|
|
120933
120933
|
+ 'pragma private protected public pure ref return scope shared static struct '
|
|
120934
120934
|
+ 'super switch synchronized template this throw try typedef typeid typeof union '
|
|
120935
120935
|
+ 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 '
|
|
120936
|
-
+ '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.7.
|
|
120936
|
+
+ '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.7.37"',
|
|
120937
120937
|
built_in:
|
|
120938
120938
|
'bool cdouble cent cfloat char creal dchar delegate double dstring float function '
|
|
120939
120939
|
+ 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar '
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, S as StyleProvider, t as transform, f as jsxs, g as _sliced_to_array, T as Tooltip, h as Table$2, I as Icon, E as ExclamationCircleFilled, i as _to_consumable_array, P as Pagination, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, L as LeftOutlined, R as RightOutlined, u as MinusOutlined, v as PlusOutlined, w as __generator, x as Input, y as SearchOutlined, B as CloseOutlined, X, D as I, H, F as Remarkable, G as Drawer, J as HighlightJS, Z as ZoomInOutlined } from './
|
|
2
|
-
export { K as Affix, N as Alert, O as Anchor, a as AntdMessage, A as App, Q as AutoComplete, U as Avatar, W as BackTop, Y as Badge, $ as Breadcrumb, a0 as Button, a1 as Calendar, a2 as Card, a3 as Carousel, a4 as Cascader, a5 as Checkbox, a6 as Col, a7 as Collapse, a8 as DatePicker, a9 as Descriptions, aa as Divider, G as Drawer, ab as Dropdown, ac as Empty, V as FloatButton, ad as Form, ae as Grid, af as Image, x as Input, ag as InputNumber, ah as Layout, ai as List, aj as Mentions, ak as Menu, M as Modal, al as Popconfirm, am as Popover, an as Progress, aM as QRCode, ao as Radio, ap as Rate, aq as Result, ar as Row, as as Segmented, k as Select, at as Skeleton, au as Slider, av as Space, aw as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, b as notification, aC as theme, aN as version, z as zh_CN } from './
|
|
1
|
+
import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, S as StyleProvider, t as transform, f as jsxs, g as _sliced_to_array, T as Tooltip, h as Table$2, I as Icon, E as ExclamationCircleFilled, i as _to_consumable_array, P as Pagination, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, L as LeftOutlined, R as RightOutlined, u as MinusOutlined, v as PlusOutlined, w as __generator, x as Input, y as SearchOutlined, B as CloseOutlined, X, D as I, H, F as Remarkable, G as Drawer, J as HighlightJS, Z as ZoomInOutlined } from './c2a80e02.esm.es5.development.js';
|
|
2
|
+
export { K as Affix, N as Alert, O as Anchor, a as AntdMessage, A as App, Q as AutoComplete, U as Avatar, W as BackTop, Y as Badge, $ as Breadcrumb, a0 as Button, a1 as Calendar, a2 as Card, a3 as Carousel, a4 as Cascader, a5 as Checkbox, a6 as Col, a7 as Collapse, a8 as DatePicker, a9 as Descriptions, aa as Divider, G as Drawer, ab as Dropdown, ac as Empty, V as FloatButton, ad as Form, ae as Grid, af as Image, x as Input, ag as InputNumber, ah as Layout, ai as List, aj as Mentions, ak as Menu, M as Modal, al as Popconfirm, am as Popover, an as Progress, aM as QRCode, ao as Radio, ap as Rate, aq as Result, ar as Row, as as Segmented, k as Select, at as Skeleton, au as Slider, av as Space, aw as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, b as notification, aC as theme, aN as version, z as zh_CN } from './c2a80e02.esm.es5.development.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
@@ -65,7 +65,6 @@ function BhdTipModal$2() {
|
|
|
65
65
|
message = _object_spread({}, AntdMessage, staticFunction.message);
|
|
66
66
|
Modal = _object_spread({}, Modal$1, staticFunction.modal);
|
|
67
67
|
_object_spread({}, AntdNotification, staticFunction.notification);
|
|
68
|
-
console.log("mess1", staticFunction, message);
|
|
69
68
|
return null;
|
|
70
69
|
}
|
|
71
70
|
|
|
@@ -1119,7 +1118,6 @@ var _message, _message1, _message2, _message3, _message4, _message5, _message6,
|
|
|
1119
1118
|
var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
|
|
1120
1119
|
customSuccess: function(config) {
|
|
1121
1120
|
var className = modules_63b47c51$8.customSuccess;
|
|
1122
|
-
console.log("customSuccess", message);
|
|
1123
1121
|
if (typeof config === "string") {
|
|
1124
1122
|
return message.success({
|
|
1125
1123
|
content: config,
|
|
@@ -1304,7 +1302,6 @@ var TitleBar = function(props) {
|
|
|
1304
1302
|
if (rightContent) {
|
|
1305
1303
|
var width = titleBarRef.current.getBoundingClientRect().width;
|
|
1306
1304
|
var maxWidth = width * rightMaxWidth / 100;
|
|
1307
|
-
console.log("resize", maxWidth, screenWidth);
|
|
1308
1305
|
if (screenWidth > maxWidth) {
|
|
1309
1306
|
// kind minScreen
|
|
1310
1307
|
setKind("minScreen");
|
|
@@ -1558,7 +1555,6 @@ var initWarnModal = function(obj) {
|
|
|
1558
1555
|
};
|
|
1559
1556
|
var BhdTipModal = {
|
|
1560
1557
|
confirm: function(obj) {
|
|
1561
|
-
console.log("Modal", Modal);
|
|
1562
1558
|
var modal = Modal.confirm(initConFirmModal(obj));
|
|
1563
1559
|
modal.updateModal = function() {
|
|
1564
1560
|
var updateObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -1567,7 +1563,6 @@ var BhdTipModal = {
|
|
|
1567
1563
|
return modal;
|
|
1568
1564
|
},
|
|
1569
1565
|
success: function(obj) {
|
|
1570
|
-
console.log("Modal", Modal);
|
|
1571
1566
|
var modal = Modal.confirm(initSuccessModal(obj));
|
|
1572
1567
|
modal.updateModal = function() {
|
|
1573
1568
|
var updateObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -1576,7 +1571,6 @@ var BhdTipModal = {
|
|
|
1576
1571
|
return modal;
|
|
1577
1572
|
},
|
|
1578
1573
|
custom: function(obj) {
|
|
1579
|
-
console.log("Modal", Modal);
|
|
1580
1574
|
var modal = Modal.confirm(initCustomModal(obj));
|
|
1581
1575
|
modal.updateModal = function() {
|
|
1582
1576
|
var updateObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -1631,7 +1625,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1631
1625
|
});
|
|
1632
1626
|
_define_property(_assert_this_initialized(_this), "scaleChange", function(value) {
|
|
1633
1627
|
var _this_state = _this.state, maxScale = _this_state.maxScale, minScale = _this_state.minScale;
|
|
1634
|
-
console.log("value", value);
|
|
1635
1628
|
if (value >= maxScale) {
|
|
1636
1629
|
value = maxScale;
|
|
1637
1630
|
}
|
|
@@ -1653,19 +1646,15 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1653
1646
|
if (imgTop == "auto") {
|
|
1654
1647
|
imgTop = getStyle(dom, "top");
|
|
1655
1648
|
}
|
|
1656
|
-
console.log(imgLeft, imgTop, "移动初始化");
|
|
1657
1649
|
var disx = ev.pageX - imgLeft;
|
|
1658
1650
|
var disy = ev.pageY - imgTop;
|
|
1659
1651
|
var mouseMove = function(ev) {
|
|
1660
1652
|
_this.setState({
|
|
1661
1653
|
imgLeft: ev.pageX - disx,
|
|
1662
1654
|
imgTop: ev.pageY - disy
|
|
1663
|
-
}, function() {
|
|
1664
|
-
console.log(_this.state.imgLeft, _this.state.imgTop, "单独");
|
|
1665
|
-
});
|
|
1655
|
+
}, function() {});
|
|
1666
1656
|
};
|
|
1667
1657
|
var mouseUp = function() {
|
|
1668
|
-
console.log("鼠标抬起");
|
|
1669
1658
|
document.removeEventListener("mousemove", mouseMove);
|
|
1670
1659
|
document.removeEventListener("mouseup", mouseUp);
|
|
1671
1660
|
};
|
|
@@ -1712,7 +1701,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1712
1701
|
}
|
|
1713
1702
|
} else if (/^(https?:\/\/[^\s]+)/.test(imgSrc)) {
|
|
1714
1703
|
//在线url
|
|
1715
|
-
console.log("在线url");
|
|
1716
1704
|
try {
|
|
1717
1705
|
_this.downloadFile(imgSrc);
|
|
1718
1706
|
} catch (error) {
|
|
@@ -1725,7 +1713,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1725
1713
|
}
|
|
1726
1714
|
} else {
|
|
1727
1715
|
//不支持下载
|
|
1728
|
-
console.log("不支持下载");
|
|
1729
1716
|
BhdTipModal$1.confirm({
|
|
1730
1717
|
title: "提示信息",
|
|
1731
1718
|
centered: true,
|
|
@@ -1760,7 +1747,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1760
1747
|
suffix = this.response.type.replace("image/", "");
|
|
1761
1748
|
} catch (error) {
|
|
1762
1749
|
suffix = "png";
|
|
1763
|
-
console.
|
|
1750
|
+
console.error(error);
|
|
1764
1751
|
}
|
|
1765
1752
|
}
|
|
1766
1753
|
//创键临时url对象
|
|
@@ -1894,13 +1881,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1894
1881
|
});
|
|
1895
1882
|
}));
|
|
1896
1883
|
_define_property(_assert_this_initialized(_this), "imgLoad", function() {
|
|
1897
|
-
console.log("加载成功");
|
|
1898
1884
|
_this.setState({
|
|
1899
1885
|
imgError: false
|
|
1900
1886
|
});
|
|
1901
1887
|
});
|
|
1902
1888
|
_define_property(_assert_this_initialized(_this), "imgErr", function() {
|
|
1903
|
-
console.log("加载错误");
|
|
1904
1889
|
_this.setState({
|
|
1905
1890
|
imgError: true
|
|
1906
1891
|
});
|
|
@@ -1912,7 +1897,6 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1912
1897
|
key: "componentDidMount",
|
|
1913
1898
|
value: function componentDidMount() {
|
|
1914
1899
|
var _this = this;
|
|
1915
|
-
console.log("didMount");
|
|
1916
1900
|
this.setState({
|
|
1917
1901
|
multiSelect: !!this.props.multiSelect || false
|
|
1918
1902
|
}, function() {
|