@oiij/naive-ui 0.0.16 → 0.0.17

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.
@@ -21,7 +21,7 @@ declare const _default: <V extends Record<string, any> = Record<string, any>>(__
21
21
  reset: () => void;
22
22
  clear: () => void;
23
23
  onValidated: import('@vueuse/core').EventHookOn<[V]>;
24
- setValue: (value: Partial<V>) => void;
24
+ setValues: (value: Partial<V>) => void;
25
25
  };
26
26
  }>): void;
27
27
  attrs: any;
@@ -45,7 +45,7 @@ declare const _default: <V extends Record<string, any> = Record<string, any>>(__
45
45
  reset: () => void;
46
46
  clear: () => void;
47
47
  onValidated: import('@vueuse/core').EventHookOn<[V]>;
48
- setValue: (value: Partial<V>) => void;
48
+ setValues: (value: Partial<V>) => void;
49
49
  };
50
50
  }): any;
51
51
  footer?(_: {}): any;
@@ -6,7 +6,7 @@ export type { NaiveFormRules } from '../../composables';
6
6
  export { default as NPresetForm } from './PresetForm.vue';
7
7
  export type PresetFormExposeRefs<V extends Record<string, any>> = Pick<NaiveFormReturns<V>, 'formValue' | 'formRef' | 'formRules' | 'formProps'> & {};
8
8
  export type PresetFormExposeActions<V extends Record<string, any>> = Pick<NaiveFormReturns<V>, 'validate' | 'resetValidation' | 'resetForm' | 'reset' | 'clear' | 'onValidated'> & {
9
- setValue: (value: Partial<V>) => void;
9
+ setValues: (value: Partial<V>) => void;
10
10
  };
11
11
  export type PresetFormOptions<V extends Record<string, any>> = (PresetInputOptions & {
12
12
  key?: keyof V;
@@ -17,7 +17,7 @@ export type PresetFormOptions<V extends Record<string, any>> = (PresetInputOptio
17
17
  export interface PresetFormProps<V extends Record<string, any> = Record<string, any>> {
18
18
  options?: PresetFormOptions<V>;
19
19
  values?: V;
20
- rules: NaiveFormRules<V>;
20
+ rules?: NaiveFormRules<V>;
21
21
  formProps?: FormProps;
22
22
  gridProps?: GridProps;
23
23
  flexProps?: FlexProps;
@@ -1,5 +1,5 @@
1
1
  import { PresetInputProps } from '.';
2
- declare const _default: <V extends string = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const _default: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
5
5
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value"> & PresetInputProps<V> & Partial<{}>> & import('vue').PublicProps;
@@ -1,15 +1,26 @@
1
- import { ButtonProps, DatePickerProps, FormItemProps, InputProps, SelectProps, SwitchProps, TimePickerProps } from 'naive-ui';
1
+ import { ButtonProps, CheckboxGroupProps, CheckboxProps, ColorPickerProps, DatePickerProps, DynamicTagsProps, FormItemProps, InputNumberProps, InputProps, RadioGroupProps, RadioProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerProps } from 'naive-ui';
2
2
  import { CSSProperties } from 'vue';
3
3
  import { SearchInputProps } from '..';
4
4
  export { default as NPresetInput } from './PresetInput.vue';
5
- interface PresetInputType {
5
+ export interface PresetInputType {
6
+ 'button': ButtonProps;
7
+ 'color-picker': ColorPickerProps;
8
+ 'checkbox': CheckboxGroupProps & {
9
+ options?: CheckboxProps[];
10
+ };
6
11
  'date-picker': DatePickerProps;
12
+ 'dynamic-tags': DynamicTagsProps;
7
13
  'input': InputProps;
14
+ 'input-number': InputNumberProps;
8
15
  'search': SearchInputProps;
16
+ 'radio': RadioGroupProps & {
17
+ options?: RadioProps[];
18
+ };
19
+ 'rate': RateProps;
9
20
  'select': SelectProps;
21
+ 'slider': SliderProps;
10
22
  'switch': SwitchProps;
11
23
  'time-picker': TimePickerProps;
12
- 'button': ButtonProps;
13
24
  }
14
25
  export type PresetInputOptions = {
15
26
  [K in keyof PresetInputType]: {
@@ -24,7 +35,7 @@ export type PresetInputOptions = {
24
35
  };
25
36
  };
26
37
  }[keyof PresetInputType];
27
- export interface PresetInputProps<V extends string = string> {
38
+ export interface PresetInputProps<V> {
28
39
  value?: V;
29
40
  path?: string;
30
41
  options?: PresetInputOptions;