@kep-platform/basic-component 1.0.14 → 1.0.16
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/Button/Button.d.ts
CHANGED
@@ -6,7 +6,7 @@ export type ButtonProps = {
|
|
6
6
|
children: ReactNode;
|
7
7
|
} & HtmlHTMLAttributes<HTMLButtonElement>;
|
8
8
|
declare const Button: React.ForwardRefExoticComponent<{
|
9
|
-
type?: "
|
9
|
+
type?: "danger" | "default" | "primary" | undefined;
|
10
10
|
size?: SizeType | undefined;
|
11
11
|
children: ReactNode;
|
12
12
|
} & React.HtmlHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/Tree/Tree.js
CHANGED
@@ -147,7 +147,9 @@ var Tree = observer(function (_ref) {
|
|
147
147
|
loadedKeys = _useState2[0],
|
148
148
|
setLoadedKeys = _useState2[1];
|
149
149
|
useEffect(function () {
|
150
|
-
if (
|
150
|
+
if (JSON.stringify(loadedKeys) !== JSON.stringify(loadedKeysProps)) {
|
151
|
+
setLoadedKeys(loadedKeysProps);
|
152
|
+
}
|
151
153
|
}, [loadedKeysProps]);
|
152
154
|
|
153
155
|
/* 树组件的结构其实比较简单,就是一个树标题(TableMode下),然后树节点形成的列表 */
|
package/dist/Window/Window.js
CHANGED
@@ -9,7 +9,7 @@ import WindowController from "./WindowController";
|
|
9
9
|
import WindowOption from "./WindowOption";
|
10
10
|
var WindowContainer = styled.div.withConfig({
|
11
11
|
shouldForwardProp: function shouldForwardProp(prop) {
|
12
|
-
return !['isMinimize'].includes(prop);
|
12
|
+
return !['isMinimize', 'isFullscreen'].includes(prop);
|
13
13
|
}
|
14
14
|
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tbox-shadow: ", ";\n\tposition: absolute;\n\tpadding: 0px;\n\tborder-radius: ", ";\n\tbackground-color: #fff;\n\toverflow: hidden;\n\tborder: 1px solid rgba(50, 58, 67, 0.15);\n"])), function (props) {
|
15
15
|
return props.isFullscreen ? 'none' : 'var(--kep-platform-box-shadow)';
|
@@ -14,9 +14,9 @@ import React, { useState } from 'react';
|
|
14
14
|
import styled from 'styled-components';
|
15
15
|
var WindowOptionContainer = styled.span.withConfig({
|
16
16
|
shouldForwardProp: function shouldForwardProp(prop) {
|
17
|
-
return !['active'].includes(prop);
|
17
|
+
return !['active', 'danger'].includes(prop);
|
18
18
|
}
|
19
|
-
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
19
|
+
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\theight: 100%;\n\tdisplay: flex;\n\tpadding: 0 16px;\n\tcursor: pointer;\n\t& svg {\n\t\ttransition: transform 0.5s;\n\t}\n\n\t&:hover {\n\t\t& svg {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\tbackground-color: ", ";\n\t}\n"])), function (props) {
|
20
20
|
if (props.danger) {
|
21
21
|
return '#fff';
|
22
22
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kep-platform/basic-component",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.16",
|
4
4
|
"description": "A react library developed with dumi",
|
5
5
|
"license": "MIT",
|
6
6
|
"module": "dist/index.js",
|
@@ -86,5 +86,5 @@
|
|
86
86
|
"authors": [
|
87
87
|
"less-step-jss 1599925910@qq.com"
|
88
88
|
],
|
89
|
-
"gitHead": "
|
89
|
+
"gitHead": "4d69e95d349dad5a6bc640dfc7a655ac8f72b1ae"
|
90
90
|
}
|