cosey 0.5.7 → 0.5.9
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, computed, onBeforeMount, unref, createBlock, openBlock, resolveDynamicComponent
|
|
1
|
+
import { defineComponent, ref, reactive, computed, onBeforeMount, unref, createBlock, openBlock, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { tableQueryProps, omittedTableQueryProps, tableQueryExposeKeys } from './table-query.js';
|
|
3
3
|
import { reactiveOmit } from '@vueuse/core';
|
|
4
4
|
import { cloneDeep } from 'lodash-es';
|
|
@@ -47,11 +47,17 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
47
47
|
...formQueryProps,
|
|
48
48
|
ref: formQueryRef,
|
|
49
49
|
model: unref(formModel),
|
|
50
|
-
onKeyup:
|
|
50
|
+
onKeyup: event => {
|
|
51
51
|
if (event.key === "Enter") {
|
|
52
|
+
event.preventDefault();
|
|
52
53
|
onEnter();
|
|
53
54
|
}
|
|
54
|
-
},
|
|
55
|
+
},
|
|
56
|
+
onKeydown: event => {
|
|
57
|
+
if (event.key === "Enter") {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
55
61
|
}, () => {
|
|
56
62
|
return props.schemes.map(item => {
|
|
57
63
|
const {
|
|
@@ -10,7 +10,7 @@ var stdin_default = defineComponent({
|
|
|
10
10
|
setup(props) {
|
|
11
11
|
const dyadicActions = computed(() => {
|
|
12
12
|
const actions = props.actions.filter(Boolean);
|
|
13
|
-
return Array.isArray(actions[0]) ?
|
|
13
|
+
return Array.isArray(actions[0]) ? actions : [actions];
|
|
14
14
|
});
|
|
15
15
|
const {
|
|
16
16
|
prefixCls
|