@douyinfe/semi-foundation 2.69.1-alpha.0 → 2.69.2
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/datePicker/yearAndMonthFoundation.ts +29 -9
- package/lib/cjs/datePicker/yearAndMonthFoundation.js +39 -8
- package/lib/cjs/resizable/foundation.d.ts +5 -2
- package/lib/cjs/resizable/group/index.d.ts +3 -6
- package/lib/cjs/resizable/group/index.js +23 -90
- package/lib/cjs/resizable/groupConstants.d.ts +16 -0
- package/lib/cjs/resizable/groupConstants.js +25 -0
- package/lib/cjs/resizable/resizable.css +0 -86
- package/lib/cjs/resizable/resizable.scss +3 -100
- package/lib/cjs/resizable/single/index.d.ts +1 -1
- package/lib/cjs/resizable/single/index.js +2 -2
- package/lib/cjs/resizable/singleConstants.d.ts +105 -0
- package/lib/cjs/resizable/singleConstants.js +67 -0
- package/lib/cjs/resizable/utils.js +5 -5
- package/lib/cjs/resizable/variables.scss +0 -8
- package/lib/cjs/table/table.css +2 -1
- package/lib/cjs/table/table.scss +2 -1
- package/lib/cjs/transfer/transfer.css +1 -0
- package/lib/cjs/transfer/transfer.scss +1 -0
- package/lib/cjs/treeSelect/treeSelect.css +3 -1
- package/lib/cjs/treeSelect/treeSelect.scss +4 -1
- package/lib/es/datePicker/yearAndMonthFoundation.js +39 -8
- package/lib/es/resizable/foundation.d.ts +5 -2
- package/lib/es/resizable/foundation.js +3 -2
- package/lib/es/resizable/group/index.d.ts +3 -6
- package/lib/es/resizable/group/index.js +23 -90
- package/lib/es/resizable/groupConstants.d.ts +16 -0
- package/lib/es/resizable/groupConstants.js +19 -0
- package/lib/es/resizable/resizable.css +0 -86
- package/lib/es/resizable/resizable.scss +3 -100
- package/lib/es/resizable/single/index.d.ts +1 -1
- package/lib/es/resizable/single/index.js +1 -1
- package/lib/es/resizable/singleConstants.d.ts +105 -0
- package/lib/es/resizable/singleConstants.js +61 -0
- package/lib/es/resizable/utils.js +5 -5
- package/lib/es/resizable/variables.scss +0 -8
- package/lib/es/table/table.css +2 -1
- package/lib/es/table/table.scss +2 -1
- package/lib/es/transfer/transfer.css +1 -0
- package/lib/es/transfer/transfer.scss +1 -0
- package/lib/es/treeSelect/treeSelect.css +3 -1
- package/lib/es/treeSelect/treeSelect.scss +4 -1
- package/package.json +3 -3
- package/resizable/foundation.ts +15 -4
- package/resizable/group/index.ts +29 -92
- package/resizable/groupConstants.ts +25 -0
- package/resizable/resizable.scss +3 -100
- package/resizable/single/index.ts +1 -1
- package/resizable/{types.ts → singleConstants.ts} +65 -0
- package/resizable/utils.ts +6 -7
- package/resizable/variables.scss +0 -8
- package/table/table.scss +2 -1
- package/transfer/transfer.scss +1 -0
- package/treeSelect/treeSelect.scss +4 -1
- package/lib/cjs/resizable/types.d.ts +0 -41
- package/lib/cjs/resizable/types.js +0 -12
- package/lib/es/resizable/types.d.ts +0 -41
- package/lib/es/resizable/types.js +0 -6
|
@@ -11,72 +11,6 @@
|
|
|
11
11
|
user-select: none;
|
|
12
12
|
z-index: 2000;
|
|
13
13
|
}
|
|
14
|
-
.semi-resizable-resizableHandler-top {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 10px;
|
|
17
|
-
top: 0;
|
|
18
|
-
left: 0;
|
|
19
|
-
cursor: row-resize;
|
|
20
|
-
top: -5px;
|
|
21
|
-
}
|
|
22
|
-
.semi-resizable-resizableHandler-right {
|
|
23
|
-
width: 10px;
|
|
24
|
-
height: 100%;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
cursor: col-resize;
|
|
28
|
-
left: auto;
|
|
29
|
-
right: -5px;
|
|
30
|
-
}
|
|
31
|
-
.semi-resizable-resizableHandler-bottom {
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 10px;
|
|
34
|
-
top: 0;
|
|
35
|
-
left: 0;
|
|
36
|
-
cursor: row-resize;
|
|
37
|
-
top: auto;
|
|
38
|
-
bottom: -5px;
|
|
39
|
-
}
|
|
40
|
-
.semi-resizable-resizableHandler-left {
|
|
41
|
-
width: 10px;
|
|
42
|
-
height: 100%;
|
|
43
|
-
top: 0;
|
|
44
|
-
left: 0;
|
|
45
|
-
cursor: col-resize;
|
|
46
|
-
left: -5px;
|
|
47
|
-
}
|
|
48
|
-
.semi-resizable-resizableHandler-topRight {
|
|
49
|
-
width: 20px;
|
|
50
|
-
height: 20px;
|
|
51
|
-
position: absolute;
|
|
52
|
-
right: -10px;
|
|
53
|
-
top: -10px;
|
|
54
|
-
cursor: ne-resize;
|
|
55
|
-
}
|
|
56
|
-
.semi-resizable-resizableHandler-bottomRight {
|
|
57
|
-
width: 20px;
|
|
58
|
-
height: 20px;
|
|
59
|
-
position: absolute;
|
|
60
|
-
right: -10px;
|
|
61
|
-
bottom: -10px;
|
|
62
|
-
cursor: se-resize;
|
|
63
|
-
}
|
|
64
|
-
.semi-resizable-resizableHandler-bottomLeft {
|
|
65
|
-
width: 20px;
|
|
66
|
-
height: 20px;
|
|
67
|
-
position: absolute;
|
|
68
|
-
left: -10px;
|
|
69
|
-
bottom: -10px;
|
|
70
|
-
cursor: sw-resize;
|
|
71
|
-
}
|
|
72
|
-
.semi-resizable-resizableHandler-topLeft {
|
|
73
|
-
width: 20px;
|
|
74
|
-
height: 20px;
|
|
75
|
-
position: absolute;
|
|
76
|
-
left: -10px;
|
|
77
|
-
top: -10px;
|
|
78
|
-
cursor: nw-resize;
|
|
79
|
-
}
|
|
80
14
|
.semi-resizable-group {
|
|
81
15
|
display: flex;
|
|
82
16
|
position: relative;
|
|
@@ -97,24 +31,4 @@
|
|
|
97
31
|
justify-content: center;
|
|
98
32
|
background-color: var(--semi-color-fill-0);
|
|
99
33
|
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
.semi-resizable-handler-vertical {
|
|
102
|
-
width: 100%;
|
|
103
|
-
height: 10px;
|
|
104
|
-
flex-shrink: 0;
|
|
105
|
-
cursor: row-resize;
|
|
106
|
-
}
|
|
107
|
-
.semi-resizable-handler-horizontal {
|
|
108
|
-
height: 100%;
|
|
109
|
-
width: 10px;
|
|
110
|
-
flex-shrink: 0;
|
|
111
|
-
cursor: col-resize;
|
|
112
|
-
}
|
|
113
|
-
.semi-resizable-background {
|
|
114
|
-
height: 100%;
|
|
115
|
-
width: 100%;
|
|
116
|
-
inset: 0;
|
|
117
|
-
z-index: 2010;
|
|
118
|
-
opacity: 0;
|
|
119
|
-
position: fixed;
|
|
120
34
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
|
|
2
3
|
$module: #{$prefix}-resizable;
|
|
3
4
|
|
|
4
5
|
.#{$module} {
|
|
@@ -12,83 +13,8 @@ $module: #{$prefix}-resizable;
|
|
|
12
13
|
position: absolute;
|
|
13
14
|
user-select: none;
|
|
14
15
|
z-index: $z-resizable_handler;
|
|
15
|
-
|
|
16
|
-
// 基础样式
|
|
17
|
-
@mixin row-resize-base {
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: $height-row-handler;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
cursor: row-resize;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin col-resize-base {
|
|
26
|
-
width: $width-col-handler;
|
|
27
|
-
height: 100%;
|
|
28
|
-
top: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
cursor: col-resize;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@mixin edge-resize-base {
|
|
34
|
-
width: $width-edge-handler;
|
|
35
|
-
height: $height-edge-handler;
|
|
36
|
-
position: absolute;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// 方向样式
|
|
40
|
-
&-top {
|
|
41
|
-
@include row-resize-base;
|
|
42
|
-
top: calc(-1 * $height-row-handler / 2);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&-right {
|
|
46
|
-
@include col-resize-base;
|
|
47
|
-
left: auto;
|
|
48
|
-
right: calc(-1 * $width-col-handler / 2);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-bottom {
|
|
52
|
-
@include row-resize-base;
|
|
53
|
-
top: auto;
|
|
54
|
-
bottom: calc(-1 * $height-row-handler / 2);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&-left {
|
|
58
|
-
@include col-resize-base;
|
|
59
|
-
left: calc(-1 * $width-col-handler / 2);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// 边角样式
|
|
63
|
-
&-topRight {
|
|
64
|
-
@include edge-resize-base;
|
|
65
|
-
right: calc(-1 * $width-edge-handler / 2);
|
|
66
|
-
top: calc(-1 * $height-edge-handler / 2);
|
|
67
|
-
cursor: ne-resize;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-bottomRight {
|
|
71
|
-
@include edge-resize-base;
|
|
72
|
-
right: calc(-1 * $width-edge-handler / 2);
|
|
73
|
-
bottom: calc(-1 * $height-edge-handler / 2);
|
|
74
|
-
cursor: se-resize;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&-bottomLeft {
|
|
78
|
-
@include edge-resize-base;
|
|
79
|
-
left: calc(-1 * $width-edge-handler / 2);
|
|
80
|
-
bottom: calc(-1 * $height-edge-handler / 2);
|
|
81
|
-
cursor: sw-resize;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&-topLeft {
|
|
85
|
-
@include edge-resize-base;
|
|
86
|
-
left: calc(-1 * $width-edge-handler / 2);
|
|
87
|
-
top: calc(-1 * $height-edge-handler / 2);
|
|
88
|
-
cursor: nw-resize;
|
|
89
|
-
}
|
|
90
16
|
}
|
|
91
|
-
|
|
17
|
+
|
|
92
18
|
&-group {
|
|
93
19
|
display: flex;
|
|
94
20
|
position: relative;
|
|
@@ -111,28 +37,5 @@ $module: #{$prefix}-resizable;
|
|
|
111
37
|
justify-content: center;
|
|
112
38
|
background-color: var(--semi-color-fill-0);
|
|
113
39
|
opacity: 1;
|
|
114
|
-
|
|
115
|
-
&-vertical {
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: $height-vertical-handler;
|
|
118
|
-
flex-shrink: 0;
|
|
119
|
-
cursor: row-resize;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&-horizontal {
|
|
123
|
-
height: 100%;
|
|
124
|
-
width: $width-horizontal-handler;
|
|
125
|
-
flex-shrink: 0;
|
|
126
|
-
cursor: col-resize;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&-background {
|
|
131
|
-
height: 100%;
|
|
132
|
-
width: 100%;
|
|
133
|
-
inset: 0;
|
|
134
|
-
z-index: $z-resizable_background;
|
|
135
|
-
opacity: 0;
|
|
136
|
-
position: fixed;
|
|
137
40
|
}
|
|
138
41
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from '../../base/foundation';
|
|
2
|
-
import { Size, NumberSize, Direction } from "../
|
|
2
|
+
import { Size, NumberSize, Direction } from "../singleConstants";
|
|
3
3
|
export interface ResizableHandlerAdapter<P = Record<string, any>, S = Record<string, any>> extends DefaultAdapter<P, S> {
|
|
4
4
|
registerEvent: () => void;
|
|
5
5
|
unregisterEvent: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseFoundation from '../../base/foundation';
|
|
2
|
-
import { DEFAULT_SIZE } from "../
|
|
2
|
+
import { DEFAULT_SIZE } from "../singleConstants";
|
|
3
3
|
import { getStringSize, getNumberSize, has, calculateNewMax, findNextSnap, snap, clamp } from "../utils";
|
|
4
4
|
export class ResizableHandlerFoundation extends BaseFoundation {
|
|
5
5
|
constructor(adapter) {
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export declare const directions: readonly ["top", "right", "bottom", "left", "topRight", "bottomRight", "bottomLeft", "topLeft"];
|
|
2
|
+
export declare const directionStyles: {
|
|
3
|
+
readonly top: {
|
|
4
|
+
readonly top: "-5px";
|
|
5
|
+
readonly width: "100%";
|
|
6
|
+
readonly height: "10px";
|
|
7
|
+
readonly left: "0px";
|
|
8
|
+
readonly cursor: "row-resize";
|
|
9
|
+
};
|
|
10
|
+
readonly right: {
|
|
11
|
+
readonly left: any;
|
|
12
|
+
readonly right: "-5px";
|
|
13
|
+
readonly width: "10px";
|
|
14
|
+
readonly height: "100%";
|
|
15
|
+
readonly top: "0px";
|
|
16
|
+
readonly cursor: "col-resize";
|
|
17
|
+
};
|
|
18
|
+
readonly bottom: {
|
|
19
|
+
readonly top: any;
|
|
20
|
+
readonly bottom: "-5px";
|
|
21
|
+
readonly width: "100%";
|
|
22
|
+
readonly height: "10px";
|
|
23
|
+
readonly left: "0px";
|
|
24
|
+
readonly cursor: "row-resize";
|
|
25
|
+
};
|
|
26
|
+
readonly left: {
|
|
27
|
+
readonly left: "-5px";
|
|
28
|
+
readonly width: "10px";
|
|
29
|
+
readonly height: "100%";
|
|
30
|
+
readonly top: "0px";
|
|
31
|
+
readonly cursor: "col-resize";
|
|
32
|
+
};
|
|
33
|
+
readonly topRight: {
|
|
34
|
+
readonly right: "-10px";
|
|
35
|
+
readonly top: "-10px";
|
|
36
|
+
readonly cursor: "ne-resize";
|
|
37
|
+
readonly width: "20px";
|
|
38
|
+
readonly height: "20px";
|
|
39
|
+
readonly position: "absolute";
|
|
40
|
+
};
|
|
41
|
+
readonly bottomRight: {
|
|
42
|
+
readonly right: "-10px";
|
|
43
|
+
readonly bottom: "-10px";
|
|
44
|
+
readonly cursor: "se-resize";
|
|
45
|
+
readonly width: "20px";
|
|
46
|
+
readonly height: "20px";
|
|
47
|
+
readonly position: "absolute";
|
|
48
|
+
};
|
|
49
|
+
readonly bottomLeft: {
|
|
50
|
+
readonly left: "-10px";
|
|
51
|
+
readonly bottom: "-10px";
|
|
52
|
+
readonly cursor: "sw-resize";
|
|
53
|
+
readonly width: "20px";
|
|
54
|
+
readonly height: "20px";
|
|
55
|
+
readonly position: "absolute";
|
|
56
|
+
};
|
|
57
|
+
readonly topLeft: {
|
|
58
|
+
readonly left: "-10px";
|
|
59
|
+
readonly top: "-10px";
|
|
60
|
+
readonly cursor: "nw-resize";
|
|
61
|
+
readonly width: "20px";
|
|
62
|
+
readonly height: "20px";
|
|
63
|
+
readonly position: "absolute";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type Direction = 'top' | 'right' | 'bottom' | 'left' | 'topRight' | 'bottomRight' | 'bottomLeft' | 'topLeft';
|
|
67
|
+
export interface HandleClassName {
|
|
68
|
+
top?: string;
|
|
69
|
+
right?: string;
|
|
70
|
+
bottom?: string;
|
|
71
|
+
left?: string;
|
|
72
|
+
topRight?: string;
|
|
73
|
+
bottomRight?: string;
|
|
74
|
+
bottomLeft?: string;
|
|
75
|
+
topLeft?: string;
|
|
76
|
+
}
|
|
77
|
+
export type HandlerCallback = (e: MouseEvent, direction: Direction) => void;
|
|
78
|
+
export interface Enable {
|
|
79
|
+
top?: boolean;
|
|
80
|
+
right?: boolean;
|
|
81
|
+
bottom?: boolean;
|
|
82
|
+
left?: boolean;
|
|
83
|
+
topRight?: boolean;
|
|
84
|
+
bottomRight?: boolean;
|
|
85
|
+
bottomLeft?: boolean;
|
|
86
|
+
topLeft?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface Size {
|
|
89
|
+
width?: string | number;
|
|
90
|
+
height?: string | number;
|
|
91
|
+
}
|
|
92
|
+
export interface NumberSize {
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
}
|
|
96
|
+
export interface NewSize {
|
|
97
|
+
newHeight: number | string;
|
|
98
|
+
newWidth: number | string;
|
|
99
|
+
}
|
|
100
|
+
export declare const DEFAULT_SIZE: {
|
|
101
|
+
width: string;
|
|
102
|
+
height: string;
|
|
103
|
+
};
|
|
104
|
+
export type ResizeCallback = (size: Size, event: MouseEvent, direction: Direction) => void;
|
|
105
|
+
export type ResizeStartCallback = (e: MouseEvent, dir: Direction) => void | boolean;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// single
|
|
2
|
+
const rowStyleBase = {
|
|
3
|
+
width: '100%',
|
|
4
|
+
height: '10px',
|
|
5
|
+
top: '0px',
|
|
6
|
+
left: '0px',
|
|
7
|
+
cursor: 'row-resize'
|
|
8
|
+
};
|
|
9
|
+
const colStyleBase = {
|
|
10
|
+
width: '10px',
|
|
11
|
+
height: '100%',
|
|
12
|
+
top: '0px',
|
|
13
|
+
left: '0px',
|
|
14
|
+
cursor: 'col-resize'
|
|
15
|
+
};
|
|
16
|
+
const edgeStyleBase = {
|
|
17
|
+
width: '20px',
|
|
18
|
+
height: '20px',
|
|
19
|
+
position: 'absolute'
|
|
20
|
+
};
|
|
21
|
+
export const directions = ['top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft'];
|
|
22
|
+
export const directionStyles = {
|
|
23
|
+
top: Object.assign(Object.assign({}, rowStyleBase), {
|
|
24
|
+
top: '-5px'
|
|
25
|
+
}),
|
|
26
|
+
right: Object.assign(Object.assign({}, colStyleBase), {
|
|
27
|
+
left: undefined,
|
|
28
|
+
right: '-5px'
|
|
29
|
+
}),
|
|
30
|
+
bottom: Object.assign(Object.assign({}, rowStyleBase), {
|
|
31
|
+
top: undefined,
|
|
32
|
+
bottom: '-5px'
|
|
33
|
+
}),
|
|
34
|
+
left: Object.assign(Object.assign({}, colStyleBase), {
|
|
35
|
+
left: '-5px'
|
|
36
|
+
}),
|
|
37
|
+
topRight: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
38
|
+
right: '-10px',
|
|
39
|
+
top: '-10px',
|
|
40
|
+
cursor: 'ne-resize'
|
|
41
|
+
}),
|
|
42
|
+
bottomRight: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
43
|
+
right: '-10px',
|
|
44
|
+
bottom: '-10px',
|
|
45
|
+
cursor: 'se-resize'
|
|
46
|
+
}),
|
|
47
|
+
bottomLeft: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
48
|
+
left: '-10px',
|
|
49
|
+
bottom: '-10px',
|
|
50
|
+
cursor: 'sw-resize'
|
|
51
|
+
}),
|
|
52
|
+
topLeft: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
53
|
+
left: '-10px',
|
|
54
|
+
top: '-10px',
|
|
55
|
+
cursor: 'nw-resize'
|
|
56
|
+
})
|
|
57
|
+
};
|
|
58
|
+
export const DEFAULT_SIZE = {
|
|
59
|
+
width: 'auto',
|
|
60
|
+
height: 'auto'
|
|
61
|
+
};
|
|
@@ -86,10 +86,10 @@ export const judgeConstraint = function (newSize, min, max, parentSize) {
|
|
|
86
86
|
max = max !== null && max !== void 0 ? max : "100%";
|
|
87
87
|
const minSize = getPixelSize(min, parentSize);
|
|
88
88
|
const maxSize = getPixelSize(max, parentSize);
|
|
89
|
-
if (newSize
|
|
89
|
+
if (newSize <= minSize + offset) {
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
92
|
-
if (newSize
|
|
92
|
+
if (newSize >= maxSize - offset) {
|
|
93
93
|
return true;
|
|
94
94
|
}
|
|
95
95
|
return false;
|
|
@@ -99,11 +99,11 @@ export const adjustNewSize = (newSize, min, max, parentSize, offset) => {
|
|
|
99
99
|
max = max !== null && max !== void 0 ? max : "100%";
|
|
100
100
|
const minSize = getPixelSize(min, parentSize);
|
|
101
101
|
const maxSize = getPixelSize(max, parentSize);
|
|
102
|
-
if (newSize
|
|
102
|
+
if (newSize <= minSize + offset) {
|
|
103
103
|
return minSize + offset;
|
|
104
104
|
}
|
|
105
|
-
if (newSize
|
|
106
|
-
return maxSize;
|
|
105
|
+
if (newSize >= maxSize - offset) {
|
|
106
|
+
return maxSize - offset;
|
|
107
107
|
}
|
|
108
108
|
return newSize;
|
|
109
109
|
};
|
|
@@ -1,9 +1 @@
|
|
|
1
1
|
$z-resizable_handler: 2000 !default; // 伸缩框组件中handler的z-index
|
|
2
|
-
$z-resizable_background: 2010; // 伸缩框组件中背景的z-index
|
|
3
|
-
|
|
4
|
-
$height-row-handler: 10px; // 单个伸缩框中上下handler的高度
|
|
5
|
-
$width-col-handler: 10px; // 单个伸缩框中左右handler的宽度
|
|
6
|
-
$width-edge-handler: 20px; // 单个伸缩框中边角handler的宽度
|
|
7
|
-
$height-edge-handler: 20px; // 单个伸缩框中边角handler的高度
|
|
8
|
-
$width-horizontal-handler: 10px; // 组合伸缩框中水平方向handler的宽度
|
|
9
|
-
$height-vertical-handler: 10px; // 组合伸缩框中垂直方向handler的高度
|
package/lib/es/table/table.css
CHANGED
|
@@ -140,7 +140,8 @@
|
|
|
140
140
|
cursor: pointer;
|
|
141
141
|
}
|
|
142
142
|
.semi-table-thead > .semi-table-row > .semi-table-row-head.semi-table-row-head-clickSort:hover {
|
|
143
|
-
background: var(--semi-color-fill-0);
|
|
143
|
+
background-image: linear-gradient(0deg, var(--semi-color-fill-0), var(--semi-color-fill-0));
|
|
144
|
+
background-color: var(--semi-color-bg-0);
|
|
144
145
|
}
|
|
145
146
|
.semi-table-thead > .semi-table-row > .semi-table-row-head.semi-table-row-head-clickSort:hover.semi-table-cell-fixed-left::before, .semi-table-thead > .semi-table-row > .semi-table-row-head.semi-table-row-head-clickSort:hover.semi-table-cell-fixed-right::before {
|
|
146
147
|
background-color: transparent;
|
package/lib/es/table/table.scss
CHANGED
|
@@ -145,7 +145,8 @@ $module: #{$prefix}-table;
|
|
|
145
145
|
&.#{$module}-row-head-clickSort {
|
|
146
146
|
cursor: pointer;
|
|
147
147
|
&:hover {
|
|
148
|
-
background: $color-table_th-clickSort-bg-hover;
|
|
148
|
+
background-image: linear-gradient(0deg, $color-table_th-clickSort-bg-hover, $color-table_th-clickSort-bg-hover);
|
|
149
|
+
background-color: $color-table_cell-bg-hover;
|
|
149
150
|
|
|
150
151
|
&.#{$module}-cell-fixed {
|
|
151
152
|
&-left,
|
|
@@ -53,6 +53,7 @@ $module: #{$prefix}-transfer;
|
|
|
53
53
|
margin-bottom: $spacing-transfer_header-marginBottom;
|
|
54
54
|
margin-left: $spacing-transfer_header-marginLeft;
|
|
55
55
|
color: $color-transfer_header-text;
|
|
56
|
+
flex-shrink: 0;
|
|
56
57
|
|
|
57
58
|
&-all {
|
|
58
59
|
font-weight: $font-transfer_header_all-fontWeight;
|
|
@@ -136,12 +136,14 @@
|
|
|
136
136
|
}
|
|
137
137
|
.semi-tree-select-selection-TriggerSearchItem-placeholder {
|
|
138
138
|
opacity: 0.6;
|
|
139
|
-
z-index: -1;
|
|
140
139
|
}
|
|
141
140
|
.semi-tree-select-selection-TriggerSearchItem-disabled {
|
|
142
141
|
cursor: not-allowed;
|
|
143
142
|
color: var(--semi-color-disabled-text);
|
|
144
143
|
}
|
|
144
|
+
.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-upper {
|
|
145
|
+
z-index: 1;
|
|
146
|
+
}
|
|
145
147
|
.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper {
|
|
146
148
|
width: 100%;
|
|
147
149
|
}
|
|
@@ -165,7 +165,6 @@ $module: #{$prefix}-tree-select;
|
|
|
165
165
|
|
|
166
166
|
&-placeholder {
|
|
167
167
|
opacity: .6;
|
|
168
|
-
z-index: -1;
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
&-disabled {
|
|
@@ -174,6 +173,10 @@ $module: #{$prefix}-tree-select;
|
|
|
174
173
|
}
|
|
175
174
|
}
|
|
176
175
|
|
|
176
|
+
.#{$module}-triggerSingleSearch-upper {
|
|
177
|
+
z-index: 1;
|
|
178
|
+
}
|
|
179
|
+
|
|
177
180
|
.#{$module}-triggerSingleSearch-wrapper{
|
|
178
181
|
width: 100%;
|
|
179
182
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.69.
|
|
3
|
+
"version": "2.69.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.69.
|
|
10
|
+
"@douyinfe/semi-animation": "2.69.2",
|
|
11
11
|
"@mdx-js/mdx": "^3.0.1",
|
|
12
12
|
"async-validator": "^3.5.0",
|
|
13
13
|
"classnames": "^2.2.6",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"*.scss",
|
|
29
29
|
"*.css"
|
|
30
30
|
],
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "12a3d0cddd5dbb96b2d9e347ad20862cf5bc5049",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
34
34
|
"@babel/preset-env": "^7.15.8",
|
package/resizable/foundation.ts
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
ResizableHandlerAdapter,
|
|
1
|
+
import {
|
|
3
2
|
ResizableHandlerFoundation,
|
|
4
3
|
ResizableFoundation,
|
|
5
|
-
ResizableAdapter
|
|
6
4
|
} from './single';
|
|
7
5
|
|
|
6
|
+
import {
|
|
7
|
+
ResizeGroupFoundation,
|
|
8
|
+
ResizeItemFoundation,
|
|
9
|
+
ResizeHandlerFoundation
|
|
10
|
+
} from './group';
|
|
11
|
+
|
|
12
|
+
import type { ResizableHandlerAdapter, ResizableAdapter } from './single';
|
|
13
|
+
import type { ResizeGroupAdapter, ResizeItemAdapter, ResizeHandlerAdapter } from './group';
|
|
14
|
+
|
|
8
15
|
export {
|
|
16
|
+
ResizableHandlerAdapter,
|
|
17
|
+
ResizableHandlerFoundation,
|
|
18
|
+
ResizableFoundation,
|
|
19
|
+
ResizableAdapter,
|
|
9
20
|
ResizeGroupAdapter,
|
|
10
21
|
ResizeItemAdapter,
|
|
11
22
|
ResizeHandlerAdapter,
|
|
12
23
|
ResizeGroupFoundation,
|
|
13
24
|
ResizeItemFoundation,
|
|
14
25
|
ResizeHandlerFoundation
|
|
15
|
-
}
|
|
26
|
+
};
|