@oiij/naive-ui 0.0.27 → 0.0.28
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 +11 -6
- package/dist/components/data-table-plus/index.d.ts +4 -1
- package/dist/components/preset-select/PresetSelect.vue.d.ts +2 -6
- package/dist/components/search-input/SearchInput.vue.d.ts +6 -3
- package/dist/components/search-input/index.d.ts +4 -3
- package/dist/components.cjs +24 -24
- package/dist/components.js +1381 -1354
- package/dist/components.umd.cjs +26 -26
- package/dist/composables/useNaiveForm.d.ts +4 -4
- package/dist/composables/useNaiveTheme.d.ts +2 -2
- package/package.json +3 -3
- package/dist/components/icons/RiSearch2Line.vue.d.ts +0 -2
- /package/dist/components/icons/{EosIconsThreeDotsLoading.vue.d.ts → MageSearch.vue.d.ts} +0 -0
|
@@ -8,27 +8,32 @@ declare const _default: <P extends RObject, D extends RObject, R extends RObject
|
|
|
8
8
|
}>): void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
|
-
|
|
11
|
+
header?(_: {
|
|
12
12
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
13
13
|
actions: DataTablePlusExposeActions<P, D>;
|
|
14
14
|
}): any;
|
|
15
|
-
|
|
15
|
+
title?(_: {}): any;
|
|
16
|
+
'header-extra'?(_: {
|
|
16
17
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
17
18
|
actions: DataTablePlusExposeActions<P, D>;
|
|
18
19
|
}): any;
|
|
19
|
-
|
|
20
|
+
filter?(_: {
|
|
20
21
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
21
22
|
actions: DataTablePlusExposeActions<P, D>;
|
|
22
23
|
}): any;
|
|
23
|
-
|
|
24
|
+
empty?(_: {
|
|
25
|
+
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
26
|
+
actions: DataTablePlusExposeActions<P, D>;
|
|
27
|
+
}): any;
|
|
28
|
+
loading?(_: {
|
|
24
29
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
25
30
|
actions: DataTablePlusExposeActions<P, D>;
|
|
26
31
|
}): any;
|
|
27
|
-
|
|
32
|
+
footer?(_: {
|
|
28
33
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
29
34
|
actions: DataTablePlusExposeActions<P, D>;
|
|
30
35
|
}): any;
|
|
31
|
-
|
|
36
|
+
'footer-extra'?(_: {
|
|
32
37
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
33
38
|
actions: DataTablePlusExposeActions<P, D>;
|
|
34
39
|
}): any;
|
|
@@ -4,6 +4,7 @@ import { ComputedRef, CSSProperties, Ref, ShallowRef, VNode } from 'vue';
|
|
|
4
4
|
import { useRequestResult } from 'vue-hooks-plus/es/useRequest/types';
|
|
5
5
|
import { PresetInputOptions } from '../preset-input/index';
|
|
6
6
|
import { RemoteRequestEmits, RemoteRequestProps, RObject } from '../remote-request/index';
|
|
7
|
+
import { SearchInputProps } from '../search-input/index';
|
|
7
8
|
export { default as NDataTablePlus } from './DataTablePlus.vue';
|
|
8
9
|
export interface DataTablePlusExposeActions<P extends RObject, D extends RObject> {
|
|
9
10
|
run: (params: P) => void;
|
|
@@ -48,8 +49,9 @@ export interface ContextMenuSelectType<R extends RObject> {
|
|
|
48
49
|
option: DropdownOption;
|
|
49
50
|
row?: R;
|
|
50
51
|
}
|
|
51
|
-
export type DataTablePlusFields = Partial<Record<'page' | 'pageSize' | 'filter' | 'sorter' | 'list' | 'count' | 'rowKey', string>>;
|
|
52
|
+
export type DataTablePlusFields = Partial<Record<'page' | 'pageSize' | 'filter' | 'sorter' | 'list' | 'count' | 'rowKey' | 'search', string>>;
|
|
52
53
|
export type DataTablePlusProps<P extends RObject, D extends RObject, R extends RObject> = RemoteRequestProps<P, D> & {
|
|
54
|
+
title?: string;
|
|
53
55
|
columns?: DataTableColumns<R>;
|
|
54
56
|
filterOptions?: DataTablePlusFilterOptions<P, D, R>;
|
|
55
57
|
filterGridProps?: GridProps;
|
|
@@ -57,6 +59,7 @@ export type DataTablePlusProps<P extends RObject, D extends RObject, R extends R
|
|
|
57
59
|
filterLayout?: 'grid' | 'flex' | ['grid' | 'flex'];
|
|
58
60
|
contextMenuOptions?: DropdownOption[];
|
|
59
61
|
fields?: DataTablePlusFields;
|
|
62
|
+
search?: SearchInputProps | boolean;
|
|
60
63
|
pagination?: Omit<PaginationProps, 'page' | 'pageSize'> | boolean;
|
|
61
64
|
dataTableProps?: DataTableProps;
|
|
62
65
|
customStyle?: CSSProperties;
|
|
@@ -12,15 +12,11 @@ declare const _default: <V extends PresetSelectValue, P extends RObject, D exten
|
|
|
12
12
|
refs: PresetSelectExposeRefs<P, D, R>;
|
|
13
13
|
actions: PresetSelectExposeActions<P, D>;
|
|
14
14
|
}): any;
|
|
15
|
-
|
|
15
|
+
footer?(_: {
|
|
16
16
|
refs: PresetSelectExposeRefs<P, D, R>;
|
|
17
17
|
actions: PresetSelectExposeActions<P, D>;
|
|
18
18
|
}): any;
|
|
19
|
-
extra?(_: {
|
|
20
|
-
refs: PresetSelectExposeRefs<P, D, R>;
|
|
21
|
-
actions: PresetSelectExposeActions<P, D>;
|
|
22
|
-
}): any;
|
|
23
|
-
pagination?(_: {
|
|
19
|
+
'footer-extra'?(_: {
|
|
24
20
|
refs: PresetSelectExposeRefs<P, D, R>;
|
|
25
21
|
actions: PresetSelectExposeActions<P, D>;
|
|
26
22
|
}): any;
|
|
@@ -4,7 +4,10 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
prefix?(_: {}): any;
|
|
6
6
|
'prefix-icon'?(_: {}): any;
|
|
7
|
-
button?(_: {
|
|
7
|
+
button?(_: {
|
|
8
|
+
value: string | null | undefined;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
}): any;
|
|
8
11
|
'button-icon'?(_: {}): any;
|
|
9
12
|
};
|
|
10
13
|
refs: {
|
|
@@ -1045,9 +1048,9 @@ declare function __VLS_template(): {
|
|
|
1045
1048
|
};
|
|
1046
1049
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1047
1050
|
declare const __VLS_component: import('vue').DefineComponent<SearchInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
1048
|
-
"update:value": (v: string) => any;
|
|
1051
|
+
"update:value": (v: string | null | undefined) => any;
|
|
1049
1052
|
}, string, import('vue').PublicProps, Readonly<SearchInputProps> & Readonly<{
|
|
1050
|
-
"onUpdate:value"?: ((v: string) => any) | undefined;
|
|
1053
|
+
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
1051
1054
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
1052
1055
|
'input-ref': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1053
1056
|
bordered: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ButtonProps, InputProps } from 'naive-ui';
|
|
2
2
|
export { default as NSearchInput } from './SearchInput.vue';
|
|
3
3
|
export interface SearchInputProps {
|
|
4
|
-
value?: string;
|
|
4
|
+
value?: string | null;
|
|
5
5
|
type?: ButtonProps['type'];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
loading?: boolean;
|
|
6
8
|
autoTrigger?: boolean | number;
|
|
7
|
-
searchButton?: boolean;
|
|
9
|
+
searchButton?: 'text' | 'icon' | boolean;
|
|
8
10
|
inputProps?: InputProps;
|
|
9
11
|
buttonProps?: ButtonProps;
|
|
10
|
-
loading?: boolean;
|
|
11
12
|
}
|