bhd-components 0.7.31 → 0.7.33
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/{4eadaa37.esm.es5.development.js → 4601a61c.esm.es5.development.js} +1 -1
- package/dist/{0e8e64dd.esm.es5.production.js → 560cbcc4.esm.es5.production.js} +1 -1
- package/dist/index.esm.es5.development.css +1 -2
- package/dist/index.esm.es5.development.js +38 -10
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +31 -7
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.less +1 -2
- package/es2017/customerService/screenshotTool.js +1 -1
- package/es2017/table/index.js +2 -0
- package/esm/bhdAppLayout/components/BhdTableSimple/index.js +33 -7
- package/esm/bhdAppLayout/components/BhdTableSimple/index.less +1 -2
- package/esm/customerService/screenshotTool.js +1 -1
- package/esm/table/index.js +2 -0
- package/package.json +1 -1
|
@@ -5940,9 +5940,8 @@
|
|
|
5940
5940
|
justify-content: center;
|
|
5941
5941
|
flex-direction: column;
|
|
5942
5942
|
position: absolute;
|
|
5943
|
-
top: 50%;
|
|
5944
5943
|
left: 50%;
|
|
5945
|
-
transform:
|
|
5944
|
+
transform: translateX(-50%);
|
|
5946
5945
|
}
|
|
5947
5946
|
.app_BhdTableSimple_noTable_loadingTable img {
|
|
5948
5947
|
margin-bottom: 24px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './
|
|
2
|
-
export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './
|
|
1
|
+
import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './4601a61c.esm.es5.development.js';
|
|
2
|
+
export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './4601a61c.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';
|
|
@@ -207,6 +207,8 @@ var Table = function(props) {
|
|
|
207
207
|
var minWidth = 0; //最小宽度
|
|
208
208
|
var scrollWidth = 0; //出现滚动条时 滚动宽度
|
|
209
209
|
columns = columns.map(function(item) {
|
|
210
|
+
// 克隆columns里的每项 保证每次拿到width都是唯一的
|
|
211
|
+
item = _object_spread({}, item);
|
|
210
212
|
item.width = item.width || "auto";
|
|
211
213
|
// item.width=parseFloat(item.width)
|
|
212
214
|
if (widthPercentage.test(item.width)) {
|
|
@@ -2179,7 +2181,19 @@ var i18Conversion$1 = i18Conversion;
|
|
|
2179
2181
|
className
|
|
2180
2182
|
超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
|
|
2181
2183
|
*/ var BhdTableSimple = function(props) {
|
|
2182
|
-
var
|
|
2184
|
+
var _props_className = props.className, className = _props_className === void 0 ? "" : _props_className; props.locale; props.borderBottom; var rowSelection = props.rowSelection, ajaxErr = props.ajaxErr, dataSource = props.dataSource, _props_kind = props.kind, kind = _props_kind === void 0 ? "simple" : _props_kind, loading = props.loading, _props_notDataText = props.notDataText, notDataText = _props_notDataText === void 0 ? i18Conversion$1("noData") : _props_notDataText, _props_components = props.components, components = _props_components === void 0 ? {
|
|
2185
|
+
table: null,
|
|
2186
|
+
header: {
|
|
2187
|
+
wrapper: null,
|
|
2188
|
+
row: null,
|
|
2189
|
+
cell: null
|
|
2190
|
+
},
|
|
2191
|
+
body: {
|
|
2192
|
+
wrapper: null,
|
|
2193
|
+
row: null,
|
|
2194
|
+
cell: null
|
|
2195
|
+
}
|
|
2196
|
+
} : _props_components;
|
|
2183
2197
|
var renderTableText = function() {
|
|
2184
2198
|
if (ajaxErr) {
|
|
2185
2199
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -2235,12 +2249,32 @@ var i18Conversion$1 = i18Conversion;
|
|
|
2235
2249
|
})
|
|
2236
2250
|
]
|
|
2237
2251
|
});
|
|
2252
|
+
if (kind === "simple") {
|
|
2253
|
+
className += " app_BhdTableSimple_simple";
|
|
2254
|
+
}
|
|
2255
|
+
if (loading) {
|
|
2256
|
+
if (!components.body) {
|
|
2257
|
+
components.body = {
|
|
2258
|
+
wrapper: null,
|
|
2259
|
+
row: null,
|
|
2260
|
+
cell: null
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
components = _object_spread_props(_object_spread({}, components.body), {
|
|
2264
|
+
body: {
|
|
2265
|
+
wrapper: function() {
|
|
2266
|
+
return loadingTable;
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
});
|
|
2270
|
+
}
|
|
2238
2271
|
var tableProps = _object_spread_props(_object_spread({
|
|
2239
2272
|
style: {
|
|
2240
2273
|
width: "100%"
|
|
2241
2274
|
}
|
|
2242
2275
|
}, props), {
|
|
2243
2276
|
loading: false,
|
|
2277
|
+
components: components,
|
|
2244
2278
|
dataSource: ajaxErr ? [] : dataSource,
|
|
2245
2279
|
className: "app_BhdTableSimple ".concat(className || " ", " ").concat(rowSelection ? "app_BhdTableSimple_rowSelection" : ""),
|
|
2246
2280
|
locale: {
|
|
@@ -2248,12 +2282,6 @@ var i18Conversion$1 = i18Conversion;
|
|
|
2248
2282
|
},
|
|
2249
2283
|
scroll: props.scroll
|
|
2250
2284
|
});
|
|
2251
|
-
if (kind === "simple") {
|
|
2252
|
-
className += " app_BhdTableSimple_simple";
|
|
2253
|
-
}
|
|
2254
|
-
if (loading) {
|
|
2255
|
-
return loadingTable;
|
|
2256
|
-
}
|
|
2257
2285
|
return /*#__PURE__*/ jsx(Table$1, _object_spread({}, tableProps));
|
|
2258
2286
|
};
|
|
2259
2287
|
var BhdTableSimple$1 = BhdTableSimple;
|
|
@@ -3203,7 +3231,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3203
3231
|
});
|
|
3204
3232
|
var ContactsList$1 = ContactsList;
|
|
3205
3233
|
|
|
3206
|
-
var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props) {
|
|
3234
|
+
var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
3207
3235
|
var imgBese64 = props.imgBese64, saveScreenshotBese64 = props.saveScreenshotBese64, cancelScreenshot = props.cancelScreenshot;
|
|
3208
3236
|
var _useState = _sliced_to_array(useState(), 2), crop = _useState[0], setCrop = _useState[1];
|
|
3209
3237
|
var _useState1 = _sliced_to_array(useState(), 2), completedCrop = _useState1[0], setCompletedCrop = _useState1[1];
|