vxe-pc-ui 3.4.26 → 3.5.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/es/carousel/src/carousel-item.js +2 -0
- package/es/col/style.css +0 -105
- package/es/col/style.min.css +0 -1
- package/es/components.js +6 -0
- package/es/icon/style.css +1 -1
- package/es/modal/src/modal.js +2 -4
- package/es/row/style.css +106 -0
- package/es/row/style.min.css +1 -1
- package/es/select/src/select.js +6 -4
- package/es/split/index.js +12 -0
- package/es/split/src/split-item.js +134 -0
- package/es/split/src/split.js +304 -0
- package/es/split/src/util.js +17 -0
- package/es/split/style.css +90 -0
- package/es/split/style.min.css +1 -0
- package/es/split-item/index.js +12 -0
- package/es/split-item/style.css +0 -0
- package/es/split-item/style.min.css +0 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +6 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.js +6 -0
- package/es/vxe-col/style.css +0 -105
- package/es/vxe-col/style.min.css +0 -1
- package/es/vxe-row/style.css +106 -0
- package/es/vxe-row/style.min.css +1 -1
- package/es/vxe-split/index.js +3 -0
- package/es/vxe-split/style.css +90 -0
- package/es/vxe-split/style.min.css +1 -0
- package/es/vxe-split-item/index.js +3 -0
- package/es/vxe-split-item/style.css +0 -0
- package/es/vxe-split-item/style.min.css +0 -0
- package/lib/carousel/src/carousel-item.js +2 -0
- package/lib/carousel/src/carousel-item.min.js +1 -1
- package/lib/col/style/style.css +0 -105
- package/lib/col/style/style.min.css +0 -1
- package/lib/components.js +25 -1
- package/lib/components.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +665 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +2 -4
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/row/style/style.css +106 -0
- package/lib/row/style/style.min.css +1 -1
- package/lib/select/src/select.js +7 -4
- package/lib/select/src/select.min.js +1 -1
- package/lib/split/index.js +19 -0
- package/lib/split/index.min.js +1 -0
- package/lib/split/src/split-item.js +146 -0
- package/lib/split/src/split-item.min.js +1 -0
- package/lib/split/src/split.js +313 -0
- package/lib/split/src/split.min.js +1 -0
- package/lib/split/src/util.js +27 -0
- package/lib/split/src/util.min.js +1 -0
- package/lib/split/style/index.js +1 -0
- package/lib/split/style/style.css +90 -0
- package/lib/split/style/style.min.css +1 -0
- package/lib/split-item/index.js +19 -0
- package/lib/split-item/index.min.js +1 -0
- package/lib/split-item/style/index.js +1 -0
- package/lib/split-item/style/style.css +0 -0
- package/lib/split-item/style/style.min.css +0 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +6 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/utils.js +7 -0
- package/lib/ui/src/utils.min.js +1 -1
- package/lib/vxe-col/style/style.css +0 -105
- package/lib/vxe-col/style/style.min.css +0 -1
- package/lib/vxe-row/style/style.css +106 -0
- package/lib/vxe-row/style/style.min.css +1 -1
- package/lib/vxe-split/index.js +23 -0
- package/lib/vxe-split/index.min.js +1 -0
- package/lib/vxe-split/style/index.js +1 -0
- package/lib/vxe-split/style/style.css +90 -0
- package/lib/vxe-split/style/style.min.css +1 -0
- package/lib/vxe-split-item/index.js +23 -0
- package/lib/vxe-split-item/index.min.js +1 -0
- package/lib/vxe-split-item/style/index.js +1 -0
- package/lib/vxe-split-item/style/style.css +0 -0
- package/lib/vxe-split-item/style/style.min.css +0 -0
- package/package.json +2 -2
- package/packages/carousel/src/carousel-item.ts +3 -0
- package/packages/components.ts +6 -0
- package/packages/modal/src/modal.ts +2 -4
- package/packages/row/src/col.ts +5 -5
- package/packages/select/src/select.ts +6 -4
- package/packages/split/index.ts +16 -0
- package/packages/split/src/split-item.ts +154 -0
- package/packages/split/src/split.ts +312 -0
- package/packages/split/src/util.ts +21 -0
- package/packages/split-item/index.ts +16 -0
- package/packages/ui/index.ts +5 -0
- package/packages/ui/src/utils.ts +7 -0
- package/styles/all.scss +2 -0
- package/styles/components/col.scss +0 -61
- package/styles/components/row.scss +59 -0
- package/styles/components/split-item.scss +0 -0
- package/styles/components/split.scss +103 -0
- package/styles/helpers/baseVar.scss +4 -0
- package/styles/theme/base.scss +6 -1
- package/styles/theme/dark.scss +3 -0
- package/styles/theme/light.scss +3 -0
- package/styles/variable.scss +4 -0
- package/types/all.d.ts +6 -0
- package/types/components/col.d.ts +11 -1
- package/types/components/split-item.d.ts +84 -0
- package/types/components/split.d.ts +89 -0
- package/types/components/table-plugins/extend-cell-area.d.ts +54 -0
- package/types/components/table.d.ts +133 -11
- package/types/ui/global-config.d.ts +4 -0
- /package/es/icon/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
- /package/es/icon/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
- /package/es/icon/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
- /package/es/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
- /package/es/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
- /package/es/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
- /package/lib/icon/style/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
- /package/lib/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
- /package/lib/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
- /package/lib/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use '../helpers/baseVar.scss' as base_var;
|
|
3
|
+
|
|
1
4
|
.vxe-row {
|
|
2
5
|
position: relative;
|
|
3
6
|
display: flex;
|
|
@@ -10,3 +13,59 @@
|
|
|
10
13
|
flex-wrap: wrap;
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
|
|
17
|
+
.vxe-col {
|
|
18
|
+
display: block;
|
|
19
|
+
&.is--ellipsis {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
}
|
|
24
|
+
&.is--fill {
|
|
25
|
+
flex-grow: 1;
|
|
26
|
+
}
|
|
27
|
+
&:not(.is--fill) {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
}
|
|
30
|
+
&.align--left {
|
|
31
|
+
text-align: left;
|
|
32
|
+
}
|
|
33
|
+
&.align--center {
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
&.align--right {
|
|
37
|
+
text-align: right;
|
|
38
|
+
}
|
|
39
|
+
@for $i from 0 to list.length(base_var.$colSpanList) {
|
|
40
|
+
&.span#{$i + 1} {
|
|
41
|
+
width: list.nth(base_var.$colSpanList, $i + 1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vxe-col--inner {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.vxe-col {
|
|
53
|
+
&.is--span,
|
|
54
|
+
&.is--width {
|
|
55
|
+
& > .vxe-col--inner {
|
|
56
|
+
& > .vxe-default-textarea,
|
|
57
|
+
& > .vxe-default-select,
|
|
58
|
+
& > .vxe-input,
|
|
59
|
+
& > .vxe-number-input,
|
|
60
|
+
& > .vxe-password-input,
|
|
61
|
+
& > .vxe-date-picker,
|
|
62
|
+
& > .vxe-textarea,
|
|
63
|
+
& > .vxe-select,
|
|
64
|
+
& > .vxe-tree-select,
|
|
65
|
+
& > .vxe-table-select,
|
|
66
|
+
& > .vxe-ico-picker {
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
.vxe-split {
|
|
4
|
+
&.is--vertical {
|
|
5
|
+
& > .vxe-split-wrapper {
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
& > .vxe-split-item {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
&.is--drag {
|
|
13
|
+
user-select: none;
|
|
14
|
+
& > .vxe-split-wrapper {
|
|
15
|
+
& > .vxe-split-item {
|
|
16
|
+
& > .vxe-split-item--wrapper {
|
|
17
|
+
&::after {
|
|
18
|
+
content: "";
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
background: transparent;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.vxe-split-wrapper {
|
|
33
|
+
height: 100%;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.vxe-split-slots {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vxe-split-item-handle {
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
background-color: var(--vxe-split-handle-bar-background-color);
|
|
46
|
+
user-select: none;
|
|
47
|
+
&:hover {
|
|
48
|
+
background-color: var(--vxe-ui-font-primary-lighten-color);
|
|
49
|
+
}
|
|
50
|
+
&:active {
|
|
51
|
+
background-color: var(--vxe-ui-font-primary-darken-color);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.vxe-split-item--wrapper {
|
|
56
|
+
position: relative;
|
|
57
|
+
word-break: break-word;
|
|
58
|
+
overflow: auto;
|
|
59
|
+
flex-grow: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.vxe-split-item {
|
|
63
|
+
display: flex;
|
|
64
|
+
position: relative;
|
|
65
|
+
overflow: auto;
|
|
66
|
+
&.is--fill {
|
|
67
|
+
flex-grow: 1;
|
|
68
|
+
}
|
|
69
|
+
&.is--width,
|
|
70
|
+
&.is--height {
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
}
|
|
73
|
+
&.is--border {
|
|
74
|
+
& > .vxe-split-item--wrapper,
|
|
75
|
+
& > .vxe-split-item-handle {
|
|
76
|
+
border: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&.is--horizontal {
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
& > .vxe-split-item-handle {
|
|
82
|
+
width: var(--vxe-split-handle-bar-width);
|
|
83
|
+
cursor: w-resize;
|
|
84
|
+
}
|
|
85
|
+
&.is--border {
|
|
86
|
+
& > .vxe-split-item-handle {
|
|
87
|
+
border-width: 1px 0 1px 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&.is--vertical {
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
& > .vxe-split-item-handle {
|
|
94
|
+
height: var(--vxe-split-handle-bar-height);
|
|
95
|
+
cursor: n-resize;
|
|
96
|
+
}
|
|
97
|
+
&.is--border {
|
|
98
|
+
& > .vxe-split-item-handle {
|
|
99
|
+
border-width: 0 1px 0 1px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
package/styles/theme/base.scss
CHANGED
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
--vxe-ui-switch-font-color: #fff;
|
|
146
146
|
--vxe-ui-switch-icon-background-color: #fff;
|
|
147
147
|
--vxe-ui-switch-open-background-color: var(--vxe-ui-font-primary-color);
|
|
148
|
-
--vxe-ui-switch-disabled-background-color: rgba(0,0,0,0.15)
|
|
148
|
+
--vxe-ui-switch-disabled-background-color: rgba(0,0,0,0.15);
|
|
149
149
|
|
|
150
150
|
/*upload*/
|
|
151
151
|
--vxe-ui-upload-file-button-border-style: dashed;
|
|
@@ -175,4 +175,9 @@
|
|
|
175
175
|
--vxe-ui-calendar-selected-color: #fff;
|
|
176
176
|
--vxe-ui-calendar-festival-selected-color: var(--vxe-ui-calendar-selected-color);
|
|
177
177
|
--vxe-ui-calendar-notice-selected-background-color: var(--vxe-ui-calendar-selected-color);
|
|
178
|
+
|
|
179
|
+
/*split*/
|
|
180
|
+
--vxe-split-handle-bar-width: 0.4em;
|
|
181
|
+
--vxe-split-handle-bar-height: var(--vxe-split-handle-bar-width);
|
|
182
|
+
--vxe-split-handle-bar-hover-background-color: #d7effb;
|
|
178
183
|
}
|
package/styles/theme/dark.scss
CHANGED
package/styles/theme/light.scss
CHANGED
package/styles/variable.scss
CHANGED
package/types/all.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ import VxeRate from './components/rate'
|
|
|
66
66
|
import VxeResult from './components/result'
|
|
67
67
|
import VxeRow from './components/row'
|
|
68
68
|
import VxeSelect from './components/select'
|
|
69
|
+
import VxeSplit from './components/split'
|
|
70
|
+
import VxeSplitItem from './components/split-item'
|
|
69
71
|
import VxeSlider from './components/slider'
|
|
70
72
|
import VxeSteps from './components/steps'
|
|
71
73
|
import VxeSwitch from './components/switch'
|
|
@@ -164,6 +166,8 @@ interface AllComponents {
|
|
|
164
166
|
VxeResult: typeof VxeResult
|
|
165
167
|
VxeRow: typeof VxeRow
|
|
166
168
|
VxeSelect: typeof VxeSelect
|
|
169
|
+
VxeSplit: typeof VxeSplit
|
|
170
|
+
VxeSplitItem: typeof VxeSplitItem
|
|
167
171
|
VxeSlider: typeof VxeSlider
|
|
168
172
|
VxeSteps: typeof VxeSteps
|
|
169
173
|
VxeSwitch: typeof VxeSwitch
|
|
@@ -261,6 +265,8 @@ export * from './components/rate'
|
|
|
261
265
|
export * from './components/result'
|
|
262
266
|
export * from './components/row'
|
|
263
267
|
export * from './components/select'
|
|
268
|
+
export * from './components/split'
|
|
269
|
+
export * from './components/split-item'
|
|
264
270
|
export * from './components/slider'
|
|
265
271
|
export * from './components/steps'
|
|
266
272
|
export * from './components/switch'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType } from '@vxe-ui/core'
|
|
1
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType, VxeComponentAlignType } from '@vxe-ui/core'
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
|
|
4
4
|
|
|
@@ -16,10 +16,20 @@ export interface ColPrivateRef {
|
|
|
16
16
|
export interface VxeColPrivateRef extends ColPrivateRef { }
|
|
17
17
|
|
|
18
18
|
export namespace VxeColPropTypes {
|
|
19
|
+
export type Span = string | number
|
|
20
|
+
export type Align = VxeComponentAlignType
|
|
21
|
+
export type Width = string | number
|
|
22
|
+
export type Fill = boolean
|
|
23
|
+
export type Ellipsis = boolean
|
|
19
24
|
export type Size = VxeComponentSizeType
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
export interface VxeColProps {
|
|
28
|
+
span?: VxeColPropTypes.Span
|
|
29
|
+
align?: VxeColPropTypes.Align
|
|
30
|
+
width?: VxeColPropTypes.Width
|
|
31
|
+
fill?: VxeColPropTypes.Fill
|
|
32
|
+
ellipsis?: VxeColPropTypes.Ellipsis
|
|
23
33
|
size?: VxeColPropTypes.Size
|
|
24
34
|
}
|
|
25
35
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf, VxeComponentSlotType } from '@vxe-ui/core'
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
|
|
4
|
+
|
|
5
|
+
export declare const VxeSplitItem: DefineVxeComponentApp<VxeSplitItemProps, VxeSplitItemEventProps, VxeSplitItemSlots>
|
|
6
|
+
export type VxeSplitItemComponent = DefineVxeComponentOptions<VxeSplitItemProps>
|
|
7
|
+
|
|
8
|
+
export type VxeSplitItemInstance = DefineVxeComponentInstance<{
|
|
9
|
+
reactData: SplitItemReactData
|
|
10
|
+
}, VxeSplitItemProps, VxeSplitItemPrivateComputed, VxeSplitItemMethods>
|
|
11
|
+
|
|
12
|
+
export type VxeSplitItemConstructor = VxeSplitItemInstance
|
|
13
|
+
|
|
14
|
+
export interface SplitItemPrivateRef {
|
|
15
|
+
}
|
|
16
|
+
export interface VxeSplitItemPrivateRef extends SplitItemPrivateRef { }
|
|
17
|
+
|
|
18
|
+
export namespace VxeSplitItemPropTypes {
|
|
19
|
+
export type Span = string | number
|
|
20
|
+
export type Width = string | number
|
|
21
|
+
export type Height = string | number
|
|
22
|
+
export type MinWidth = string | number
|
|
23
|
+
export type MinHeight = string | number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type VxeSplitItemProps = {
|
|
27
|
+
span?: VxeSplitItemPropTypes.Span
|
|
28
|
+
width?: VxeSplitItemPropTypes.Width
|
|
29
|
+
height?: VxeSplitItemPropTypes.Height
|
|
30
|
+
minWidth?: VxeSplitItemPropTypes.MinWidth
|
|
31
|
+
minHeight?: VxeSplitItemPropTypes.MinHeight
|
|
32
|
+
|
|
33
|
+
slots?: {
|
|
34
|
+
default?: string | ((params: VxeSplitItemSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface SplitItemPrivateComputed {
|
|
39
|
+
}
|
|
40
|
+
export interface VxeSplitItemPrivateComputed extends SplitItemPrivateComputed { }
|
|
41
|
+
|
|
42
|
+
export interface SplitItemReactData {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface SplitItemInternalData {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface SplitItemMethods {
|
|
49
|
+
dispatchEvent(type: ValueOf<VxeSplitItemEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
50
|
+
}
|
|
51
|
+
export interface VxeSplitItemMethods extends SplitItemMethods { }
|
|
52
|
+
|
|
53
|
+
export interface SplitItemPrivateMethods { }
|
|
54
|
+
export interface VxeSplitItemPrivateMethods extends SplitItemPrivateMethods { }
|
|
55
|
+
|
|
56
|
+
export type VxeSplitItemEmits = [
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
export namespace VxeSplitItemDefines {
|
|
60
|
+
export interface SplitItemEventParams extends VxeComponentEventParams {
|
|
61
|
+
$splitItem: VxeSplitItemConstructor
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type VxeSplitItemEventProps = {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface VxeSplitItemListeners {
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace VxeSplitItemEvents {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export namespace VxeSplitItemSlotTypes {
|
|
75
|
+
export interface DefaultSlotParams {
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface VxeSplitItemSlots {
|
|
80
|
+
default?: (params: VxeSplitItemSlotTypes.DefaultSlotParams) => any
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const SplitItem: typeof VxeSplitItem
|
|
84
|
+
export default VxeSplitItem
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
|
|
2
|
+
import { VxeSplitItemProps } from './split-item'
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
+
|
|
6
|
+
export declare const VxeSplit: DefineVxeComponentApp<VxeSplitProps, VxeSplitEventProps, VxeSplitSlots>
|
|
7
|
+
export type VxeSplitComponent = DefineVxeComponentOptions<VxeSplitProps>
|
|
8
|
+
|
|
9
|
+
export type VxeSplitInstance = DefineVxeComponentInstance<{
|
|
10
|
+
reactData: SplitReactData
|
|
11
|
+
}, VxeSplitProps, VxeSplitPrivateComputed, VxeSplitMethods>
|
|
12
|
+
|
|
13
|
+
export type VxeSplitConstructor = VxeSplitInstance
|
|
14
|
+
|
|
15
|
+
export interface SplitPrivateRef {
|
|
16
|
+
}
|
|
17
|
+
export interface VxeSplitPrivateRef extends SplitPrivateRef { }
|
|
18
|
+
|
|
19
|
+
export namespace VxeSplitPropTypes {
|
|
20
|
+
export type Resize = boolean
|
|
21
|
+
export type Vertical = boolean
|
|
22
|
+
export type Border = boolean
|
|
23
|
+
export type MinWidth = string | number
|
|
24
|
+
export type MinHeight = string | number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type VxeSplitProps = {
|
|
28
|
+
resize?: VxeSplitPropTypes.Resize
|
|
29
|
+
vertical?: VxeSplitPropTypes.Vertical
|
|
30
|
+
border?: VxeSplitPropTypes.Border
|
|
31
|
+
minWidth?: VxeSplitPropTypes.MinWidth
|
|
32
|
+
minHeight?: VxeSplitPropTypes.MinHeight
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface SplitPrivateComputed {
|
|
36
|
+
}
|
|
37
|
+
export interface VxeSplitPrivateComputed extends SplitPrivateComputed { }
|
|
38
|
+
|
|
39
|
+
export interface SplitReactData {
|
|
40
|
+
staticItems: VxeSplitDefines.ItemConfig[]
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface SplitInternalData {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface SplitMethods {
|
|
47
|
+
dispatchEvent(type: ValueOf<VxeSplitEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
48
|
+
recalculate(): Promise<void>
|
|
49
|
+
}
|
|
50
|
+
export interface VxeSplitMethods extends SplitMethods { }
|
|
51
|
+
|
|
52
|
+
export interface SplitPrivateMethods { }
|
|
53
|
+
export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
|
|
54
|
+
|
|
55
|
+
export type VxeSplitEmits = [
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
export namespace VxeSplitDefines {
|
|
59
|
+
export interface SplitEventParams extends VxeComponentEventParams {
|
|
60
|
+
$split: VxeSplitConstructor
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ItemConfig extends VxeSplitItemProps {
|
|
64
|
+
id: string
|
|
65
|
+
renderWidth: number
|
|
66
|
+
renderHeight: number
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type VxeSplitEventProps = {
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface VxeSplitListeners {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export namespace VxeSplitEvents {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace VxeSplitSlotTypes {
|
|
80
|
+
export interface DefaultSlotParams {
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface VxeSplitSlots {
|
|
85
|
+
default?: (params: VxeSplitSlotTypes.DefaultSlotParams) => any
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const Split: typeof VxeSplit
|
|
89
|
+
export default VxeSplit
|
|
@@ -78,23 +78,77 @@ export interface VxeTableExtendCellAreaMethods<D = any> {
|
|
|
78
78
|
closeFNR(): Promise<any>
|
|
79
79
|
}
|
|
80
80
|
export interface VxeTableExtendCellAreaPrivateMethods<D = any> {
|
|
81
|
+
/**
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
81
84
|
handleKeyboardCellAreaEvent(evnt: KeyboardEvent): void
|
|
85
|
+
/**
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
82
88
|
handleHeaderCellAreaEvent(evnt: MouseEvent, params: VxeTableDefines.HeaderCellClickEventParams<D>): void
|
|
89
|
+
/**
|
|
90
|
+
* @private
|
|
91
|
+
*/
|
|
83
92
|
handleCellAreaMousedownEvent(evnt: MouseEvent, params: VxeTableDefines.CellClickEventParams<D>): void
|
|
93
|
+
/**
|
|
94
|
+
* @private
|
|
95
|
+
*/
|
|
84
96
|
handleFilterEvent(evnt: Event, params: VxeTableDefines.FilterChangeEventParams<D>): any
|
|
97
|
+
/**
|
|
98
|
+
* @private
|
|
99
|
+
*/
|
|
85
100
|
handleSortEvent(evnt: Event, params: VxeTableDefines.SortChangeEventParams<D>): any
|
|
101
|
+
/**
|
|
102
|
+
* @private
|
|
103
|
+
*/
|
|
86
104
|
handleRecalculateCellAreaEvent(): any
|
|
105
|
+
/**
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
87
108
|
handleCopyCellAreaEvent(evnt: ClipboardEvent): void
|
|
109
|
+
/**
|
|
110
|
+
* @private
|
|
111
|
+
*/
|
|
88
112
|
handlePasteCellAreaEvent(evnt: ClipboardEvent): void
|
|
113
|
+
/**
|
|
114
|
+
* @private
|
|
115
|
+
*/
|
|
89
116
|
handleCutCellAreaEvent(evnt: ClipboardEvent): void
|
|
117
|
+
/**
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
90
120
|
handleColResizeCellAreaEvent(evnt: MouseEvent, params: any): void
|
|
121
|
+
/**
|
|
122
|
+
* @private
|
|
123
|
+
*/
|
|
91
124
|
handleColResizeDblclickCellAreaEvent(evnt: MouseEvent, params: any): void
|
|
125
|
+
/**
|
|
126
|
+
* @private
|
|
127
|
+
*/
|
|
92
128
|
handleRowResizeCellAreaEvent(evnt: MouseEvent, params: any): void
|
|
129
|
+
/**
|
|
130
|
+
* @private
|
|
131
|
+
*/
|
|
93
132
|
handleRowResizeDblclickCellAreaEvent(evnt: MouseEvent, params: any): void
|
|
133
|
+
/**
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
94
136
|
triggerCellAreaExtendMousedownEvent(evnt: MouseEvent, params: any): void
|
|
137
|
+
/**
|
|
138
|
+
* @private
|
|
139
|
+
*/
|
|
95
140
|
triggerCopyCellAreaEvent(evnt: MouseEvent): void
|
|
141
|
+
/**
|
|
142
|
+
* @private
|
|
143
|
+
*/
|
|
96
144
|
triggerCutCellAreaEvent(evnt: MouseEvent): void
|
|
145
|
+
/**
|
|
146
|
+
* @private
|
|
147
|
+
*/
|
|
97
148
|
triggerPasteCellAreaEvent(evnt: MouseEvent): void
|
|
149
|
+
/**
|
|
150
|
+
* @private
|
|
151
|
+
*/
|
|
98
152
|
triggerFNROpenEvent(evnt: MouseEvent, tab: 'find' | 'replace'): void
|
|
99
153
|
}
|
|
100
154
|
declare module '../table' {
|