cloud-b2b 1.0.5 → 1.0.8
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/es/Indent/Indent.js +23 -0
- package/es/Indent/package.json +6 -0
- package/es/SuperForm2/SuperForm.js +732 -0
- package/es/SuperForm2/SuperForm.less +52 -0
- package/es/SuperForm2/package.json +6 -0
- package/es/SuperTab/SuperTab.js +130 -0
- package/es/SuperTab/SuperTab.less +43 -0
- package/es/SuperTab/package.json +6 -0
- package/es/SuperTab2/SuperTab2.js +167 -0
- package/es/SuperTab2/SuperTab2.less +18 -0
- package/es/SuperTab2/package.json +6 -0
- package/es/SuperTable/DragSortRow.less +1 -1
- package/es/SuperTable2/SuperTable2.less +16 -0
- package/es/SuperTable3/FilterDropDown.js +188 -0
- package/es/SuperTable3/FilterDropDown.less +29 -0
- package/es/SuperTable3/SuperTable.js +783 -0
- package/es/SuperTable3/SuperTable.less +99 -0
- package/es/SuperTable3/fixed.js +42 -0
- package/es/SuperTable3/package.json +6 -0
- package/es/index.js +12 -2
- package/es/style.less +13 -3
- package/lib/Indent/Indent.js +38 -0
- package/lib/Indent/package.json +6 -0
- package/lib/SuperForm2/SuperForm.js +742 -0
- package/lib/SuperForm2/SuperForm.less +52 -0
- package/lib/SuperForm2/package.json +6 -0
- package/lib/SuperTab/SuperTab.js +146 -0
- package/lib/SuperTab/SuperTab.less +43 -0
- package/lib/SuperTab/package.json +6 -0
- package/lib/SuperTab2/SuperTab2.js +191 -0
- package/lib/SuperTab2/SuperTab2.less +18 -0
- package/lib/SuperTab2/package.json +6 -0
- package/lib/SuperTable/DragSortRow.less +1 -1
- package/lib/SuperTable2/SuperTable2.less +16 -0
- package/lib/SuperTable3/FilterDropDown.js +205 -0
- package/lib/SuperTable3/FilterDropDown.less +29 -0
- package/lib/SuperTable3/SuperTable.js +787 -0
- package/lib/SuperTable3/SuperTable.less +99 -0
- package/lib/SuperTable3/fixed.js +55 -0
- package/lib/SuperTable3/package.json +6 -0
- package/lib/index.js +102 -7
- package/lib/index.less +5 -1
- package/lib/style.less +13 -3
- package/package.json +1 -1
- package/es/HomeHeader/Header.js +0 -75
- package/es/HomeHeader/Header.less +0 -73
- package/es/HomeHeader/package.json +0 -6
- package/lib/HomeHeader/Header.js +0 -95
- package/lib/HomeHeader/Header.less +0 -73
- package/lib/HomeHeader/package.json +0 -6
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@import '../variables.less';
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
border-spacing: 0;
|
|
5
|
+
cursor: default;
|
|
6
|
+
|
|
7
|
+
table {
|
|
8
|
+
white-space: pre;
|
|
9
|
+
|
|
10
|
+
:global(.ant-checkbox-input) {
|
|
11
|
+
z-index: -1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:global(.ant-table-placeholder) {
|
|
16
|
+
padding: 0;
|
|
17
|
+
|
|
18
|
+
> div {
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.select {
|
|
24
|
+
background-color: @primary-1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.center {
|
|
28
|
+
text-align: center !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.left {
|
|
32
|
+
text-align: left !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.right {
|
|
36
|
+
text-align: right !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.noWrap{
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.totalRow {
|
|
44
|
+
color: #222!important;
|
|
45
|
+
background-color: #f0f0f0!important;
|
|
46
|
+
transition: all 0s!important;
|
|
47
|
+
td {
|
|
48
|
+
border-top: 1px solid #ddd!important;
|
|
49
|
+
background-color: #f0f0f0!important;
|
|
50
|
+
border-bottom: 0!important;
|
|
51
|
+
transition: all 0s!important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:global(.ant-table-footer) {
|
|
56
|
+
padding: 0!important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.footer {
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
overflow: auto;
|
|
62
|
+
scrollbar-width: none;
|
|
63
|
+
-ms-overflow-style: none;
|
|
64
|
+
scrollbar-color: transparent transparent;
|
|
65
|
+
scrollbar-track-color: transparent;
|
|
66
|
+
-ms-scrollbar-track-color: transparent;
|
|
67
|
+
.footerItem {
|
|
68
|
+
white-space: pre;
|
|
69
|
+
> span {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
color: #222;
|
|
72
|
+
position: relative;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
border-top: 1px solid #dedede;
|
|
75
|
+
display: inline-block;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
height: 35px;
|
|
78
|
+
padding: 8px 8px 7px !important;
|
|
79
|
+
border-right: 1px solid transparent;
|
|
80
|
+
}
|
|
81
|
+
.ghost {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
filter: alpha(opacity=0);
|
|
84
|
+
}
|
|
85
|
+
.content {
|
|
86
|
+
position: absolute;
|
|
87
|
+
left: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.footer::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
width: 0!important;
|
|
95
|
+
height: 0!important;
|
|
96
|
+
opacity: 0;
|
|
97
|
+
filter: alpha(opacity=0);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/index-of";
|
|
2
|
+
|
|
3
|
+
var isFirefox = function isFirefox() {
|
|
4
|
+
var _context;
|
|
5
|
+
|
|
6
|
+
return _indexOfInstanceProperty(_context = navigator.userAgent).call(_context, 'Firefox') > 0;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
var getComputedStyle = function getComputedStyle(element) {
|
|
10
|
+
return window.getComputedStyle ? window.getComputedStyle(element, null) : element.currentStyle;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
var fixed = function fixed(container, header, maxHeight) {
|
|
14
|
+
var totalFooter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
15
|
+
container.style.overflowY = 'auto';
|
|
16
|
+
container.style.maxHeight = maxHeight;
|
|
17
|
+
|
|
18
|
+
if (isFirefox()) {
|
|
19
|
+
container.style.position = 'relative';
|
|
20
|
+
header.style.top = '0';
|
|
21
|
+
header.style.position = 'sticky';
|
|
22
|
+
header.style.zIndex = '1';
|
|
23
|
+
} else {
|
|
24
|
+
header.parentNode.appendChild(header);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var containerHeight = Number(getComputedStyle(container).height.replace('px', ''));
|
|
28
|
+
var translateHeight = containerHeight - 10 - container.scrollHeight;
|
|
29
|
+
var pageTotalElement = totalFooter.pageTotalElement,
|
|
30
|
+
searchTotalElement = totalFooter.searchTotalElement;
|
|
31
|
+
pageTotalElement && (pageTotalElement.style.transform = "translateY(".concat(translateHeight + container.scrollTop, "px)"));
|
|
32
|
+
searchTotalElement && (searchTotalElement.style.transform = "translateY(".concat(translateHeight + container.scrollTop, "px)"));
|
|
33
|
+
|
|
34
|
+
container.onscroll = function () {
|
|
35
|
+
if (container.scrollTop + containerHeight - 10 > container.scrollHeight) return;
|
|
36
|
+
!isFirefox() && (header.style.transform = "translateY(".concat(container.scrollTop, "px)"));
|
|
37
|
+
pageTotalElement && (pageTotalElement.style.transform = "translateY(".concat(translateHeight + container.scrollTop, "px)"));
|
|
38
|
+
searchTotalElement && (searchTotalElement.style.transform = "translateY(".concat(translateHeight + container.scrollTop, "px)"));
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default fixed;
|
package/es/index.js
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
|
+
import { EnhanceLoading, EnhanceDialogs, EnhanceEditDialog } from './Enhance';
|
|
2
|
+
export { EnhanceLoading, EnhanceDialogs, EnhanceEditDialog };
|
|
1
3
|
export { default as Title } from './Title';
|
|
2
4
|
export { default as Card } from './Card';
|
|
3
5
|
export { default as Control } from './Control';
|
|
4
|
-
export { default as Enhance } from './Enhance';
|
|
5
6
|
export { default as Header } from './Header';
|
|
6
7
|
export { default as ImageView } from './ImageView';
|
|
7
8
|
export { default as InpurCascader } from './InpurCascader';
|
|
8
9
|
export { default as InputSearch } from './InputSearch';
|
|
9
10
|
export { default as InputSelect } from './InputSelect';
|
|
11
|
+
export { default as InputEditor } from './InputEditor';
|
|
10
12
|
export { default as InputWriting } from './InputWriting';
|
|
11
13
|
export { default as Layout } from './Layout';
|
|
12
14
|
export { default as LayoutLink } from './LayoutLink';
|
|
13
15
|
export { default as Link } from './Link';
|
|
14
16
|
export { default as Loading } from './Loading';
|
|
17
|
+
export { default as Loading2 } from './Loading2';
|
|
15
18
|
export { default as ModalWithDrag } from './ModalWithDrag';
|
|
16
19
|
export { default as NumberInput } from './NumberInput';
|
|
17
20
|
export { default as Search } from './Search';
|
|
18
21
|
export { default as Sidebar } from './Sidebar';
|
|
22
|
+
export { default as Sidebar2 } from './Sidebar2';
|
|
19
23
|
export { default as SuperForm } from './SuperForm';
|
|
24
|
+
export { default as SuperForm2 } from './SuperForm2';
|
|
20
25
|
export { default as SuperIcon } from './SuperIcon';
|
|
21
26
|
export { default as SuperToolbar } from './SuperToolbar';
|
|
22
27
|
export { default as SuperUpload } from './SuperUpload';
|
|
23
28
|
export { default as Viewer } from './Viewer';
|
|
24
29
|
export { default as WingBlank } from './WingBlank';
|
|
25
30
|
export { default as Area } from './Area';
|
|
31
|
+
export { default as SuperTable3 } from './SuperTable3';
|
|
26
32
|
export { default as SuperTable2 } from './SuperTable2';
|
|
27
|
-
export { default as SuperTable } from './SuperTable';
|
|
33
|
+
export { default as SuperTable } from './SuperTable';
|
|
34
|
+
export { default as SuperPagination } from './SuperPagination';
|
|
35
|
+
export { default as SuperTab } from './SuperTab';
|
|
36
|
+
export { default as SuperTab2 } from './SuperTab2';
|
|
37
|
+
export { default as Indent } from './Indent';
|
package/es/style.less
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
@import "./Title/Title.less";
|
|
3
3
|
@import "./Search/Search.less";
|
|
4
4
|
@import "./SuperForm/SuperForm.less";
|
|
5
|
+
@import "./SuperForm2/SuperForm.less";
|
|
5
6
|
@import "./SuperTable/SuperTable.less";
|
|
7
|
+
@import "./SuperTable/DragSortRow.less";
|
|
8
|
+
@import "./SuperTable/FilterDropDown.less";
|
|
6
9
|
@import "./SuperTable2/SuperTable2.less";
|
|
10
|
+
@import "./SuperTable3/SuperTable.less";
|
|
11
|
+
@import "./SuperTable3/FilterDropDown.less";
|
|
7
12
|
@import "./Header/Header.less";
|
|
8
|
-
@import "./
|
|
9
|
-
@import "./InputEditor/
|
|
13
|
+
@import "./Header/Vertical.less";
|
|
14
|
+
@import "./InputEditor/inputEditor.less";
|
|
10
15
|
@import "./Layout/Layout.less";
|
|
11
16
|
@import "./LayoutLink/LayoutLink.less";
|
|
12
17
|
@import "./Loading/Loading.less";
|
|
@@ -17,4 +22,9 @@
|
|
|
17
22
|
@import "./Sidebar2/Sidebar.less";
|
|
18
23
|
@import "./SuperToolbar/SuperToolbar.less";
|
|
19
24
|
@import "./SuperUpload/SuperUpload.less";
|
|
20
|
-
@import "./Viewer/Viewer.less";
|
|
25
|
+
@import "./Viewer/Viewer.less";
|
|
26
|
+
@import "./Viewer/imgView.less";
|
|
27
|
+
@import "./SuperTab/SuperTab.less";
|
|
28
|
+
@import "./SuperTab2/SuperTab2.less";
|
|
29
|
+
@import "./ImageView/ImageView.less";
|
|
30
|
+
@import "./WingBlank/WingBlank.less";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
exports["default"] = void 0;
|
|
12
|
+
|
|
13
|
+
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
+
|
|
15
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
16
|
+
|
|
17
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
|
18
|
+
|
|
19
|
+
var _react = _interopRequireDefault(require("react"));
|
|
20
|
+
|
|
21
|
+
var _excluded = ["children", "style"];
|
|
22
|
+
|
|
23
|
+
function Indent(_ref) {
|
|
24
|
+
var children = _ref.children,
|
|
25
|
+
_ref$style = _ref.style,
|
|
26
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
27
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
28
|
+
(0, _assign["default"])(style, {
|
|
29
|
+
paddingLeft: 8,
|
|
30
|
+
paddingRight: 8
|
|
31
|
+
});
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
33
|
+
style: style
|
|
34
|
+
}, props), children);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var _default = Indent;
|
|
38
|
+
exports["default"] = _default;
|