kui-vue 3.6.5 → 3.6.8
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/alert/alert.jsx +26 -7
- package/components/alert/demo/basic.md +4 -4
- package/components/alert/demo/icon.md +15 -6
- package/components/alert/styles/index.less +42 -14
- package/components/avatar/styles/index.less +5 -5
- package/components/backtop/styles/index.less +10 -14
- package/components/badge/styles/index.less +7 -13
- package/components/breadcrumb/index.md +7 -6
- package/components/breadcrumb/styles/index.less +7 -21
- package/components/button/demo/color.md +0 -1
- package/components/button/demo/disabled.md +6 -0
- package/components/button/demo/light.md +1 -1
- package/components/button/styles/index.less +165 -111
- package/components/card/card.jsx +1 -1
- package/components/card/demo/basic.md +1 -1
- package/components/card/demo/border.md +1 -1
- package/components/card/demo/notitle.md +1 -1
- package/components/card/styles/index.less +5 -4
- package/components/carousel/carousel.jsx +186 -175
- package/components/carousel/styles/index.less +11 -16
- package/components/checkbox/checkbox.jsx +2 -2
- package/components/checkbox/styles/index.less +21 -29
- package/components/collapse/styles/index.less +7 -11
- package/components/colorPicker/styles/index.less +83 -71
- package/components/config/context.js +21 -0
- package/components/config/index.js +10 -2
- package/components/datePicker/datepicker.jsx +6 -7
- package/components/datePicker/styles/index.less +54 -57
- package/components/descriptions/styles/index.less +8 -17
- package/components/divider/styles/index.less +20 -18
- package/components/drawer/styles/animal.less +0 -1
- package/components/drawer/styles/index.less +8 -11
- package/components/dropdown/styles/index.less +26 -34
- package/components/empty/index.md +3 -2
- package/components/empty/styles/index.less +2 -2
- package/components/flex/demo/align.md +1 -1
- package/components/flex/demo/basic.md +1 -2
- package/components/flex/index.md +1 -1
- package/components/form/demo/dynamicvalid.md +1 -3
- package/components/form/demo/info.md +22 -12
- package/components/form/demo/valid.md +6 -6
- package/components/form/demo/withmodal.md +2 -2
- package/components/form/styles/index.less +10 -11
- package/components/grid/index.md +4 -1
- package/components/grid/styles/index.less +1 -1
- package/components/icon/demo/search.vue +44 -21
- package/components/icon/index.md +1 -1
- package/components/icon/styles/index.less +7 -8
- package/components/image/index.md +7 -1
- package/components/image/preview.jsx +17 -4
- package/components/image/styles/index.less +36 -42
- package/components/index.js +9 -9
- package/components/input/demo/icon.md +0 -1
- package/components/input/demo/suffix.md +2 -7
- package/components/input/input.jsx +31 -29
- package/components/input/inputBox.jsx +13 -0
- package/components/input/inputGroup.jsx +2 -0
- package/components/input/styles/index.less +47 -53
- package/components/input/textarea.jsx +1 -1
- package/components/inputNumber/demo/basic.md +3 -3
- package/components/inputNumber/demo/ffix.md +2 -2
- package/components/inputNumber/inputNumber.jsx +2 -2
- package/components/inputNumber/styles/index.less +36 -42
- package/components/layout/demo/basic.md +5 -5
- package/components/layout/demo/info.md +1 -34
- package/components/layout/demo/layout1.md +7 -7
- package/components/layout/demo/layout2.md +6 -7
- package/components/layout/demo/layout3.md +5 -5
- package/components/layout/demo/layout4.md +12 -8
- package/components/layout/demo/layout5.md +6 -2
- package/components/layout/styles/index.less +1 -18
- package/components/loading/demo/info.md +3 -3
- package/components/loading/styles/index.less +31 -31
- package/components/menu/index.md +14 -3
- package/components/menu/menu.jsx +1 -1
- package/components/menu/recursiveMenu.jsx +1 -0
- package/components/menu/styles/index.less +43 -55
- package/components/message/demo/basic.md +0 -7
- package/components/message/index.js +0 -4
- package/components/message/index.md +0 -1
- package/components/message/inner.jsx +15 -2
- package/components/message/styles/index.less +12 -17
- package/components/modal/demo/confirm.md +6 -6
- package/components/modal/demo/global.md +0 -15
- package/components/modal/demo/info.md +0 -1
- package/components/modal/index.js +5 -34
- package/components/modal/index.md +1 -2
- package/components/modal/modal.jsx +2 -1
- package/components/modal/styles/index.less +14 -21
- package/components/notice/demo/basic.md +0 -9
- package/components/notice/demo/close.md +4 -0
- package/components/notice/demo/types.md +1 -2
- package/components/notice/index.js +1 -19
- package/components/notice/styles/index.less +16 -22
- package/components/page/page.jsx +5 -4
- package/components/page/styles/index.less +49 -50
- package/components/popconfirm/demo/basic.md +11 -18
- package/components/popconfirm/demo/info.md +3 -1
- package/components/popconfirm/demo/local.md +14 -20
- package/components/popconfirm/demo/placement.md +3 -9
- package/components/popconfirm/index.md +3 -2
- package/components/popconfirm/styles/index.less +9 -15
- package/components/poptip/styles/index.less +44 -49
- package/components/progress/progress.jsx +23 -5
- package/components/progress/styles/index.less +20 -19
- package/components/radio/index.md +7 -7
- package/components/radio/radio.jsx +5 -1
- package/components/radio/styles/index.less +26 -32
- package/components/rate/index.md +11 -11
- package/components/rate/styles/index.less +4 -7
- package/components/select/select.jsx +1 -1
- package/components/select/styles/index.less +38 -51
- package/components/skeleton/index.md +5 -1
- package/components/skeleton/styles/index.less +21 -19
- package/components/slider/slider.jsx +25 -13
- package/components/slider/styles/index.less +13 -12
- package/components/space/space.jsx +2 -1
- package/components/spin/styles/index.less +25 -40
- package/components/statCard/countup.jsx +8 -0
- package/components/statCard/demo/card.md +20 -6
- package/components/statCard/index.md +17 -12
- package/components/statCard/statCard.jsx +16 -1
- package/components/statCard/styles/index.less +9 -6
- package/components/styles/less-css-var.less +309 -0
- package/components/styles/less-var.less +296 -0
- package/components/styles/sys.less +19 -15
- package/components/switch/styles/index.less +9 -24
- package/components/table/index.md +1 -1
- package/components/table/styles/index.less +63 -59
- package/components/tabs/styles/index.less +22 -24
- package/components/tag/demo/basic.md +0 -8
- package/components/tag/index.md +2 -1
- package/components/tag/styles/index.less +40 -41
- package/components/tag/tag.jsx +2 -2
- package/components/timeline/styles/index.less +8 -14
- package/components/tooltip/styles/index.less +35 -40
- package/components/tree/index.md +15 -15
- package/components/tree/styles/index.less +36 -56
- package/components/tree/tree.jsx +1 -0
- package/components/treeselect/index.md +1 -1
- package/components/treeselect/styles/index.less +26 -32
- package/components/treeselect/treeselect.jsx +1 -1
- package/components/upload/demo/forms.md +0 -1
- package/components/upload/fileList.jsx +6 -3
- package/components/upload/styles/index.less +33 -29
- package/components/upload/upload.jsx +5 -1
- package/components/utils/vue.js +4 -2
- package/dist/k-ui.cjs.js +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.d.ts +92 -74
- package/dist/k-ui.esm.js +2 -2
- package/dist/k-ui.umd.js +2 -2
- package/dist/locale/de.js +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/ua.js +2 -2
- package/dist/locale/uk.js +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/zh-CN.js +1 -1
- package/dist/locale/zh-TW.js +1 -1
- package/package.json +15 -16
- package/types/alert/Alert.d.ts +2 -0
- package/types/card/Card.d.ts +1 -1
- package/types/checkbox/Checkbox.d.ts +1 -0
- package/types/datePicker/DatePicker.d.ts +1 -0
- package/types/index.d.ts +8 -8
- package/types/input/Input.d.ts +1 -0
- package/types/input/InputGroup.d.ts +2 -0
- package/types/input/TextArea.d.ts +1 -0
- package/types/inputNumber/InputNumber.d.ts +1 -0
- package/types/page/Page.d.ts +1 -0
- package/types/select/Select.d.ts +1 -0
- package/types/statCard/StatCard.d.ts +5 -0
- package/types/tag/Tag.d.ts +1 -0
- package/types/treeselect/TreeSelect.d.ts +1 -0
- package/components/dropdown/demo/custom.md +0 -31
- package/components/icon/lib/dist.json +0 -1
- package/components/icon/lib/kui-icons.js +0 -1
- package/components/icon/lib/sprite.svg +0 -1
- package/components/styles/color.less +0 -209
- package/components/styles/var.less +0 -207
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "../../styles/var.less";
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
3
|
.k-dropdown {
|
|
4
4
|
font-size: 12px;
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
position: absolute;
|
|
7
7
|
z-index: 1001;
|
|
8
8
|
.k-dropdown-content {
|
|
9
|
-
background: var(--kui-color-
|
|
10
|
-
// box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
9
|
+
background: var(--kui-color-bg-pop);
|
|
11
10
|
border-radius: var(--kui-border-radius);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.k-dropdown-menu {
|
|
15
14
|
min-width: 150px;
|
|
16
|
-
border: 1px solid var(--kui-color-border);
|
|
15
|
+
border: 1px solid var(--kui-color-pop-border);
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
.k-dropdown-menu-item-icon {
|
|
@@ -22,17 +21,17 @@
|
|
|
22
21
|
|
|
23
22
|
#ot {
|
|
24
23
|
stroke-width: 1px;
|
|
25
|
-
stroke: var(--kui-color-border);
|
|
24
|
+
stroke: var(--kui-color-pop-border);
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.k-dropdown-menu {
|
|
30
|
-
border: 1px solid var(--kui-color-border);
|
|
29
|
+
border: 1px solid var(--kui-color-pop-border);
|
|
31
30
|
}
|
|
32
31
|
.k-dropdown-menu,
|
|
33
32
|
.k-dropdown-menu-submenu-sub {
|
|
34
|
-
box-shadow:
|
|
35
|
-
background: var(--kui-color-
|
|
33
|
+
box-shadow: var(--kui-pop-shadow);
|
|
34
|
+
background: var(--kui-color-bg-pop);
|
|
36
35
|
border-radius: var(--kui-border-radius);
|
|
37
36
|
display: flex;
|
|
38
37
|
flex-direction: column;
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
box-sizing: border-box;
|
|
43
42
|
font-size: 14px;
|
|
44
43
|
list-style: none;
|
|
45
|
-
color: var(--kui-color-
|
|
44
|
+
color: var(--kui-color-text);
|
|
46
45
|
.k-dropdown-menu-item {
|
|
47
46
|
padding: 8px 12px;
|
|
48
47
|
box-sizing: border-box;
|
|
@@ -53,21 +52,21 @@
|
|
|
53
52
|
display: flex;
|
|
54
53
|
align-items: center;
|
|
55
54
|
&:hover {
|
|
56
|
-
background-color: var(--kui-color-hover);
|
|
55
|
+
background-color: var(--kui-color-item-hover);
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
&:active {
|
|
60
|
-
background-color: var(--kui-color-active);
|
|
59
|
+
background-color: var(--kui-color-item-active);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
.k-dropdown-menu-submenu {
|
|
64
63
|
border-radius: var(--kui-border-radius);
|
|
65
64
|
&:hover {
|
|
66
|
-
background-color: var(--kui-color-hover);
|
|
65
|
+
background-color: var(--kui-color-item-hover);
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
&:active {
|
|
70
|
-
background-color: var(--kui-color-active);
|
|
69
|
+
background-color: var(--kui-color-item-active);
|
|
71
70
|
}
|
|
72
71
|
.k-dropdown-menu-submenu-title {
|
|
73
72
|
display: flex;
|
|
@@ -82,13 +81,13 @@
|
|
|
82
81
|
flex: 1;
|
|
83
82
|
}
|
|
84
83
|
.k-dropdown-menu-submenu-arrow {
|
|
85
|
-
// top: 50%;
|
|
86
84
|
width: 12px;
|
|
87
85
|
height: 12px;
|
|
88
86
|
flex-shrink: 0;
|
|
89
87
|
display: inline-flex;
|
|
90
88
|
align-items: center;
|
|
91
89
|
justify-content: center;
|
|
90
|
+
color: var(--kui-color-placeholder);
|
|
92
91
|
&::after,
|
|
93
92
|
&::before {
|
|
94
93
|
content: "";
|
|
@@ -110,7 +109,7 @@
|
|
|
110
109
|
.k-dropdown-menu-item-disabled,
|
|
111
110
|
.k-dropdown-menu-submenu-disabled {
|
|
112
111
|
* {
|
|
113
|
-
color: var(--kui-color-disabled);
|
|
112
|
+
color: var(--kui-color-text-disabled);
|
|
114
113
|
cursor: not-allowed;
|
|
115
114
|
}
|
|
116
115
|
}
|
|
@@ -118,15 +117,18 @@
|
|
|
118
117
|
.k-dropdown-menu-submenu-popup {
|
|
119
118
|
position: absolute;
|
|
120
119
|
z-index: 1001;
|
|
121
|
-
border: 1px solid var(--kui-color-border);
|
|
120
|
+
border: 1px solid var(--kui-color-pop-border);
|
|
122
121
|
border-radius: var(--kui-border-radius);
|
|
123
|
-
box-shadow:
|
|
122
|
+
box-shadow: var(--kui-pop-shadow);
|
|
123
|
+
|
|
124
124
|
.k-dropdown-menu-submenu-sub {
|
|
125
125
|
box-shadow: none;
|
|
126
126
|
border: 0;
|
|
127
127
|
}
|
|
128
128
|
.k-menu {
|
|
129
129
|
border: 0;
|
|
130
|
+
padding: 0;
|
|
131
|
+
background-color: var(--kui-color-bg-pop);
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
134
|
.k-dropdown-menu-title-content {
|
|
@@ -134,7 +136,7 @@
|
|
|
134
136
|
align-items: center;
|
|
135
137
|
gap: 6px;
|
|
136
138
|
a {
|
|
137
|
-
color: var(--kui-color-
|
|
139
|
+
color: var(--kui-color-text);
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
.k-dropdown-menu-item-divider {
|
|
@@ -156,19 +158,13 @@
|
|
|
156
158
|
display: flex;
|
|
157
159
|
width: 24px;
|
|
158
160
|
height: 9px;
|
|
159
|
-
color: var(--kui-color-
|
|
161
|
+
color: var(--kui-color-bg-pop);
|
|
160
162
|
|
|
161
|
-
svg {
|
|
162
|
-
|
|
163
|
-
}
|
|
163
|
+
// svg {
|
|
164
|
+
// filter: drop-shadow(0px 2px 1px var(--kui-color-shadow));
|
|
165
|
+
// }
|
|
164
166
|
}
|
|
165
167
|
|
|
166
|
-
// &[k-placement^=top] {
|
|
167
|
-
// margin-top: -3px;
|
|
168
|
-
// }
|
|
169
|
-
// &[k-placement^=bottom] {
|
|
170
|
-
// margin-top: 3px;
|
|
171
|
-
// }
|
|
172
168
|
&[k-placement^="top"] {
|
|
173
169
|
.k-dropdown-arrow {
|
|
174
170
|
bottom: 6px;
|
|
@@ -233,7 +229,7 @@
|
|
|
233
229
|
&[k-placement^="left"] {
|
|
234
230
|
.k-dropdown-arrow {
|
|
235
231
|
right: 8px;
|
|
236
|
-
box-shadow: 3px -3px 7px
|
|
232
|
+
box-shadow: 3px -3px 7px var(--kui-color-shadow);
|
|
237
233
|
}
|
|
238
234
|
|
|
239
235
|
.k-dropdown-body {
|
|
@@ -263,7 +259,7 @@
|
|
|
263
259
|
&[k-placement^="right"] {
|
|
264
260
|
.k-dropdown-arrow {
|
|
265
261
|
left: 8px;
|
|
266
|
-
box-shadow: -3px 3px 7px
|
|
262
|
+
box-shadow: -3px 3px 7px var(--kui-color-shadow);
|
|
267
263
|
}
|
|
268
264
|
|
|
269
265
|
.k-dropdown-body {
|
|
@@ -350,7 +346,3 @@
|
|
|
350
346
|
animation: k-menu-zoom 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
351
347
|
}
|
|
352
348
|
}
|
|
353
|
-
.k-dropdown-menu-submenu-popup,
|
|
354
|
-
.k-dropdown {
|
|
355
|
-
// display: block !important;
|
|
356
|
-
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
## API
|
|
2
|
+
|
|
2
3
|
| 属性 | 说明 | 类型 | 默认值 |
|
|
3
|
-
|
|
4
|
+
| ----------- | -------------------------------------------- | --------------- | ------ |
|
|
4
5
|
| description | 自定义描述内容 | [String、slot ] | - |
|
|
5
6
|
| imageStyle | 图片样式 | Object | - |
|
|
6
|
-
| image | 设置显示图片,为 string 时表示自定义图片地址 | [String、slot ] | - |
|
|
7
|
+
| image | 设置显示图片,为 string 时表示自定义图片地址 | [String、slot ] | - |
|
package/components/flex/index.md
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| align | 对齐方式 | 参考 [align-items](https://developer.mozilla.org/zh-CN/docs/Web/CSS/align-items) | center |
|
|
6
6
|
| justify | 设置元素在主轴方向上的对齐方式 | 参考 [justify-content](https://developer.mozilla.org/zh-CN/docs/Web/CSS/justify-content) | center |
|
|
7
7
|
| vertical | 是否垂直显示 | Boolean | false |
|
|
8
|
-
| size | 间距大小 | `small`,`middle`,`large`,Number,Array
|
|
8
|
+
| size | 间距大小 | `small`,`middle`,`large`,Number,Array | - |
|
|
9
9
|
| wrap | 是否换行 | Boolean | false |
|
|
@@ -91,9 +91,7 @@ const add = () => {
|
|
|
91
91
|
form.value.webs.push(item);
|
|
92
92
|
};
|
|
93
93
|
const remove = (index) => {
|
|
94
|
-
|
|
95
|
-
// let index = this.form.webs.indexOf(item)
|
|
96
|
-
form.value.webs.splice(index, 1);
|
|
94
|
+
form.value.webs.splice(index, 1);
|
|
97
95
|
};
|
|
98
96
|
const submit = () => {
|
|
99
97
|
formRef.value.validate((valid) => {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# Form 表单
|
|
2
|
+
|
|
2
3
|
具有数据收集、校验和提交功能的表单,包含复选框、单选框、输入框、下拉选择框等元素。
|
|
3
4
|
|
|
4
5
|
## 何时使用
|
|
6
|
+
|
|
5
7
|
- 用于创建一个实体或收集信息。
|
|
6
8
|
- 需要对输入的数据类型进行校验时。
|
|
7
9
|
|
|
@@ -10,21 +12,29 @@
|
|
|
10
12
|
在 `Modal` `Drawer` 中 , 如果要在打开Modal 或者 Drawer 的时候对表单 进行重置, 请使用异步 :
|
|
11
13
|
|
|
12
14
|
```javascript
|
|
13
|
-
// 组件在open 的之前 也就是没有完全渲染完毕, 这个时候 读取 dom 对象是 undefined,
|
|
15
|
+
// 组件在open 的之前 也就是没有完全渲染完毕, 这个时候 读取 dom 对象是 undefined,
|
|
14
16
|
// 子组件没有渲染完毕 this.$refs.form 为 undefined, 所以无法重置
|
|
15
17
|
// 使用异步方式
|
|
16
18
|
// 当然也在 Modal 或者 Drawer @close 的时候 重置表单
|
|
17
|
-
export default{
|
|
18
|
-
methods
|
|
19
|
-
|
|
20
|
-
this
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
export default {
|
|
20
|
+
methods: {
|
|
21
|
+
open() {
|
|
22
|
+
this.visible = true; //先打开弹窗
|
|
23
|
+
this.reset();
|
|
24
|
+
},
|
|
25
|
+
close() {
|
|
26
|
+
this.reset();
|
|
27
|
+
this.visible = false; //后关闭弹窗
|
|
28
|
+
},
|
|
29
|
+
reset() {
|
|
30
|
+
this.$nextTick(() => {
|
|
31
|
+
this.$refs.form.reset();
|
|
32
|
+
});
|
|
23
33
|
// 或者
|
|
24
34
|
setTimeout(() => {
|
|
25
|
-
this.$refs.form.reset()
|
|
35
|
+
this.$refs.form.reset();
|
|
26
36
|
}, 0);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
```
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
```
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
</RadioGroup>
|
|
23
23
|
</FormItem>
|
|
24
24
|
<FormItem label="E-mail" prop="email">
|
|
25
|
-
<Input clearable />
|
|
25
|
+
<Input clearable placeholder="Email"/>
|
|
26
26
|
</FormItem>
|
|
27
27
|
<FormItem label="Number" prop="number">
|
|
28
|
-
<InputNumber />
|
|
28
|
+
<InputNumber placeholder="Number"/>
|
|
29
29
|
</FormItem>
|
|
30
30
|
<FormItem label="Password" prop="password">
|
|
31
|
-
<Input type="password" />
|
|
31
|
+
<Input type="password" placeholder="password"/>
|
|
32
32
|
</FormItem>
|
|
33
33
|
<FormItem label="Confirm Password" prop="repassword">
|
|
34
|
-
<Input type="password" />
|
|
34
|
+
<Input type="password" placeholder="Confirm Password"/>
|
|
35
35
|
</FormItem>
|
|
36
36
|
<FormItem label="Phone Number" prop="phone">
|
|
37
|
-
<Input />
|
|
37
|
+
<Input placeholder="Phone Number"/>
|
|
38
38
|
</FormItem>
|
|
39
39
|
<FormItem label="Captcha" prop="captcha">
|
|
40
|
-
<Input
|
|
40
|
+
<Input placeholder="Captcha"/>
|
|
41
41
|
<Button
|
|
42
42
|
slot="suffix"
|
|
43
43
|
:size="size"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:labelCol="labelCol"
|
|
14
14
|
:wrapperCol="wrapperCol"
|
|
15
15
|
>
|
|
16
|
-
<FormItem label="
|
|
16
|
+
<FormItem label="Group" prop="name">
|
|
17
17
|
<Input />
|
|
18
18
|
</FormItem>
|
|
19
19
|
<FormItem label="UserList">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@submit="onSubmit"
|
|
51
51
|
ref="formRef"
|
|
52
52
|
>
|
|
53
|
-
<FormItem label="
|
|
53
|
+
<FormItem label="Username" prop="username">
|
|
54
54
|
<Input placeholder="请输入姓名" />
|
|
55
55
|
</FormItem>
|
|
56
56
|
<FormItem label="Age" prop="age">
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
@import "../../styles/var.less";
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
3
|
.k-form {
|
|
4
|
+
padding: 3px;
|
|
5
|
+
box-sizing: border-box;
|
|
4
6
|
.k-form-item {
|
|
5
7
|
margin-bottom: 24px;
|
|
6
8
|
vertical-align: top;
|
|
7
9
|
zoom: 1;
|
|
8
|
-
color: var(--kui-color-
|
|
10
|
+
color: var(--kui-color-text);
|
|
9
11
|
|
|
10
|
-
// margin-bottom: 5px;
|
|
11
12
|
.k-form-item {
|
|
12
13
|
margin-bottom: 0;
|
|
13
14
|
flex: 1;
|
|
@@ -76,9 +77,9 @@
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
.k-form-item-error {
|
|
79
|
-
.k-input[
|
|
80
|
+
.k-input[multiple].k-input-focus {
|
|
80
81
|
border-color: var(--kui-color-danger);
|
|
81
|
-
box-shadow: 0 0 0 2px var(--kui-color-danger-
|
|
82
|
+
box-shadow: 0 0 0 2px var(--kui-color-danger-9);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
.k-input,
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
&:hover,
|
|
92
93
|
&:focus {
|
|
93
94
|
border-color: var(--kui-color-danger);
|
|
94
|
-
box-shadow: 0 0 0 2px var(--kui-color-danger-
|
|
95
|
+
box-shadow: 0 0 0 2px var(--kui-color-danger-9);
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -118,26 +119,24 @@
|
|
|
118
119
|
.k-slider .k-slider-thumb {
|
|
119
120
|
border-color: var(--kui-color-danger);
|
|
120
121
|
}
|
|
121
|
-
|
|
122
122
|
|
|
123
123
|
.k-radio-group .k-btn {
|
|
124
|
-
border:1px solid
|
|
124
|
+
border: 1px solid var(--kui-color-danger);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.k-select-opened .k-select,
|
|
128
128
|
.k-tree-select-opened .k-tree-select {
|
|
129
|
-
box-shadow: 0 0 0 2px var(--kui-color-danger-
|
|
129
|
+
box-shadow: 0 0 0 2px var(--kui-color-danger-9);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.k-datepicker-opened {
|
|
133
|
-
box-shadow: 0 0 0 2px var(--kui-color-danger-
|
|
133
|
+
box-shadow: 0 0 0 2px var(--kui-color-danger-9);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.k-form-label-right {
|
|
139
139
|
.k-form-item-label {
|
|
140
|
-
// text-align: right;
|
|
141
140
|
justify-content: flex-end;
|
|
142
141
|
}
|
|
143
142
|
}
|
package/components/grid/index.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
## Row API
|
|
2
|
+
|
|
2
3
|
| 属性 | 说明 | 类型 | 默认值 |
|
|
3
4
|
| ------- | -------------------------------------------------------------------------------- | ------------ | ------- |
|
|
4
5
|
| align | flex 布局下的垂直对齐方式:`top` `middle` `bottom` | String | `top` |
|
|
5
6
|
| justify | flex 布局下的水平排列方式:`start` `end` `center` `space-around` `space-between` | String | `start` |
|
|
6
7
|
| gutter | 栅格间距,单位 px,左右平分,使用数组形式同时设置 [水平间距, 垂直间距] | Number,Array | - |
|
|
7
8
|
| type | 布局模式,可选 flex,现代浏览器 下有效 | String | |
|
|
9
|
+
|
|
8
10
|
## Col API
|
|
11
|
+
|
|
9
12
|
| 属性 | 说明 | 类型 | 默认值 |
|
|
10
13
|
| ------ | -------------------------------------- | ------------- | ------ |
|
|
11
14
|
| span | 栅格的占位格数,可选值为0~24的整数 | Number | - |
|
|
12
15
|
| offset | 栅格左侧的间隔格数,可选值为1~24的整数 | Number | - |
|
|
13
|
-
| flex | flex 布局填充 | Number,String | - |
|
|
16
|
+
| flex | flex 布局填充 | Number,String | - |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h3>图标快速检索</h3>
|
|
4
4
|
<br />
|
|
5
5
|
<Affix :offset-top="65">
|
|
6
|
-
<Flex size="large" style="background-color: var(--kui-color-
|
|
6
|
+
<Flex size="large" style="background-color: var(--kui-color-bg)">
|
|
7
7
|
<RadioGroup
|
|
8
8
|
v-model:value="type"
|
|
9
9
|
theme="card"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
placeholder="输入英文关键字,搜索图标,点击图标即可复制"
|
|
21
21
|
:icon="LogoKui"
|
|
22
22
|
clearable
|
|
23
|
-
|
|
23
|
+
@input="filter"
|
|
24
24
|
/>
|
|
25
|
-
<Button :icon="icons['Search']"
|
|
25
|
+
<Button :icon="icons['Search']" />
|
|
26
26
|
</Space>
|
|
27
27
|
</Flex>
|
|
28
28
|
</Affix>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<!-- <svg width="1em" height="1em">
|
|
47
47
|
<use :xlink:href="`${sprite}#${x}`"></use>
|
|
48
48
|
</svg> -->
|
|
49
|
-
<span class="item-text">{{ x }}</span>
|
|
49
|
+
<!-- <span class="item-text">{{ x }}</span> -->
|
|
50
50
|
</span>
|
|
51
51
|
</div>
|
|
52
52
|
</template>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
height="1em">
|
|
65
65
|
<use :xlink:href="`${sprite}#${x}`"></use>
|
|
66
66
|
</svg> -->
|
|
67
|
-
<span class="item-text">{{ x }}</span>
|
|
67
|
+
<!-- <span class="item-text">{{ x }}</span> -->
|
|
68
68
|
</span>
|
|
69
69
|
</div>
|
|
70
70
|
</template>
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
</div>
|
|
79
79
|
</template>
|
|
80
80
|
<script setup>
|
|
81
|
-
import { ref
|
|
81
|
+
import { ref } from "vue";
|
|
82
82
|
import { message } from "kui-vue";
|
|
83
83
|
import { useClipboard } from "@vueuse/core";
|
|
84
84
|
import * as icons from "kui-icons";
|
|
@@ -102,23 +102,20 @@ let outlines = iconKeys.filter((x) => {
|
|
|
102
102
|
if (flag) return x;
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
let
|
|
105
|
+
let filledIcons = iconKeys.filter((x) => !/Logo/.test(x) && !/Outline/.test(x));
|
|
106
106
|
|
|
107
107
|
const searchKey = ref("");
|
|
108
108
|
const type = ref("filled");
|
|
109
109
|
const logo = ref(logos || []);
|
|
110
|
-
const showIcons = ref(
|
|
110
|
+
const showIcons = ref(filledIcons || []);
|
|
111
111
|
|
|
112
112
|
const switchIcon = () => {
|
|
113
113
|
filter(searchKey.value);
|
|
114
114
|
};
|
|
115
|
-
watch(searchKey, (newValue, oldValue) => {
|
|
116
|
-
filter(newValue);
|
|
117
|
-
});
|
|
118
115
|
|
|
119
116
|
const filter = (key) => {
|
|
120
117
|
key = key.replace(/ /g, "");
|
|
121
|
-
let origin = type.value == "outline" ? outlines :
|
|
118
|
+
let origin = type.value == "outline" ? outlines : filledIcons;
|
|
122
119
|
if (key) {
|
|
123
120
|
key = key.toLowerCase();
|
|
124
121
|
showIcons.value = origin.filter((x) => {
|
|
@@ -134,8 +131,9 @@ const filter = (key) => {
|
|
|
134
131
|
};
|
|
135
132
|
const copyHandle = (name) => {
|
|
136
133
|
// let text = `<Icon type="${name}" />`
|
|
137
|
-
copy(name)
|
|
138
|
-
|
|
134
|
+
copy(name).then(() => {
|
|
135
|
+
message.success("代码复制成功!");
|
|
136
|
+
});
|
|
139
137
|
};
|
|
140
138
|
</script>
|
|
141
139
|
<style lang="less">
|
|
@@ -145,24 +143,26 @@ const copyHandle = (name) => {
|
|
|
145
143
|
|
|
146
144
|
.icon-item {
|
|
147
145
|
text-align: center;
|
|
148
|
-
width:
|
|
146
|
+
width: 128px;
|
|
149
147
|
height: 80px;
|
|
150
148
|
line-height: 80px;
|
|
151
|
-
color: var(--kui-color-
|
|
152
|
-
// float: left;
|
|
149
|
+
color: var(--kui-color-text);
|
|
153
150
|
display: inline-flex;
|
|
154
151
|
flex-direction: column;
|
|
155
152
|
align-items: center;
|
|
156
153
|
justify-content: center;
|
|
157
154
|
font-size: 32px;
|
|
158
155
|
cursor: pointer;
|
|
159
|
-
transition:
|
|
160
|
-
border
|
|
156
|
+
transition: all 0.3s ease-in-out;
|
|
157
|
+
border: 1px solid var(--kui-color-border);
|
|
158
|
+
margin: 0 -1px -1px 0;
|
|
161
159
|
|
|
162
160
|
&:hover {
|
|
163
161
|
color: #3a95ff;
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
animation: flashing 2s ease-in-out infinite; /* 添加漂浮动画 */
|
|
163
|
+
.k-icon {
|
|
164
|
+
animation: float 2s ease-in-out infinite; /* 添加漂浮动画 */
|
|
165
|
+
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -172,4 +172,27 @@ const copyHandle = (name) => {
|
|
|
172
172
|
padding: 10px 0;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
+
|
|
176
|
+
@keyframes flashing {
|
|
177
|
+
0% {
|
|
178
|
+
box-shadow: inset 0 0 15px 0px rgba(58, 149, 255, 0.1);
|
|
179
|
+
}
|
|
180
|
+
50% {
|
|
181
|
+
box-shadow: inset 0 0 15px 5px rgba(58, 149, 255, 0.1);
|
|
182
|
+
}
|
|
183
|
+
100% {
|
|
184
|
+
box-shadow: inset 0 0 15px 0px rgba(58, 149, 255, 0.1);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
@keyframes float {
|
|
188
|
+
0% {
|
|
189
|
+
transform: translateY(0px);
|
|
190
|
+
}
|
|
191
|
+
50% {
|
|
192
|
+
transform: translateY(-10px);
|
|
193
|
+
}
|
|
194
|
+
100% {
|
|
195
|
+
transform: translateY(0px);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
175
198
|
</style>
|
package/components/icon/index.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@keyframes
|
|
1
|
+
@keyframes load-loop {
|
|
2
2
|
0% {
|
|
3
|
-
transform: rotate(0)
|
|
3
|
+
transform: rotate(0);
|
|
4
4
|
}
|
|
5
5
|
50% {
|
|
6
|
-
transform: rotate(180deg)
|
|
6
|
+
transform: rotate(180deg);
|
|
7
7
|
}
|
|
8
8
|
to {
|
|
9
|
-
transform: rotate(1turn)
|
|
9
|
+
transform: rotate(1turn);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.k-load-loop {
|
|
14
|
-
animation:
|
|
14
|
+
animation: load-loop 1s linear infinite;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.k-icon {
|
|
@@ -20,12 +20,11 @@
|
|
|
20
20
|
line-height: 0;
|
|
21
21
|
text-align: center;
|
|
22
22
|
text-transform: none;
|
|
23
|
-
// vertical-align: -0.125em;
|
|
24
23
|
text-rendering: optimizeLegibility;
|
|
25
24
|
-webkit-font-smoothing: antialiased;
|
|
26
25
|
-moz-osx-font-smoothing: grayscale;
|
|
27
|
-
*{
|
|
26
|
+
* {
|
|
28
27
|
line-height: 1;
|
|
29
28
|
display: inline-block;
|
|
30
29
|
}
|
|
31
|
-
}
|
|
30
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## API
|
|
1
|
+
## Image API
|
|
2
2
|
|
|
3
3
|
| 属性 | 说明 | 类型 | 默认值 |
|
|
4
4
|
| ----------- | ----------------------------------------------- | ---------------- | ------ |
|
|
@@ -14,3 +14,9 @@
|
|
|
14
14
|
| switch | 多图切换触发事件 | Function(index) | - |
|
|
15
15
|
| tool | 自定义工具栏按钮 | slot | - |
|
|
16
16
|
| panel | 自定义扩展面板 | slot | - |
|
|
17
|
+
|
|
18
|
+
## ImageGroup API
|
|
19
|
+
|
|
20
|
+
| 属性 | 说明 | 类型 | 默认值 |
|
|
21
|
+
| ---- | -------- | ----- | ------ |
|
|
22
|
+
| data | 图片数据 | Array | - |
|