bhd-components 0.7.38 → 0.7.40
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/{78b8007b.esm.es5.development.js → 47cd911e.esm.es5.development.js} +1 -1
- package/dist/{1a5da86d.esm.es5.production.js → bf4a8574.esm.es5.production.js} +1 -1
- package/dist/index.esm.es5.development.js +10 -5
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/bhdAppLayout/index.js +1 -1
- package/es2017/table/index.js +10 -5
- package/esm/bhdAppLayout/index.js +1 -1
- package/esm/table/index.js +5 -0
- package/package.json +1 -1
|
@@ -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, f as jsxs, t as transform, S as StyleProvider, 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, f as jsxs, t as transform, S as StyleProvider, 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$1, 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 './47cd911e.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 './47cd911e.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';
|
|
@@ -226,6 +226,11 @@ var Table = function(props) {
|
|
|
226
226
|
var scrollBarWidth = getScrollbarWidth();
|
|
227
227
|
recordScrollBarWidth = scrollBarWidth || recordScrollBarWidth;
|
|
228
228
|
var tableWidth = bordered ? tableRef.current.offsetWidth - 2 - recordScrollBarWidth : tableRef.current.offsetWidth - recordScrollBarWidth;
|
|
229
|
+
if (props.rowSelection) {
|
|
230
|
+
//多选框
|
|
231
|
+
var selectWidth = kind === "simple" ? 40 : 72;
|
|
232
|
+
tableWidth -= selectWidth;
|
|
233
|
+
}
|
|
229
234
|
var _initColumnsWidth = initColumnsWidth(props.columns, tableWidth), selfColumns = _initColumnsWidth.columns;
|
|
230
235
|
setColumns(selfColumns);
|
|
231
236
|
var obj = scrollObject ? scrollObject : {};
|
|
@@ -1215,11 +1220,11 @@ var modules_63b47c51$7 = {"pagination":"index_module_pagination__ea803a71"};
|
|
|
1215
1220
|
|
|
1216
1221
|
var BhdPagination = function(props) {
|
|
1217
1222
|
var className = "".concat(modules_63b47c51$7.pagination, " ").concat(props.className || "");
|
|
1218
|
-
return /*#__PURE__*/ jsx(Pagination, _object_spread_props(_object_spread({}, props), {
|
|
1223
|
+
return /*#__PURE__*/ jsx(Pagination$1, _object_spread_props(_object_spread({}, props), {
|
|
1219
1224
|
className: className
|
|
1220
1225
|
}));
|
|
1221
1226
|
};
|
|
1222
|
-
var
|
|
1227
|
+
var Pagination = BhdPagination;
|
|
1223
1228
|
|
|
1224
1229
|
var modules_63b47c51$6 = {"BhdTableSelect":"index_module_BhdTableSelect__1274ed5e"};
|
|
1225
1230
|
|
|
@@ -7274,4 +7279,4 @@ window.appendDom = function(root, props) {
|
|
|
7274
7279
|
};
|
|
7275
7280
|
var CustomerService$1 = CustomerService;
|
|
7276
7281
|
|
|
7277
|
-
export { BhdAppLayout, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService,
|
|
7282
|
+
export { BhdAppLayout, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, BhdMessage$1 as message };
|