@oiij/naive-ui 0.0.17 → 0.0.19
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/components/data-table-plus/DataTablePlus.vue.d.ts +20 -5
- package/dist/components/preset-form/PresetForm.vue.d.ts +42 -2
- package/dist/components/preset-form/_utils.d.ts +2 -0
- package/dist/components/preset-form/index.d.ts +2 -1
- package/dist/components/preset-select/PresetSelect.vue.d.ts +16 -4
- package/dist/components.cjs +10 -10
- package/dist/components.js +1108 -1066
- package/dist/components.umd.cjs +10 -10
- package/dist/composables/useNaiveForm.d.cts +4 -4
- package/dist/composables/useNaiveForm.d.ts +4 -4
- package/dist/composables/useNaiveTheme.d.cts +2 -2
- package/dist/composables/useNaiveTheme.d.ts +2 -2
- package/package.json +4 -4
|
@@ -13,11 +13,26 @@ declare const _default: <P extends Record<string, any> = Record<string, any>, D
|
|
|
13
13
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
14
14
|
actions: DataTablePlusExposeActions<P, D>;
|
|
15
15
|
}): any;
|
|
16
|
-
empty?(_: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
empty?(_: {
|
|
17
|
+
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
18
|
+
actions: DataTablePlusExposeActions<P, D>;
|
|
19
|
+
}): any;
|
|
20
|
+
loading?(_: {
|
|
21
|
+
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
22
|
+
actions: DataTablePlusExposeActions<P, D>;
|
|
23
|
+
}): any;
|
|
24
|
+
actions?(_: {
|
|
25
|
+
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
26
|
+
actions: DataTablePlusExposeActions<P, D>;
|
|
27
|
+
}): any;
|
|
28
|
+
extra?(_: {
|
|
29
|
+
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
30
|
+
actions: DataTablePlusExposeActions<P, D>;
|
|
31
|
+
}): any;
|
|
32
|
+
pagination?(_: {
|
|
33
|
+
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
34
|
+
actions: DataTablePlusExposeActions<P, D>;
|
|
35
|
+
}): any;
|
|
21
36
|
};
|
|
22
37
|
emit: {
|
|
23
38
|
(e: "before", params: P[]): void;
|
|
@@ -26,7 +26,27 @@ declare const _default: <V extends Record<string, any> = Record<string, any>>(__
|
|
|
26
26
|
}>): void;
|
|
27
27
|
attrs: any;
|
|
28
28
|
slots: {
|
|
29
|
-
header?(_: {
|
|
29
|
+
header?(_: {
|
|
30
|
+
refs: {
|
|
31
|
+
formRef: import('vue').Ref<import('naive-ui').FormInst | undefined, import('naive-ui').FormInst | undefined>;
|
|
32
|
+
formValue: import('vue').Ref<V, V>;
|
|
33
|
+
formRules: Partial<Record<keyof V, import('naive-ui').FormItemRule | import('naive-ui').FormRules | import('naive-ui').FormItemRule[]>> | undefined;
|
|
34
|
+
formProps: {
|
|
35
|
+
ref: import('vue').Ref<import('naive-ui').FormInst | undefined, import('naive-ui').FormInst | undefined>;
|
|
36
|
+
model: import('vue').Reactive<V>;
|
|
37
|
+
rules: Partial<Record<keyof V, import('naive-ui').FormItemRule | import('naive-ui').FormRules | import('naive-ui').FormItemRule[]>> | undefined;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
actions: {
|
|
41
|
+
validate: () => Promise<unknown[]> | undefined;
|
|
42
|
+
resetValidation: () => void;
|
|
43
|
+
resetForm: () => void;
|
|
44
|
+
reset: () => void;
|
|
45
|
+
clear: () => void;
|
|
46
|
+
onValidated: import('@vueuse/core').EventHookOn<[V]>;
|
|
47
|
+
setValues: (value: Partial<V>) => void;
|
|
48
|
+
};
|
|
49
|
+
}): any;
|
|
30
50
|
default?(_: {
|
|
31
51
|
refs: {
|
|
32
52
|
formRef: import('vue').Ref<import('naive-ui').FormInst | undefined, import('naive-ui').FormInst | undefined>;
|
|
@@ -48,7 +68,27 @@ declare const _default: <V extends Record<string, any> = Record<string, any>>(__
|
|
|
48
68
|
setValues: (value: Partial<V>) => void;
|
|
49
69
|
};
|
|
50
70
|
}): any;
|
|
51
|
-
footer?(_: {
|
|
71
|
+
footer?(_: {
|
|
72
|
+
refs: {
|
|
73
|
+
formRef: import('vue').Ref<import('naive-ui').FormInst | undefined, import('naive-ui').FormInst | undefined>;
|
|
74
|
+
formValue: import('vue').Ref<V, V>;
|
|
75
|
+
formRules: Partial<Record<keyof V, import('naive-ui').FormItemRule | import('naive-ui').FormRules | import('naive-ui').FormItemRule[]>> | undefined;
|
|
76
|
+
formProps: {
|
|
77
|
+
ref: import('vue').Ref<import('naive-ui').FormInst | undefined, import('naive-ui').FormInst | undefined>;
|
|
78
|
+
model: import('vue').Reactive<V>;
|
|
79
|
+
rules: Partial<Record<keyof V, import('naive-ui').FormItemRule | import('naive-ui').FormRules | import('naive-ui').FormItemRule[]>> | undefined;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
actions: {
|
|
83
|
+
validate: () => Promise<unknown[]> | undefined;
|
|
84
|
+
resetValidation: () => void;
|
|
85
|
+
resetForm: () => void;
|
|
86
|
+
reset: () => void;
|
|
87
|
+
clear: () => void;
|
|
88
|
+
onValidated: import('@vueuse/core').EventHookOn<[V]>;
|
|
89
|
+
setValues: (value: Partial<V>) => void;
|
|
90
|
+
};
|
|
91
|
+
}): any;
|
|
52
92
|
};
|
|
53
93
|
emit: (e: "validated", val: V) => void;
|
|
54
94
|
}>) => import('vue').VNode & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexProps, FormProps, GridItemProps, GridProps } from 'naive-ui';
|
|
1
|
+
import { FlexProps, FormItemRule, FormProps, FormRules, GridItemProps, GridProps } from 'naive-ui';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
3
|
import { NaiveFormReturns, NaiveFormRules } from '../../composables';
|
|
4
4
|
import { PresetInputOptions } from '../preset-input';
|
|
@@ -10,6 +10,7 @@ export type PresetFormExposeActions<V extends Record<string, any>> = Pick<NaiveF
|
|
|
10
10
|
};
|
|
11
11
|
export type PresetFormOptions<V extends Record<string, any>> = (PresetInputOptions & {
|
|
12
12
|
key?: keyof V;
|
|
13
|
+
rules?: FormRules | FormItemRule | FormItemRule[];
|
|
13
14
|
collapsed?: boolean;
|
|
14
15
|
gridItemProps?: GridItemProps;
|
|
15
16
|
render?: (refs: PresetFormExposeRefs<V>, actions: PresetFormExposeActions<V>) => VNode;
|
|
@@ -8,10 +8,22 @@ declare const _default: <V extends PresetSelectValue = null, P extends Record<st
|
|
|
8
8
|
}>): void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
|
-
header?(_: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
header?(_: {
|
|
12
|
+
refs: PresetSelectExposeRefs<P, D, R>;
|
|
13
|
+
actions: PresetSelectExposeActions<P, D>;
|
|
14
|
+
}): any;
|
|
15
|
+
action?(_: {
|
|
16
|
+
refs: PresetSelectExposeRefs<P, D, R>;
|
|
17
|
+
actions: PresetSelectExposeActions<P, D>;
|
|
18
|
+
}): any;
|
|
19
|
+
extra?(_: {
|
|
20
|
+
refs: PresetSelectExposeRefs<P, D, R>;
|
|
21
|
+
actions: PresetSelectExposeActions<P, D>;
|
|
22
|
+
}): any;
|
|
23
|
+
pagination?(_: {
|
|
24
|
+
refs: PresetSelectExposeRefs<P, D, R>;
|
|
25
|
+
actions: PresetSelectExposeActions<P, D>;
|
|
26
|
+
}): any;
|
|
15
27
|
empty?(_: {}): any;
|
|
16
28
|
arrow?(_: {}): any;
|
|
17
29
|
};
|