@douyinfe/semi-foundation 2.20.2 → 2.21.0-alpha.0
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/image/variables.scss +0 -3
- package/lib/cjs/image/variables.scss +0 -3
- package/lib/cjs/table/table.css +7 -0
- package/lib/cjs/table/table.scss +9 -0
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/es/image/variables.scss +0 -3
- package/lib/es/table/table.css +7 -0
- package/lib/es/table/table.scss +9 -0
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/upload/constants.d.ts +1 -1
- package/package.json +2 -2
- package/table/table.scss +9 -0
package/image/variables.scss
CHANGED
|
@@ -45,6 +45,3 @@ $color-image_header_close-bg: rgba(0, 0, 0, 0.75); //图像预览header的关闭
|
|
|
45
45
|
$color-image_preview_footer-bg: rgba(0, 0, 0, 0.75); // 图像预览footer部分背景色
|
|
46
46
|
$color-image-preview_divider-bg: rgba(255, 255, 255, .5); // 图像预览footer中的分割线背景色
|
|
47
47
|
$color-image_preview_image_spin: #ccc; // 图像预览的加载状态颜色
|
|
48
|
-
|
|
49
|
-
$z-image_preview: 1070 !default; // Image 组件预览层z-index
|
|
50
|
-
$z-image_preview_header: 1 !default; // Image 组件预览层中 header 部分 z-index
|
|
@@ -45,6 +45,3 @@ $color-image_header_close-bg: rgba(0, 0, 0, 0.75); //图像预览header的关闭
|
|
|
45
45
|
$color-image_preview_footer-bg: rgba(0, 0, 0, 0.75); // 图像预览footer部分背景色
|
|
46
46
|
$color-image-preview_divider-bg: rgba(255, 255, 255, .5); // 图像预览footer中的分割线背景色
|
|
47
47
|
$color-image_preview_image_spin: #ccc; // 图像预览的加载状态颜色
|
|
48
|
-
|
|
49
|
-
$z-image_preview: 1070 !default; // Image 组件预览层z-index
|
|
50
|
-
$z-image_preview_header: 1 !default; // Image 组件预览层中 header 部分 z-index
|
package/lib/cjs/table/table.css
CHANGED
|
@@ -81,6 +81,13 @@
|
|
|
81
81
|
background-color: transparent;
|
|
82
82
|
border-bottom: 2px solid var(--semi-color-border);
|
|
83
83
|
}
|
|
84
|
+
.semi-table-header-sticky {
|
|
85
|
+
position: sticky;
|
|
86
|
+
z-index: 102;
|
|
87
|
+
}
|
|
88
|
+
.semi-table-header-sticky .semi-table-thead > .semi-table-row > .semi-table-row-head {
|
|
89
|
+
background-color: var(--semi-color-bg-2);
|
|
90
|
+
}
|
|
84
91
|
.semi-table-body {
|
|
85
92
|
overflow: auto;
|
|
86
93
|
width: 100%;
|
package/lib/cjs/table/table.scss
CHANGED
|
@@ -64,6 +64,15 @@ $module: #{$prefix}-table;
|
|
|
64
64
|
border-bottom: $width-table_header_border $border-table_base-borderStyle $color-table_th-border-default;
|
|
65
65
|
}
|
|
66
66
|
scrollbar-base-color: transparent;
|
|
67
|
+
|
|
68
|
+
&-sticky {
|
|
69
|
+
position: sticky;
|
|
70
|
+
z-index: $z-table_fixed_column + 1;
|
|
71
|
+
|
|
72
|
+
.semi-table-thead > .semi-table-row > .semi-table-row-head {
|
|
73
|
+
background-color: $color-table-bg-default;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
67
76
|
}
|
|
68
77
|
|
|
69
78
|
&-body {
|
|
@@ -74,6 +74,6 @@ export declare function getValueOrKey(data: any): any;
|
|
|
74
74
|
export declare function normalizeValue(value: any, withObject: boolean): any;
|
|
75
75
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
76
76
|
export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
|
|
77
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
77
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
|
|
78
78
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
79
79
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("custom" | "auto")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
|
@@ -45,6 +45,3 @@ $color-image_header_close-bg: rgba(0, 0, 0, 0.75); //图像预览header的关闭
|
|
|
45
45
|
$color-image_preview_footer-bg: rgba(0, 0, 0, 0.75); // 图像预览footer部分背景色
|
|
46
46
|
$color-image-preview_divider-bg: rgba(255, 255, 255, .5); // 图像预览footer中的分割线背景色
|
|
47
47
|
$color-image_preview_image_spin: #ccc; // 图像预览的加载状态颜色
|
|
48
|
-
|
|
49
|
-
$z-image_preview: 1070 !default; // Image 组件预览层z-index
|
|
50
|
-
$z-image_preview_header: 1 !default; // Image 组件预览层中 header 部分 z-index
|
package/lib/es/table/table.css
CHANGED
|
@@ -81,6 +81,13 @@
|
|
|
81
81
|
background-color: transparent;
|
|
82
82
|
border-bottom: 2px solid var(--semi-color-border);
|
|
83
83
|
}
|
|
84
|
+
.semi-table-header-sticky {
|
|
85
|
+
position: sticky;
|
|
86
|
+
z-index: 102;
|
|
87
|
+
}
|
|
88
|
+
.semi-table-header-sticky .semi-table-thead > .semi-table-row > .semi-table-row-head {
|
|
89
|
+
background-color: var(--semi-color-bg-2);
|
|
90
|
+
}
|
|
84
91
|
.semi-table-body {
|
|
85
92
|
overflow: auto;
|
|
86
93
|
width: 100%;
|
package/lib/es/table/table.scss
CHANGED
|
@@ -64,6 +64,15 @@ $module: #{$prefix}-table;
|
|
|
64
64
|
border-bottom: $width-table_header_border $border-table_base-borderStyle $color-table_th-border-default;
|
|
65
65
|
}
|
|
66
66
|
scrollbar-base-color: transparent;
|
|
67
|
+
|
|
68
|
+
&-sticky {
|
|
69
|
+
position: sticky;
|
|
70
|
+
z-index: $z-table_fixed_column + 1;
|
|
71
|
+
|
|
72
|
+
.semi-table-thead > .semi-table-row > .semi-table-row-head {
|
|
73
|
+
background-color: $color-table-bg-default;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
67
76
|
}
|
|
68
77
|
|
|
69
78
|
&-body {
|
|
@@ -74,6 +74,6 @@ export declare function getValueOrKey(data: any): any;
|
|
|
74
74
|
export declare function normalizeValue(value: any, withObject: boolean): any;
|
|
75
75
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
76
76
|
export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
|
|
77
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
77
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
|
|
78
78
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
79
79
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("custom" | "auto")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "689c04c44cdfda8c477e77785f47c1be3743e11e",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/table/table.scss
CHANGED
|
@@ -64,6 +64,15 @@ $module: #{$prefix}-table;
|
|
|
64
64
|
border-bottom: $width-table_header_border $border-table_base-borderStyle $color-table_th-border-default;
|
|
65
65
|
}
|
|
66
66
|
scrollbar-base-color: transparent;
|
|
67
|
+
|
|
68
|
+
&-sticky {
|
|
69
|
+
position: sticky;
|
|
70
|
+
z-index: $z-table_fixed_column + 1;
|
|
71
|
+
|
|
72
|
+
.semi-table-thead > .semi-table-row > .semi-table-row-head {
|
|
73
|
+
background-color: $color-table-bg-default;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
67
76
|
}
|
|
68
77
|
|
|
69
78
|
&-body {
|