kui-vue 3.6.2 → 3.6.4
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/components/card/card.jsx +19 -9
- package/components/card/demo/basic.md +3 -3
- package/components/card/demo/border.md +1 -7
- package/components/card/demo/index.jsx +9 -7
- package/components/card/demo/notitle.md +23 -0
- package/components/card/styles/index.less +5 -3
- package/components/checkbox/styles/index.less +1 -0
- package/components/collapse/styles/index.less +2 -2
- package/components/colorPicker/mode.jsx +1 -1
- package/components/components.js +3 -0
- package/components/drawer/demo/target.md +2 -2
- package/components/drawer/drawer.jsx +48 -74
- package/components/drawer/styles/index.less +38 -67
- package/components/dropdown/demo/basic.md +1 -1
- package/components/dropdown/demo/rightmenu.md +1 -1
- package/components/dropdown/styles/index.less +181 -24
- package/components/flex/demo/size.md +14 -5
- package/components/form/demo/customvalid.md +1 -1
- package/components/form/demo/dynamicvalid.md +1 -1
- package/components/form/demo/length.md +1 -13
- package/components/form/demo/valid.md +10 -1
- package/components/form/form.jsx +1 -1
- package/components/grid/demo/align.md +5 -5
- package/components/grid/demo/basic.md +2 -2
- package/components/grid/demo/fill.md +8 -8
- package/components/grid/demo/flex.md +7 -7
- package/components/grid/demo/gutter.md +2 -4
- package/components/grid/demo/offset.md +5 -5
- package/components/input/demo/icon.md +9 -2
- package/components/input/demo/theme.md +1 -1
- package/components/input/input.jsx +12 -10
- package/components/inputNumber/demo/basic.md +1 -0
- package/components/inputNumber/demo/format.md +3 -8
- package/components/inputNumber/inputNumber.jsx +116 -139
- package/components/inputNumber/styles/index.less +3 -3
- package/components/layout/demo/layout2.md +0 -12
- package/components/layout/demo/layout5.md +0 -1
- package/components/locale/de.js +1 -0
- package/components/locale/el.js +1 -0
- package/components/locale/en.js +1 -0
- package/components/locale/fr.js +1 -0
- package/components/locale/it.js +1 -0
- package/components/locale/ja.js +1 -0
- package/components/locale/ko.js +1 -0
- package/components/locale/ru.js +1 -0
- package/components/locale/th.js +1 -0
- package/components/locale/uk.js +1 -0
- package/components/locale/vi.js +1 -0
- package/components/locale/zh-CN.js +1 -0
- package/components/locale/zh-TW.js +1 -0
- package/components/menu/demo/collapsed.md +9 -9
- package/components/menu/index.md +1 -0
- package/components/menu/styles/index.less +229 -375
- package/components/message/group.jsx +11 -4
- package/components/rate/rate.jsx +7 -2
- package/components/rate/star.jsx +20 -5
- package/components/select/demo/filterable.md +1 -0
- package/components/select/demo/multiple.md +3 -0
- package/components/select/select.jsx +23 -19
- package/components/slider/demo/vertical.md +2 -1
- package/components/slider/demo/withNumber.md +0 -2
- package/components/slider/index.md +2 -3
- package/components/slider/slider.jsx +296 -291
- package/components/slider/styles/index.less +11 -12
- package/components/slider/thumb.jsx +70 -148
- package/components/spin/demo/container.md +1 -1
- package/components/spin/demo/mode.md +1 -1
- package/components/statCard/countup.js +254 -0
- package/components/statCard/countup.jsx +45 -0
- package/components/statCard/demo/basic.md +31 -0
- package/components/statCard/demo/card.md +40 -0
- package/components/statCard/demo/index.jsx +19 -0
- package/components/statCard/demo/info.md +9 -0
- package/components/statCard/demo/with-card.md +43 -0
- package/components/statCard/index.js +3 -0
- package/components/statCard/index.md +28 -0
- package/components/statCard/rollup.jsx +64 -0
- package/components/statCard/statCard.jsx +42 -0
- package/components/statCard/statNumber.jsx +53 -0
- package/components/statCard/styles/index.less +76 -0
- package/components/styles/color.less +4 -2
- package/components/styles/index.less +1 -0
- package/components/styles/sys.less +2 -3
- package/components/styles/var.less +1 -0
- package/components/table/demo/col-row-span.md +1 -1
- package/components/table/demo/custom-header.md +1 -1
- package/components/table/demo/fixed-col-head.md +1 -1
- package/components/table/demo/head-span.md +2 -2
- package/components/table/demo/size.md +1 -1
- package/components/table/demo/table-check.md +11 -1
- package/components/table/index.md +13 -12
- package/components/table/styles/index.less +67 -58
- package/components/table/table.jsx +7 -5
- package/components/tabs/demo/sample.md +1 -8
- package/components/tabs/index.md +9 -9
- package/components/tabs/tabs.jsx +6 -4
- package/components/treeselect/treeselect.jsx +17 -17
- package/components/upload/demo/custom.md +5 -2
- package/components/upload/demo/exceed.md +1 -1
- package/components/upload/demo/pictures.md +14 -0
- package/components/upload/fileList.jsx +24 -47
- package/components/upload/index.md +13 -4
- package/components/upload/selector.jsx +37 -117
- package/components/upload/styles/index.less +2 -3
- package/components/upload/upload.jsx +189 -116
- package/components/utils/number.js +79 -65
- package/components/utils/placement.js +4 -4
- package/components/utils/vnode.jsx +46 -25
- package/dist/k-ui.cjs.js +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.d.ts +242 -200
- package/dist/k-ui.esm.js +2 -2
- package/dist/k-ui.umd.js +2 -2
- package/dist/locale/de.js +2 -2
- package/dist/locale/el.js +2 -2
- package/dist/locale/en.js +2 -2
- package/dist/locale/fr.js +2 -2
- package/dist/locale/it.js +2 -2
- package/dist/locale/ja.js +2 -2
- package/dist/locale/ko.js +2 -2
- package/dist/locale/ru.js +2 -2
- package/dist/locale/th.js +2 -2
- package/dist/locale/uk.js +2 -2
- package/dist/locale/vi.js +2 -2
- package/dist/locale/zh-CN.js +2 -2
- package/dist/locale/zh-TW.js +2 -2
- package/package.json +3 -1
- package/types/affix/Affix.d.ts +1 -1
- package/types/alert/Alert.d.ts +1 -1
- package/types/avatar/Avatar.d.ts +1 -1
- package/types/backtop/BackTop.d.ts +1 -1
- package/types/badge/Badge.d.ts +1 -1
- package/types/breadcrumb/Breadcrumb.d.ts +1 -1
- package/types/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/types/button/Button.d.ts +1 -1
- package/types/button/ButtonGroup.d.ts +1 -1
- package/types/card/Card.d.ts +1 -1
- package/types/carousel/Carousel.d.ts +1 -1
- package/types/carousel/CarouselItem.d.ts +1 -1
- package/types/checkbox/Checkbox.d.ts +1 -1
- package/types/checkbox/CheckboxGroup.d.ts +1 -1
- package/types/collapse/Collapse.d.ts +1 -1
- package/types/collapse/CollapsePanel.d.ts +1 -1
- package/types/colorPicker/ColorPicker.d.ts +1 -1
- package/types/datePicker/DatePicker.d.ts +1 -1
- package/types/descriptions/Descriptions.d.ts +1 -1
- package/types/descriptions/DescriptionsItem.d.ts +1 -1
- package/types/divider/Divider.d.ts +1 -1
- package/types/drawer/Drawer.d.ts +2 -2
- package/types/dropdown/Dropdown.d.ts +1 -1
- package/types/dropdown/DropdownButton.d.ts +1 -1
- package/types/empty/Empty.d.ts +1 -1
- package/types/flex/Flex.d.ts +1 -1
- package/types/form/Form.d.ts +1 -1
- package/types/form/formitem.d.ts +1 -1
- package/types/grid/Col.d.ts +1 -1
- package/types/grid/Row.d.ts +1 -1
- package/types/icon/Icon.d.ts +1 -1
- package/types/image/ImageGroup.d.ts +1 -1
- package/types/image/KImage.d.ts +1 -1
- package/types/index.d.ts +16 -12
- package/types/input/Input.d.ts +1 -1
- package/types/input/InputGroup.d.ts +1 -1
- package/types/input/TextArea.d.ts +1 -1
- package/types/inputNumber/InputNumber.d.ts +1 -1
- package/types/layout/sider.d.ts +1 -1
- package/types/loading/loading.d.ts +1 -1
- package/types/menu/Menu.d.ts +1 -1
- package/types/menu/MenuDivider.d.ts +1 -1
- package/types/menu/MenuGroup.d.ts +1 -1
- package/types/menu/MenuItem.d.ts +1 -1
- package/types/menu/SubMenu.d.ts +1 -1
- package/types/modal/Modal.d.ts +1 -1
- package/types/page/Page.d.ts +1 -1
- package/types/popconfirm/Popconfirm.d.ts +1 -1
- package/types/poptip/Poptip.d.ts +1 -1
- package/types/progress/Progress.d.ts +1 -1
- package/types/radio/Radio.d.ts +1 -1
- package/types/radio/RadioButton.d.ts +1 -1
- package/types/radio/RadioGroup.d.ts +1 -1
- package/types/rate/Rate.d.ts +2 -2
- package/types/select/Option.d.ts +1 -1
- package/types/select/Select.d.ts +1 -1
- package/types/skeleton/Skeleton.d.ts +1 -1
- package/types/skeleton/SkeletonAvatar.d.ts +1 -1
- package/types/skeleton/SkeletonButton.d.ts +1 -1
- package/types/skeleton/SkeletonImage.d.ts +1 -1
- package/types/skeleton/SkeletonText.d.ts +1 -1
- package/types/slider/Slider.d.ts +8 -7
- package/types/space/Space.d.ts +1 -1
- package/types/spin/Spin.d.ts +1 -1
- package/types/statCard/StatCard.d.ts +20 -0
- package/types/statCard/StatNumber.d.ts +26 -0
- package/types/switch/Switch.d.ts +1 -1
- package/types/table/Table.d.ts +2 -1
- package/types/tabs/TabPanel.d.ts +1 -1
- package/types/tabs/Tabs.d.ts +1 -1
- package/types/tag/Tag.d.ts +1 -1
- package/types/timeline/TimeLine.d.ts +1 -1
- package/types/timeline/TimeLineItem.d.ts +1 -1
- package/types/tooltip/Tooltip.d.ts +1 -1
- package/types/tree/Tree.d.ts +1 -1
- package/types/treeselect/TreeSelect.d.ts +1 -1
- package/types/upload/Upload.d.ts +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@import "../../styles/var.less";
|
|
2
2
|
|
|
3
|
-
.k-menu
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
.k-menu {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
6
|
margin: 0;
|
|
7
|
-
padding:
|
|
7
|
+
padding: 4px;
|
|
8
8
|
outline: 0;
|
|
9
|
+
gap: 4px;
|
|
9
10
|
font-size: 14px;
|
|
10
11
|
position: relative;
|
|
11
12
|
zoom: 1;
|
|
@@ -27,12 +28,10 @@
|
|
|
27
28
|
|
|
28
29
|
.k-menu-title-content,
|
|
29
30
|
.k-menu-submenu-title-content {
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
text-overflow: ellipsis;
|
|
32
31
|
opacity: 1;
|
|
33
32
|
white-space: nowrap;
|
|
34
33
|
transition: font-size 0.3s ease-in-out;
|
|
35
|
-
line-height: 1
|
|
34
|
+
line-height: 1;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
.k-menu-item-icon {
|
|
@@ -43,11 +42,8 @@
|
|
|
43
42
|
|
|
44
43
|
&-submenu-arrow {
|
|
45
44
|
transition: all 0.3s;
|
|
46
|
-
// position: absolute;
|
|
47
|
-
// right: 16px;
|
|
48
45
|
margin-left: 6px;
|
|
49
46
|
width: 14px;
|
|
50
|
-
// height: 14px;
|
|
51
47
|
text-indent: 0;
|
|
52
48
|
}
|
|
53
49
|
|
|
@@ -56,30 +52,21 @@
|
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
&-item,
|
|
59
|
-
.k-menu-submenu-title
|
|
60
|
-
|
|
61
|
-
.k-dropdown-menu-submenu-title {
|
|
62
|
-
padding: 10px 24px 10px 12px;
|
|
55
|
+
.k-menu-submenu-title {
|
|
56
|
+
// padding: 10px 24px 10px 12px;
|
|
63
57
|
box-sizing: border-box;
|
|
64
58
|
cursor: pointer;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
text-overflow: ellipsis;
|
|
67
|
-
white-space: nowrap;
|
|
68
59
|
position: relative;
|
|
69
60
|
transition: border 0.3s ease-in-out;
|
|
70
61
|
list-style: none;
|
|
71
|
-
height: 40px;
|
|
72
62
|
display: flex;
|
|
73
63
|
align-items: center;
|
|
64
|
+
line-height: 1;
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: var(--kui-color-hover);
|
|
67
|
+
}
|
|
74
68
|
}
|
|
75
69
|
|
|
76
|
-
.k-dropdown-menu-item {
|
|
77
|
-
height: 32px;
|
|
78
|
-
margin: 4px;
|
|
79
|
-
border-radius: var(--kui-border-radius);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.k-dropdown-menu-submenu-title,
|
|
83
70
|
.k-menu-submenu-title {
|
|
84
71
|
.k-menu-title-content {
|
|
85
72
|
width: calc(100% - 20px);
|
|
@@ -108,22 +95,8 @@
|
|
|
108
95
|
}
|
|
109
96
|
}
|
|
110
97
|
|
|
111
|
-
.k-dropdown-menu-item-active {
|
|
112
|
-
background-color: var(--kui-color-hover);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.k-dropdown-menu-item-selected {
|
|
116
|
-
color: var(--kui-color-main);
|
|
117
|
-
background-color: var(--kui-color-selected);
|
|
118
|
-
|
|
119
|
-
a {
|
|
120
|
-
color: var(--kui-color-main);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
98
|
.k-menu-submenu-selected {
|
|
125
|
-
|
|
126
|
-
> .k-menu-submenu-title {
|
|
99
|
+
.k-menu-submenu-title {
|
|
127
100
|
color: var(--kui-color-main);
|
|
128
101
|
}
|
|
129
102
|
}
|
|
@@ -140,327 +113,281 @@
|
|
|
140
113
|
}
|
|
141
114
|
}
|
|
142
115
|
}
|
|
116
|
+
.k-menu-submenu {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: 4px;
|
|
120
|
+
}
|
|
121
|
+
.k-menu-inline {
|
|
122
|
+
border-right: 1px solid var(--kui-color-border);
|
|
123
|
+
width: 100%;
|
|
143
124
|
|
|
144
|
-
.k-
|
|
145
|
-
.k-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
125
|
+
.k-menu-item,
|
|
126
|
+
.k-menu-submenu {
|
|
127
|
+
line-height: 1;
|
|
128
|
+
font-size: 14px;
|
|
129
|
+
list-style: none;
|
|
130
|
+
}
|
|
149
131
|
|
|
150
|
-
.k-
|
|
151
|
-
|
|
152
|
-
margin: 4px;
|
|
153
|
-
padding: 10px 24px 10px 12px;
|
|
132
|
+
.k-menu-item-group-title {
|
|
133
|
+
padding: 0 16px 0 32px;
|
|
154
134
|
box-sizing: border-box;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.k-menu {
|
|
138
|
+
border: 0;
|
|
139
|
+
list-style: none;
|
|
140
|
+
margin: 0;
|
|
141
|
+
padding: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.k-menu-item {
|
|
145
|
+
padding: 13px 16px;
|
|
155
146
|
border-radius: var(--kui-border-radius);
|
|
156
|
-
height: 32px;
|
|
157
147
|
|
|
158
|
-
|
|
159
|
-
|
|
148
|
+
&::after {
|
|
149
|
+
content: "";
|
|
150
|
+
position: absolute;
|
|
151
|
+
width: 0;
|
|
152
|
+
height: 0;
|
|
153
|
+
border-right: 3px solid var(--kui-color-main);
|
|
154
|
+
top: 50%;
|
|
155
|
+
right: 0;
|
|
156
|
+
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
160
157
|
}
|
|
161
158
|
|
|
162
159
|
&:active {
|
|
163
|
-
background
|
|
160
|
+
background: var(--kui-color-active);
|
|
164
161
|
}
|
|
165
162
|
}
|
|
166
163
|
|
|
167
|
-
.k-
|
|
168
|
-
|
|
169
|
-
* {
|
|
170
|
-
color: var(--kui-color-disabled);
|
|
171
|
-
cursor: not-allowed;
|
|
172
|
-
}
|
|
164
|
+
.k-menu-submenu-active .k-menu-submenu-title:active {
|
|
165
|
+
background: var(--kui-color-active);
|
|
173
166
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.k-menu {
|
|
177
|
-
//light-end
|
|
178
|
-
&-inline {
|
|
179
|
-
border-right: 1px solid var(--kui-color-border);
|
|
180
|
-
width: 100%;
|
|
181
|
-
display: inline-block;
|
|
182
|
-
|
|
183
|
-
.k-menu-item,
|
|
184
|
-
.k-menu-submenu {
|
|
185
|
-
line-height: 1;
|
|
186
|
-
font-size: 14px;
|
|
187
|
-
list-style: none;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.k-menu-item-group-title {
|
|
191
|
-
padding: 0 16px 0 32px;
|
|
192
|
-
box-sizing: border-box;
|
|
193
|
-
}
|
|
194
167
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
168
|
+
.k-menu-submenu-title {
|
|
169
|
+
// padding: 10px 36px 10px 12px;
|
|
170
|
+
padding-top: 13px;
|
|
171
|
+
padding-left: 12px;
|
|
172
|
+
padding-right: 12px;
|
|
173
|
+
padding-bottom: 13px;
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
position: relative;
|
|
176
|
+
border-radius: var(--kui-border-radius);
|
|
177
|
+
.k-menu-submenu-title-content {
|
|
178
|
+
flex: 1;
|
|
200
179
|
}
|
|
180
|
+
.k-menu-submenu-arrow {
|
|
181
|
+
// mode inline
|
|
182
|
+
// position: absolute;
|
|
183
|
+
// right: 8px;
|
|
184
|
+
// top: 50%;
|
|
185
|
+
// transform: translateY(-50%);
|
|
201
186
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
// width: calc(100% + 1px);
|
|
205
|
-
// width:100%;
|
|
206
|
-
box-sizing: border-box;
|
|
207
|
-
position: relative;
|
|
208
|
-
margin: 4px;
|
|
209
|
-
border-radius: var(--kui-border-radius);
|
|
210
|
-
display: flex;
|
|
211
|
-
align-items: center;
|
|
212
|
-
height: 40px;
|
|
213
|
-
|
|
214
|
-
&::after {
|
|
187
|
+
&::after,
|
|
188
|
+
&::before {
|
|
215
189
|
content: "";
|
|
216
190
|
position: absolute;
|
|
217
|
-
width:
|
|
218
|
-
height:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
right: 0;
|
|
191
|
+
width: 6px;
|
|
192
|
+
height: 1.5px;
|
|
193
|
+
background-color: currentcolor;
|
|
194
|
+
border-radius: 6px;
|
|
222
195
|
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
223
196
|
}
|
|
224
197
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.k-menu-submenu-active .k-menu-submenu-title:active {
|
|
231
|
-
background: var(--kui-color-active);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.k-menu-submenu-title {
|
|
235
|
-
padding: 10px 36px 10px 12px;
|
|
236
|
-
box-sizing: border-box;
|
|
237
|
-
position: relative;
|
|
238
|
-
margin: 4px;
|
|
239
|
-
border-radius: var(--kui-border-radius);
|
|
240
|
-
|
|
241
|
-
.k-menu-submenu-arrow {
|
|
242
|
-
// mode inline
|
|
243
|
-
position: absolute;
|
|
244
|
-
right: 8px;
|
|
245
|
-
top: 50%;
|
|
246
|
-
transform: translateY(-50%);
|
|
247
|
-
|
|
248
|
-
&::after,
|
|
249
|
-
&::before {
|
|
250
|
-
content: "";
|
|
251
|
-
position: absolute;
|
|
252
|
-
width: 6px;
|
|
253
|
-
height: 1.5px;
|
|
254
|
-
background-color: currentcolor;
|
|
255
|
-
border-radius: 6px;
|
|
256
|
-
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
&::before {
|
|
260
|
-
transform: rotate(45deg) translateX(-2.5px);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
&::after {
|
|
264
|
-
transform: rotate(-45deg) translateX(2.5px);
|
|
265
|
-
}
|
|
198
|
+
&::before {
|
|
199
|
+
transform: rotate(45deg) translateX(-2.5px);
|
|
266
200
|
}
|
|
267
201
|
|
|
268
|
-
|
|
269
|
-
|
|
202
|
+
&::after {
|
|
203
|
+
transform: rotate(-45deg) translateX(2.5px);
|
|
270
204
|
}
|
|
205
|
+
}
|
|
271
206
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
207
|
+
&:hover {
|
|
208
|
+
background-color: var(--kui-color-hover);
|
|
275
209
|
}
|
|
276
210
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
overflow: hidden;
|
|
280
|
-
position: static;
|
|
211
|
+
&:active {
|
|
212
|
+
background-color: var(--kui-color-active);
|
|
281
213
|
}
|
|
214
|
+
}
|
|
282
215
|
|
|
283
|
-
|
|
284
|
-
|
|
216
|
+
.k-menu-submenu-sub {
|
|
217
|
+
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
position: static;
|
|
220
|
+
}
|
|
285
221
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
222
|
+
> .k-menu-submenu-opened > .k-menu-submenu-title > .k-menu-submenu-arrow {
|
|
223
|
+
transform: translateY(-2px);
|
|
289
224
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
225
|
+
&::before {
|
|
226
|
+
transform: rotate(-45deg) translateX(-2.5px);
|
|
293
227
|
}
|
|
294
228
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
background-color: var(--kui-color-selected);
|
|
298
|
-
|
|
299
|
-
&::after {
|
|
300
|
-
display: none;
|
|
301
|
-
}
|
|
229
|
+
&::after {
|
|
230
|
+
transform: rotate(45deg) translateX(2.5px);
|
|
302
231
|
}
|
|
303
232
|
}
|
|
304
233
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
display: inline-block;
|
|
234
|
+
//light
|
|
235
|
+
.k-menu-item-selected {
|
|
236
|
+
background-color: var(--kui-color-selected);
|
|
309
237
|
|
|
310
|
-
|
|
311
|
-
|
|
238
|
+
&::after {
|
|
239
|
+
display: none;
|
|
312
240
|
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
313
243
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
}
|
|
244
|
+
.k-menu-vertical {
|
|
245
|
+
width: 100%;
|
|
246
|
+
border-right: 1px solid var(--kui-color-border);
|
|
247
|
+
display: inline-flex;
|
|
320
248
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
position: relative;
|
|
325
|
-
cursor: pointer;
|
|
326
|
-
font-size: 14px;
|
|
327
|
-
z-index: 3;
|
|
328
|
-
list-style: none;
|
|
329
|
-
}
|
|
249
|
+
.k-menu-item-selected {
|
|
250
|
+
background-color: var(--kui-color-selected);
|
|
251
|
+
}
|
|
330
252
|
|
|
331
|
-
|
|
253
|
+
.k-menu-submenu-active,
|
|
254
|
+
.k-menu-submenu-selected {
|
|
332
255
|
.k-menu-submenu-title {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
box-sizing: border-box;
|
|
337
|
-
line-height: 1;
|
|
338
|
-
border-radius: var(--kui-border-radius);
|
|
339
|
-
// display: flex;
|
|
340
|
-
// align-items: center;
|
|
256
|
+
color: var(--kui-color-main);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
341
259
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
260
|
+
.k-menu-item,
|
|
261
|
+
.k-menu-submenu-title {
|
|
262
|
+
padding: 13px 12px;
|
|
263
|
+
border-radius: var(--kui-border-radius);
|
|
345
264
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}
|
|
265
|
+
&:hover {
|
|
266
|
+
background-color: var(--kui-color-hover);
|
|
349
267
|
}
|
|
350
268
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
top: 50%;
|
|
269
|
+
&:active {
|
|
270
|
+
background-color: var(--kui-color-active);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
356
273
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
width: 6px;
|
|
363
|
-
height: 1.5px;
|
|
364
|
-
background-color: currentcolor;
|
|
365
|
-
border-radius: 6px;
|
|
366
|
-
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
367
|
-
}
|
|
274
|
+
> .k-menu-submenu > .k-menu-submenu-title > .k-menu-submenu-arrow {
|
|
275
|
+
position: absolute;
|
|
276
|
+
right: 8px;
|
|
277
|
+
margin: 0;
|
|
278
|
+
top: 50%;
|
|
368
279
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
280
|
+
// transform: translateY(-50%) rotate(-90deg);
|
|
281
|
+
&::after,
|
|
282
|
+
&::before {
|
|
283
|
+
content: "";
|
|
284
|
+
position: absolute;
|
|
285
|
+
width: 6px;
|
|
286
|
+
height: 1.5px;
|
|
287
|
+
background-color: currentcolor;
|
|
288
|
+
border-radius: 6px;
|
|
289
|
+
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
290
|
+
}
|
|
372
291
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
292
|
+
&::before {
|
|
293
|
+
transform: rotate(45deg) translateY(-2.5px);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&::after {
|
|
297
|
+
transform: rotate(-45deg) translateY(2.5px);
|
|
376
298
|
}
|
|
377
299
|
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.k-menu-horizontal {
|
|
303
|
+
border-bottom: 1px solid var(--kui-color-border);
|
|
304
|
+
white-space: nowrap;
|
|
305
|
+
font-size: 0;
|
|
306
|
+
line-height: 1;
|
|
307
|
+
flex-direction: row;
|
|
308
|
+
padding: 0;
|
|
309
|
+
gap: 16px;
|
|
310
|
+
padding: 0 16px;
|
|
311
|
+
.k-menu-icon-temp {
|
|
312
|
+
display: none;
|
|
313
|
+
}
|
|
378
314
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
white-space: nowrap;
|
|
382
|
-
font-size: 0;
|
|
315
|
+
.k-menu-item,
|
|
316
|
+
.k-menu-submenu {
|
|
383
317
|
line-height: 1;
|
|
318
|
+
position: relative;
|
|
319
|
+
cursor: pointer;
|
|
320
|
+
font-size: 14px;
|
|
321
|
+
z-index: 3;
|
|
322
|
+
display: inline-block;
|
|
323
|
+
list-style: none;
|
|
324
|
+
top: 1px;
|
|
325
|
+
vertical-align: bottom;
|
|
326
|
+
border-bottom: 2px solid transparent;
|
|
327
|
+
display: inline-flex;
|
|
328
|
+
align-items: center;
|
|
329
|
+
min-height: 20px;
|
|
330
|
+
}
|
|
384
331
|
|
|
385
|
-
|
|
386
|
-
|
|
332
|
+
.k-menu-item,
|
|
333
|
+
.k-menu-submenu-title {
|
|
334
|
+
padding: 10px 0;
|
|
335
|
+
box-sizing: border-box;
|
|
336
|
+
&:hover {
|
|
337
|
+
background: none;
|
|
387
338
|
}
|
|
339
|
+
}
|
|
388
340
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
position: relative;
|
|
394
|
-
cursor: pointer;
|
|
395
|
-
font-size: 14px;
|
|
396
|
-
z-index: 3;
|
|
397
|
-
display: inline-block;
|
|
398
|
-
list-style: none;
|
|
399
|
-
top: 1px;
|
|
400
|
-
vertical-align: bottom;
|
|
401
|
-
border-bottom: 2px solid transparent;
|
|
402
|
-
display: inline-flex;
|
|
403
|
-
align-items: center;
|
|
404
|
-
min-height: 20px;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
> .k-menu-item,
|
|
408
|
-
> .k-menu-submenu-title {
|
|
409
|
-
padding: 10px 0;
|
|
410
|
-
box-sizing: border-box;
|
|
411
|
-
}
|
|
341
|
+
.k-menu-submenu-title {
|
|
342
|
+
padding: 10px 0;
|
|
343
|
+
box-sizing: border-box;
|
|
344
|
+
}
|
|
412
345
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
346
|
+
.k-menu-submenu {
|
|
347
|
+
.k-menu-item,
|
|
348
|
+
.k-menu-submenu {
|
|
349
|
+
display: block;
|
|
416
350
|
}
|
|
417
351
|
|
|
418
352
|
.k-menu-submenu {
|
|
419
|
-
|
|
420
|
-
.k-menu-submenu {
|
|
421
|
-
display: block;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.k-menu-submenu {
|
|
425
|
-
position: relative;
|
|
353
|
+
position: relative;
|
|
426
354
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
355
|
+
.k-menu-submenu-sub {
|
|
356
|
+
top: 0;
|
|
357
|
+
margin-left: 5px;
|
|
431
358
|
}
|
|
432
359
|
}
|
|
360
|
+
}
|
|
433
361
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
362
|
+
> .k-menu-submenu-active > .k-menu-submenu-title > .k-menu-submenu-arrow {
|
|
363
|
+
transform: rotate(-180deg);
|
|
364
|
+
}
|
|
437
365
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
366
|
+
.k-menu-item-group-title {
|
|
367
|
+
font-size: 12px;
|
|
368
|
+
line-height: 1;
|
|
369
|
+
padding: 0 12px;
|
|
370
|
+
box-sizing: border-box;
|
|
371
|
+
}
|
|
444
372
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
373
|
+
//light
|
|
374
|
+
> .k-menu-item-selected,
|
|
375
|
+
> .k-menu-submenu-selected,
|
|
376
|
+
> .k-menu-item-active,
|
|
377
|
+
> .k-menu-submenu-active {
|
|
378
|
+
border-bottom-color: var(--kui-color-main);
|
|
379
|
+
background-color: transparent;
|
|
380
|
+
}
|
|
453
381
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
382
|
+
.k-menu-submenu {
|
|
383
|
+
.k-menu-item-selected {
|
|
384
|
+
background-color: var(--kui-color-selected);
|
|
458
385
|
}
|
|
459
386
|
}
|
|
387
|
+
}
|
|
460
388
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
389
|
+
.k-menu-item-group-list {
|
|
390
|
+
margin: 0;
|
|
464
391
|
}
|
|
465
392
|
|
|
466
393
|
.k-menu-inline-collapsed {
|
|
@@ -470,7 +397,6 @@
|
|
|
470
397
|
> .k-menu-submenu > .k-menu-submenu-title {
|
|
471
398
|
text-overflow: clip;
|
|
472
399
|
transition: padding 0.2s 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
473
|
-
padding: 0 calc(50% - 12px);
|
|
474
400
|
|
|
475
401
|
> .k-menu-item-icon {
|
|
476
402
|
transition: font-size 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
@@ -496,13 +422,10 @@
|
|
|
496
422
|
}
|
|
497
423
|
}
|
|
498
424
|
|
|
499
|
-
.k-menu-submenu-popup
|
|
500
|
-
.k-dropdown-menu-submenu-popup {
|
|
425
|
+
.k-menu-submenu-popup {
|
|
501
426
|
position: absolute;
|
|
502
427
|
z-index: 1001;
|
|
503
|
-
|
|
504
|
-
> .k-menu-submenu-sub,
|
|
505
|
-
> .k-dropdown-menu-submenu-sub {
|
|
428
|
+
.k-menu-submenu-sub {
|
|
506
429
|
box-sizing: content-box;
|
|
507
430
|
min-width: 160px;
|
|
508
431
|
// margin-left: 5px;
|
|
@@ -523,33 +446,14 @@
|
|
|
523
446
|
background-color: var(--kui-color-back-10);
|
|
524
447
|
border: 1px solid var(--kui-color-border);
|
|
525
448
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
&:first-child {
|
|
532
|
-
border-top-left-radius: var(--kui-border-radius);
|
|
533
|
-
border-top-right-radius: var(--kui-border-radius);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
&:last-child {
|
|
537
|
-
border-bottom-left-radius: var(--kui-border-radius);
|
|
538
|
-
border-bottom-right-radius: var(--kui-border-radius);
|
|
539
|
-
}
|
|
449
|
+
.k-menu-item {
|
|
450
|
+
padding: 8px 12px;
|
|
451
|
+
}
|
|
452
|
+
.k-menu-submenu-title {
|
|
453
|
+
padding: 8px 12px;
|
|
540
454
|
}
|
|
541
|
-
|
|
542
455
|
.k-menu-item-group {
|
|
543
456
|
line-height: 1;
|
|
544
|
-
|
|
545
|
-
&:last-child {
|
|
546
|
-
.k-menu-item {
|
|
547
|
-
&:last-child {
|
|
548
|
-
border-bottom-left-radius: var(--kui-border-radius);
|
|
549
|
-
border-bottom-right-radius: var(--kui-border-radius);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
457
|
}
|
|
554
458
|
}
|
|
555
459
|
}
|
|
@@ -579,9 +483,8 @@
|
|
|
579
483
|
.k-menu-submenu-title {
|
|
580
484
|
// overflow: visible;
|
|
581
485
|
// display: block;
|
|
582
|
-
padding
|
|
486
|
+
padding: 12px calc(50% - 8px);
|
|
583
487
|
transition: padding 200ms 200ms ease-in-out;
|
|
584
|
-
// padding-right: calc(50% - 12px);
|
|
585
488
|
}
|
|
586
489
|
|
|
587
490
|
.k-menu-submenu-selected {
|
|
@@ -590,10 +493,6 @@
|
|
|
590
493
|
}
|
|
591
494
|
}
|
|
592
495
|
|
|
593
|
-
> .k-menu-submenu {
|
|
594
|
-
padding: 0;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
496
|
.k-menu-item-icon {
|
|
598
497
|
font-size: 16px;
|
|
599
498
|
transition: font-size 0.3s ease-in-out;
|
|
@@ -603,13 +502,6 @@
|
|
|
603
502
|
.k-menu-submenu-arrow {
|
|
604
503
|
opacity: 0;
|
|
605
504
|
}
|
|
606
|
-
|
|
607
|
-
.k-menu-title-content,
|
|
608
|
-
> .k-menu-submenu-title-content {
|
|
609
|
-
opacity: 0;
|
|
610
|
-
flex: auto;
|
|
611
|
-
min-width: 0;
|
|
612
|
-
}
|
|
613
505
|
}
|
|
614
506
|
|
|
615
507
|
@keyframes k-menu-zoom {
|
|
@@ -624,15 +516,13 @@
|
|
|
624
516
|
}
|
|
625
517
|
}
|
|
626
518
|
|
|
627
|
-
.k-menu-submenu-fade-enter-active
|
|
628
|
-
.k-dropdown-menu-submenu-fade-enter-active {
|
|
519
|
+
.k-menu-submenu-fade-enter-active {
|
|
629
520
|
animation-fill-mode: both;
|
|
630
521
|
transform-origin: 0% 0%;
|
|
631
522
|
animation: k-menu-zoom 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
632
523
|
}
|
|
633
524
|
|
|
634
|
-
.k-menu-submenu-fade-leave-active
|
|
635
|
-
.k-dropdown-menu-submenu-fade-leave-active {
|
|
525
|
+
.k-menu-submenu-fade-leave-active {
|
|
636
526
|
animation-fill-mode: both;
|
|
637
527
|
transform-origin: 0% 0%;
|
|
638
528
|
animation: k-menu-zoom 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) reverse;
|
|
@@ -650,15 +540,6 @@
|
|
|
650
540
|
}
|
|
651
541
|
}
|
|
652
542
|
|
|
653
|
-
.k-dropdown-enter-active {
|
|
654
|
-
animation: drop-down 0.3s;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
.k-dropdown-leave-active {
|
|
658
|
-
animation: drop-down 0.3s reverse;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.k-dropdown-menu-submenu-popup-enter-active,
|
|
662
543
|
.k-menu-submenu-popup-enter-active {
|
|
663
544
|
&[k-placement="bottom-left"],
|
|
664
545
|
&[k-placement="bottom-right"],
|
|
@@ -676,7 +557,6 @@
|
|
|
676
557
|
}
|
|
677
558
|
}
|
|
678
559
|
|
|
679
|
-
.k-dropdown-menu-submenu-popup-leave-active,
|
|
680
560
|
.k-menu-submenu-popup-leave-active {
|
|
681
561
|
&[k-placement="left-bottom"],
|
|
682
562
|
&[k-placement="right-top"],
|
|
@@ -693,32 +573,6 @@
|
|
|
693
573
|
animation: drop-down 0.3s reverse;
|
|
694
574
|
}
|
|
695
575
|
}
|
|
696
|
-
.k-dropdown-menu-submenu-title-content{
|
|
697
|
-
width: calc(100% - 20px);
|
|
698
|
-
flex: 1;
|
|
699
|
-
}
|
|
700
|
-
.k-dropdown-menu-submenu-arrow {
|
|
701
|
-
position: absolute;
|
|
702
|
-
// top: 50%;
|
|
703
|
-
right: 6px;
|
|
704
|
-
margin: 0px;
|
|
705
|
-
&::after,
|
|
706
|
-
&::before {
|
|
707
|
-
content: "";
|
|
708
|
-
background-color: currentcolor;
|
|
709
|
-
width: 6px;
|
|
710
|
-
height: 1.5px;
|
|
711
|
-
position: absolute;
|
|
712
|
-
border-radius: 6px;
|
|
713
|
-
transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
714
|
-
}
|
|
715
|
-
&::after {
|
|
716
|
-
transform: rotate(-45deg) translateY(2.5px);
|
|
717
|
-
}
|
|
718
|
-
&::before {
|
|
719
|
-
transform: rotate(45deg) translateY(-2.5px);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
576
|
|
|
723
577
|
.k-collapse-slide-enter-active {
|
|
724
578
|
animation: slide 0.2s ease-in-out;
|