@oiij/naive-ui 0.0.31 → 0.0.33
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/index.d.ts +2 -1
- package/dist/components/preset-form/index.d.ts +2 -1
- package/dist/components/preset-input/_utils.d.ts +2 -2
- package/dist/components.cjs +17 -17
- package/dist/components.js +1812 -1802
- package/dist/components.umd.cjs +21 -21
- package/dist/composables/useNaiveForm.cjs +18 -4
- package/dist/composables/useNaiveForm.d.cts +5 -6
- package/dist/composables/useNaiveForm.d.ts +4 -5
- package/dist/composables/useNaiveForm.js +19 -5
- package/dist/composables/useNaiveTheme.d.cts +1 -1
- package/dist/composables/useNaiveTheme.d.ts +2 -2
- package/package.json +2 -2
|
@@ -36,8 +36,9 @@ export type DataTablePlusFilterOptions<P extends RObject, D extends RObject, R e
|
|
|
36
36
|
class?: string;
|
|
37
37
|
});
|
|
38
38
|
collapsed?: boolean;
|
|
39
|
+
gridSpan?: string | number;
|
|
39
40
|
gridItemProps?: GridItemProps;
|
|
40
|
-
render?: (refs: DataTablePlusExposeRefs<P, D, R>, actions: DataTablePlusExposeActions<P, D>) => VNode;
|
|
41
|
+
render?: (refs: DataTablePlusExposeRefs<P, D, R>, actions: DataTablePlusExposeActions<P, D>) => VNode | null;
|
|
41
42
|
})[];
|
|
42
43
|
export type DataTablePlusFields = Partial<Record<'page' | 'pageSize' | 'filter' | 'sorter' | 'list' | 'count' | 'rowKey' | 'search' | 'children', string>>;
|
|
43
44
|
export type DataTablePlusProps<P extends RObject, D extends RObject, R extends RObject> = RemoteRequestProps<P, D> & {
|
|
@@ -17,8 +17,9 @@ export type PresetFormOptions<V extends Record<string, any> = Record<string, any
|
|
|
17
17
|
rules?: FormRules | FormItemRule | FormItemRule[];
|
|
18
18
|
required?: boolean;
|
|
19
19
|
collapsed?: boolean;
|
|
20
|
+
gridSpan?: string | number;
|
|
20
21
|
gridItemProps?: GridItemProps;
|
|
21
|
-
render?: (refs: PresetFormExposeRefs<V>, actions: PresetFormExposeActions<V>) => VNode;
|
|
22
|
+
render?: (refs: PresetFormExposeRefs<V>, actions: PresetFormExposeActions<V>) => VNode | null;
|
|
22
23
|
})[];
|
|
23
24
|
export interface PresetFormProps<V extends Record<string, any> = Record<string, any>> {
|
|
24
25
|
options?: PresetFormOptions<V>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormItemProps } from 'naive-ui';
|
|
2
2
|
import { CSSProperties, VNode } from 'vue';
|
|
3
|
-
export declare function renderLabel(children: VNode, label?: string | boolean | (FormItemProps & {
|
|
3
|
+
export declare function renderLabel(children: VNode | null, label?: string | boolean | (FormItemProps & {
|
|
4
4
|
style?: CSSProperties;
|
|
5
5
|
class?: string;
|
|
6
6
|
}), defaultProps?: FormItemProps): VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
8
|
-
}
|
|
8
|
+
}> | null;
|