kui-vue 3.4.0 → 3.4.2
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/base/input.jsx +6 -5
- package/components/button/demo/group.md +22 -17
- package/components/button/styles/index.less +1 -0
- package/components/checkbox/demo/base.md +3 -5
- package/components/checkbox/demo/group-vertical.md +10 -10
- package/components/checkbox/demo/group.md +9 -7
- package/components/checkbox/demo/options.md +2 -2
- package/components/checkbox/styles/index.less +7 -3
- package/components/colorPicker/styles/index.less +8 -0
- package/components/datePicker/datepicker.jsx +78 -62
- package/components/datePicker/demo/theme.md +1 -1
- package/components/datePicker/index.md +0 -1
- package/components/datePicker/styles/datepicker.less +1 -0
- package/components/descriptions/styles/index.less +41 -6
- package/components/drawer/demo/custom.md +2 -2
- package/components/drawer/demo/form.md +4 -2
- package/components/drawer/demo/target.md +1 -1
- package/components/drawer/styles/index.less +10 -3
- package/components/dropdown/index.md +0 -1
- package/components/form/demo/base.md +1 -1
- package/components/form/demo/info.md +23 -1
- package/components/image/demo/errors.md +2 -2
- package/components/image/demo/globle.md +2 -2
- package/components/image/demo/index.vue +1 -0
- package/components/image/image.jsx +3 -1
- package/components/image/preview.jsx +12 -2
- package/components/image/styles/index.less +25 -0
- package/components/input/demo/theme.md +1 -1
- package/components/input/styles/index.less +30 -18
- package/components/inputNumber/demo/format.md +1 -1
- package/components/inputNumber/inputNumber.jsx +2 -1
- package/components/inputNumber/styles/index.less +4 -3
- package/components/locale/lang/de.js +3 -0
- package/components/locale/lang/el.js +3 -0
- package/components/locale/lang/en.js +3 -0
- package/components/locale/lang/fr.js +3 -0
- package/components/locale/lang/it.js +3 -0
- package/components/locale/lang/ja.js +3 -0
- package/components/locale/lang/ko.js +3 -0
- package/components/locale/lang/ru.js +3 -0
- package/components/locale/lang/th.js +3 -0
- package/components/locale/lang/ua.js +3 -0
- package/components/locale/lang/vi.js +3 -0
- package/components/locale/lang/zh-CN.js +3 -0
- package/components/locale/lang/zh-TW.js +3 -0
- package/components/menu/demo/inline.md +4 -4
- package/components/menu/styles/index.less +9 -2
- package/components/modal/styles/index.less +3 -0
- package/components/page/demo/base.md +10 -1
- package/components/page/demo/elevator.md +10 -1
- package/components/page/demo/more.md +10 -1
- package/components/page/demo/size.md +13 -4
- package/components/page/demo/sizer.md +4 -3
- package/components/page/page.jsx +13 -0
- package/components/popconfirm/index.md +0 -1
- package/components/popconfirm/styles/index.less +4 -2
- package/components/poptip/index.md +1 -2
- package/components/poptip/styles/index.less +10 -5
- package/components/radio/demo/base.md +3 -5
- package/components/radio/demo/disabled.md +2 -4
- package/components/radio/demo/group-vertical.md +8 -11
- package/components/radio/demo/group.md +10 -9
- package/components/radio/demo/options.md +2 -2
- package/components/radio/styles/index.less +23 -4
- package/components/select/demo/clearable.md +30 -22
- package/components/select/demo/icon.md +6 -4
- package/components/select/demo/theme.md +4 -4
- package/components/select/index.md +0 -1
- package/components/select/select.jsx +1 -1
- package/components/select/styles/index.less +15 -90
- package/components/styles/color.less +17 -12
- package/components/styles/var.less +7 -0
- package/components/switch/demo/base.md +4 -4
- package/components/switch/demo/disabled.md +7 -9
- package/components/switch/demo/index.vue +1 -6
- package/components/switch/demo/text.md +2 -8
- package/components/table/demo/base-render.md +3 -3
- package/components/table/demo/base.md +3 -1
- package/components/table/demo/custom-header.md +5 -1
- package/components/table/demo/edit.md +34 -12
- package/components/table/demo/expand.md +3 -1
- package/components/table/demo/selection.md +9 -5
- package/components/table/demo/size.md +3 -1
- package/components/table/styles/index.less +100 -51
- package/components/table/table.jsx +1 -1
- package/components/tooltip/index.md +1 -4
- package/components/tooltip/styles/index.less +4 -2
- package/components/tree/styles/index.less +2 -1
- package/components/upload/demo/accept.md +2 -2
- package/components/upload/demo/custom.md +3 -3
- package/components/upload/demo/transform.md +3 -1
- package/components/upload/upload.jsx +12 -1
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.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/ua.js +2 -2
- package/dist/locale/vi.js +2 -2
- package/dist/locale/zhCN.js +2 -2
- package/dist/locale/zhTW.js +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
.k-drawer {
|
|
4
4
|
position: fixed;
|
|
5
5
|
z-index: 1002;
|
|
6
|
+
top: 0;
|
|
6
7
|
.k-drawer-mask {
|
|
7
8
|
position: fixed;
|
|
8
9
|
top: 0;
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
width: 100%;
|
|
15
16
|
z-index: 1000; // animation: mmask .5s ease-in-out;
|
|
16
17
|
overflow: hidden;
|
|
18
|
+
pointer-events: none;
|
|
17
19
|
}
|
|
18
20
|
.k-drawer-box {
|
|
19
21
|
position: absolute;
|
|
@@ -43,13 +45,18 @@
|
|
|
43
45
|
text-align: center;
|
|
44
46
|
top: 0;
|
|
45
47
|
transition: all .3s ease-in-out;
|
|
48
|
+
|
|
46
49
|
&:hover {
|
|
47
|
-
|
|
50
|
+
.k-icon{
|
|
51
|
+
color: var(--kui-color-danger);
|
|
52
|
+
background-color: var(--kui-color-gray-80);
|
|
53
|
+
border-radius: var(--kui-border-radius);
|
|
54
|
+
}
|
|
48
55
|
// transform: rotate(360deg);
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
.k-drawer-header {
|
|
52
|
-
border-bottom: 1px solid var(--kui-color-
|
|
59
|
+
// border-bottom: 1px solid var(--kui-color-border);
|
|
53
60
|
padding: 14px 35px 14px 16px;
|
|
54
61
|
line-height: 1;
|
|
55
62
|
font-size: 14px;
|
|
@@ -77,7 +84,7 @@
|
|
|
77
84
|
color: var(--kui-color-font);
|
|
78
85
|
}
|
|
79
86
|
.k-drawer-footer {
|
|
80
|
-
border-top: 1px solid var(--kui-color-border);
|
|
87
|
+
// border-top: 1px solid var(--kui-color-border);
|
|
81
88
|
padding: 10px 16px;
|
|
82
89
|
text-align: right;
|
|
83
90
|
display: inline-block;
|
|
@@ -4,5 +4,4 @@
|
|
|
4
4
|
| value | 默认是否显示下拉,可使用v-model绑定 | Boolean | hover |
|
|
5
5
|
| trigger | 触发方式,支持hover(默认), click, custom 3种方式 | String | hover |
|
|
6
6
|
| placement | 菜单弹出位置:bottomLeft bottomCenter bottomRight topLeft topCenter topRight | String | bottom-left |
|
|
7
|
-
| transfer | 默认渲染到body 上,如定位有问题,请尝试修改为 false | Boolean | true |
|
|
8
7
|
| showPlacementArrow | 是否显示菜单箭头 | Boolean | false |
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<Form :labelCol="{span:5}" :wrapperCol="{span:16}" :size="size" :theme="theme?'light':''" :shape="checked?'circle':''">
|
|
10
10
|
<FormItem label="主题">
|
|
11
11
|
<Checkbox v-model="theme" label="Light" style="margin-right:8px;"/>
|
|
12
|
-
<Checkbox v-model="checked" label="
|
|
12
|
+
<Checkbox v-model="checked" label="Circle"/>
|
|
13
13
|
</FormItem>
|
|
14
14
|
<FormItem label="尺寸">
|
|
15
15
|
<RadioGroup v-model="size" type="button">
|
|
@@ -5,4 +5,26 @@
|
|
|
5
5
|
- 用于创建一个实体或收集信息。
|
|
6
6
|
- 需要对输入的数据类型进行校验时。
|
|
7
7
|
|
|
8
|
-
## 代码演示
|
|
8
|
+
## 代码演示
|
|
9
|
+
|
|
10
|
+
在 `Modal` `Drawer` 中 , 如果要在打开Modal 或者 Drawer 的时候对表单 进行重置, 请使用异步 :
|
|
11
|
+
|
|
12
|
+
```javascript
|
|
13
|
+
// 组件在open 的之前 也就是没有完全渲染完毕, 这个时候 读取 dom 对象是 undefined,
|
|
14
|
+
// 子组件没有渲染完毕 this.$refs.form 为 undefined, 所以无法重置
|
|
15
|
+
// 使用异步方式
|
|
16
|
+
// 当然也在 Modal 或者 Drawer @close 的时候 重置表单
|
|
17
|
+
export default{
|
|
18
|
+
methods :{
|
|
19
|
+
reset(){
|
|
20
|
+
this.$nextTick(()=>{
|
|
21
|
+
this.$refs.form.reset()
|
|
22
|
+
})
|
|
23
|
+
// 或者
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
this.$refs.form.reset()
|
|
26
|
+
}, 0);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
```vue
|
|
8
8
|
<template>
|
|
9
|
-
<
|
|
9
|
+
<Space>
|
|
10
10
|
<Image
|
|
11
11
|
:width="120"
|
|
12
12
|
src="https://k-ui.cn/error.jpg"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:src="src"
|
|
24
24
|
/>
|
|
25
25
|
<Button @click="loadOrigin">Load origin</Button>
|
|
26
|
-
</
|
|
26
|
+
</Space>
|
|
27
27
|
</template>
|
|
28
28
|
<script>
|
|
29
29
|
export default{
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
```vue
|
|
8
8
|
<template>
|
|
9
|
-
<
|
|
9
|
+
<Space>
|
|
10
10
|
<Button @click="open">Open Image</Button>
|
|
11
11
|
<Button @click="openMedia">Open Media</Button>
|
|
12
12
|
<Button @click="openGroup">Open Image group</Button>
|
|
13
|
-
</
|
|
13
|
+
</Space>
|
|
14
14
|
</template>
|
|
15
15
|
<script>
|
|
16
16
|
export default{
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import Icon from '../icon'
|
|
2
2
|
import createInstance from './instance'
|
|
3
3
|
// import { easyEqual } from '../_tool/utils'
|
|
4
|
-
import { Sync, IconImage } from 'kui-icons'
|
|
4
|
+
import { Sync, IconImage ,EyeOutline} from 'kui-icons'
|
|
5
|
+
import { t } from '../locale';
|
|
5
6
|
export default {
|
|
6
7
|
name: 'kImage',
|
|
7
8
|
props: {
|
|
@@ -162,6 +163,7 @@ export default {
|
|
|
162
163
|
{loading ? <div class="k-image-loading" key="wocao">
|
|
163
164
|
<Icon type={Sync} spin class="k-image-loading-icon" />
|
|
164
165
|
</div> : null}
|
|
166
|
+
{!loading && !error ?<div class="k-image-preview-mask"><Icon type={EyeOutline} />{t('k.image.preview')}</div>:null}
|
|
165
167
|
{this.$slots.default}
|
|
166
168
|
</div>
|
|
167
169
|
}
|
|
@@ -92,11 +92,17 @@ export default {
|
|
|
92
92
|
},
|
|
93
93
|
close() {
|
|
94
94
|
this.visible = false
|
|
95
|
-
this.scale = 1
|
|
96
|
-
this.rotate = 0
|
|
95
|
+
// this.scale = 1
|
|
96
|
+
// this.rotate = 0
|
|
97
97
|
this.$emit('input', false)
|
|
98
98
|
this.$emit('close')
|
|
99
99
|
},
|
|
100
|
+
mousewheel(e) {
|
|
101
|
+
let { deltaY } = e
|
|
102
|
+
this.setScale(deltaY && deltaY < 0)
|
|
103
|
+
e.stopPropagation()
|
|
104
|
+
e.preventDefault()
|
|
105
|
+
},
|
|
100
106
|
mousedown(e) {
|
|
101
107
|
if (this.$refs.imgRef && this.$refs.imgRef.contains(e.target)) {
|
|
102
108
|
if (e.button && e.button != 0) return;
|
|
@@ -249,12 +255,16 @@ export default {
|
|
|
249
255
|
return null
|
|
250
256
|
}
|
|
251
257
|
},
|
|
258
|
+
beforeDestroy() {
|
|
259
|
+
document.removeEventListener('mousewheel', this.mousewheel)
|
|
260
|
+
},
|
|
252
261
|
mounted() {
|
|
253
262
|
if (!this.$isServer) {
|
|
254
263
|
let touch = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch)
|
|
255
264
|
this.touch = touch
|
|
256
265
|
let even = touch ? 'touchstart' : 'mousedown'
|
|
257
266
|
document.addEventListener(even, this.mousedown, { passive: false })
|
|
267
|
+
document.addEventListener('mousewheel', this.mousewheel, { passive: false })
|
|
258
268
|
}
|
|
259
269
|
},
|
|
260
270
|
render(h) {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
display: inline-block;
|
|
6
6
|
text-align: center;
|
|
7
7
|
line-height: 1;
|
|
8
|
+
overflow: hidden;
|
|
8
9
|
|
|
9
10
|
.k-image-img {
|
|
10
11
|
width: 100%;
|
|
@@ -34,6 +35,30 @@
|
|
|
34
35
|
top: 50%;
|
|
35
36
|
transform: translateX(-50%) translateY(-50%);
|
|
36
37
|
}
|
|
38
|
+
|
|
39
|
+
.k-image-preview-mask {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
position: absolute;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
left: 0;
|
|
48
|
+
top: 0;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
color: #fff;
|
|
51
|
+
background-color: var(--kui-color-mask);
|
|
52
|
+
gap: 10px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition: opacity .3s cubic-bezier(0.39, 0.575, 0.565, 1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
.k-image-preview-mask {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
37
62
|
}
|
|
38
63
|
|
|
39
64
|
.k-image-preview {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div style="width:512px;">
|
|
9
|
-
<Checkbox label="
|
|
9
|
+
<Checkbox label="Circle" v-model="isShape"/>
|
|
10
10
|
<br/>
|
|
11
11
|
<br/>
|
|
12
12
|
<Input placeholder="请输入内容..." @blur="blur" @focus="focus" @change="change" theme="light" :shape="shape"/>
|
|
@@ -10,16 +10,24 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
border: 1px solid var(--kui-color-border);
|
|
12
12
|
border-radius: var(--kui-border-radius);
|
|
13
|
+
background-color: var(--kui-color-back);
|
|
13
14
|
transition: all .3s ease-in-out;
|
|
14
15
|
box-sizing: border-box;
|
|
15
16
|
font-size: 14px;
|
|
16
17
|
padding: 0 8px;
|
|
17
|
-
gap:
|
|
18
|
+
gap: 6px;
|
|
19
|
+
height: 32px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
line-height: 1.571;
|
|
18
22
|
|
|
19
23
|
&:hover {
|
|
20
24
|
border-color: var(--kui-color-main);
|
|
21
25
|
}
|
|
22
26
|
|
|
27
|
+
.k-select {
|
|
28
|
+
padding-left: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
.k-input-icon {
|
|
24
32
|
font-size: 16px;
|
|
25
33
|
color: var(--kui-color-icon);
|
|
@@ -32,9 +40,9 @@
|
|
|
32
40
|
.k-input-text {
|
|
33
41
|
padding-left: 0;
|
|
34
42
|
border: none;
|
|
35
|
-
height: 30px;
|
|
36
|
-
line-height: 1
|
|
37
|
-
padding:
|
|
43
|
+
// height: 30px;
|
|
44
|
+
line-height: 1;
|
|
45
|
+
padding: 0;
|
|
38
46
|
font-size: 14px;
|
|
39
47
|
color: var(--kui-color-font);
|
|
40
48
|
background-color: transparent;
|
|
@@ -42,6 +50,7 @@
|
|
|
42
50
|
box-sizing: border-box;
|
|
43
51
|
flex: 1;
|
|
44
52
|
min-width: 10px;
|
|
53
|
+
line-height: 1.571;
|
|
45
54
|
|
|
46
55
|
&:focus {
|
|
47
56
|
// border-color: var(--kui-color-main);
|
|
@@ -90,19 +99,21 @@
|
|
|
90
99
|
display: inline-block;
|
|
91
100
|
width: 100%;
|
|
92
101
|
height: 32px;
|
|
93
|
-
line-height: 1.5;
|
|
94
102
|
padding: 4px 10px;
|
|
95
103
|
font-size: 14px;
|
|
96
104
|
margin: 0;
|
|
97
105
|
border: 1px solid var(--kui-color-border);
|
|
98
106
|
border-radius: var(--kui-border-radius);
|
|
99
107
|
color: var(--kui-color-font);
|
|
100
|
-
background-color: transparent;
|
|
108
|
+
// background-color: transparent;
|
|
109
|
+
background-color: var(--kui-color-back);
|
|
101
110
|
background-image: none;
|
|
102
111
|
position: relative;
|
|
103
112
|
cursor: text;
|
|
104
113
|
transition: border .3s ease-in-out;
|
|
105
114
|
flex-shrink: 0;
|
|
115
|
+
line-height: 1.571;
|
|
116
|
+
|
|
106
117
|
&:focus {
|
|
107
118
|
// box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
|
|
108
119
|
box-shadow: 0 0 0 2px var(--kui-color-main-90);
|
|
@@ -154,9 +165,11 @@ select:-webkit-autofill:focus {
|
|
|
154
165
|
|
|
155
166
|
.k-textarea {
|
|
156
167
|
max-width: 100%;
|
|
168
|
+
min-height: 32px;
|
|
157
169
|
height: auto;
|
|
158
170
|
vertical-align: bottom;
|
|
159
171
|
font-size: 14px;
|
|
172
|
+
line-height: 1.571;
|
|
160
173
|
resize: vertical;
|
|
161
174
|
outline: none;
|
|
162
175
|
}
|
|
@@ -185,21 +198,19 @@ select:-webkit-autofill:focus {
|
|
|
185
198
|
}
|
|
186
199
|
|
|
187
200
|
.k-input-sm[single] {
|
|
188
|
-
padding: 2px
|
|
189
|
-
height:
|
|
190
|
-
line-height: 22px;
|
|
201
|
+
padding: 2px 4px;
|
|
202
|
+
height: 24px;
|
|
191
203
|
font-size: 12px;
|
|
192
204
|
}
|
|
193
205
|
|
|
194
206
|
.k-input-sm[mult] {
|
|
195
|
-
padding: 0
|
|
196
|
-
gap:
|
|
207
|
+
padding: 0 4px;
|
|
208
|
+
gap: 4px;
|
|
209
|
+
height: 24px;
|
|
197
210
|
|
|
198
211
|
.k-input-text {
|
|
199
212
|
font-size: 12px;
|
|
200
213
|
padding: 2px 0;
|
|
201
|
-
height: 22px;
|
|
202
|
-
line-height: 22px;
|
|
203
214
|
}
|
|
204
215
|
|
|
205
216
|
.k-input-clearable {
|
|
@@ -207,7 +218,7 @@ select:-webkit-autofill:focus {
|
|
|
207
218
|
}
|
|
208
219
|
|
|
209
220
|
.k-input-icon {
|
|
210
|
-
font-size:
|
|
221
|
+
font-size: 14px;
|
|
211
222
|
}
|
|
212
223
|
|
|
213
224
|
.k-input-suffix {
|
|
@@ -220,15 +231,14 @@ select:-webkit-autofill:focus {
|
|
|
220
231
|
.k-input-lg[single] {
|
|
221
232
|
padding: 2px 10px;
|
|
222
233
|
height: 38px;
|
|
223
|
-
line-height: 38px;
|
|
224
234
|
font-size: 16px;
|
|
225
235
|
}
|
|
226
236
|
|
|
227
237
|
.k-input-lg[mult] {
|
|
238
|
+
height: 38px;
|
|
239
|
+
|
|
228
240
|
.k-input-text {
|
|
229
241
|
padding: 2px 0;
|
|
230
|
-
height: 38px;
|
|
231
|
-
line-height: 38px;
|
|
232
242
|
font-size: 16px;
|
|
233
243
|
}
|
|
234
244
|
|
|
@@ -258,11 +268,13 @@ select:-webkit-autofill:focus {
|
|
|
258
268
|
.k-input-light[mult],
|
|
259
269
|
.k-input-light[single],
|
|
260
270
|
.k-textarea-light {
|
|
261
|
-
border:
|
|
271
|
+
border-color: transparent;
|
|
262
272
|
background-color: var(--kui-color-gray-80);
|
|
263
273
|
|
|
264
274
|
&:focus,
|
|
275
|
+
&:hover,
|
|
265
276
|
&.k-input-focus {
|
|
277
|
+
border-color: transparent;
|
|
266
278
|
box-shadow: none;
|
|
267
279
|
}
|
|
268
280
|
}
|
|
@@ -121,6 +121,7 @@ export default {
|
|
|
121
121
|
},
|
|
122
122
|
blurHandle(e) {
|
|
123
123
|
let v = this.getVal(e.target.value)
|
|
124
|
+
// console.log(v)
|
|
124
125
|
// console.log(e.target.value)
|
|
125
126
|
this.defaultValue = v + ''
|
|
126
127
|
// console.log('blur1', v)
|
|
@@ -142,7 +143,7 @@ export default {
|
|
|
142
143
|
},
|
|
143
144
|
provide() {
|
|
144
145
|
return {
|
|
145
|
-
|
|
146
|
+
InputNumber: this
|
|
146
147
|
}
|
|
147
148
|
},
|
|
148
149
|
render() {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
border: 1px solid var(--kui-color-border);
|
|
12
12
|
border-radius: var(--kui-border-radius);
|
|
13
|
+
background-color: var(--kui-color-back);
|
|
13
14
|
transition: all .3s ease-in-out;
|
|
14
15
|
box-sizing: border-box;
|
|
15
16
|
gap: 8px;
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
box-sizing: border-box;
|
|
80
81
|
flex: 1;
|
|
81
82
|
min-width: 10px;
|
|
83
|
+
line-height: 1.571;
|
|
82
84
|
|
|
83
85
|
&::placeholder {
|
|
84
86
|
color: var(--kui-color-disable-color);
|
|
@@ -141,10 +143,9 @@
|
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
.k-input-number-text {
|
|
144
|
-
|
|
145
|
-
height: 22px;
|
|
146
|
-
line-height: 22px;
|
|
146
|
+
line-height: 1;
|
|
147
147
|
font-size: 12px;
|
|
148
|
+
height: 22px;
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
.k-input-number-clearable {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
<div style="width:256px">
|
|
9
9
|
<Menu v-model="current" :open-keys="openKeys" mode="inline">
|
|
10
10
|
<SubMenu key="sub1" :icon="Mail" title="Navigation One">
|
|
11
|
-
<MenuItem key="1-1">Option 1</MenuItem>
|
|
12
|
-
<MenuItem key="1-2">Option 2</MenuItem>
|
|
13
|
-
<MenuItem key="1-3">Option 3</MenuItem>
|
|
14
|
-
<MenuItem key="1-4">Option 4</MenuItem>
|
|
11
|
+
<MenuItem key="1-1" :icon="Heart">Option 1</MenuItem>
|
|
12
|
+
<MenuItem key="1-2" :icon="Heart">Option 2</MenuItem>
|
|
13
|
+
<MenuItem key="1-3" :icon="Heart">Option 3</MenuItem>
|
|
14
|
+
<MenuItem key="1-4" :icon="Heart">Option 4</MenuItem>
|
|
15
15
|
</SubMenu>
|
|
16
16
|
<SubMenu key="sub2" :icon="Heart" title="Navigation Two">
|
|
17
17
|
<MenuItem key="2-1">Option 5</MenuItem>
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
opacity: 1;
|
|
44
44
|
white-space: nowrap;
|
|
45
45
|
transition: all .3s ease-in-out;
|
|
46
|
+
line-height: 1.571;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.k-menu-item-icon {
|
|
@@ -85,7 +86,10 @@
|
|
|
85
86
|
height: 40px;
|
|
86
87
|
display: flex;
|
|
87
88
|
align-items: center;
|
|
88
|
-
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.k-dropdown-menu-item {
|
|
92
|
+
height: 32px;
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
.k-dropdown-menu-submenu-title,
|
|
@@ -257,6 +261,9 @@
|
|
|
257
261
|
&:hover {
|
|
258
262
|
background-color: var(--kui-color-hover);
|
|
259
263
|
}
|
|
264
|
+
&:active {
|
|
265
|
+
background-color: var(--kui-color-actived);
|
|
266
|
+
}
|
|
260
267
|
}
|
|
261
268
|
|
|
262
269
|
.k-menu-submenu-sub {
|
|
@@ -645,7 +652,7 @@
|
|
|
645
652
|
.k-menu-submenu-popup-enter-active {
|
|
646
653
|
|
|
647
654
|
&[k-placement="bottom-left"],
|
|
648
|
-
&[k-placement="bottom-right"]
|
|
655
|
+
&[k-placement="bottom-right"],
|
|
649
656
|
&[k-placement="top-left"],
|
|
650
657
|
&[k-placement="top-right"] {
|
|
651
658
|
animation: drop-down .3s;
|
|
@@ -169,12 +169,15 @@
|
|
|
169
169
|
left: 0;
|
|
170
170
|
border-radius: 0;
|
|
171
171
|
|
|
172
|
+
|
|
172
173
|
.k-modal-footer {
|
|
173
174
|
position: absolute;
|
|
174
175
|
width: 100%;
|
|
175
176
|
bottom: 0;
|
|
176
177
|
left: 0;
|
|
177
178
|
background: var(--kui-color-control-10);
|
|
179
|
+
box-sizing: border-box;
|
|
180
|
+
padding-right: 20px;
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
183
|
}
|
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div class="demo-page">
|
|
9
|
-
<Page :current="
|
|
9
|
+
<Page v-model:current="current" :total="50"/>
|
|
10
10
|
</div>
|
|
11
11
|
</template>
|
|
12
|
+
<script>
|
|
13
|
+
export default{
|
|
14
|
+
data(){
|
|
15
|
+
return {
|
|
16
|
+
current:1
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
12
21
|
```
|