@vue-ui-kit/ant 2.0.0 → 2.0.1
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.
|
@@ -6,7 +6,9 @@ declare const _default: <T extends Recordable = Recordable, B extends Recordable
|
|
|
6
6
|
readonly onChange?: ((value: any[]) => any) | undefined;
|
|
7
7
|
readonly onReady?: ((value: EVirtTable) => any) | undefined;
|
|
8
8
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onReady"> & CanvasTableProps<T, B> & Partial<{}>> & import('vue').PublicProps;
|
|
9
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
9
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
10
|
+
$table: null;
|
|
11
|
+
}>): void;
|
|
10
12
|
attrs: any;
|
|
11
13
|
slots: Partial<Record<string, (_: {
|
|
12
14
|
cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
|
package/dist/style.scss
CHANGED
package/package.json
CHANGED
|
@@ -163,6 +163,9 @@
|
|
|
163
163
|
eVirtTable.on('doneEdit', () => {
|
|
164
164
|
editorType.value = 'text';
|
|
165
165
|
});
|
|
166
|
+
eVirtTable.on('selectionChange', (selection) => {
|
|
167
|
+
console.log('selection', selection);
|
|
168
|
+
});
|
|
166
169
|
emit('ready', eVirtTable);
|
|
167
170
|
});
|
|
168
171
|
function saveCellValue(value) {
|
|
@@ -172,6 +175,9 @@
|
|
|
172
175
|
const { rowKey, key } = editorCell.value;
|
|
173
176
|
eVirtTable?.setItemValueByEditor(rowKey, key, value);
|
|
174
177
|
}
|
|
178
|
+
const getPopupContainer = () => {
|
|
179
|
+
return document.body;
|
|
180
|
+
};
|
|
175
181
|
watch(
|
|
176
182
|
props.data,
|
|
177
183
|
(newValue) => {
|
|
@@ -202,9 +208,9 @@
|
|
|
202
208
|
},
|
|
203
209
|
{ deep: true },
|
|
204
210
|
);
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
};
|
|
211
|
+
defineExpose({
|
|
212
|
+
$table: eVirtTable,
|
|
213
|
+
});
|
|
208
214
|
</script>
|
|
209
215
|
<template>
|
|
210
216
|
<a-spin :spinning="loading">
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script
|
|
2
|
+
lang="ts"
|
|
3
|
+
setup
|
|
4
|
+
name="PromisePicker"
|
|
5
|
+
generic="D extends Recordable = Recordable, F extends Recordable = Recordable"
|
|
6
|
+
>
|
|
2
7
|
import { reactive, ref, computed } from 'vue';
|
|
3
8
|
import { PGridInstance, PromisePickerProps } from '#/antProxy';
|
|
4
9
|
import PGrid from '@/components/PGrid.vue';
|