@oiij/naive-ui 0.0.42 → 0.0.43

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.
@@ -8,7 +8,7 @@ import { SearchInputProps } from '../search-input/index';
8
8
  export { default as NDataTablePlus } from './DataTablePlus.vue';
9
9
  export type ClassStyle = {
10
10
  class?: string;
11
- style?: CSSProperties;
11
+ style?: CSSProperties | string;
12
12
  };
13
13
  export interface DataTablePlusExposeActions<P extends RObject = RObject, D extends RObject = RObject> {
14
14
  run: (params: P) => void;
@@ -70,8 +70,6 @@ export type DataTablePlusProps<P extends RObject = RObject, D extends RObject =
70
70
  columnsFilterOptions?: (filters: DataTableFilterState) => Record<string, any>;
71
71
  columnsSorterOptions?: (sorters: Record<string, DataTableSortState>) => Record<string, any>;
72
72
  dataTableProps?: DataTableProps & ClassStyle;
73
- style?: CSSProperties;
74
- class?: string;
75
73
  };
76
74
  export type DataTablePlusEmits<P extends RObject = RObject, D extends RObject = RObject, R extends RObject = RObject> = RemoteRequestEmits<P, D> & {
77
75
  (e: 'clickRow', row: R, index: number, event: MouseEvent, currentData: R[]): void;
@@ -1,5 +1,6 @@
1
1
  import { SpinProps } from 'naive-ui';
2
2
  import { CSSProperties, RendererElement } from 'vue';
3
+ import { ClassStyle } from '../data-table-plus';
3
4
  export { default as NFullLoading } from './FullLoading.vue';
4
5
  export interface FullLoadingProps {
5
6
  show?: boolean;
@@ -8,5 +9,5 @@ export interface FullLoadingProps {
8
9
  blur?: boolean;
9
10
  disableScroll?: boolean;
10
11
  scrollSelector?: string | HTMLElement;
11
- spinProps?: Omit<SpinProps, 'show'>;
12
+ spinProps?: Omit<SpinProps, 'show'> & ClassStyle;
12
13
  }
@@ -1,8 +1,6 @@
1
1
  import { FormItemProps } from 'naive-ui';
2
- import { CSSProperties, VNode } from 'vue';
3
- export declare function renderLabel(children: VNode | null, label?: string | boolean | (FormItemProps & {
4
- style?: CSSProperties;
5
- class?: string;
6
- }), defaultProps?: FormItemProps): VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
+ import { VNode } from 'vue';
3
+ import { ClassStyle } from '../data-table-plus';
4
+ export declare function renderLabel(children: VNode | null, label?: string | boolean | (FormItemProps & ClassStyle), defaultProps?: FormItemProps): VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
5
  [key: string]: any;
8
6
  }> | null;