@m3ui-vue/m3ui-vue 0.8.4 → 0.8.5
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/dist/{MMenuItem-DiilFeDO.js → MMenuItem-BXIxwIdM.js} +63 -61
- package/dist/{MMenuItem-DiilFeDO.js.map → MMenuItem-BXIxwIdM.js.map} +1 -1
- package/dist/components/MTable.vue.d.ts +8 -0
- package/dist/m3ui.js +216 -209
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/package.json +1 -1
- package/src/__tests__/MMenu.test.ts +84 -0
- package/src/components/MContextMenu.vue +10 -1
- package/src/components/MMenu.vue +10 -1
- package/src/components/MTable.vue +10 -3
|
@@ -19,6 +19,11 @@ type __VLS_Props = {
|
|
|
19
19
|
emptyText?: string;
|
|
20
20
|
rowKey?: string;
|
|
21
21
|
selectable?: boolean;
|
|
22
|
+
/** Con `selectable`, que el click en cualquier parte de la fila la marque/desmarque (en vez de
|
|
23
|
+
* emitir `rowClick`). Default false: sólo el checkbox selecciona y el click en la fila emite
|
|
24
|
+
* `rowClick`, así una tabla puede seleccionar filas y a la vez abrirlas al click.
|
|
25
|
+
*/
|
|
26
|
+
selectOnRowClick?: boolean;
|
|
22
27
|
modelValue?: Record<string, any>[];
|
|
23
28
|
perPage?: number;
|
|
24
29
|
searchable?: boolean;
|
|
@@ -48,10 +53,12 @@ type __VLS_Slots = {} & {
|
|
|
48
53
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
54
|
"update:modelValue": (args_0: Record<string, any>[]) => any;
|
|
50
55
|
"update:page": (args_0: number) => any;
|
|
56
|
+
rowClick: (args_0: Record<string, any>) => any;
|
|
51
57
|
fetch: (args_0: TableFetchParams) => any;
|
|
52
58
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
53
59
|
"onUpdate:modelValue"?: ((args_0: Record<string, any>[]) => any) | undefined;
|
|
54
60
|
"onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
61
|
+
onRowClick?: ((args_0: Record<string, any>) => any) | undefined;
|
|
55
62
|
onFetch?: ((args_0: TableFetchParams) => any) | undefined;
|
|
56
63
|
}>, {
|
|
57
64
|
modelValue: Record<string, any>[];
|
|
@@ -61,6 +68,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
61
68
|
total: number;
|
|
62
69
|
rowKey: string;
|
|
63
70
|
selectable: boolean;
|
|
71
|
+
selectOnRowClick: boolean;
|
|
64
72
|
searchable: boolean;
|
|
65
73
|
serverSide: boolean;
|
|
66
74
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|