vxe-pc-ui 4.9.18 → 4.9.20
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/card/src/card.js +11 -2
- package/es/card/style.css +45 -10
- package/es/card/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/list/style.css +13 -0
- package/es/list/style.min.css +1 -1
- package/es/menu/style.css +34 -8
- package/es/menu/style.min.css +1 -1
- package/es/select/style.css +0 -1
- package/es/select/style.min.css +1 -1
- package/es/split/src/split.js +13 -3
- package/es/split/style.css +13 -0
- package/es/split/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +10 -1
- package/es/tabs/style.css +78 -16
- package/es/tabs/style.min.css +1 -1
- package/es/text/src/text.js +10 -3
- package/es/tooltip/src/tooltip.js +81 -12
- package/es/tooltip/style.css +8 -5
- package/es/tooltip/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-card/style.css +45 -10
- package/es/vxe-card/style.min.css +1 -1
- package/es/vxe-list/style.css +13 -0
- package/es/vxe-list/style.min.css +1 -1
- package/es/vxe-menu/style.css +34 -8
- package/es/vxe-menu/style.min.css +1 -1
- package/es/vxe-select/style.css +0 -1
- package/es/vxe-select/style.min.css +1 -1
- package/es/vxe-split/style.css +13 -0
- package/es/vxe-split/style.min.css +1 -1
- package/es/vxe-tabs/style.css +78 -16
- package/es/vxe-tabs/style.min.css +1 -1
- package/es/vxe-tooltip/style.css +8 -5
- package/es/vxe-tooltip/style.min.css +1 -1
- package/lib/card/src/card.js +12 -1
- package/lib/card/src/card.min.js +1 -1
- package/lib/card/style/style.css +45 -10
- package/lib/card/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +140 -20
- package/lib/index.umd.min.js +1 -1
- package/lib/list/style/style.css +13 -0
- package/lib/list/style/style.min.css +1 -1
- package/lib/menu/style/style.css +34 -8
- package/lib/menu/style/style.min.css +1 -1
- package/lib/select/style/style.css +0 -1
- package/lib/select/style/style.min.css +1 -1
- package/lib/split/src/split.js +14 -2
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +13 -0
- package/lib/split/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/src/tabs.js +11 -0
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tabs/style/style.css +78 -16
- package/lib/tabs/style/style.min.css +1 -1
- package/lib/text/src/text.js +12 -3
- package/lib/text/src/text.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +87 -11
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tooltip/style/style.css +8 -5
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +1 -1
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-card/style/style.css +45 -10
- package/lib/vxe-card/style/style.min.css +1 -1
- package/lib/vxe-list/style/style.css +13 -0
- package/lib/vxe-list/style/style.min.css +1 -1
- package/lib/vxe-menu/style/style.css +34 -8
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/lib/vxe-select/style/style.css +0 -1
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-split/style/style.css +13 -0
- package/lib/vxe-split/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +78 -16
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/lib/vxe-tooltip/style/style.css +8 -5
- package/lib/vxe-tooltip/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/card/src/card.ts +10 -1
- package/packages/split/src/split.ts +14 -3
- package/packages/tabs/src/tabs.ts +11 -1
- package/packages/text/src/text.ts +11 -3
- package/packages/tooltip/src/tooltip.ts +90 -17
- package/packages/ui/src/dom.ts +1 -1
- package/styles/components/card.scss +65 -11
- package/styles/components/list.scss +13 -0
- package/styles/components/menu.scss +35 -8
- package/styles/components/select.scss +0 -2
- package/styles/components/split.scss +13 -0
- package/styles/components/tabs.scss +38 -19
- package/styles/components/tooltip.scss +8 -5
- package/styles/theme/base.scss +9 -3
- package/types/components/card.d.ts +3 -1
- package/types/components/split.d.ts +3 -1
- package/types/components/table.d.ts +10 -4
- package/types/components/tabs.d.ts +3 -1
- package/types/components/tooltip.d.ts +12 -0
- /package/es/icon/{iconfont.1757160944209.ttf → iconfont.1757386401857.ttf} +0 -0
- /package/es/icon/{iconfont.1757160944209.woff → iconfont.1757386401857.woff} +0 -0
- /package/es/icon/{iconfont.1757160944209.woff2 → iconfont.1757386401857.woff2} +0 -0
- /package/es/{iconfont.1757160944209.ttf → iconfont.1757386401857.ttf} +0 -0
- /package/es/{iconfont.1757160944209.woff → iconfont.1757386401857.woff} +0 -0
- /package/es/{iconfont.1757160944209.woff2 → iconfont.1757386401857.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1757160944209.ttf → iconfont.1757386401857.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1757160944209.woff → iconfont.1757386401857.woff} +0 -0
- /package/lib/icon/style/{iconfont.1757160944209.woff2 → iconfont.1757386401857.woff2} +0 -0
- /package/lib/{iconfont.1757160944209.ttf → iconfont.1757386401857.ttf} +0 -0
- /package/lib/{iconfont.1757160944209.woff → iconfont.1757386401857.woff} +0 -0
- /package/lib/{iconfont.1757160944209.woff2 → iconfont.1757386401857.woff2} +0 -0
|
@@ -590,7 +590,6 @@ $scrollbarOffsetSize: 20px;
|
|
|
590
590
|
}
|
|
591
591
|
&.pos--top,
|
|
592
592
|
&.pos--bottom {
|
|
593
|
-
height: var(--vxe-ui-tabs-header-height-default);
|
|
594
593
|
.vxe-tabs-header--item-wrapper {
|
|
595
594
|
flex-direction: row;
|
|
596
595
|
width: 100%;
|
|
@@ -684,21 +683,6 @@ $scrollbarOffsetSize: 20px;
|
|
|
684
683
|
}
|
|
685
684
|
}
|
|
686
685
|
|
|
687
|
-
.vxe-tabs {
|
|
688
|
-
.vxe-tabs-header--item-inner {
|
|
689
|
-
height: var(--vxe-ui-tabs-header-height-default);
|
|
690
|
-
}
|
|
691
|
-
.vxe-tabs-header--active-line {
|
|
692
|
-
&.type--card {
|
|
693
|
-
height: var(--vxe-ui-tabs-header-height-default);
|
|
694
|
-
}
|
|
695
|
-
&.type--border-card {
|
|
696
|
-
height: calc(var(--vxe-ui-tabs-header-height-default) + 1px);
|
|
697
|
-
line-height: calc(var(--vxe-ui-tabs-header-height-default) + 1px);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
|
|
702
686
|
.vxe-tabs--default,
|
|
703
687
|
.vxe-tabs--card,
|
|
704
688
|
.vxe-tabs--border-card,
|
|
@@ -712,9 +696,44 @@ $scrollbarOffsetSize: 20px;
|
|
|
712
696
|
border-bottom: 2px solid transparent;
|
|
713
697
|
}
|
|
714
698
|
}
|
|
715
|
-
|
|
716
|
-
|
|
699
|
+
|
|
700
|
+
@mixin getTabsSizeStyle ($fontSize, $headHeight) {
|
|
701
|
+
font-size: $fontSize;
|
|
717
702
|
.vxe-tabs-header--item-inner {
|
|
718
|
-
height:
|
|
703
|
+
height: $headHeight;
|
|
704
|
+
}
|
|
705
|
+
.vxe-tabs-header--active-line {
|
|
706
|
+
&.type--card {
|
|
707
|
+
height: $headHeight;
|
|
708
|
+
}
|
|
709
|
+
&.type--border-card {
|
|
710
|
+
height: calc($headHeight + 1px);
|
|
711
|
+
line-height: calc($headHeight + 1px);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
.vxe-tabs-header--wrapper {
|
|
715
|
+
&.pos--top,
|
|
716
|
+
&.pos--bottom {
|
|
717
|
+
height: $headHeight;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
.vxe-tabs--card,
|
|
721
|
+
.vxe-tabs--round-card {
|
|
722
|
+
.vxe-tabs-header--item-inner {
|
|
723
|
+
height: calc($headHeight - 1px);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.vxe-tabs {
|
|
729
|
+
@include getTabsSizeStyle(var(--vxe-ui-font-size-default), var(--vxe-ui-tabs-header-height-default));
|
|
730
|
+
&.size--medium {
|
|
731
|
+
@include getTabsSizeStyle(var(--vxe-ui-font-size-medium), var(--vxe-ui-tabs-header-height-medium));
|
|
732
|
+
}
|
|
733
|
+
&.size--small {
|
|
734
|
+
@include getTabsSizeStyle(var(--vxe-ui-font-size-small), var(--vxe-ui-tabs-header-height-small));
|
|
735
|
+
}
|
|
736
|
+
&.size--mini {
|
|
737
|
+
@include getTabsSizeStyle(var(--vxe-ui-font-size-mini), var(--vxe-ui-tabs-header-height-mini));
|
|
719
738
|
}
|
|
720
739
|
}
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
top: -100%;
|
|
5
5
|
left: -100%;
|
|
6
6
|
font-size: 12px;
|
|
7
|
-
max-width: 600px;
|
|
8
7
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
9
|
-
padding: 8px 12px;
|
|
10
8
|
white-space: normal;
|
|
11
9
|
word-break: break-word;
|
|
12
10
|
box-shadow: 2px 2px 4px -2px rgba(0,0,0,.2);
|
|
@@ -16,7 +14,7 @@
|
|
|
16
14
|
pointer-events: none;
|
|
17
15
|
}
|
|
18
16
|
&.is--visible {
|
|
19
|
-
display: block;
|
|
17
|
+
display: inline-block;
|
|
20
18
|
}
|
|
21
19
|
&.is--arrow {
|
|
22
20
|
.vxe-tooltip--arrow {
|
|
@@ -34,7 +32,12 @@
|
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
.vxe-tooltip--content {
|
|
35
|
+
padding: 8px 12px;
|
|
36
|
+
max-width: 600px;
|
|
37
|
+
max-height: 800px;
|
|
37
38
|
white-space: pre-line;
|
|
39
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
40
|
+
overflow: auto;
|
|
38
41
|
}
|
|
39
42
|
.vxe-tooltip--arrow {
|
|
40
43
|
display: none;
|
|
@@ -73,9 +76,9 @@
|
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
.vxe-tooltip--arrow {
|
|
76
|
-
top: -
|
|
79
|
+
top: -11px;
|
|
77
80
|
&:before {
|
|
78
|
-
top: -
|
|
81
|
+
top: -3px;
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
}
|
package/styles/theme/base.scss
CHANGED
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
--vxe-ui-layout-aside-collapse-width: 60px;
|
|
31
31
|
|
|
32
32
|
/*menu*/
|
|
33
|
-
--vxe-ui-menu-item-height: 44px;
|
|
33
|
+
--vxe-ui-menu-item-height-default: 44px;
|
|
34
|
+
--vxe-ui-menu-item-height-medium: 40px;
|
|
35
|
+
--vxe-ui-menu-item-height-small: 36px;
|
|
36
|
+
--vxe-ui-menu-item-height-mini: 32px;
|
|
34
37
|
--vxe-ui-menu-icon-width: 1.5em;
|
|
35
38
|
|
|
36
39
|
/*button*/
|
|
@@ -160,7 +163,10 @@
|
|
|
160
163
|
--vxe-ui-upload-image-wh-mini: 72px;
|
|
161
164
|
|
|
162
165
|
/*card*/
|
|
163
|
-
--vxe-ui-card-padding: 12px;
|
|
166
|
+
--vxe-ui-card-padding-default: 12px;
|
|
167
|
+
--vxe-ui-card-padding-medium: 10px;
|
|
168
|
+
--vxe-ui-card-padding-small: 8px;
|
|
169
|
+
--vxe-ui-card-padding-mini: 6px;
|
|
164
170
|
|
|
165
171
|
/*tree*/
|
|
166
172
|
--vxe-ui-tree-node-height: 2em;
|
|
@@ -181,7 +187,7 @@
|
|
|
181
187
|
--vxe-ui-calendar-notice-selected-background-color: var(--vxe-ui-calendar-selected-color);
|
|
182
188
|
|
|
183
189
|
/*split*/
|
|
184
|
-
--vxe-ui-split-handle-bar-horizontal-width:
|
|
190
|
+
--vxe-ui-split-handle-bar-horizontal-width: 0.68em;
|
|
185
191
|
--vxe-ui-split-handle-bar-horizontal-height: 6.8em;
|
|
186
192
|
--vxe-ui-split-handle-bar-vertical-width: var(--vxe-ui-split-handle-bar-horizontal-height);
|
|
187
193
|
--vxe-ui-split-handle-bar-vertical-height: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
5
|
|
|
@@ -31,6 +31,7 @@ export namespace VxeCardPropTypes {
|
|
|
31
31
|
export type Loading = boolean
|
|
32
32
|
export type Shadow = boolean
|
|
33
33
|
export type Padding = boolean
|
|
34
|
+
export type Size = VxeComponentSizeType
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export type VxeCardProps = {
|
|
@@ -42,6 +43,7 @@ export type VxeCardProps = {
|
|
|
42
43
|
loading?: VxeCardPropTypes.Loading
|
|
43
44
|
shadow?: VxeCardPropTypes.Shadow
|
|
44
45
|
padding?: VxeCardPropTypes.Padding
|
|
46
|
+
size?: VxeCardPropTypes.Size
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
export interface CardPrivateComputed {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
|
|
2
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
|
|
3
3
|
import { VxeSplitPaneProps, VxeSplitPanePropTypes } from './split-pane'
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
@@ -24,6 +24,7 @@ export interface SplitPrivateRef {
|
|
|
24
24
|
export interface VxeSplitPrivateRef extends SplitPrivateRef { }
|
|
25
25
|
|
|
26
26
|
export namespace VxeSplitPropTypes {
|
|
27
|
+
export type Size = VxeComponentSizeType
|
|
27
28
|
export type Height = string | number
|
|
28
29
|
export type Width = string | number
|
|
29
30
|
export type Padding = boolean
|
|
@@ -85,6 +86,7 @@ export namespace VxeSplitPropTypes {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
export type VxeSplitProps = {
|
|
89
|
+
size?: VxeSplitPropTypes.Size
|
|
88
90
|
/**
|
|
89
91
|
* 高度
|
|
90
92
|
*/
|
|
@@ -1363,10 +1363,16 @@ export namespace VxeTablePropTypes {
|
|
|
1363
1363
|
*/
|
|
1364
1364
|
export interface TooltipConfig<D = VxeTablePropTypes.Row> {
|
|
1365
1365
|
showAll?: boolean
|
|
1366
|
-
theme?:
|
|
1367
|
-
enterable?:
|
|
1368
|
-
enterDelay?:
|
|
1369
|
-
leaveDelay?:
|
|
1366
|
+
theme?: VxeTooltipPropTypes.Theme
|
|
1367
|
+
enterable?: VxeTooltipPropTypes.Enterable
|
|
1368
|
+
enterDelay?: VxeTooltipPropTypes.EnterDelay
|
|
1369
|
+
leaveDelay?: VxeTooltipPropTypes.LeaveDelay
|
|
1370
|
+
width?: VxeTooltipPropTypes.Width
|
|
1371
|
+
height?: VxeTooltipPropTypes.Height
|
|
1372
|
+
minWidth?: VxeTooltipPropTypes.MinWidth
|
|
1373
|
+
minHeight?: VxeTooltipPropTypes.MinHeight
|
|
1374
|
+
maxWidth?: VxeTooltipPropTypes.MaxWidth
|
|
1375
|
+
maxHeight?: VxeTooltipPropTypes.MaxHeight
|
|
1370
1376
|
contentMethod?(params: {
|
|
1371
1377
|
$table: VxeTableConstructor<D>
|
|
1372
1378
|
items: any[]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
|
|
3
3
|
import { VxeTabPaneProps, VxeTabPaneDefines, VxeTabPanePropTypes } from './tab-pane'
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
@@ -25,6 +25,7 @@ export interface VxeTabsPrivateRef extends TabsPrivateRef { }
|
|
|
25
25
|
|
|
26
26
|
export namespace VxeTabsPropTypes {
|
|
27
27
|
export type ModelValue = undefined | null | VxeTabPanePropTypes.Name
|
|
28
|
+
export type Size = VxeComponentSizeType
|
|
28
29
|
export type Options = VxeTabPaneProps[]
|
|
29
30
|
export type DestroyOnClose = boolean
|
|
30
31
|
export type Width = string | number
|
|
@@ -115,6 +116,7 @@ export namespace VxeTabsPropTypes {
|
|
|
115
116
|
|
|
116
117
|
export type VxeTabsProps = {
|
|
117
118
|
modelValue?: VxeTabsPropTypes.ModelValue
|
|
119
|
+
size?: VxeTabsPropTypes.Size
|
|
118
120
|
options?: VxeTabsPropTypes.Options
|
|
119
121
|
destroyOnClose?: VxeTabsPropTypes.DestroyOnClose
|
|
120
122
|
width?: VxeTabsPropTypes.Width
|
|
@@ -33,6 +33,12 @@ export namespace VxeTooltipPropTypes {
|
|
|
33
33
|
export type UseHTML = boolean
|
|
34
34
|
export type ZIndex = string | number
|
|
35
35
|
export type PopupClassName = string | ((params: { $tooltip: VxeTooltipConstructor }) => string)
|
|
36
|
+
export type Width = string | number
|
|
37
|
+
export type Height = string | number
|
|
38
|
+
export type MinWidth = string | number
|
|
39
|
+
export type MinHeight = string | number
|
|
40
|
+
export type MaxWidth = string | number
|
|
41
|
+
export type MaxHeight = string | number
|
|
36
42
|
export type IsArrow = boolean
|
|
37
43
|
export type Enterable = boolean
|
|
38
44
|
export type EnterDelay = number
|
|
@@ -49,6 +55,12 @@ export interface VxeTooltipProps {
|
|
|
49
55
|
content?: VxeTooltipPropTypes.Content
|
|
50
56
|
useHTML?: VxeTooltipPropTypes.UseHTML
|
|
51
57
|
popupClassName?: VxeTooltipPropTypes.PopupClassName
|
|
58
|
+
Width?: VxeTooltipPropTypes.Width
|
|
59
|
+
height?: VxeTooltipPropTypes.Height
|
|
60
|
+
minWidth?: VxeTooltipPropTypes.MinWidth
|
|
61
|
+
minHeight?: VxeTooltipPropTypes.MinHeight
|
|
62
|
+
maxWidth?: VxeTooltipPropTypes.MaxWidth
|
|
63
|
+
maxHeight?: VxeTooltipPropTypes.MaxHeight
|
|
52
64
|
zIndex?: VxeTooltipPropTypes.ZIndex
|
|
53
65
|
isArrow?: VxeTooltipPropTypes.IsArrow
|
|
54
66
|
enterable?: VxeTooltipPropTypes.Enterable
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|