@peng_kai/kit 0.2.0-beta.20 → 0.2.0-beta.22
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,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type CKEditor from '@ckeditor/ckeditor5-vue';
|
|
2
|
+
import type { RequiredDeep } from 'type-fest';
|
|
3
|
+
import type { ComponentProps } from 'vue-component-type-helpers';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export type CKEditorProps = any;
|
|
10
|
-
export type CKEditorConfig = any;
|
|
11
|
-
export type PluginConstructor = any;
|
|
5
|
+
export type CKEditorProps = NonNullable<ComponentProps<typeof CKEditor['component']>>;
|
|
6
|
+
export type CKEditorConfig = NonNullable<CKEditorProps['config']>;
|
|
7
|
+
export type PluginConstructor = NonNullable<CKEditorConfig['extraPlugins']>[number];
|
|
@@ -33,7 +33,10 @@ export function useAntdModal<Comp extends Component>(
|
|
|
33
33
|
...defaultModalProps,
|
|
34
34
|
...isProxy(modalProps) ? toRefs(modalProps) : modalProps,
|
|
35
35
|
confirmLoading: toRef(() => (compRef as any)?.loading),
|
|
36
|
-
onOk: () =>
|
|
36
|
+
onOk: (e: MouseEvent) => {
|
|
37
|
+
(compRef as any)?.confirm?.(e);
|
|
38
|
+
modalProps.onOk?.(e);
|
|
39
|
+
},
|
|
37
40
|
});
|
|
38
41
|
const modalSlotName = _comp.type === 'body' ? 'default' : 'modalRender';
|
|
39
42
|
|
|
@@ -55,9 +55,10 @@ export function useAntdTable<
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
const defineColumns = (columnsGetter: () => LocalColumnsType) => computed(columnsGetter);
|
|
58
|
-
const defineRowSelection = (rowSelectionGetter: () => LocalTableRowSelection) => {
|
|
58
|
+
const defineRowSelection = (rowSelectionGetter: () => LocalTableRowSelection = () => ({})) => {
|
|
59
59
|
const rowSelection = reactive(rowSelectionGetter());
|
|
60
60
|
|
|
61
|
+
rowSelection.preserveSelectedRowKeys ??= true;
|
|
61
62
|
rowSelection.selectedRowKeys ??= [];
|
|
62
63
|
rowSelection.onChange ??= keys => rowSelection.selectedRowKeys = keys;
|
|
63
64
|
|