vxe-pc-ui 4.17.19 → 4.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/dist/all.esm.js +492 -191
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/avatar/src/avatar.js +3 -3
- package/es/badge/src/badge.js +3 -3
- package/es/components.js +31 -1
- package/es/empty/src/empty.js +3 -3
- package/es/icon/style.css +1 -1
- package/es/rate/src/rate.js +3 -3
- package/es/result/src/result.js +3 -3
- package/es/slider/src/slider.js +191 -71
- 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/es/watermark/src/watermark.js +3 -3
- package/lib/avatar/src/avatar.js +3 -3
- package/lib/badge/src/badge.js +3 -3
- package/lib/components.js +41 -2
- package/lib/components.min.js +1 -1
- package/lib/empty/src/empty.js +3 -3
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +432 -99
- package/lib/index.umd.min.js +1 -1
- package/lib/rate/src/rate.js +3 -3
- package/lib/result/src/result.js +3 -3
- package/lib/slider/src/slider.js +196 -77
- 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 +167 -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 +21 -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/lib/watermark/src/watermark.js +3 -3
- package/package.json +4 -3
- package/packages/avatar/src/avatar.ts +3 -3
- package/packages/badge/src/badge.ts +3 -3
- package/packages/components.ts +31 -1
- package/packages/empty/src/empty.ts +3 -3
- package/packages/rate/src/rate.ts +3 -3
- package/packages/result/src/result.ts +3 -3
- package/packages/slider/src/slider.ts +194 -73
- package/packages/space/index.ts +16 -0
- package/packages/space/src/space.ts +167 -0
- package/packages/ui/index.ts +1 -0
- package/packages/ui/src/dom.ts +4 -0
- package/packages/watermark/src/watermark.ts +3 -3
- 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 +112 -0
- package/types/ui/global-config.d.ts +2 -0
- /package/es/icon/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/icon/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/icon/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/es/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
|
@@ -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-column-gap-xlarge: 16px;
|
|
295
|
+
--vxe-ui-space-column-gap-large: 14px;
|
|
296
|
+
--vxe-ui-space-column-gap-default: 12px;
|
|
297
|
+
--vxe-ui-space-column-gap-medium: 10px;
|
|
298
|
+
--vxe-ui-space-column-gap-small: 8px;
|
|
299
|
+
--vxe-ui-space-column-gap-mini: 6px;
|
|
300
|
+
--vxe-ui-space-row-gap-xlarge: var(--vxe-ui-space-column-gap-xlarge);
|
|
301
|
+
--vxe-ui-space-row-gap-large: var(--vxe-ui-space-column-gap-large);
|
|
302
|
+
--vxe-ui-space-row-gap-default: var(--vxe-ui-space-column-gap-default);
|
|
303
|
+
--vxe-ui-space-row-gap-medium: var(--vxe-ui-space-column-gap-medium);
|
|
304
|
+
--vxe-ui-space-row-gap-small: var(--vxe-ui-space-column-gap-small);
|
|
305
|
+
--vxe-ui-space-row-gap-mini: var(--vxe-ui-space-column-gap-mini);
|
|
292
306
|
}
|
package/types/all.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ import VxeSplitterPanel from './components/splitter-panel'
|
|
|
72
72
|
import VxeSplit from './components/split'
|
|
73
73
|
import VxeSplitPane from './components/split-pane'
|
|
74
74
|
import VxeSlider from './components/slider'
|
|
75
|
+
import VxeSpace from './components/space'
|
|
75
76
|
import VxeRate from './components/rate'
|
|
76
77
|
import VxeSteps from './components/steps'
|
|
77
78
|
import VxeSwitch from './components/switch'
|
|
@@ -344,6 +345,7 @@ interface UIComponents {
|
|
|
344
345
|
VxeSplit: typeof VxeSplit
|
|
345
346
|
VxeSplitPane: typeof VxeSplitPane
|
|
346
347
|
VxeSlider: typeof VxeSlider
|
|
348
|
+
VxeSpace: typeof VxeSpace
|
|
347
349
|
VxeSteps: typeof VxeSteps
|
|
348
350
|
VxeSwitch: typeof VxeSwitch
|
|
349
351
|
VxeTabPane: typeof VxeTabPane
|
|
@@ -518,6 +520,7 @@ export * from './components/splitter-panel'
|
|
|
518
520
|
export * from './components/split'
|
|
519
521
|
export * from './components/split-pane'
|
|
520
522
|
export * from './components/slider'
|
|
523
|
+
export * from './components/space'
|
|
521
524
|
export * from './components/steps'
|
|
522
525
|
export * from './components/switch'
|
|
523
526
|
export * from './components/tab-pane'
|
|
@@ -12,6 +12,7 @@ export interface VxeSliderConstructor extends VxeComponentBaseOptions, VxeSlider
|
|
|
12
12
|
props: VxeSliderProps
|
|
13
13
|
context: SetupContext<VxeSliderEmits>
|
|
14
14
|
reactData: SliderReactData
|
|
15
|
+
internalData: SliderInternalData
|
|
15
16
|
getRefMaps(): SliderPrivateRef
|
|
16
17
|
getComputeMaps(): SliderPrivateComputed
|
|
17
18
|
renderVN: RenderFunction
|
|
@@ -25,6 +26,8 @@ export interface VxeSliderPrivateRef extends SliderPrivateRef { }
|
|
|
25
26
|
export namespace VxeSliderPropTypes {
|
|
26
27
|
export type Size = VxeComponentSizeType
|
|
27
28
|
export type ModelValue = number | string | null | (number | string | null)[]
|
|
29
|
+
export type StartValue = number | string | null
|
|
30
|
+
export type EndValue = number | string | null
|
|
28
31
|
export type Max = number | string
|
|
29
32
|
export type Min = number | string
|
|
30
33
|
export type Vertical = boolean
|
|
@@ -33,11 +36,14 @@ export namespace VxeSliderPropTypes {
|
|
|
33
36
|
export type Step = number | string
|
|
34
37
|
export type Readonly = boolean
|
|
35
38
|
export type Disabled = boolean
|
|
39
|
+
export type Immediate = boolean
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
export interface VxeSliderProps {
|
|
39
43
|
size?: VxeSliderPropTypes.Size
|
|
40
44
|
modelValue?: VxeSliderPropTypes.ModelValue
|
|
45
|
+
startValue?: VxeSliderPropTypes.StartValue
|
|
46
|
+
endValue?: VxeSliderPropTypes.EndValue
|
|
41
47
|
max?: VxeSliderPropTypes.Max
|
|
42
48
|
min?: VxeSliderPropTypes.Min
|
|
43
49
|
vertical?: VxeSliderPropTypes.Vertical
|
|
@@ -46,6 +52,7 @@ export interface VxeSliderProps {
|
|
|
46
52
|
step?: VxeSliderPropTypes.Step
|
|
47
53
|
readonly?: VxeSliderPropTypes.Readonly
|
|
48
54
|
disabled?: VxeSliderPropTypes.Disabled
|
|
55
|
+
immediate?: VxeSliderPropTypes.Immediate
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export interface SliderPrivateComputed {
|
|
@@ -53,6 +60,10 @@ export interface SliderPrivateComputed {
|
|
|
53
60
|
export interface VxeSliderPrivateComputed extends SliderPrivateComputed { }
|
|
54
61
|
|
|
55
62
|
export interface SliderReactData {
|
|
63
|
+
}
|
|
64
|
+
export interface SliderInternalData {
|
|
65
|
+
_isUp?: boolean
|
|
66
|
+
currValue: number
|
|
56
67
|
startValue: number
|
|
57
68
|
endValue: number
|
|
58
69
|
}
|
|
@@ -66,6 +77,8 @@ export interface VxeSliderPrivateMethods extends SliderPrivateMethods { }
|
|
|
66
77
|
|
|
67
78
|
export type VxeSliderEmits = [
|
|
68
79
|
'update:modelValue',
|
|
80
|
+
'update:startValue',
|
|
81
|
+
'update:endValue',
|
|
69
82
|
'change',
|
|
70
83
|
'track-dragstart',
|
|
71
84
|
'track-dragover',
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentSizeType, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core'
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
+
|
|
6
|
+
export declare const VxeSpace: DefineVxeComponentApp<VxeSpaceProps, VxeSpaceEventProps, VxeSpaceSlots, VxeSpaceMethods>
|
|
7
|
+
export type VxeSpaceComponent = DefineVxeComponentOptions<VxeSpaceProps, VxeSpaceEventProps>
|
|
8
|
+
|
|
9
|
+
export type VxeSpaceInstance = DefineVxeComponentInstance<VxeSpaceProps, VxeSpaceConstructor>
|
|
10
|
+
|
|
11
|
+
export interface VxeSpaceConstructor extends VxeComponentBaseOptions, VxeSpaceMethods {
|
|
12
|
+
props: VxeSpaceProps
|
|
13
|
+
context: SetupContext<VxeSpaceEmits>
|
|
14
|
+
reactData: SpaceReactData
|
|
15
|
+
getRefMaps(): SpacePrivateRef
|
|
16
|
+
getComputeMaps(): SpacePrivateComputed
|
|
17
|
+
renderVN: RenderFunction
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SpacePrivateRef {
|
|
21
|
+
refElem: Ref<HTMLDivElement | undefined>
|
|
22
|
+
}
|
|
23
|
+
export interface VxeSpacePrivateRef extends SpacePrivateRef { }
|
|
24
|
+
|
|
25
|
+
export namespace VxeSpacePropTypes {
|
|
26
|
+
export type Size = VxeComponentSizeType
|
|
27
|
+
export type Wrap = boolean
|
|
28
|
+
export type Gap = number | string | number[] | VxeSpaceDefines.GapObj
|
|
29
|
+
export type Vertical = boolean
|
|
30
|
+
export type ClassName = string
|
|
31
|
+
export type ItemClassName = string
|
|
32
|
+
export type Separator = string
|
|
33
|
+
export type Align = 'stretch' | 'start' | 'end' | 'center' | 'baseline' | '' | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface VxeSpaceProps {
|
|
37
|
+
size?: VxeSpacePropTypes.Size
|
|
38
|
+
/**
|
|
39
|
+
* 是否自动换行
|
|
40
|
+
*/
|
|
41
|
+
wrap?: VxeSpacePropTypes.Wrap
|
|
42
|
+
/**
|
|
43
|
+
* 自定义间距
|
|
44
|
+
*/
|
|
45
|
+
gap?: VxeSpacePropTypes.Gap
|
|
46
|
+
/**
|
|
47
|
+
* 是否垂直布局
|
|
48
|
+
*/
|
|
49
|
+
vertical?: VxeSpacePropTypes.Vertical
|
|
50
|
+
className?: VxeSpacePropTypes.ClassName
|
|
51
|
+
itemClassName?: VxeSpacePropTypes.ItemClassName
|
|
52
|
+
/**
|
|
53
|
+
* 分隔符
|
|
54
|
+
*/
|
|
55
|
+
separator?: VxeSpacePropTypes.Separator
|
|
56
|
+
align?: VxeSpacePropTypes.Align
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface SpacePrivateComputed {
|
|
60
|
+
}
|
|
61
|
+
export interface VxeSpacePrivateComputed extends SpacePrivateComputed { }
|
|
62
|
+
|
|
63
|
+
export interface SpaceReactData {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface SpaceMethods {
|
|
67
|
+
}
|
|
68
|
+
export interface VxeSpaceMethods extends SpaceMethods { }
|
|
69
|
+
|
|
70
|
+
export interface SpacePrivateMethods { }
|
|
71
|
+
export interface VxeSpacePrivateMethods extends SpacePrivateMethods { }
|
|
72
|
+
|
|
73
|
+
export type VxeSpaceEmits = [
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
export namespace VxeSpaceDefines {
|
|
77
|
+
export interface GapObj {
|
|
78
|
+
/**
|
|
79
|
+
* 行间距
|
|
80
|
+
*/
|
|
81
|
+
rowGap?: number | string
|
|
82
|
+
/**
|
|
83
|
+
* 列间距
|
|
84
|
+
*/
|
|
85
|
+
columGap?: number | string
|
|
86
|
+
}
|
|
87
|
+
export interface SpaceEventParams extends VxeComponentEventParams {
|
|
88
|
+
$space: VxeSpaceConstructor
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type VxeSpaceEventProps = {
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface VxeSpaceListeners {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export namespace VxeSpaceEvents {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace VxeSpaceSlotTypes {
|
|
102
|
+
export interface DefaultSlotParams {}
|
|
103
|
+
export interface SeparatorSlotParams {}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface VxeSpaceSlots {
|
|
107
|
+
default?: (params: VxeSpaceSlotTypes.DefaultSlotParams) => any
|
|
108
|
+
separator?: (params: VxeSpaceSlotTypes.SeparatorSlotParams) => any
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export const Space: typeof VxeSpace
|
|
112
|
+
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
|