vxe-pc-ui 3.17.19 → 3.17.21
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/components.js +31 -1
- package/es/icon/style.css +1 -1
- package/es/slider/src/slider.js +220 -82
- package/es/slider/style.css +8 -15
- package/es/slider/style.min.css +1 -1
- package/es/space/index.js +12 -0
- package/es/space/src/space.js +143 -0
- package/es/space/style.css +37 -0
- package/es/space/style.min.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/dom.js +3 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-slider/style.css +8 -15
- package/es/vxe-slider/style.min.css +1 -1
- package/es/vxe-space/index.js +3 -0
- package/es/vxe-space/style.css +37 -0
- package/es/vxe-space/style.min.css +1 -0
- package/lib/components.js +41 -2
- 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 +462 -91
- package/lib/index.umd.min.js +1 -1
- package/lib/slider/src/slider.js +237 -87
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +8 -15
- package/lib/slider/style/style.min.css +1 -1
- package/lib/space/index.js +19 -0
- package/lib/space/index.min.js +1 -0
- package/lib/space/src/space.js +172 -0
- package/lib/space/src/space.min.js +1 -0
- package/lib/space/style/index.js +1 -0
- package/lib/space/style/style.css +37 -0
- package/lib/space/style/style.min.css +1 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +4 -0
- 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-slider/style/style.css +8 -15
- package/lib/vxe-slider/style/style.min.css +1 -1
- package/lib/vxe-space/index.js +22 -0
- package/lib/vxe-space/index.min.js +1 -0
- package/lib/vxe-space/style/index.js +1 -0
- package/lib/vxe-space/style/style.css +37 -0
- package/lib/vxe-space/style/style.min.css +1 -0
- package/package.json +2 -2
- package/packages/components.ts +31 -1
- package/packages/slider/src/slider.ts +226 -80
- package/packages/space/index.ts +16 -0
- package/packages/space/src/space.ts +159 -0
- package/packages/ui/index.ts +1 -0
- package/packages/ui/src/dom.ts +4 -0
- package/styles/all.scss +1 -0
- package/styles/components/slider.scss +8 -13
- package/styles/components/space.scss +38 -0
- package/styles/theme/base.scss +20 -6
- package/types/all.d.ts +3 -0
- package/types/components/slider.d.ts +13 -0
- package/types/components/space.d.ts +102 -0
- package/types/ui/global-config.d.ts +2 -0
- /package/es/icon/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/es/icon/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/es/icon/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/es/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/es/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/es/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/lib/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/lib/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/lib/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
|
@@ -50,7 +50,7 @@ $sliderThemeList: (
|
|
|
50
50
|
.vxe-slider {
|
|
51
51
|
position: relative;
|
|
52
52
|
display: block;
|
|
53
|
-
padding: 0.
|
|
53
|
+
padding: 0.8em;
|
|
54
54
|
@for $index from 0 to list.length($sliderThemeList) {
|
|
55
55
|
$item: list.nth($sliderThemeList, $index + 1);
|
|
56
56
|
&.theme--#{map.get($item, name)} {
|
|
@@ -80,10 +80,10 @@ $sliderThemeList: (
|
|
|
80
80
|
}
|
|
81
81
|
.vxe-slider--bar-btn {
|
|
82
82
|
&:hover {
|
|
83
|
-
transform: scale(1.2);
|
|
83
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
84
84
|
}
|
|
85
85
|
&:active {
|
|
86
|
-
transform: scale(1.1);
|
|
86
|
+
transform: translate(-50%, -50%) scale(1.1);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -122,19 +122,14 @@ $sliderThemeList: (
|
|
|
122
122
|
|
|
123
123
|
.vxe-slider--bar-btn {
|
|
124
124
|
position: absolute;
|
|
125
|
-
width:
|
|
126
|
-
height:
|
|
127
|
-
top:
|
|
125
|
+
width: 1.2em;
|
|
126
|
+
height: 1.2em;
|
|
127
|
+
top: 50%;
|
|
128
|
+
transform: translate(-50%, -50%);
|
|
128
129
|
border-radius: 50%;
|
|
129
|
-
border:
|
|
130
|
+
border: 2px solid var(--vxe-ui-font-primary-color);
|
|
130
131
|
background-color: #fff;
|
|
131
132
|
cursor: pointer;
|
|
132
133
|
z-index: 1;
|
|
133
134
|
@include baseMixin.createAnimationTransition(transform, 0.1s);
|
|
134
|
-
}
|
|
135
|
-
.vxe-slider--start-btn {
|
|
136
|
-
left: -0.45em;
|
|
137
|
-
}
|
|
138
|
-
.vxe-slider--end-btn {
|
|
139
|
-
right: -0.45em;
|
|
140
135
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// 局部变量
|
|
2
|
+
.vxe-space {
|
|
3
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-default);
|
|
4
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-default);
|
|
5
|
+
&.size--xlarge {
|
|
6
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-xlarge);
|
|
7
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-xlarge);
|
|
8
|
+
}
|
|
9
|
+
&.size--large {
|
|
10
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-large);
|
|
11
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-large);
|
|
12
|
+
}
|
|
13
|
+
&.size--medium {
|
|
14
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-medium);
|
|
15
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-medium);
|
|
16
|
+
}
|
|
17
|
+
&.size--small {
|
|
18
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-small);
|
|
19
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-small);
|
|
20
|
+
}
|
|
21
|
+
&.size--mini {
|
|
22
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-mini);
|
|
23
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-mini);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.vxe-space {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap);
|
|
32
|
+
&.is--wrap {
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
}
|
|
35
|
+
&.is--vertical {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
38
|
+
}
|
package/styles/theme/base.scss
CHANGED
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
--vxe-ui-tooltip-dark-background-color: #303133;
|
|
126
126
|
|
|
127
127
|
/*form*/
|
|
128
|
-
--vxe-ui-
|
|
129
|
-
--vxe-ui-
|
|
130
|
-
--vxe-ui-
|
|
131
|
-
--vxe-ui-
|
|
132
|
-
--vxe-ui-
|
|
133
|
-
--vxe-ui-
|
|
128
|
+
--vxe-ui-space-margin-xlarge: 64px;
|
|
129
|
+
--vxe-ui-space-margin-large: 60px;
|
|
130
|
+
--vxe-ui-space-margin-default: 56px;
|
|
131
|
+
--vxe-ui-space-margin-medium: 52px;
|
|
132
|
+
--vxe-ui-space-margin-small: 48px;
|
|
133
|
+
--vxe-ui-space-margin-mini: 44px;
|
|
134
134
|
--vxe-ui-form-validate-error-color: var(--vxe-ui-status-error-color);
|
|
135
135
|
--vxe-ui-form-item-padding-xlarge: 10px;
|
|
136
136
|
--vxe-ui-form-item-padding-large: 9px;
|
|
@@ -289,4 +289,18 @@
|
|
|
289
289
|
|
|
290
290
|
/*icon-picker*/
|
|
291
291
|
--vxe-ui-icon-picker-panel-icon-font-size: 1.4em;
|
|
292
|
+
|
|
293
|
+
/*space*/
|
|
294
|
+
--vxe-ui-space-row-gap-xlarge: 16px;
|
|
295
|
+
--vxe-ui-space-row-gap-large: 14px;
|
|
296
|
+
--vxe-ui-space-row-gap-default: 12px;
|
|
297
|
+
--vxe-ui-space-row-gap-medium: 10px;
|
|
298
|
+
--vxe-ui-space-row-gap-small: 8px;
|
|
299
|
+
--vxe-ui-space-row-gap-mini: 6px;
|
|
300
|
+
--vxe-ui-space-column-gap-xlarge: var(--vxe-ui-space-row-gap-xlarge);
|
|
301
|
+
--vxe-ui-space-column-gap-large: var(--vxe-ui-space-row-gap-large);
|
|
302
|
+
--vxe-ui-space-column-gap-default: var(--vxe-ui-space-row-gap-default);
|
|
303
|
+
--vxe-ui-space-column-gap-medium: var(--vxe-ui-space-row-gap-medium);
|
|
304
|
+
--vxe-ui-space-column-gap-small: var(--vxe-ui-space-row-gap-small);
|
|
305
|
+
--vxe-ui-space-column-gap-mini: var(--vxe-ui-space-row-gap-mini);
|
|
292
306
|
}
|
package/types/all.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ import VxeSplitterPanel from './components/splitter-panel'
|
|
|
73
73
|
import VxeSplit from './components/split'
|
|
74
74
|
import VxeSplitPane from './components/split-pane'
|
|
75
75
|
import VxeSlider from './components/slider'
|
|
76
|
+
import VxeSpace from './components/space'
|
|
76
77
|
import VxeSteps from './components/steps'
|
|
77
78
|
import VxeSwitch from './components/switch'
|
|
78
79
|
import VxeTabPane from './components/tab-pane'
|
|
@@ -350,6 +351,7 @@ interface UIComponents {
|
|
|
350
351
|
VxeSplit: typeof VxeSplit
|
|
351
352
|
VxeSplitPane: typeof VxeSplitPane
|
|
352
353
|
VxeSlider: typeof VxeSlider
|
|
354
|
+
VxeSpace: typeof VxeSpace
|
|
353
355
|
VxeSteps: typeof VxeSteps
|
|
354
356
|
VxeSwitch: typeof VxeSwitch
|
|
355
357
|
VxeTabPane: typeof VxeTabPane
|
|
@@ -519,6 +521,7 @@ export * from './components/splitter-panel'
|
|
|
519
521
|
export * from './components/split'
|
|
520
522
|
export * from './components/split-pane'
|
|
521
523
|
export * from './components/slider'
|
|
524
|
+
export * from './components/space'
|
|
522
525
|
export * from './components/steps'
|
|
523
526
|
export * from './components/switch'
|
|
524
527
|
export * from './components/tab-pane'
|
|
@@ -7,6 +7,7 @@ export type VxeSliderComponent = DefineVxeComponentOptions<VxeSliderProps>
|
|
|
7
7
|
|
|
8
8
|
export type VxeSliderInstance = DefineVxeComponentInstance<{
|
|
9
9
|
reactData: SliderReactData
|
|
10
|
+
internalData: SliderInternalData
|
|
10
11
|
}, VxeSliderProps, VxeSliderPrivateComputed, VxeSliderMethods>
|
|
11
12
|
|
|
12
13
|
export type VxeSliderConstructor = VxeSliderInstance
|
|
@@ -18,6 +19,8 @@ export interface VxeSliderPrivateRef extends SliderPrivateRef { }
|
|
|
18
19
|
export namespace VxeSliderPropTypes {
|
|
19
20
|
export type Size = VxeComponentSizeType
|
|
20
21
|
export type ModelValue = number | string | null | (number | string | null)[]
|
|
22
|
+
export type StartValue = number | string | null
|
|
23
|
+
export type EndValue = number | string | null
|
|
21
24
|
export type Max = number | string
|
|
22
25
|
export type Min = number | string
|
|
23
26
|
export type Vertical = boolean
|
|
@@ -26,11 +29,14 @@ export namespace VxeSliderPropTypes {
|
|
|
26
29
|
export type Step = number | string
|
|
27
30
|
export type Readonly = boolean
|
|
28
31
|
export type Disabled = boolean
|
|
32
|
+
export type Immediate = boolean
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
export interface VxeSliderProps {
|
|
32
36
|
size?: VxeSliderPropTypes.Size
|
|
33
37
|
value?: VxeSliderPropTypes.ModelValue
|
|
38
|
+
startValue?: VxeSliderPropTypes.StartValue
|
|
39
|
+
endValue?: VxeSliderPropTypes.EndValue
|
|
34
40
|
max?: VxeSliderPropTypes.Max
|
|
35
41
|
min?: VxeSliderPropTypes.Min
|
|
36
42
|
vertical?: VxeSliderPropTypes.Vertical
|
|
@@ -39,6 +45,7 @@ export interface VxeSliderProps {
|
|
|
39
45
|
step?: VxeSliderPropTypes.Step
|
|
40
46
|
readonly?: VxeSliderPropTypes.Readonly
|
|
41
47
|
disabled?: VxeSliderPropTypes.Disabled
|
|
48
|
+
immediate?: VxeSliderPropTypes.Immediate
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
export interface SliderPrivateComputed {
|
|
@@ -46,6 +53,10 @@ export interface SliderPrivateComputed {
|
|
|
46
53
|
export interface VxeSliderPrivateComputed extends SliderPrivateComputed { }
|
|
47
54
|
|
|
48
55
|
export interface SliderReactData {
|
|
56
|
+
}
|
|
57
|
+
export interface SliderInternalData {
|
|
58
|
+
_isUp?: boolean
|
|
59
|
+
currValue: number
|
|
49
60
|
startValue: number
|
|
50
61
|
endValue: number
|
|
51
62
|
}
|
|
@@ -59,6 +70,8 @@ export interface VxeSliderPrivateMethods extends SliderPrivateMethods { }
|
|
|
59
70
|
|
|
60
71
|
export type VxeSliderEmits = [
|
|
61
72
|
'modelValue',
|
|
73
|
+
'update:startValue',
|
|
74
|
+
'update:endValue',
|
|
62
75
|
'change',
|
|
63
76
|
'track-dragstart',
|
|
64
77
|
'track-dragover',
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType } 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 VxeSpace: DefineVxeComponentApp<VxeSpaceProps, VxeSpaceEventProps, VxeSpaceSlots, VxeSpaceMethods>
|
|
6
|
+
export type VxeSpaceComponent = DefineVxeComponentOptions<VxeSpaceProps>
|
|
7
|
+
|
|
8
|
+
export type VxeSpaceInstance = DefineVxeComponentInstance<{
|
|
9
|
+
reactData: SpaceReactData
|
|
10
|
+
}, VxeSpaceProps, VxeSpacePrivateComputed, VxeSpaceMethods>
|
|
11
|
+
|
|
12
|
+
export type VxeSpaceConstructor = VxeSpaceInstance
|
|
13
|
+
|
|
14
|
+
export interface SpacePrivateRef {
|
|
15
|
+
}
|
|
16
|
+
export interface VxeSpacePrivateRef extends SpacePrivateRef { }
|
|
17
|
+
|
|
18
|
+
export namespace VxeSpacePropTypes {
|
|
19
|
+
export type Size = VxeComponentSizeType
|
|
20
|
+
export type Wrap = boolean
|
|
21
|
+
export type Gap = number | string | number[] | VxeSpaceDefines.GapObj
|
|
22
|
+
export type Vertical = boolean
|
|
23
|
+
export type ClassName = string
|
|
24
|
+
export type ItemClassName = string
|
|
25
|
+
export type Separator = string
|
|
26
|
+
export type Align = 'stretch' | 'start' | 'end' | 'center' | 'baseline' | '' | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface VxeSpaceProps {
|
|
30
|
+
size?: VxeSpacePropTypes.Size
|
|
31
|
+
/**
|
|
32
|
+
* 是否自动换行
|
|
33
|
+
*/
|
|
34
|
+
wrap?: VxeSpacePropTypes.Wrap
|
|
35
|
+
/**
|
|
36
|
+
* 自定义间距
|
|
37
|
+
*/
|
|
38
|
+
gap?: VxeSpacePropTypes.Gap
|
|
39
|
+
/**
|
|
40
|
+
* 是否垂直布局
|
|
41
|
+
*/
|
|
42
|
+
vertical?: VxeSpacePropTypes.Vertical
|
|
43
|
+
className?: VxeSpacePropTypes.ClassName
|
|
44
|
+
itemClassName?: VxeSpacePropTypes.ItemClassName
|
|
45
|
+
/**
|
|
46
|
+
* 分隔符
|
|
47
|
+
*/
|
|
48
|
+
separator?: VxeSpacePropTypes.Separator
|
|
49
|
+
align?: VxeSpacePropTypes.Align
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SpacePrivateComputed {
|
|
53
|
+
}
|
|
54
|
+
export interface VxeSpacePrivateComputed extends SpacePrivateComputed { }
|
|
55
|
+
|
|
56
|
+
export interface SpaceReactData {
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface SpaceMethods {
|
|
60
|
+
}
|
|
61
|
+
export interface VxeSpaceMethods extends SpaceMethods { }
|
|
62
|
+
|
|
63
|
+
export interface SpacePrivateMethods { }
|
|
64
|
+
export interface VxeSpacePrivateMethods extends SpacePrivateMethods { }
|
|
65
|
+
|
|
66
|
+
export type VxeSpaceEmits = [
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
export namespace VxeSpaceDefines {
|
|
70
|
+
export interface GapObj {
|
|
71
|
+
/**
|
|
72
|
+
* 行间距
|
|
73
|
+
*/
|
|
74
|
+
rowGap?: number | string
|
|
75
|
+
/**
|
|
76
|
+
* 列间距
|
|
77
|
+
*/
|
|
78
|
+
columGap?: number | string
|
|
79
|
+
}
|
|
80
|
+
export interface SpaceEventParams extends VxeComponentEventParams {
|
|
81
|
+
$space: VxeSpaceConstructor
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type VxeSpaceEventProps = {}
|
|
86
|
+
|
|
87
|
+
export interface VxeSpaceListeners { }
|
|
88
|
+
|
|
89
|
+
export namespace VxeSpaceEvents { }
|
|
90
|
+
|
|
91
|
+
export namespace VxeSpaceSlotTypes {
|
|
92
|
+
export interface DefaultSlotParams {}
|
|
93
|
+
export interface SeparatorSlotParams {}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface VxeSpaceSlots {
|
|
97
|
+
default?: (params: VxeSpaceSlotTypes.DefaultSlotParams) => any
|
|
98
|
+
separator?: (params: VxeSpaceSlotTypes.SeparatorSlotParams) => any
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export const Space: typeof VxeSpace
|
|
102
|
+
export default VxeSpace
|
|
@@ -71,6 +71,7 @@ import { VxeSplitterPanelProps } from '../components/splitter-panel'
|
|
|
71
71
|
import { VxeSplitProps } from '../components/split'
|
|
72
72
|
import { VxeSplitPaneProps } from '../components/split-pane'
|
|
73
73
|
import { VxeSliderProps } from '../components/slider'
|
|
74
|
+
import { VxeSpaceProps } from '../components/space'
|
|
74
75
|
import { VxeStepsProps } from '../components/steps'
|
|
75
76
|
import { VxeSwitchProps } from '../components/switch'
|
|
76
77
|
import { VxeTabPaneProps } from '../components/tab-pane'
|
|
@@ -184,6 +185,7 @@ declare module '@vxe-ui/core' {
|
|
|
184
185
|
split?: VxeSplitProps
|
|
185
186
|
splitPane?: VxeSplitPaneProps
|
|
186
187
|
slider?: VxeSliderProps
|
|
188
|
+
space?: VxeSpaceProps
|
|
187
189
|
steps?: VxeStepsProps
|
|
188
190
|
switch?: VxeSwitchProps
|
|
189
191
|
tabPane?: VxeTabPaneProps
|
|
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
|