savor-ui 0.2.0 → 0.3.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/CHANGELOG.md +20 -0
- package/dist/es/components/index.d.ts +1 -0
- package/dist/es/components/index.mjs +5 -3
- package/dist/es/components/src/anchor/anchor.vue_vue_type_script_setup_true_vapor_true_lang.mjs +46 -35
- package/dist/es/components/src/avatar/types.d.ts +1 -1
- package/dist/es/components/src/button/button.vue_vue_type_script_setup_true_vapor_true_lang.mjs +29 -32
- package/dist/es/components/src/color-picker/color-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +91 -94
- package/dist/es/components/src/config-provider/config-provider.d.ts +9 -17
- package/dist/es/components/src/config-provider/config-provider.vue.mjs +1 -1
- package/dist/es/components/src/config-provider/config-provider.vue_vue_type_script_setup_true_lang.mjs +24 -0
- package/dist/es/components/src/config-provider/index.d.ts +17 -20
- package/dist/es/components/src/config-provider-vapor/config-provider-vapor.d.ts +20 -0
- package/dist/es/components/src/config-provider-vapor/config-provider-vapor.vue.mjs +5 -0
- package/dist/es/components/src/{config-provider/config-provider.vue_vue_type_script_setup_true_vapor_true_lang.mjs → config-provider-vapor/config-provider-vapor.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +4 -4
- package/dist/es/components/src/config-provider-vapor/index.d.ts +21 -0
- package/dist/es/components/src/config-provider-vapor/index.mjs +8 -0
- package/dist/es/components/src/config-provider-vapor/types.d.ts +17 -0
- package/dist/es/components/src/config-provider-vapor/types.mjs +4 -0
- package/dist/es/components/src/drawer/drawer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -4
- package/dist/es/components/src/dropdown/doption.vue_vue_type_script_setup_true_vapor_true_lang.mjs +20 -23
- package/dist/es/components/src/dropdown/dsubmenu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +27 -30
- package/dist/es/components/src/layout/index.d.ts +1 -0
- package/dist/es/components/src/layout/layout.vue_vue_type_script_setup_true_vapor_true_lang.mjs +11 -5
- package/dist/es/components/src/layout/types.d.ts +2 -0
- package/dist/es/components/src/message/types.d.ts +2 -2
- package/dist/es/components/src/scrollbar/index.d.ts +3 -0
- package/dist/es/components/src/scrollbar/scrollbar.vue_vue_type_script_setup_true_vapor_true_lang.mjs +35 -29
- package/dist/es/components/src/scrollbar/types.d.ts +7 -0
- package/dist/es/components/src/select/index.d.ts +6 -5
- package/dist/es/components/src/select/select.d.ts +5 -5
- package/dist/es/components/src/select/select.vue_vue_type_script_setup_true_vapor_true_lang.mjs +189 -125
- package/dist/es/components/src/select/types.d.ts +6 -4
- package/dist/es/components/src/space/index.d.ts +1 -0
- package/dist/es/components/src/space/space.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -1
- package/dist/es/components/src/space/types.d.ts +2 -0
- package/dist/es/components/src/table/table.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -12
- package/dist/es/components/src/table/types.d.ts +2 -2
- package/dist/es/core/components.mjs +66 -64
- package/dist/es/core/global.d.ts +1 -0
- package/dist/es/core/index.mjs +61 -59
- package/dist/es/hooks/index.d.ts +0 -1
- package/dist/es/hooks/index.mjs +0 -1
- package/dist/es/theme/components/button.scss +22 -3
- package/dist/es/theme/components/cascader.scss +3 -0
- package/dist/es/theme/components/collapse.scss +16 -17
- package/dist/es/theme/components/color-picker.scss +4 -1
- package/dist/es/theme/components/dropdown.scss +34 -24
- package/dist/es/theme/components/layout.scss +0 -1
- package/dist/es/theme/components/pagination.scss +5 -0
- package/dist/es/theme/components/segmented.scss +1 -1
- package/dist/es/theme/components/select.scss +92 -1
- package/dist/es/theme/components/space.scss +4 -0
- package/dist/es/theme/components/tabs.scss +3 -3
- package/dist/es/theme/components/wheel.scss +12 -9
- package/dist/es/theme/mixins/function.scss +9 -4
- package/dist/es/utils/src/theme/themeMap.mjs +4 -4
- package/dist/json/vetur-attributes.json +28 -2
- package/dist/json/vetur-tags.json +15 -4
- package/dist/json/web-types.json +75 -3
- package/package.json +1 -1
- package/dist/es/hooks/src/use-ripple.d.ts +0 -15
- package/dist/es/hooks/src/use-ripple.mjs +0 -86
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use "../mixins/function.scss" as *;
|
|
2
|
+
@use "../mixins/mixins.scss" as *;
|
|
3
3
|
|
|
4
4
|
@include b(dropdown) {
|
|
5
5
|
@include e(list) {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
overflow: hidden;
|
|
9
|
-
box-shadow: getCssVar(
|
|
10
|
-
background-color: getCssVar(
|
|
9
|
+
box-shadow: getCssVar("shadow", "1");
|
|
10
|
+
background-color: getCssVar("color", "bg-3");
|
|
11
11
|
padding: 4px;
|
|
12
12
|
transform-origin: left top;
|
|
13
|
-
transition: all 0.3s getCssVar(
|
|
14
|
-
border-radius: getCssVar(
|
|
13
|
+
transition: all 0.3s getCssVar("bezier", "1");
|
|
14
|
+
border-radius: getCssVar("radius", "medium");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@include b(droption) {
|
|
19
|
-
height: getCssVar(
|
|
20
|
-
line-height: getCssVar(
|
|
21
|
-
color: getCssVar(
|
|
19
|
+
height: getCssVar("size", "medium");
|
|
20
|
+
line-height: getCssVar("size", "medium");
|
|
21
|
+
color: getCssVar("color", "text-1");
|
|
22
22
|
margin-bottom: 4px;
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
@@ -26,11 +26,16 @@
|
|
|
26
26
|
padding: 0 8px;
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
min-width: 80px;
|
|
29
|
-
border-radius: calc(getCssVar(
|
|
29
|
+
border-radius: calc(getCssVar("radius", "medium") - 1px);
|
|
30
30
|
|
|
31
31
|
&:hover {
|
|
32
|
-
color: getCssVar(
|
|
33
|
-
background-color: getCssVar(
|
|
32
|
+
color: getCssVar("color", "primary-6");
|
|
33
|
+
background-color: getCssVar("color", "fill-2");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:active {
|
|
37
|
+
color: getCssVar("color", "primary-6");
|
|
38
|
+
background-color: getCssVar("color", "fill-3");
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
&:last-child {
|
|
@@ -42,7 +47,7 @@
|
|
|
42
47
|
justify-content: center;
|
|
43
48
|
}
|
|
44
49
|
@include e(title) {
|
|
45
|
-
font-size: getCssVar(
|
|
50
|
+
font-size: getCssVar("font-size", "medium");
|
|
46
51
|
text-wrap: nowrap;
|
|
47
52
|
flex: 1;
|
|
48
53
|
}
|
|
@@ -57,20 +62,25 @@
|
|
|
57
62
|
@include b(dsubmenu) {
|
|
58
63
|
margin-bottom: 4px;
|
|
59
64
|
@include e(item) {
|
|
60
|
-
height: getCssVar(
|
|
61
|
-
line-height: getCssVar(
|
|
62
|
-
color: getCssVar(
|
|
65
|
+
height: getCssVar("size", "medium");
|
|
66
|
+
line-height: getCssVar("size", "medium");
|
|
67
|
+
color: getCssVar("color", "text-1");
|
|
63
68
|
display: flex;
|
|
64
69
|
align-items: center;
|
|
65
70
|
padding: 0 8px;
|
|
66
71
|
cursor: pointer;
|
|
67
72
|
min-width: 80px;
|
|
68
|
-
border-radius: calc(getCssVar(
|
|
73
|
+
border-radius: calc(getCssVar("radius", "medium") - 1px);
|
|
69
74
|
gap: 8px;
|
|
70
75
|
|
|
71
76
|
&:hover {
|
|
72
|
-
color: getCssVar(
|
|
73
|
-
background-color: getCssVar(
|
|
77
|
+
color: getCssVar("color", "primary-6");
|
|
78
|
+
background-color: getCssVar("color", "fill-2");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:active {
|
|
82
|
+
color: getCssVar("color", "primary-6");
|
|
83
|
+
background-color: getCssVar("color", "fill-3");
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
&:last-child {
|
|
@@ -83,7 +93,7 @@
|
|
|
83
93
|
justify-content: center;
|
|
84
94
|
}
|
|
85
95
|
@include e(title) {
|
|
86
|
-
font-size: getCssVar(
|
|
96
|
+
font-size: getCssVar("font-size", "medium");
|
|
87
97
|
text-wrap: nowrap;
|
|
88
98
|
flex: 1;
|
|
89
99
|
}
|
|
@@ -97,11 +107,11 @@
|
|
|
97
107
|
display: flex;
|
|
98
108
|
flex-direction: column;
|
|
99
109
|
overflow: hidden;
|
|
100
|
-
box-shadow: getCssVar(
|
|
101
|
-
background-color: getCssVar(
|
|
110
|
+
box-shadow: getCssVar("shadow", "1");
|
|
111
|
+
background-color: getCssVar("color", "bg-3");
|
|
102
112
|
padding: 4px;
|
|
103
113
|
transform-origin: left top;
|
|
104
|
-
transition: all 0.3s getCssVar(
|
|
105
|
-
border-radius: getCssVar(
|
|
114
|
+
transition: all 0.3s getCssVar("bezier", "1");
|
|
115
|
+
border-radius: getCssVar("radius", "medium");
|
|
106
116
|
}
|
|
107
117
|
}
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
&:active {
|
|
26
26
|
background-color: getCssVar("color", "fill-3") !important;
|
|
27
27
|
}
|
|
28
|
+
@include when(disabled) {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
background-color: transparent !important;
|
|
31
|
+
color: getCssVar("color", "text-3") !important;
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
@include e(item) {
|
|
30
35
|
display: flex;
|
|
@@ -5,6 +5,19 @@
|
|
|
5
5
|
@include b(select) {
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
|
|
8
|
+
@include when(readonly) {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include when(multiple) {
|
|
13
|
+
@each $size in $size-list {
|
|
14
|
+
@include m(#{$size}) {
|
|
15
|
+
height: auto;
|
|
16
|
+
min-height: getCssVar("size", $size);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
8
21
|
@each $size in $size-list {
|
|
9
22
|
@include m(#{$size}) {
|
|
10
23
|
height: getCssVar("size", $size);
|
|
@@ -20,6 +33,77 @@
|
|
|
20
33
|
}
|
|
21
34
|
}
|
|
22
35
|
|
|
36
|
+
@include e(tags-wrapper) {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 2px 8px;
|
|
41
|
+
position: relative;
|
|
42
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
43
|
+
border-radius: getCssVar("radius", "medium");
|
|
44
|
+
background-color: getCssVar("color", "bg-1");
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
transition: border-color 0.2s;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
min-height: getCssVar("size", "medium");
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
border-color: getCssVar("color", "primary-5");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@include e(close) {
|
|
56
|
+
height: 18px;
|
|
57
|
+
width: 18px;
|
|
58
|
+
margin-right: 8px;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
font-size: getCssVar("font-size", "medium");
|
|
63
|
+
border-radius: getCssVar("radius", "circle");
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
user-select: none;
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: getCssVar("color", "fill-3");
|
|
68
|
+
}
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: getCssVar("color", "fill-2");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@include e(tags) {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 4px;
|
|
79
|
+
flex: 1;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include e(input) {
|
|
84
|
+
border: none;
|
|
85
|
+
outline: none;
|
|
86
|
+
background: transparent;
|
|
87
|
+
font-size: getCssVar("font-size", "medium");
|
|
88
|
+
color: getCssVar("color", "text-1");
|
|
89
|
+
flex: 1;
|
|
90
|
+
min-width: 40px;
|
|
91
|
+
padding: 0;
|
|
92
|
+
line-height: inherit;
|
|
93
|
+
|
|
94
|
+
&::placeholder {
|
|
95
|
+
color: getCssVar("color", "text-3");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@include e(placeholder) {
|
|
100
|
+
color: getCssVar("color", "text-3");
|
|
101
|
+
font-size: getCssVar("font-size", "medium");
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
}
|
|
106
|
+
|
|
23
107
|
@include e(wrapper) {
|
|
24
108
|
padding: 4px 0;
|
|
25
109
|
box-sizing: border-box;
|
|
@@ -64,15 +148,22 @@
|
|
|
64
148
|
color: getCssVar("color", "text-1");
|
|
65
149
|
cursor: pointer;
|
|
66
150
|
padding: 0 16px;
|
|
67
|
-
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
68
153
|
|
|
69
154
|
&:hover {
|
|
70
155
|
background-color: getCssVar("color", "fill-2");
|
|
71
156
|
color: getCssVar("color", "primary-6");
|
|
72
157
|
}
|
|
73
158
|
|
|
159
|
+
&:active {
|
|
160
|
+
background-color: getCssVar("color", "fill-3");
|
|
161
|
+
color: getCssVar("color", "primary-6");
|
|
162
|
+
}
|
|
163
|
+
|
|
74
164
|
@include when(active) {
|
|
75
165
|
color: getCssVar("color", "primary-6");
|
|
166
|
+
font-weight: 500;
|
|
76
167
|
}
|
|
77
168
|
|
|
78
169
|
@include when(highlight) {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
color: getCssVar("color", "primary-5");
|
|
74
74
|
}
|
|
75
75
|
&.is-disabled {
|
|
76
|
-
color: getCssVar("color", "text-
|
|
76
|
+
color: getCssVar("color", "text-3");
|
|
77
77
|
cursor: not-allowed;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
@include when(disabled) {
|
|
132
|
-
color: getCssVar("color", "text-
|
|
132
|
+
color: getCssVar("color", "text-3");
|
|
133
133
|
cursor: not-allowed;
|
|
134
134
|
|
|
135
135
|
&:hover {
|
|
136
|
-
color: getCssVar("color", "text-
|
|
136
|
+
color: getCssVar("color", "text-3");
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -10,14 +10,23 @@
|
|
|
10
10
|
color: getCssVar("color", "text-1");
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
font-size: 14px;
|
|
13
|
+
user-select: none;
|
|
13
14
|
|
|
14
15
|
&:hover {
|
|
15
16
|
@include be(wheel, mask-top) {
|
|
16
|
-
background: linear-gradient(
|
|
17
|
+
background: linear-gradient(
|
|
18
|
+
to bottom,
|
|
19
|
+
getCssVarRgba(0.05, "color", "primary-1") 0%,
|
|
20
|
+
getCssVarRgba(0.3, "color", "primary-3") 100%
|
|
21
|
+
);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
@include be(wheel, mask-bottom) {
|
|
20
|
-
background: linear-gradient(
|
|
25
|
+
background: linear-gradient(
|
|
26
|
+
to top,
|
|
27
|
+
getCssVarRgba(0.05, "color", "primary-1") 0%,
|
|
28
|
+
getCssVarRgba(0.3, "color", "primary-3") 100%
|
|
29
|
+
);
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
@include be(wheel, mask-center) {
|
|
@@ -26,7 +35,6 @@
|
|
|
26
35
|
}
|
|
27
36
|
}
|
|
28
37
|
|
|
29
|
-
// 箭头样式
|
|
30
38
|
@include e(arrow) {
|
|
31
39
|
width: 100%;
|
|
32
40
|
height: 24px;
|
|
@@ -42,20 +50,17 @@
|
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
|
|
45
|
-
// 滚动列表容器
|
|
46
53
|
@include e(list) {
|
|
47
54
|
position: relative;
|
|
48
55
|
overflow: hidden;
|
|
49
56
|
width: 100%;
|
|
50
57
|
}
|
|
51
58
|
|
|
52
|
-
// 列表内层(滚动容器)
|
|
53
59
|
@include e(list-inner) {
|
|
54
60
|
transition: transform 0.2s getCssVar("bezier", "1");
|
|
55
61
|
width: 100%;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
|
-
// 选项样式
|
|
59
64
|
@include e(item) {
|
|
60
65
|
padding: 0 12px;
|
|
61
66
|
text-align: center;
|
|
@@ -78,7 +83,7 @@
|
|
|
78
83
|
flex-direction: column;
|
|
79
84
|
z-index: 1;
|
|
80
85
|
}
|
|
81
|
-
|
|
86
|
+
|
|
82
87
|
@include e(mask-top) {
|
|
83
88
|
background: linear-gradient(
|
|
84
89
|
to bottom,
|
|
@@ -88,13 +93,11 @@
|
|
|
88
93
|
flex: 0 0 auto;
|
|
89
94
|
}
|
|
90
95
|
|
|
91
|
-
// 底部遮罩
|
|
92
96
|
@include e(mask-bottom) {
|
|
93
97
|
background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
|
|
94
98
|
flex: 0 0 auto;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
// 中间选中框
|
|
98
101
|
@include e(mask-center) {
|
|
99
102
|
border-top-style: solid;
|
|
100
103
|
border-top-width: 1px;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "../mixins/config.scss" as *;
|
|
2
2
|
|
|
3
3
|
// join var name
|
|
4
4
|
// joinVarName(('color', 'fill-1')) => '--l-color-fill-1'
|
|
5
5
|
@function joinVarName($list) {
|
|
6
|
-
$name:
|
|
6
|
+
$name: "--" + $namespace;
|
|
7
7
|
@each $item in $list {
|
|
8
|
-
@if $item !=
|
|
9
|
-
$name: $name +
|
|
8
|
+
@if $item != "" {
|
|
9
|
+
$name: $name + "-" + $item;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
@return $name;
|
|
@@ -21,3 +21,8 @@
|
|
|
21
21
|
@function getCssVar($args...) {
|
|
22
22
|
@return var(#{joinVarName($args)});
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
@function getCssVarRgba($alpha, $args...) {
|
|
26
|
+
// 核心:强制原样输出,SCSS 绝对不会解析
|
|
27
|
+
@return #{"color-mix(in srgb, " var(#{joinVarName($args)}) " " ($alpha * 100%) + ", transparent)"};
|
|
28
|
+
}
|
|
@@ -53,10 +53,10 @@ var t = "s", n = [
|
|
|
53
53
|
lineHeightLarge: "24px",
|
|
54
54
|
lineHeightLarger: "28px",
|
|
55
55
|
radiusMini: "2px",
|
|
56
|
-
radiusSmall: "
|
|
57
|
-
radiusMedium: "
|
|
58
|
-
radiusLarge: "
|
|
59
|
-
radiusLarger: "
|
|
56
|
+
radiusSmall: "2px",
|
|
57
|
+
radiusMedium: "4px",
|
|
58
|
+
radiusLarge: "4px",
|
|
59
|
+
radiusLarger: "6px",
|
|
60
60
|
radiusRound: "999px",
|
|
61
61
|
radiusCircle: "100%",
|
|
62
62
|
bezier1: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
@@ -390,6 +390,13 @@
|
|
|
390
390
|
"s-config-provider/theme": {
|
|
391
391
|
"description": "—"
|
|
392
392
|
},
|
|
393
|
+
"s-config-provider-vapor/inputFilled": {
|
|
394
|
+
"description": "—",
|
|
395
|
+
"type": "boolean"
|
|
396
|
+
},
|
|
397
|
+
"s-config-provider-vapor/theme": {
|
|
398
|
+
"description": "—"
|
|
399
|
+
},
|
|
393
400
|
"s-date-picker/change": {
|
|
394
401
|
"description": "值改变时触发"
|
|
395
402
|
},
|
|
@@ -1146,6 +1153,10 @@
|
|
|
1146
1153
|
"description": "布局高度",
|
|
1147
1154
|
"type": "string | number"
|
|
1148
1155
|
},
|
|
1156
|
+
"s-layout/bgColor": {
|
|
1157
|
+
"description": "背景颜色",
|
|
1158
|
+
"type": "string"
|
|
1159
|
+
},
|
|
1149
1160
|
"s-layout-header/height": {
|
|
1150
1161
|
"description": "布局头高度",
|
|
1151
1162
|
"type": "string | number"
|
|
@@ -1658,6 +1669,13 @@
|
|
|
1658
1669
|
"description": "滚动容器id",
|
|
1659
1670
|
"type": "string"
|
|
1660
1671
|
},
|
|
1672
|
+
"s-scrollbar/backtop": {
|
|
1673
|
+
"description": "是否显示返回顶部按钮",
|
|
1674
|
+
"type": "boolean"
|
|
1675
|
+
},
|
|
1676
|
+
"s-scrollbar/backtopProps": {
|
|
1677
|
+
"description": "返回顶部按钮属性"
|
|
1678
|
+
},
|
|
1661
1679
|
"s-segmented-field-names/label": {
|
|
1662
1680
|
"description": "选项标签",
|
|
1663
1681
|
"type": "string"
|
|
@@ -1689,8 +1707,8 @@
|
|
|
1689
1707
|
"s-select/change": {
|
|
1690
1708
|
"description": "选择器值改变时触发"
|
|
1691
1709
|
},
|
|
1692
|
-
"s-select/
|
|
1693
|
-
"description": "
|
|
1710
|
+
"s-select/remove": {
|
|
1711
|
+
"description": "多选模式下移除标签时触发"
|
|
1694
1712
|
},
|
|
1695
1713
|
"s-select/modelValue": {
|
|
1696
1714
|
"description": "选择器值(v-model)"
|
|
@@ -1705,6 +1723,10 @@
|
|
|
1705
1723
|
"s-select/options": {
|
|
1706
1724
|
"description": "选择器选项"
|
|
1707
1725
|
},
|
|
1726
|
+
"s-select/multiple": {
|
|
1727
|
+
"description": "选择器是否可多选",
|
|
1728
|
+
"type": "boolean"
|
|
1729
|
+
},
|
|
1708
1730
|
"s-select/clearable": {
|
|
1709
1731
|
"description": "是否支持清空选择",
|
|
1710
1732
|
"type": "boolean"
|
|
@@ -1795,6 +1817,10 @@
|
|
|
1795
1817
|
"s-space/justify": {
|
|
1796
1818
|
"description": "水平对齐方式"
|
|
1797
1819
|
},
|
|
1820
|
+
"s-space/wrap": {
|
|
1821
|
+
"description": "是否换行",
|
|
1822
|
+
"type": "boolean"
|
|
1823
|
+
},
|
|
1798
1824
|
"s-statistic/title": {
|
|
1799
1825
|
"description": "标题",
|
|
1800
1826
|
"type": "string"
|
|
@@ -174,6 +174,12 @@
|
|
|
174
174
|
"theme"
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
|
+
"s-config-provider-vapor": {
|
|
178
|
+
"attributes": [
|
|
179
|
+
"inputFilled",
|
|
180
|
+
"theme"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
177
183
|
"s-date-picker": {
|
|
178
184
|
"attributes": [
|
|
179
185
|
"change",
|
|
@@ -474,7 +480,8 @@
|
|
|
474
480
|
},
|
|
475
481
|
"s-layout": {
|
|
476
482
|
"attributes": [
|
|
477
|
-
"height"
|
|
483
|
+
"height",
|
|
484
|
+
"bgColor"
|
|
478
485
|
]
|
|
479
486
|
},
|
|
480
487
|
"s-layout-header": {
|
|
@@ -692,7 +699,9 @@
|
|
|
692
699
|
"maxHeight",
|
|
693
700
|
"padding",
|
|
694
701
|
"always",
|
|
695
|
-
"id"
|
|
702
|
+
"id",
|
|
703
|
+
"backtop",
|
|
704
|
+
"backtopProps"
|
|
696
705
|
]
|
|
697
706
|
},
|
|
698
707
|
"s-segmented-field-names": {
|
|
@@ -714,11 +723,12 @@
|
|
|
714
723
|
"s-select": {
|
|
715
724
|
"attributes": [
|
|
716
725
|
"change",
|
|
717
|
-
"
|
|
726
|
+
"remove",
|
|
718
727
|
"modelValue",
|
|
719
728
|
"size",
|
|
720
729
|
"placeholder",
|
|
721
730
|
"options",
|
|
731
|
+
"multiple",
|
|
722
732
|
"clearable",
|
|
723
733
|
"maxHeight",
|
|
724
734
|
"disabled",
|
|
@@ -751,7 +761,8 @@
|
|
|
751
761
|
"size",
|
|
752
762
|
"fill",
|
|
753
763
|
"align",
|
|
754
|
-
"justify"
|
|
764
|
+
"justify",
|
|
765
|
+
"wrap"
|
|
755
766
|
]
|
|
756
767
|
},
|
|
757
768
|
"s-statistic": {
|
package/dist/json/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "savor-ui",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -1046,6 +1046,34 @@
|
|
|
1046
1046
|
}
|
|
1047
1047
|
]
|
|
1048
1048
|
},
|
|
1049
|
+
{
|
|
1050
|
+
"name": "s-config-provider-vapor",
|
|
1051
|
+
"attributes": [
|
|
1052
|
+
{
|
|
1053
|
+
"name": "inputFilled",
|
|
1054
|
+
"description": "—",
|
|
1055
|
+
"value": {
|
|
1056
|
+
"type": "boolean",
|
|
1057
|
+
"kind": "expression"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "theme",
|
|
1062
|
+
"description": "—",
|
|
1063
|
+
"value": {
|
|
1064
|
+
"type": "ConfigProviderVaporTheme",
|
|
1065
|
+
"kind": "expression"
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
],
|
|
1069
|
+
"events": [],
|
|
1070
|
+
"slots": [
|
|
1071
|
+
{
|
|
1072
|
+
"name": "default",
|
|
1073
|
+
"description": "—"
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1049
1077
|
{
|
|
1050
1078
|
"name": "s-date-picker",
|
|
1051
1079
|
"attributes": [
|
|
@@ -2948,6 +2976,14 @@
|
|
|
2948
2976
|
"type": "string | number",
|
|
2949
2977
|
"kind": "expression"
|
|
2950
2978
|
}
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
"name": "bgColor",
|
|
2982
|
+
"description": "背景颜色",
|
|
2983
|
+
"value": {
|
|
2984
|
+
"type": "string",
|
|
2985
|
+
"kind": "expression"
|
|
2986
|
+
}
|
|
2951
2987
|
}
|
|
2952
2988
|
],
|
|
2953
2989
|
"events": [],
|
|
@@ -4299,6 +4335,22 @@
|
|
|
4299
4335
|
"type": "string",
|
|
4300
4336
|
"kind": "expression"
|
|
4301
4337
|
}
|
|
4338
|
+
},
|
|
4339
|
+
{
|
|
4340
|
+
"name": "backtop",
|
|
4341
|
+
"description": "是否显示返回顶部按钮",
|
|
4342
|
+
"value": {
|
|
4343
|
+
"type": "boolean",
|
|
4344
|
+
"kind": "expression"
|
|
4345
|
+
}
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
"name": "backtopProps",
|
|
4349
|
+
"description": "返回顶部按钮属性",
|
|
4350
|
+
"value": {
|
|
4351
|
+
"type": "BackTopProps",
|
|
4352
|
+
"kind": "expression"
|
|
4353
|
+
}
|
|
4302
4354
|
}
|
|
4303
4355
|
],
|
|
4304
4356
|
"events": [],
|
|
@@ -4306,6 +4358,10 @@
|
|
|
4306
4358
|
{
|
|
4307
4359
|
"name": "default",
|
|
4308
4360
|
"description": "默认"
|
|
4361
|
+
},
|
|
4362
|
+
{
|
|
4363
|
+
"name": "backtop",
|
|
4364
|
+
"description": "返回顶部按钮"
|
|
4309
4365
|
}
|
|
4310
4366
|
]
|
|
4311
4367
|
},
|
|
@@ -4424,6 +4480,14 @@
|
|
|
4424
4480
|
"kind": "expression"
|
|
4425
4481
|
}
|
|
4426
4482
|
},
|
|
4483
|
+
{
|
|
4484
|
+
"name": "multiple",
|
|
4485
|
+
"description": "选择器是否可多选",
|
|
4486
|
+
"value": {
|
|
4487
|
+
"type": "boolean",
|
|
4488
|
+
"kind": "expression"
|
|
4489
|
+
}
|
|
4490
|
+
},
|
|
4427
4491
|
{
|
|
4428
4492
|
"name": "clearable",
|
|
4429
4493
|
"description": "是否支持清空选择",
|
|
@@ -4535,8 +4599,8 @@
|
|
|
4535
4599
|
"description": "选择器值改变时触发"
|
|
4536
4600
|
},
|
|
4537
4601
|
{
|
|
4538
|
-
"name": "
|
|
4539
|
-
"description": "
|
|
4602
|
+
"name": "remove",
|
|
4603
|
+
"description": "多选模式下移除标签时触发"
|
|
4540
4604
|
}
|
|
4541
4605
|
],
|
|
4542
4606
|
"slots": [
|
|
@@ -4659,6 +4723,14 @@
|
|
|
4659
4723
|
"type": "center | start | end | between | around",
|
|
4660
4724
|
"kind": "expression"
|
|
4661
4725
|
}
|
|
4726
|
+
},
|
|
4727
|
+
{
|
|
4728
|
+
"name": "wrap",
|
|
4729
|
+
"description": "是否换行",
|
|
4730
|
+
"value": {
|
|
4731
|
+
"type": "boolean",
|
|
4732
|
+
"kind": "expression"
|
|
4733
|
+
}
|
|
4662
4734
|
}
|
|
4663
4735
|
],
|
|
4664
4736
|
"events": [],
|