vxe-pc-ui 3.1.21 → 3.1.22
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/avatar/style.css +0 -5
- package/es/avatar/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/slider/src/slider.js +268 -7
- package/es/slider/style.css +143 -0
- package/es/slider/style.min.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +5 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-avatar/style.css +0 -5
- package/es/vxe-avatar/style.min.css +1 -1
- package/es/vxe-slider/style.css +143 -0
- package/es/vxe-slider/style.min.css +1 -0
- package/lib/avatar/style/style.css +0 -5
- package/lib/avatar/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 +435 -9
- package/lib/index.umd.min.js +1 -1
- package/lib/slider/src/slider.js +279 -7
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +143 -0
- package/lib/slider/style/style.min.css +1 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +5 -2
- 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/vxe-avatar/style/style.css +0 -5
- package/lib/vxe-avatar/style/style.min.css +1 -1
- package/lib/vxe-slider/style/style.css +143 -0
- package/lib/vxe-slider/style/style.min.css +1 -0
- package/package.json +1 -1
- package/packages/slider/src/slider.ts +286 -7
- package/packages/ui/index.ts +4 -1
- package/styles/components/avatar.scss +3 -8
- package/styles/components/slider.scss +138 -0
- package/types/components/slider.d.ts +27 -2
- package/types/components/switch.d.ts +1 -1
- /package/es/icon/style/{iconfont.1728032194284.ttf → iconfont.1728123720853.ttf} +0 -0
- /package/es/icon/style/{iconfont.1728032194284.woff → iconfont.1728123720853.woff} +0 -0
- /package/es/icon/style/{iconfont.1728032194284.woff2 → iconfont.1728123720853.woff2} +0 -0
- /package/es/{iconfont.1728032194284.ttf → iconfont.1728123720853.ttf} +0 -0
- /package/es/{iconfont.1728032194284.woff → iconfont.1728123720853.woff} +0 -0
- /package/es/{iconfont.1728032194284.woff2 → iconfont.1728123720853.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1728032194284.ttf → iconfont.1728123720853.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1728032194284.woff → iconfont.1728123720853.woff} +0 -0
- /package/lib/icon/style/{iconfont.1728032194284.woff2 → iconfont.1728123720853.woff2} +0 -0
- /package/lib/{iconfont.1728032194284.ttf → iconfont.1728123720853.ttf} +0 -0
- /package/lib/{iconfont.1728032194284.woff → iconfont.1728123720853.woff} +0 -0
- /package/lib/{iconfont.1728032194284.woff2 → iconfont.1728123720853.woff2} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
@import '../helpers/mixin.scss';
|
|
2
|
+
|
|
3
|
+
$sliderThemeList: (
|
|
4
|
+
(
|
|
5
|
+
name: "primary",
|
|
6
|
+
textColor: var(--vxe-ui-font-primary-color),
|
|
7
|
+
hoverColor: var(--vxe-ui-font-primary-lighten-color),
|
|
8
|
+
activeColor: var(--vxe-ui-font-primary-darken-color),
|
|
9
|
+
disabledColor: var(--vxe-ui-font-primary-disabled-color)
|
|
10
|
+
),
|
|
11
|
+
(
|
|
12
|
+
name: "success",
|
|
13
|
+
textColor: var(--vxe-ui-status-success-color),
|
|
14
|
+
hoverColor: var(--vxe-ui-status-success-lighten-color),
|
|
15
|
+
activeColor: var(--vxe-ui-status-success-darken-color),
|
|
16
|
+
disabledColor: var(--vxe-ui-status-success-disabled-color)
|
|
17
|
+
),
|
|
18
|
+
(
|
|
19
|
+
name: "info",
|
|
20
|
+
textColor: var(--vxe-ui-status-info-color),
|
|
21
|
+
hoverColor: var(--vxe-ui-status-info-lighten-color),
|
|
22
|
+
activeColor: var(--vxe-ui-status-info-darken-color),
|
|
23
|
+
disabledColor: var(--vxe-ui-status-info-disabled-color)
|
|
24
|
+
),
|
|
25
|
+
(
|
|
26
|
+
name: "warning",
|
|
27
|
+
textColor: var(--vxe-ui-status-warning-color),
|
|
28
|
+
hoverColor: var(--vxe-ui-status-warning-lighten-color),
|
|
29
|
+
activeColor: var(--vxe-ui-status-warning-darken-color),
|
|
30
|
+
disabledColor: var(--vxe-ui-status-warning-disabled-color)
|
|
31
|
+
),
|
|
32
|
+
(
|
|
33
|
+
name: "danger",
|
|
34
|
+
textColor: var(--vxe-ui-status-danger-color),
|
|
35
|
+
hoverColor: var(--vxe-ui-status-danger-lighten-color),
|
|
36
|
+
activeColor: var(--vxe-ui-status-danger-darken-color),
|
|
37
|
+
disabledColor: var(--vxe-ui-status-danger-disabled-color)
|
|
38
|
+
),
|
|
39
|
+
(
|
|
40
|
+
name: "error",
|
|
41
|
+
textColor: var(--vxe-ui-status-error-color),
|
|
42
|
+
hoverColor: var(--vxe-ui-status-error-lighten-color),
|
|
43
|
+
activeColor: var(--vxe-ui-status-error-darken-color),
|
|
44
|
+
disabledColor: var(--vxe-ui-status-error-disabled-color)
|
|
45
|
+
)
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
.vxe-slider {
|
|
49
|
+
position: relative;
|
|
50
|
+
display: block;
|
|
51
|
+
padding: 0.5em 1em;
|
|
52
|
+
@for $index from 0 to length($sliderThemeList) {
|
|
53
|
+
$item: nth($sliderThemeList, $index + 1);
|
|
54
|
+
&.theme--#{map-get($item, name)} {
|
|
55
|
+
.vxe-slider--bar-track {
|
|
56
|
+
background-color: map-get($item, textColor);
|
|
57
|
+
&:hover {
|
|
58
|
+
background-color: map-get($item, hoverColor);
|
|
59
|
+
}
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: map-get($item, activeColor);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.vxe-slider--bar-btn {
|
|
65
|
+
background-color: map-get($item, textColor);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
&.is--disabled {
|
|
70
|
+
.vxe-slider--bar-btn {
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&:not(.is--disabled) {
|
|
75
|
+
.vxe-slider--bar-wrapper,
|
|
76
|
+
.vxe-slider--inner {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
.vxe-slider--bar-btn {
|
|
80
|
+
&:hover {
|
|
81
|
+
transform: scale(1.2);
|
|
82
|
+
}
|
|
83
|
+
&:active {
|
|
84
|
+
transform: scale(1.1);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&.is--readonly {
|
|
89
|
+
.vxe-slider--bar-wrapper,
|
|
90
|
+
.vxe-slider--inner {
|
|
91
|
+
cursor: default;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.vxe-slider--inner {
|
|
96
|
+
position: relative;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.vxe-slider--bar-wrapper {
|
|
100
|
+
background-color: #e4e7ed;
|
|
101
|
+
}
|
|
102
|
+
.vxe-slider--bar-track {
|
|
103
|
+
position: absolute;
|
|
104
|
+
left: 0;
|
|
105
|
+
top: 0;
|
|
106
|
+
z-index: 1;
|
|
107
|
+
background-color: var(--vxe-ui-font-primary-color);
|
|
108
|
+
&:hover {
|
|
109
|
+
background-color: var(--vxe-ui-font-primary-lighten-color);
|
|
110
|
+
}
|
|
111
|
+
&:active {
|
|
112
|
+
background-color: var(--vxe-ui-font-primary-darken-color);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.vxe-slider--bar-wrapper,
|
|
116
|
+
.vxe-slider--bar-track {
|
|
117
|
+
height: 0.3em;
|
|
118
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.vxe-slider--bar-btn {
|
|
122
|
+
position: absolute;
|
|
123
|
+
width: 0.9em;
|
|
124
|
+
height: 0.9em;
|
|
125
|
+
top: -0.3em;
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
border: 0.15em solid var(--vxe-ui-font-primary-color);
|
|
128
|
+
background-color: #fff;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
z-index: 1;
|
|
131
|
+
@include createAnimationTransition(transform, 0.1s);
|
|
132
|
+
}
|
|
133
|
+
.vxe-slider--start-btn {
|
|
134
|
+
left: -0.45em;
|
|
135
|
+
}
|
|
136
|
+
.vxe-slider--end-btn {
|
|
137
|
+
right: -0.45em;
|
|
138
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams } from '@vxe-ui/core'
|
|
1
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentSizeType, VxeComponentStatusType, VxeComponentEventParams } 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,9 +16,29 @@ export interface SliderPrivateRef {
|
|
|
16
16
|
export interface VxeSliderPrivateRef extends SliderPrivateRef { }
|
|
17
17
|
|
|
18
18
|
export namespace VxeSliderPropTypes {
|
|
19
|
+
export type Size = VxeComponentSizeType
|
|
20
|
+
export type ModelValue = number | string | null | (number | string | null)[]
|
|
21
|
+
export type Max = number | string
|
|
22
|
+
export type Min = number | string
|
|
23
|
+
export type Vertical = boolean
|
|
24
|
+
export type Range = boolean
|
|
25
|
+
export type Status = VxeComponentStatusType
|
|
26
|
+
export type Step = number | string
|
|
27
|
+
export type Readonly = boolean
|
|
28
|
+
export type Disabled = boolean
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
export interface VxeSliderProps {
|
|
32
|
+
size?: VxeSliderPropTypes.Size
|
|
33
|
+
modelValue?: VxeSliderPropTypes.ModelValue
|
|
34
|
+
max?: VxeSliderPropTypes.Max
|
|
35
|
+
min?: VxeSliderPropTypes.Min
|
|
36
|
+
vertical?: VxeSliderPropTypes.Vertical
|
|
37
|
+
range?: VxeSliderPropTypes.Range
|
|
38
|
+
status?: VxeSliderPropTypes.Status
|
|
39
|
+
step?: VxeSliderPropTypes.Step
|
|
40
|
+
readonly?: VxeSliderPropTypes.Readonly
|
|
41
|
+
disabled?: VxeSliderPropTypes.Disabled
|
|
22
42
|
}
|
|
23
43
|
|
|
24
44
|
export interface SliderPrivateComputed {
|
|
@@ -26,6 +46,8 @@ export interface SliderPrivateComputed {
|
|
|
26
46
|
export interface VxeSliderPrivateComputed extends SliderPrivateComputed { }
|
|
27
47
|
|
|
28
48
|
export interface SliderReactData {
|
|
49
|
+
startValue: number
|
|
50
|
+
endValue: number
|
|
29
51
|
}
|
|
30
52
|
|
|
31
53
|
export interface SliderMethods {
|
|
@@ -35,7 +57,10 @@ export interface VxeSliderMethods extends SliderMethods { }
|
|
|
35
57
|
export interface SliderPrivateMethods { }
|
|
36
58
|
export interface VxeSliderPrivateMethods extends SliderPrivateMethods { }
|
|
37
59
|
|
|
38
|
-
export type VxeSliderEmits = [
|
|
60
|
+
export type VxeSliderEmits = [
|
|
61
|
+
'modelValue',
|
|
62
|
+
'change'
|
|
63
|
+
]
|
|
39
64
|
|
|
40
65
|
export namespace VxeSliderDefines {
|
|
41
66
|
export interface SliderEventParams extends VxeComponentEventParams {
|
|
@@ -17,7 +17,7 @@ export interface VxeSwitchPrivateRef extends SwitchPrivateRef { }
|
|
|
17
17
|
|
|
18
18
|
export namespace VxeSwitchPropTypes {
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
|
-
export type ModelValue = string | number | boolean
|
|
20
|
+
export type ModelValue = string | number | boolean | null
|
|
21
21
|
export type Disabled = boolean
|
|
22
22
|
export type Readonly = boolean
|
|
23
23
|
export type OpenLabel = string
|
|
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
|