zmdms-webui 0.0.63 → 0.0.65
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.
|
@@ -19,7 +19,7 @@ var Container = function (props) {
|
|
|
19
19
|
var classes = classNames("ztxk-container__content", className, {
|
|
20
20
|
"ztxk-container__content--flex": isFlex,
|
|
21
21
|
});
|
|
22
|
-
return (jsxs("div", __assign({ className: "ztxk-container", ref: containerRef }, { children: [leftContent && (jsx(LeftContentMemo, __assign({ containerRef: containerRef, defaultLeftOpen: defaultLeftOpen, width: defaultLeftWidth }, { children: leftContent }))), jsx(ContainerLoading, { loading: loading }), jsx("div", __assign({ className: classes }, { children: children })), jsx(Footer, { footerDom: footerDom })] })));
|
|
22
|
+
return (jsxs("div", __assign({ className: "ztxk-container", ref: containerRef }, { children: [leftContent && (jsx(LeftContentMemo, __assign({ containerRef: containerRef, defaultLeftOpen: defaultLeftOpen, width: defaultLeftWidth, isShow: true }, { children: leftContent }))), jsx(ContainerLoading, { loading: loading }), jsx("div", __assign({ className: classes }, { children: children })), jsx(Footer, { footerDom: footerDom })] })));
|
|
23
23
|
};
|
|
24
24
|
var ContainerButtonWrap = memo(function (_a) {
|
|
25
25
|
var children = _a.children, isMarginTop = _a.isMarginTop, className = _a.className, style = _a.style;
|
package/dist/es/icon/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import create from '../node_modules/@ant-design/icons/es/components/IconFont.js';
|
|
2
2
|
|
|
3
3
|
var IconFont = create({
|
|
4
|
-
scriptUrl: ["//at.alicdn.com/t/c/font_4078313_kmoas13azo.js"],
|
|
4
|
+
// scriptUrl: ["//at.alicdn.com/t/c/font_4078313_kmoas13azo.js"],
|
|
5
|
+
scriptUrl: ["/icon/icon.js"],
|
|
5
6
|
});
|
|
6
7
|
|
|
7
8
|
export { IconFont as default };
|
|
@@ -22,41 +22,46 @@ var LeftContent = function (_a, ref) {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
if (!changeDomRef.current) {
|
|
25
|
-
var containerDom = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
|
|
26
|
-
// 如果没有传入需要改变宽度的容器 那么默认取下一个兄弟节点
|
|
27
|
-
if (!containerDom) {
|
|
28
|
-
containerDom = (_a = currentRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling;
|
|
29
|
-
}
|
|
30
|
-
if (!containerDom) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
25
|
// 如果找到指定元素 是否终止
|
|
34
26
|
var isReture = true;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (containerDom.classList.contains(changeSizeClassName[i])) {
|
|
39
|
-
isReture = false;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
27
|
+
var containerDom = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
|
|
28
|
+
if (containerDom) {
|
|
29
|
+
isReture = false;
|
|
42
30
|
}
|
|
43
31
|
else {
|
|
44
|
-
|
|
45
|
-
|
|
32
|
+
// 如果没有传入需要改变宽度的容器 那么默认取下一个兄弟节点
|
|
33
|
+
if (!containerDom) {
|
|
34
|
+
containerDom = (_a = currentRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling;
|
|
46
35
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (Array.isArray(
|
|
51
|
-
|
|
52
|
-
|
|
36
|
+
if (!containerDom) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (Array.isArray(changeSizeClassName)) {
|
|
40
|
+
for (var i = 0; i < changeSizeClassName.length; i++) {
|
|
41
|
+
// 如果包含这个类名
|
|
42
|
+
if (containerDom.classList.contains(changeSizeClassName[i])) {
|
|
43
|
+
isReture = false;
|
|
44
|
+
}
|
|
53
45
|
}
|
|
54
46
|
}
|
|
55
47
|
else {
|
|
56
|
-
if (
|
|
48
|
+
if (containerDom.classList.contains(changeSizeClassName)) {
|
|
57
49
|
isReture = false;
|
|
58
50
|
}
|
|
59
51
|
}
|
|
52
|
+
if (isReture) {
|
|
53
|
+
var id = (_b = containerDom === null || containerDom === void 0 ? void 0 : containerDom.getAttribute) === null || _b === void 0 ? void 0 : _b.call(containerDom, "id");
|
|
54
|
+
if (Array.isArray(changeSizeId)) {
|
|
55
|
+
if (changeSizeId.includes(id)) {
|
|
56
|
+
isReture = false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
if (changeSizeId === id) {
|
|
61
|
+
isReture = false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
66
|
if (isReture) {
|
|
62
67
|
return;
|