kui-vue 3.3.10 → 3.3.12
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/_tool/clone.js +1 -2
- package/components/_tool/utils.js +3 -3
- package/components/alert/styles/index.less +2 -2
- package/components/avatar/AvatarGroup.jsx +2 -2
- package/components/backtop/styles/index.less +44 -47
- package/components/base/drop.jsx +3 -2
- package/components/base/pop.jsx +34 -20
- package/components/button/button.jsx +5 -11
- package/components/button/index.js +1 -8
- package/components/button/styles/index.less +2 -2
- package/components/collapse/styles/index.less +3 -16
- package/components/colorPicker/colorpicker.jsx +1 -1
- package/components/colorPicker/styles/index.less +23 -21
- package/components/datePicker/datecalendar.jsx +5 -2
- package/components/datePicker/datepicker.jsx +30 -53
- package/components/datePicker/demo/format.md +1 -1
- package/components/datePicker/styles/calendar.less +31 -10
- package/components/datePicker/styles/datepicker.less +7 -16
- package/components/drawer/drawer.jsx +1 -1
- package/components/dropdown/demo/base.md +1 -1
- package/components/dropdown/demo/rightmenu.md +5 -5
- package/components/dropdown/dropdown.jsx +11 -3
- package/components/dropdown/styles/index.less +31 -13
- package/components/form/demo/valid.md +1 -1
- package/components/form/form.jsx +1 -1
- package/components/form/styles/index.less +3 -14
- package/components/fragment/component.js +98 -0
- package/components/fragment/frag.js +362 -0
- package/components/fragment/fragment.js +19 -0
- package/components/fragment/index.js +104 -0
- package/components/fragment/ssr.js +4 -0
- package/components/icon/demo/search.vue +1 -1
- package/components/image/styles/index.less +41 -17
- package/components/index.js +2 -2
- package/components/inputNumber/styles/index.less +5 -1
- package/components/menu/menuitem.jsx +12 -7
- package/components/menu/styles/index.less +189 -202
- package/components/menu/submenu.jsx +106 -37
- package/components/message/styles/index.less +11 -14
- package/components/modal/index.js +1 -1
- package/components/modal/modal.jsx +2 -2
- package/components/modal/styles/index.less +227 -221
- package/components/notice/styles/index.less +19 -5
- package/components/page/styles/index.less +7 -4
- package/components/popconfirm/styles/index.less +33 -14
- package/components/poptip/styles/index.less +3 -14
- package/components/radio/button.jsx +1 -1
- package/components/select/styles/index.less +13 -33
- package/components/styles/color.less +111 -111
- package/components/switch/styles/index.less +10 -10
- package/components/table/table.jsx +1 -1
- package/components/tabs/styles/index.less +3 -2
- package/components/tag/styles/index.less +3 -15
- package/components/tooltip/styles/index.less +45 -16
- package/components/tooltip/tooltip.jsx +3 -3
- package/components/tree/node.jsx +1 -1
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.js +2 -2
- package/package.json +3 -3
- package/components/menu/styles/dropmenu.less +0 -119
|
@@ -45,8 +45,8 @@ export default {
|
|
|
45
45
|
opened: false,
|
|
46
46
|
currentValue: this.value,
|
|
47
47
|
v1: null, // render selected
|
|
48
|
-
v2: null,
|
|
49
|
-
d1: null, //render date
|
|
48
|
+
v2: null, //
|
|
49
|
+
d1: null, //render date view
|
|
50
50
|
d2: null,
|
|
51
51
|
h2: null,
|
|
52
52
|
fmt: {
|
|
@@ -102,7 +102,7 @@ export default {
|
|
|
102
102
|
this.d1 = a ? dayjs(a) : dayjs()
|
|
103
103
|
this.d2 = b ? dayjs(b) : dayjs().add(1, 'month')
|
|
104
104
|
if (this.d1.isSame(this.d2, 'month')) {
|
|
105
|
-
this.d2 = this.
|
|
105
|
+
this.d2 = this.d2.add(1, 'month')
|
|
106
106
|
}
|
|
107
107
|
// this.currentValue = [dayjs(this.d1), dayjs(this.d2)]
|
|
108
108
|
} else {
|
|
@@ -140,10 +140,9 @@ export default {
|
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
picker1Update(value, type) {
|
|
143
|
-
console.log(type)
|
|
144
143
|
let { isRange, format, fmt, mode } = this
|
|
145
144
|
if (!isRange) {
|
|
146
|
-
if (!type) {
|
|
145
|
+
if (!type) { //for day
|
|
147
146
|
this.d1 = dayjs(value)
|
|
148
147
|
this.v1 = dayjs(value)
|
|
149
148
|
} else {
|
|
@@ -166,94 +165,73 @@ export default {
|
|
|
166
165
|
this.d1 = dayjs(value)
|
|
167
166
|
if (!v1 && !v2) {
|
|
168
167
|
this.v1 = dayjs(value)
|
|
169
|
-
this.currentValue = [dayjs(value),]
|
|
168
|
+
this.currentValue = [dayjs(value), v2]
|
|
170
169
|
} else if (v1 && !v2) {
|
|
171
170
|
this.v2 = dayjs(value)
|
|
172
171
|
this.currentValue = [v1, this.v2]
|
|
173
172
|
|
|
174
|
-
|
|
175
|
-
let dateStr = [v1.format(ft), this.v2.format(ft)]
|
|
176
|
-
// console.log(dateStr)
|
|
177
|
-
// return
|
|
173
|
+
this.updateStr()
|
|
178
174
|
|
|
179
|
-
this.$emit('input', dateStr)
|
|
180
|
-
this.$emit('change', this.currentValue, dateStr)
|
|
181
|
-
this.updateCalendDate()
|
|
182
175
|
if (!withTime) {
|
|
183
176
|
this.opened = false
|
|
184
177
|
}
|
|
185
|
-
console.log('22')
|
|
186
178
|
} else if (v1 && v2) {
|
|
187
|
-
console.log('333')
|
|
188
179
|
this.v1 = dayjs(value)
|
|
189
180
|
this.v2 = null
|
|
190
|
-
this.currentValue = [dayjs(value),]
|
|
181
|
+
this.currentValue = [dayjs(value), v2]
|
|
191
182
|
}
|
|
192
183
|
} else {
|
|
193
|
-
|
|
194
|
-
this.v1 = (this.v1 || dayjs())[type](value)
|
|
195
|
-
|
|
184
|
+
this.v1 = (this.v1 || dayjs(this.d1))[type](value)
|
|
196
185
|
this.currentValue = [this.v1, v2]
|
|
197
186
|
this.d1 = this.d1[type](value)
|
|
198
187
|
|
|
199
|
-
|
|
200
|
-
let dateStr = [v1.format(ft), this.v2.format(ft)]
|
|
201
|
-
this.$emit('input', dateStr)
|
|
202
|
-
this.$emit('change', this.currentValue, dateStr)
|
|
203
|
-
this.updateCalendDate()
|
|
188
|
+
this.updateStr()
|
|
204
189
|
}
|
|
205
190
|
if (this.d1.isSame(this.d2, 'month') || this.d1.isAfter(this.d2, 'month')) {
|
|
206
|
-
this.d2 = this.
|
|
191
|
+
this.d2 = this.d2.add(1, 'month')
|
|
207
192
|
}
|
|
208
193
|
}
|
|
209
194
|
},
|
|
195
|
+
|
|
210
196
|
picker2Update(value, type) {
|
|
211
197
|
let { v1, v2, withTime, format, fmt, mode } = this
|
|
212
|
-
if (!type) { //day
|
|
213
|
-
this.d2 = value
|
|
214
|
-
if (!v1
|
|
198
|
+
if (!type) { //for day
|
|
199
|
+
this.d2 = dayjs(value)
|
|
200
|
+
if (!v1) {
|
|
215
201
|
this.v1 = dayjs(value)
|
|
216
|
-
this.currentValue = [dayjs(value),]
|
|
202
|
+
this.currentValue = [dayjs(value), v2]
|
|
217
203
|
} else if (v1 && !v2) {
|
|
218
204
|
this.v2 = dayjs(value)
|
|
219
205
|
this.currentValue = [v1, this.v2]
|
|
220
206
|
|
|
221
|
-
|
|
222
|
-
let dateStr = [v1.format(ft), this.v2.format(ft)]
|
|
223
|
-
this.$emit('input', dateStr)
|
|
224
|
-
this.$emit('change', this.currentValue, dateStr)
|
|
225
|
-
this.updateCalendDate()
|
|
226
|
-
|
|
227
|
-
// console.log(dateStr)
|
|
207
|
+
this.updateStr()
|
|
228
208
|
if (!withTime) {
|
|
229
209
|
this.opened = false
|
|
230
210
|
}
|
|
231
211
|
} else if (v1 && v2) {
|
|
232
212
|
this.v1 = dayjs(value)
|
|
233
213
|
this.v2 = null
|
|
234
|
-
this.currentValue = [dayjs(value),]
|
|
214
|
+
this.currentValue = [dayjs(value), this.v2]
|
|
235
215
|
}
|
|
236
216
|
} else { //for year , month , datetime
|
|
237
|
-
if (!this.v1) {
|
|
238
|
-
this.v1 = (this.v1 || dayjs())[type](value)
|
|
239
|
-
this.currentValue = [this.v1, v2]
|
|
240
|
-
this.d2 = this.d2[type](value)
|
|
241
|
-
} else {
|
|
242
|
-
this.v2 = (this.v2 || dayjs())[type](value)
|
|
243
|
-
this.currentValue = [v1, this.v2]
|
|
244
|
-
this.d2 = this.d2[type](value)
|
|
245
|
-
}
|
|
246
217
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
this
|
|
250
|
-
this
|
|
251
|
-
this.updateCalendDate()
|
|
218
|
+
this.v2 = (this.v2 || dayjs(this.d2))[type](value)
|
|
219
|
+
this.d2 = this.d2[type](value)
|
|
220
|
+
this.currentValue = [v1, this.v2]
|
|
221
|
+
this.updateStr()
|
|
252
222
|
}
|
|
253
223
|
if (this.d2.isSame(this.d1, 'month') || this.d2.isBefore(this.d1, 'month')) {
|
|
254
|
-
this.d1 = this.
|
|
224
|
+
this.d1 = this.d1.subtract(1, 'month')
|
|
255
225
|
}
|
|
256
226
|
},
|
|
227
|
+
updateStr() {
|
|
228
|
+
let { v1, v2, withTime, format, fmt, mode } = this
|
|
229
|
+
let ft = format || fmt[mode]
|
|
230
|
+
let dateStr = [v1 ? v1.format(ft) : null, v2 ? v2.format(ft) : null]
|
|
231
|
+
this.$emit('input', dateStr)
|
|
232
|
+
this.$emit('change', this.currentValue, dateStr)
|
|
233
|
+
this.updateCalendDate()
|
|
234
|
+
},
|
|
257
235
|
validValue(e) {
|
|
258
236
|
// 只有一个值的时候, 直接置空
|
|
259
237
|
if (this.isRange) {
|
|
@@ -383,7 +361,6 @@ export default {
|
|
|
383
361
|
if (v) {
|
|
384
362
|
this.opened = false
|
|
385
363
|
this.validValue(e)
|
|
386
|
-
|
|
387
364
|
}
|
|
388
365
|
},
|
|
389
366
|
hd: (v) => {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<DatePicker value="2019-10-12 22:12:12" format="YYYY年MM月DD日 HH:mm:ss" mode="dateTime"/>
|
|
9
|
+
<DatePicker value="2019-10-12 22:12:12" format="YYYY年MM月DD日 HH:mm:ss" mode="dateTime" style="width:210px"/>
|
|
10
10
|
<br/>
|
|
11
11
|
<DatePicker value="2019-10-12" format="YYYY/MM/DD"/>
|
|
12
12
|
<br/>
|
|
@@ -108,10 +108,18 @@
|
|
|
108
108
|
&:hover {
|
|
109
109
|
background-color: var(--kui-color-hover);
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
&:active {
|
|
113
|
+
background-color: var(--kui-color-actived);
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
.k-calendar-item-selected {
|
|
114
|
-
background-color: var(--kui-color-main-
|
|
118
|
+
background-color: var(--kui-color-main-90);
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
background-color: var(--kui-color-main-90);
|
|
122
|
+
}
|
|
115
123
|
}
|
|
116
124
|
}
|
|
117
125
|
|
|
@@ -156,7 +164,11 @@
|
|
|
156
164
|
box-sizing: border-box;
|
|
157
165
|
|
|
158
166
|
&:hover {
|
|
159
|
-
background: var(--kui-color-
|
|
167
|
+
background: var(--kui-color-hover);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:active {
|
|
171
|
+
background: var(--kui-color-actived);
|
|
160
172
|
}
|
|
161
173
|
}
|
|
162
174
|
|
|
@@ -167,11 +179,11 @@
|
|
|
167
179
|
|
|
168
180
|
.k-calendar-day-in {
|
|
169
181
|
// color: var(--kui-color-main-80);
|
|
170
|
-
background: var(--kui-color-main-
|
|
182
|
+
background: var(--kui-color-main-90);
|
|
171
183
|
}
|
|
172
184
|
|
|
173
|
-
.k-calendar-year-this,
|
|
174
|
-
.k-calendar-month-this,
|
|
185
|
+
// .k-calendar-year-this,
|
|
186
|
+
// .k-calendar-month-this,
|
|
175
187
|
.k-calendar-day-this {
|
|
176
188
|
// border: 1px solid var(--kui-color-main);
|
|
177
189
|
color: var(--kui-color-main);
|
|
@@ -246,7 +258,7 @@
|
|
|
246
258
|
content: '';
|
|
247
259
|
display: block;
|
|
248
260
|
width: 100%;
|
|
249
|
-
height:
|
|
261
|
+
height: 127px;
|
|
250
262
|
}
|
|
251
263
|
|
|
252
264
|
&::-webkit-scrollbar {
|
|
@@ -275,14 +287,23 @@
|
|
|
275
287
|
transition: all .3s;
|
|
276
288
|
|
|
277
289
|
&:hover {
|
|
278
|
-
background: var(--kui-color-
|
|
290
|
+
background: var(--kui-color-hover);
|
|
279
291
|
}
|
|
292
|
+
|
|
293
|
+
&:active {
|
|
294
|
+
background: var(--kui-color-actived);
|
|
295
|
+
}
|
|
296
|
+
|
|
280
297
|
}
|
|
281
298
|
|
|
282
299
|
.k-calendar-item-selected {
|
|
283
|
-
color: var(--kui-color-main);
|
|
284
|
-
font-weight: bold;
|
|
285
|
-
background: var(--kui-color-main-
|
|
300
|
+
// color: var(--kui-color-main);
|
|
301
|
+
// font-weight: bold;
|
|
302
|
+
background: var(--kui-color-main-90);
|
|
303
|
+
|
|
304
|
+
&:hover {
|
|
305
|
+
background: var(--kui-color-main-90);
|
|
306
|
+
}
|
|
286
307
|
}
|
|
287
308
|
|
|
288
309
|
.k-calendar-time-disabled {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
2
|
|
|
3
3
|
.k-datepicker {
|
|
4
|
-
display: inline-
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
box-sizing: border-box;
|
|
5
6
|
// width: 100%;
|
|
6
|
-
max-width: 100%;
|
|
7
|
+
// max-width: 100%;
|
|
7
8
|
box-sizing: border-box;
|
|
8
9
|
vertical-align: middle;
|
|
9
10
|
color: var(--kui-color-font);
|
|
@@ -181,6 +182,7 @@
|
|
|
181
182
|
white-space: nowrap;
|
|
182
183
|
line-height: 0;
|
|
183
184
|
}
|
|
185
|
+
|
|
184
186
|
&.k-datepicker-with-time {
|
|
185
187
|
|
|
186
188
|
.k-datepicker-placeholder,
|
|
@@ -249,7 +251,7 @@
|
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
|
|
252
|
-
@keyframes
|
|
254
|
+
@keyframes drop-down {
|
|
253
255
|
0% {
|
|
254
256
|
opacity: 0;
|
|
255
257
|
transform: scaleY(0)
|
|
@@ -261,24 +263,13 @@
|
|
|
261
263
|
}
|
|
262
264
|
}
|
|
263
265
|
|
|
264
|
-
@keyframes dropDownOut {
|
|
265
|
-
0% {
|
|
266
|
-
opacity: 1;
|
|
267
|
-
transform: scaleY(1)
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
to {
|
|
271
|
-
opacity: 0;
|
|
272
|
-
transform: scaleY(0)
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
266
|
|
|
276
267
|
.k-date-picker-enter-active {
|
|
277
268
|
transform-origin: 0 0;
|
|
278
|
-
animation:
|
|
269
|
+
animation: drop-down .3s;
|
|
279
270
|
}
|
|
280
271
|
|
|
281
272
|
.k-date-picker-leave-active {
|
|
282
273
|
transform-origin: 0 0;
|
|
283
|
-
animation:
|
|
274
|
+
animation: drop-down .3s reverse
|
|
284
275
|
}
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
color: '#999',
|
|
14
14
|
}" class="demo-back">Right Click on here</div>
|
|
15
15
|
<Menu slot="content">
|
|
16
|
-
<MenuItem key="news">New file</MenuItem>
|
|
17
|
-
<MenuItem key="edit">Edit</MenuItem>
|
|
16
|
+
<MenuItem key="news" :icon="Document">New file</MenuItem>
|
|
17
|
+
<MenuItem key="edit" :icon="IconEdit">Edit</MenuItem>
|
|
18
18
|
<MenuItem key="save" :icon="Save">Save</MenuItem>
|
|
19
19
|
<MenuItem key="cut" :icon="Cut">Cut</MenuItem>
|
|
20
20
|
<MenuDivider />
|
|
21
|
-
<MenuItem key="exit">Exit</MenuItem>
|
|
21
|
+
<MenuItem key="exit" :icon="Exit">Exit</MenuItem>
|
|
22
22
|
</Menu>
|
|
23
23
|
</Dropdown>
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
|
-
import { Save, Cut } from 'kui-icons'
|
|
27
|
+
import { Save, Cut, Document, IconEdit, Exit } from 'kui-icons'
|
|
28
28
|
export default {
|
|
29
29
|
data() {
|
|
30
30
|
return {
|
|
31
|
-
Save, Cut
|
|
31
|
+
Save, Cut, Document, IconEdit, Exit
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
methods:{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import BasePop from '../base/pop'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
name: 'Dropdown',
|
|
@@ -24,6 +24,7 @@ export default {
|
|
|
24
24
|
},
|
|
25
25
|
data() {
|
|
26
26
|
return {
|
|
27
|
+
timer: null,
|
|
27
28
|
visible: this.value || false
|
|
28
29
|
}
|
|
29
30
|
},
|
|
@@ -48,13 +49,20 @@ export default {
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
return (
|
|
51
|
-
<
|
|
52
|
+
<BasePop {...props} ref="pop">
|
|
52
53
|
{this.$slots.default}
|
|
53
54
|
<template slot="content">{this.$slots.content}</template>
|
|
54
|
-
</
|
|
55
|
+
</BasePop >
|
|
55
56
|
)
|
|
56
57
|
},
|
|
57
58
|
methods: {
|
|
59
|
+
hidePopup() {
|
|
60
|
+
clearTimeout(this.timer)
|
|
61
|
+
this.timer = setTimeout(() => {
|
|
62
|
+
this.visible = false
|
|
63
|
+
this.$emit('input', false)
|
|
64
|
+
}, 200);
|
|
65
|
+
},
|
|
58
66
|
handleClick(options) {
|
|
59
67
|
this.$emit('click', options)
|
|
60
68
|
this.visible = false
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
|
+
|
|
2
3
|
.k-dropdown {
|
|
3
4
|
font-size: 12px;
|
|
4
5
|
line-height: 1.5;
|
|
5
6
|
position: absolute;
|
|
6
7
|
z-index: 1001;
|
|
8
|
+
|
|
7
9
|
.k-dropdown-content {
|
|
8
10
|
background: var(--kui-color-control-10);
|
|
9
11
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
10
12
|
border-radius: var(--kui-border-radius);
|
|
11
13
|
}
|
|
14
|
+
|
|
12
15
|
.k-dropdown-menu {
|
|
13
16
|
min-width: 150px;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
.k-dropdown-has-arrow {
|
|
21
|
+
.k-dropdown-content {
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
.k-dropdown-arrow {
|
|
19
26
|
position: absolute;
|
|
20
27
|
box-sizing: border-box;
|
|
@@ -23,6 +30,7 @@
|
|
|
23
30
|
height: 7px;
|
|
24
31
|
color: var(--kui-color-control-10);
|
|
25
32
|
}
|
|
33
|
+
|
|
26
34
|
// &[k-placement^=top] {
|
|
27
35
|
// margin-top: -3px;
|
|
28
36
|
// }
|
|
@@ -34,97 +42,116 @@
|
|
|
34
42
|
bottom: 6px;
|
|
35
43
|
height: 7px;
|
|
36
44
|
}
|
|
45
|
+
|
|
37
46
|
.k-dropdown-body {
|
|
38
47
|
margin-bottom: 12px;
|
|
39
48
|
}
|
|
40
49
|
}
|
|
50
|
+
|
|
41
51
|
&[k-placement=top] {
|
|
42
52
|
.k-dropdown-arrow {
|
|
43
53
|
left: 50%;
|
|
44
54
|
transform: translateX(-50%);
|
|
45
55
|
}
|
|
46
56
|
}
|
|
57
|
+
|
|
47
58
|
&[k-placement=top-right] {
|
|
48
59
|
.k-dropdown-arrow {
|
|
49
60
|
right: 12px;
|
|
50
61
|
}
|
|
51
62
|
}
|
|
63
|
+
|
|
52
64
|
&[k-placement=top-left] {
|
|
53
65
|
.k-dropdown-arrow {
|
|
54
66
|
left: 12px;
|
|
55
67
|
}
|
|
56
68
|
}
|
|
69
|
+
|
|
57
70
|
&[k-placement^=bottom] {
|
|
58
71
|
.k-dropdown-arrow {
|
|
59
72
|
top: 6px;
|
|
60
73
|
height: 7px;
|
|
61
74
|
transform: rotate(180deg);
|
|
62
75
|
}
|
|
76
|
+
|
|
63
77
|
.k-dropdown-body {
|
|
64
78
|
margin-top: 12px;
|
|
65
79
|
}
|
|
66
80
|
}
|
|
81
|
+
|
|
67
82
|
&[k-placement=bottom] {
|
|
68
83
|
.k-dropdown-arrow {
|
|
69
84
|
left: 50%;
|
|
70
85
|
transform: translateX(-50%) rotate(180deg);
|
|
71
86
|
}
|
|
72
87
|
}
|
|
88
|
+
|
|
73
89
|
&[k-placement=bottom-left] {
|
|
74
90
|
.k-dropdown-arrow {
|
|
75
91
|
left: 10px;
|
|
76
92
|
}
|
|
77
93
|
}
|
|
94
|
+
|
|
78
95
|
&[k-placement=bottom-right] {
|
|
79
96
|
.k-dropdown-arrow {
|
|
80
97
|
right: 10px;
|
|
81
98
|
}
|
|
82
99
|
}
|
|
100
|
+
|
|
83
101
|
&[k-placement^=left] {
|
|
84
102
|
.k-dropdown-arrow {
|
|
85
103
|
right: 8px;
|
|
86
104
|
box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
|
|
87
105
|
}
|
|
106
|
+
|
|
88
107
|
.k-dropdown-body {
|
|
89
108
|
margin-right: 12px;
|
|
90
109
|
}
|
|
91
110
|
}
|
|
111
|
+
|
|
92
112
|
&[k-placement=left] {
|
|
93
113
|
.k-dropdown-arrow {
|
|
94
114
|
top: 50%;
|
|
95
115
|
transform: translateY(-50%);
|
|
96
116
|
}
|
|
97
117
|
}
|
|
118
|
+
|
|
98
119
|
&[k-placement=left-bottom] {
|
|
99
120
|
.k-dropdown-arrow {
|
|
100
121
|
bottom: 10px;
|
|
101
122
|
}
|
|
102
123
|
}
|
|
124
|
+
|
|
103
125
|
&[k-placement=left-top] {
|
|
104
126
|
.k-dropdown-arrow {
|
|
105
127
|
top: 10px;
|
|
106
128
|
}
|
|
107
129
|
}
|
|
130
|
+
|
|
108
131
|
&[k-placement^=right] {
|
|
109
132
|
.k-dropdown-arrow {
|
|
110
133
|
left: 8px;
|
|
111
134
|
box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
112
135
|
}
|
|
136
|
+
|
|
113
137
|
.k-dropdown-body {
|
|
114
138
|
margin-left: 12px;
|
|
115
139
|
}
|
|
116
140
|
}
|
|
141
|
+
|
|
117
142
|
&[k-placement=right] {
|
|
118
143
|
.k-dropdown-arrow {
|
|
119
144
|
top: 50%;
|
|
120
145
|
transform: translateY(-50%);
|
|
121
146
|
}
|
|
122
147
|
}
|
|
148
|
+
|
|
123
149
|
&[k-placement=right-top] {
|
|
124
150
|
.k-dropdown-arrow {
|
|
125
151
|
top: 10px;
|
|
126
152
|
}
|
|
127
153
|
}
|
|
154
|
+
|
|
128
155
|
&[k-placement=right-bottom] {
|
|
129
156
|
.k-dropdown-arrow {
|
|
130
157
|
bottom: 10px;
|
|
@@ -132,32 +159,23 @@
|
|
|
132
159
|
}
|
|
133
160
|
}
|
|
134
161
|
|
|
135
|
-
@keyframes dropdown-zoom
|
|
162
|
+
@keyframes dropdown-zoom {
|
|
136
163
|
0% {
|
|
137
164
|
transform: scaleY(0);
|
|
138
165
|
opacity: 0;
|
|
139
166
|
}
|
|
167
|
+
|
|
140
168
|
100% {
|
|
141
169
|
transform: scaleY(1);
|
|
142
170
|
opacity: 1;
|
|
143
171
|
}
|
|
144
172
|
}
|
|
145
173
|
|
|
146
|
-
@keyframes dropdown-zoom-out {
|
|
147
|
-
0% {
|
|
148
|
-
transform: scaleY(1);
|
|
149
|
-
opacity: 1;
|
|
150
|
-
}
|
|
151
|
-
100% {
|
|
152
|
-
transform: scaleY(0);
|
|
153
|
-
opacity: 0;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
174
|
|
|
157
175
|
.k-dropdown-fade-enter-active {
|
|
158
|
-
animation: dropdown-zoom
|
|
176
|
+
animation: dropdown-zoom .3s;
|
|
159
177
|
}
|
|
160
178
|
|
|
161
179
|
.k-dropdown-fade-leave-active {
|
|
162
|
-
animation: dropdown-zoom
|
|
180
|
+
animation: dropdown-zoom .3s reverse;
|
|
163
181
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<FormItem label="Captcha" prop="captcha">
|
|
33
33
|
<Input >
|
|
34
34
|
<template slot="suffix">
|
|
35
|
-
<Button size="small" type="primary" v-if="time==60" @click="sendCode">获取验证码</Button>
|
|
35
|
+
<Button size="small" type="primary" v-if="time==60" theme="normal" @click="sendCode">获取验证码</Button>
|
|
36
36
|
<span v-else>{{time}}(s)</span>
|
|
37
37
|
</template>
|
|
38
38
|
</Input>
|
package/components/form/form.jsx
CHANGED
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
submit(e) {
|
|
131
131
|
e && e.preventDefault()
|
|
132
132
|
this.validate((valid) => {
|
|
133
|
-
let model = JSON.parse(JSON.stringify(this.model))
|
|
133
|
+
let model = JSON.parse(JSON.stringify(this.model || '{}'))
|
|
134
134
|
this.$emit('submit', { valid, model })
|
|
135
135
|
})
|
|
136
136
|
},
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
@keyframes k-form-item-fade
|
|
190
|
+
@keyframes k-form-item-fade {
|
|
191
191
|
0% {
|
|
192
192
|
transform: scaleY(0);
|
|
193
193
|
opacity: 0;
|
|
@@ -199,22 +199,11 @@
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
@keyframes k-form-item-fade-out {
|
|
203
|
-
0% {
|
|
204
|
-
transform: scaleY(1);
|
|
205
|
-
opacity: 1;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
100% {
|
|
209
|
-
transform: scaleY(0);
|
|
210
|
-
opacity: 0;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
202
|
|
|
214
203
|
.k-form-item-fade-enter-active {
|
|
215
|
-
animation: k-form-item-fade
|
|
204
|
+
animation: k-form-item-fade .3s;
|
|
216
205
|
}
|
|
217
206
|
|
|
218
207
|
.k-form-item-fade-leave-active {
|
|
219
|
-
animation: k-form-item-fade
|
|
208
|
+
animation: k-form-item-fade .3s reverse;
|
|
220
209
|
}
|