@icos-desktop/react-components 2.0.44 → 2.0.46
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/dist/icos-desktop.d.ts +0 -1
- package/dist/icos-desktop.js +12 -29
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -2
package/dist/icos-desktop.d.ts
CHANGED
package/dist/icos-desktop.js
CHANGED
@@ -10,7 +10,6 @@ import classNames from 'classnames';
|
|
10
10
|
import dayjs from 'dayjs';
|
11
11
|
import { Menu, Submenu, Item as Item$2, contextMenu, useContextMenu } from 'react-contexify';
|
12
12
|
import Highlighter from 'react-highlight-words';
|
13
|
-
import ResizeObserver from 'rc-resize-observer';
|
14
13
|
import { v4 } from 'uuid';
|
15
14
|
import ReactDOM from 'react-dom';
|
16
15
|
import RcOverflow from 'rc-overflow';
|
@@ -5326,33 +5325,16 @@ var SvgSetting = function SvgSetting(props) {
|
|
5326
5325
|
})));
|
5327
5326
|
};
|
5328
5327
|
|
5329
|
-
var css_248z$11 = ":root {\n --ant-table-empty-stroke-color: #d9d9d9;\n}\n.index-module_container__triFT {\n position: relative;\n height: 100%;\n width: 100%;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ {\n position: absolute;\n top: 12px;\n width: 16px;\n height: 16px;\n z-index: 9;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ > svg {\n position: absolute;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select {\n opacity: 0;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select .ant-select-selector {\n width: 16px;\n height: 16px;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select .ant-select-selector .ant-select-selection-overflow {\n display: none;\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table-cell-fix-right-first::after {\n box-shadow: none;\n}\n.index-module_container__triFT .ant-table-cell {\n line-height: 24px;\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table-container::before,\n.index-module_container__triFT .ant-table-wrapper .ant-table-container::after {\n display: none;\n}\n.index-module_container__triFT .ant-table-cell-scrollbar {\n display: none;\n}\n.index-module_container__triFT .ant-table-thead .ant-table-cell {\n overflow: hidden;\n}\n.index-module_container__triFT .ant-table-row:has(.ant-table-cell-fix-right) .ant-table-cell.ant-table-cell-fix-right {\n transition: none;\n}\n.index-module_container__triFT .ant-empty-image svg path {\n stroke: var(--ant-table-empty-stroke-color, #d9d9d9);\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-title,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-footer,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-cell,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-thead > tr > th,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-tbody > tr > th,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-tbody > tr > td,\n.index-module_container__triFT .ant-table-wrapper .ant-table tfoot > tr > th,\n.index-module_container__triFT .ant-table-wrapper .ant-table tfoot > tr > td {\n max-width: 380px;\n}\n.index-module_container__triFT .ant-table {\n height: calc(100% -
|
5330
|
-
var styles$$ = {"container":"index-module_container__triFT","columns-config":"index-module_columns-config__pSkLQ","columns-config-popup":"index-module_columns-config-popup__-d8ej"};
|
5328
|
+
var css_248z$11 = ":root {\n --ant-table-empty-stroke-color: #d9d9d9;\n}\n.index-module_container__triFT {\n position: relative;\n height: 100%;\n width: 100%;\n}\n.index-module_container__triFT.index-module_no-pagination__DUAKv .ant-table {\n height: 100%;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ {\n position: absolute;\n top: 12px;\n width: 16px;\n height: 16px;\n z-index: 9;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ > svg {\n position: absolute;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select {\n opacity: 0;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select .ant-select-selector {\n width: 16px;\n height: 16px;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select .ant-select-selector .ant-select-selection-overflow {\n display: none;\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table-cell-fix-right-first::after {\n box-shadow: none;\n}\n.index-module_container__triFT .ant-table-cell {\n line-height: 24px;\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table-container::before,\n.index-module_container__triFT .ant-table-wrapper .ant-table-container::after {\n display: none;\n}\n.index-module_container__triFT .ant-table-cell-scrollbar {\n display: none;\n}\n.index-module_container__triFT .ant-table-thead .ant-table-cell {\n overflow: hidden;\n}\n.index-module_container__triFT .ant-table-row:has(.ant-table-cell-fix-right) .ant-table-cell.ant-table-cell-fix-right {\n transition: none;\n}\n.index-module_container__triFT .ant-empty-image svg path {\n stroke: var(--ant-table-empty-stroke-color, #d9d9d9);\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-title,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-footer,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-cell,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-thead > tr > th,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-tbody > tr > th,\n.index-module_container__triFT .ant-table-wrapper .ant-table .ant-table-tbody > tr > td,\n.index-module_container__triFT .ant-table-wrapper .ant-table tfoot > tr > th,\n.index-module_container__triFT .ant-table-wrapper .ant-table tfoot > tr > td {\n max-width: 380px;\n}\n.index-module_container__triFT .ant-table {\n height: calc(100% - 56px);\n}\n.index-module_container__triFT .ant-table-wrapper,\n.index-module_container__triFT .ant-spin-nested-loading,\n.index-module_container__triFT .ant-spin-container,\n.index-module_container__triFT .ant-table-container,\n.index-module_container__triFT .ant-table-content {\n height: 100%;\n}\n.index-module_container__triFT .ant-table-content {\n overflow: auto !important;\n}\n.index-module_container__triFT .ant-table-thead {\n position: sticky;\n top: 0;\n z-index: 10;\n}\n.index-module_columns-config-popup__-d8ej .ant-select-item {\n position: relative;\n}\n.index-module_columns-config-popup__-d8ej .ant-select-item .ant-select-item-option-content {\n position: absolute;\n left: 32px;\n width: -webkit-fill-available;\n}\n.index-module_columns-config-popup__-d8ej .ant-select-item .ant-select-item-option-state {\n position: absolute;\n left: 8px;\n top: 8px;\n}\n.index-module_columns-config-popup__-d8ej .rc-virtual-list-holder {\n overflow-x: hidden;\n}\n";
|
5329
|
+
var styles$$ = {"container":"index-module_container__triFT","no-pagination":"index-module_no-pagination__DUAKv","columns-config":"index-module_columns-config__pSkLQ","columns-config-popup":"index-module_columns-config-popup__-d8ej"};
|
5331
5330
|
styleInject(css_248z$11);
|
5332
5331
|
|
5333
5332
|
var ProTable = function (_a) {
|
5334
|
-
var _b
|
5333
|
+
var _b;
|
5334
|
+
var _c = _a.header, header = _c === void 0 ? [] : _c, _d = _a.columns, columns = _d === void 0 ? [] : _d, _e = _a.pagination, pagination = _e === void 0 ? false : _e, props = __rest(_a, ["header", "columns", "pagination"]);
|
5335
5335
|
// 表头显示配置
|
5336
|
-
var
|
5337
|
-
// 表格宽度
|
5338
|
-
var _f = useState(0), tableWidth = _f[0], setTableWidth = _f[1];
|
5339
|
-
// 表格高度
|
5340
|
-
var _g = useState(0), tableHeight = _g[0], setTableHeight = _g[1];
|
5336
|
+
var _f = useState([]), headerValue = _f[0], setHeaderValue = _f[1];
|
5341
5337
|
var token = theme.useToken().token;
|
5342
|
-
// 表格宽高变化
|
5343
|
-
var handleTableResize = function (_a) {
|
5344
|
-
var height = _a.height, width = _a.width;
|
5345
|
-
if (containerHeight || height) {
|
5346
|
-
var newHeight = containerHeight ? containerHeight : height - 38 - 8;
|
5347
|
-
if (pagination) {
|
5348
|
-
newHeight -= 64;
|
5349
|
-
}
|
5350
|
-
setTableHeight(newHeight);
|
5351
|
-
}
|
5352
|
-
if (width) {
|
5353
|
-
setTableWidth(width);
|
5354
|
-
}
|
5355
|
-
};
|
5356
5338
|
// 表格列配置修改
|
5357
5339
|
var handleHeaderConfigChange = function (value) {
|
5358
5340
|
setHeaderValue(value);
|
@@ -5380,9 +5362,10 @@ var ProTable = function (_a) {
|
|
5380
5362
|
useEffect(function () {
|
5381
5363
|
document.documentElement.style.setProperty('--ant-table-empty-stroke-color', token.colorTextSecondary);
|
5382
5364
|
}, [token.colorTextSecondary]);
|
5383
|
-
return (React__default.createElement(
|
5384
|
-
|
5385
|
-
|
5365
|
+
return (React__default.createElement("div", { className: classNames(styles$$.container, (_b = {},
|
5366
|
+
_b[styles$$['no-pagination']] = pagination === false,
|
5367
|
+
_b)) },
|
5368
|
+
React__default.createElement(Table, __assign({}, props, { pagination: pagination, columns: columnsMerge, scroll: { x: 'max-content' } }))));
|
5386
5369
|
};
|
5387
5370
|
var ProTable$1 = memo(ProTable);
|
5388
5371
|
|
@@ -10157,7 +10140,7 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10157
10140
|
// 分页
|
10158
10141
|
var _f = useState(__assign({}, PAGINATION)), pagination = _f[0], setPagination = _f[1];
|
10159
10142
|
// 筛选参数
|
10160
|
-
var _g = useState(
|
10143
|
+
var _g = useState(null), filter = _g[0], setFilter = _g[1];
|
10161
10144
|
// 表格选中
|
10162
10145
|
// const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
10163
10146
|
// 接口参数
|
@@ -16280,11 +16263,11 @@ var CcosVideoPlayer = function (props) {
|
|
16280
16263
|
CcosVideoPlayer.settings = settings$1;
|
16281
16264
|
|
16282
16265
|
try {
|
16283
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.
|
16266
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.46","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-04-28 19:48:27"}');
|
16284
16267
|
}
|
16285
16268
|
catch (err) {
|
16286
16269
|
console.warn(err);
|
16287
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.
|
16270
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.46","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-04-28 19:48:27"}';
|
16288
16271
|
}
|
16289
16272
|
|
16290
16273
|
export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProSearch, ProTable$1 as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };
|