bhd-components 0.7.32 → 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/{01eedb30.esm.es5.development.js → 4601a61c.esm.es5.development.js} +1 -1
- package/dist/{2ec5f3fb.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 +35 -9
- 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/esm/bhdAppLayout/components/BhdTableSimple/index.js +33 -7
- package/esm/bhdAppLayout/components/BhdTableSimple/index.less +1 -2
- 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';
|
|
@@ -2181,7 +2181,19 @@ var i18Conversion$1 = i18Conversion;
|
|
|
2181
2181
|
className
|
|
2182
2182
|
超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
|
|
2183
2183
|
*/ var BhdTableSimple = function(props) {
|
|
2184
|
-
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;
|
|
2185
2197
|
var renderTableText = function() {
|
|
2186
2198
|
if (ajaxErr) {
|
|
2187
2199
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -2237,12 +2249,32 @@ var i18Conversion$1 = i18Conversion;
|
|
|
2237
2249
|
})
|
|
2238
2250
|
]
|
|
2239
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
|
+
}
|
|
2240
2271
|
var tableProps = _object_spread_props(_object_spread({
|
|
2241
2272
|
style: {
|
|
2242
2273
|
width: "100%"
|
|
2243
2274
|
}
|
|
2244
2275
|
}, props), {
|
|
2245
2276
|
loading: false,
|
|
2277
|
+
components: components,
|
|
2246
2278
|
dataSource: ajaxErr ? [] : dataSource,
|
|
2247
2279
|
className: "app_BhdTableSimple ".concat(className || " ", " ").concat(rowSelection ? "app_BhdTableSimple_rowSelection" : ""),
|
|
2248
2280
|
locale: {
|
|
@@ -2250,12 +2282,6 @@ var i18Conversion$1 = i18Conversion;
|
|
|
2250
2282
|
},
|
|
2251
2283
|
scroll: props.scroll
|
|
2252
2284
|
});
|
|
2253
|
-
if (kind === "simple") {
|
|
2254
|
-
className += " app_BhdTableSimple_simple";
|
|
2255
|
-
}
|
|
2256
|
-
if (loading) {
|
|
2257
|
-
return loadingTable;
|
|
2258
|
-
}
|
|
2259
2285
|
return /*#__PURE__*/ jsx(Table$1, _object_spread({}, tableProps));
|
|
2260
2286
|
};
|
|
2261
2287
|
var BhdTableSimple$1 = BhdTableSimple;
|