@oiij/naive-ui 0.0.64 → 0.0.66

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.
Files changed (87) hide show
  1. package/dist/_virtual/_/plugin-vue/export-helper.js +9 -0
  2. package/dist/components/_utils/cssr-bem.js +7 -0
  3. package/dist/components/_utils/prismjs.js +16 -0
  4. package/dist/components/bubble/Bubble.js +67 -0
  5. package/dist/components/bubble/Bubble.vue.d.ts +51 -46
  6. package/dist/components/bubble/bubble.cssr.js +23 -0
  7. package/dist/components/bubble/index.d.ts +19 -15
  8. package/dist/components/config-providers/ConfigProviders.js +78 -0
  9. package/dist/components/config-providers/ConfigProviders.vue.d.ts +37 -33
  10. package/dist/components/config-providers/index.d.ts +28 -24
  11. package/dist/components/copy-button/CopyButton.js +50 -0
  12. package/dist/components/copy-button/CopyButton.vue.d.ts +36 -30
  13. package/dist/components/copy-button/index.d.ts +13 -9
  14. package/dist/components/data-table-plus/DataTablePlus.js +374 -0
  15. package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +365 -351
  16. package/dist/components/data-table-plus/index.d.ts +54 -48
  17. package/dist/components/full-loading/FullLoading.js +70 -0
  18. package/dist/components/full-loading/FullLoading.vue.d.ts +36 -32
  19. package/dist/components/full-loading/full-loading.cssr.js +22 -0
  20. package/dist/components/full-loading/index.d.ts +16 -12
  21. package/dist/components/icons/MageArrowUp.js +29 -0
  22. package/dist/components/icons/MageCopyFill.js +21 -0
  23. package/dist/components/icons/MageMultiplyCircleFill.js +21 -0
  24. package/dist/components/icons/MageSearch.js +25 -0
  25. package/dist/components/index.d.ts +31 -15
  26. package/dist/components/preset-form/PresetForm.js +176 -0
  27. package/dist/components/preset-form/PresetForm.vue.d.ts +82 -72
  28. package/dist/components/preset-form/_utils.js +16 -0
  29. package/dist/components/preset-form/index.d.ts +34 -29
  30. package/dist/components/preset-input/PresetInput.js +87 -0
  31. package/dist/components/preset-input/PresetInput.vue.d.ts +20 -15
  32. package/dist/components/preset-input/index.d.ts +147 -145
  33. package/dist/components/preset-picker/PresetPicker.js +213 -0
  34. package/dist/components/preset-picker/PresetPicker.vue.d.ts +62 -49
  35. package/dist/components/preset-picker/index.d.ts +56 -49
  36. package/dist/components/preset-select/PresetSelect.js +274 -0
  37. package/dist/components/preset-select/PresetSelect.vue.d.ts +190 -180
  38. package/dist/components/preset-select/index.d.ts +44 -38
  39. package/dist/components/remote-request/RemoteRequest.js +90 -0
  40. package/dist/components/remote-request/RemoteRequest.vue.d.ts +55 -49
  41. package/dist/components/remote-request/index.d.ts +23 -17
  42. package/dist/components/search-input/SearchInput.js +85 -0
  43. package/dist/components/search-input/SearchInput.vue.d.ts +48 -2332
  44. package/dist/components/search-input/index.d.ts +16 -12
  45. package/dist/components/toggle-input/ToggleInput.js +64 -0
  46. package/dist/components/toggle-input/ToggleInput.vue.d.ts +46 -0
  47. package/dist/components/toggle-input/index.d.ts +1 -0
  48. package/dist/components/tooltip-button/TooltipButton.js +31 -0
  49. package/dist/components/tooltip-button/TooltipButton.vue.d.ts +33 -28
  50. package/dist/components/tooltip-button/index.d.ts +11 -7
  51. package/dist/components/transition/BaseTransition.js +30 -0
  52. package/dist/components/transition/BaseTransition.vue.d.ts +23 -21
  53. package/dist/components/transition/index.d.ts +10 -6
  54. package/dist/components/transition/transition.cssr.js +20 -0
  55. package/dist/components/type-writer/TypeWriter.js +72 -0
  56. package/dist/components/type-writer/TypeWriter.vue.d.ts +34 -29
  57. package/dist/components/type-writer/index.d.ts +12 -8
  58. package/dist/components/type-writer/type-writer.cssr.js +27 -0
  59. package/dist/components.d.ts +33 -1
  60. package/dist/components.js +17 -7893
  61. package/dist/composables/{index.d.mts → index.d.ts} +3 -3
  62. package/dist/composables/{useNaiveForm.d.mts → useNaiveForm.d.ts} +1 -1
  63. package/dist/composables/{useNaiveTheme.d.mts → useNaiveTheme.d.ts} +1 -1
  64. package/dist/composables/{useNaiveTheme.mjs → useNaiveTheme.js} +1 -1
  65. package/dist/{index.d.mts → index.d.ts} +4 -4
  66. package/dist/index.js +5 -0
  67. package/package.json +14 -13
  68. package/dist/components/_utils/cssr-bem.d.ts +0 -1
  69. package/dist/components/_utils/index.d.ts +0 -2
  70. package/dist/components/_utils/prismjs.d.ts +0 -1
  71. package/dist/components/bubble/bubble.cssr.d.ts +0 -2
  72. package/dist/components/full-loading/full-loading.cssr.d.ts +0 -2
  73. package/dist/components/icons/MageArrowUp.vue.d.ts +0 -2
  74. package/dist/components/icons/MageCopyFill.vue.d.ts +0 -2
  75. package/dist/components/icons/MageMultiplyCircleFill.vue.d.ts +0 -2
  76. package/dist/components/icons/MageSearch.vue.d.ts +0 -2
  77. package/dist/components/preset-form/_utils.d.ts +0 -8
  78. package/dist/components/toggle-editor/ToggleEditor.vue.d.ts +0 -1159
  79. package/dist/components/toggle-editor/index.d.ts +0 -1
  80. package/dist/components/transition/transition.cssr.d.ts +0 -13
  81. package/dist/components/type-writer/type-writer.cssr.d.ts +0 -2
  82. package/dist/index.mjs +0 -5
  83. /package/dist/composables/{_helper.d.mts → _helper.d.ts} +0 -0
  84. /package/dist/composables/{_helper.mjs → _helper.js} +0 -0
  85. /package/dist/composables/{useDataRequest.d.mts → useDataRequest.d.ts} +0 -0
  86. /package/dist/composables/{useDataRequest.mjs → useDataRequest.js} +0 -0
  87. /package/dist/composables/{useNaiveForm.mjs → useNaiveForm.js} +0 -0
@@ -1,73 +1,83 @@
1
- import { FormInst } from 'naive-ui';
2
- import { DataObject } from '../../composables/useDataRequest';
3
- import { PresetFormExpose, PresetFormProps } from './index';
4
- declare const _default: <V extends DataObject>(__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<{
5
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
- readonly onValidated?: ((val: V) => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onValidated"> & PresetFormProps<V> & Partial<{}>> & import('vue').PublicProps;
8
- expose(exposed: import('vue').ShallowUnwrapRef<PresetFormExpose<V>>): void;
9
- attrs: any;
10
- slots: {
11
- header?(_: {
12
- formRef: FormInst | null;
13
- formValue: V;
14
- formRules: Partial<Record<keyof V, import('naive-ui').FormRules | import('naive-ui').FormItemRule | import('naive-ui').FormItemRule[]>>;
15
- formProps: {
16
- model: import('vue').Reactive<V>;
17
- rules: import('vue').Reactive<Partial<Record<keyof V, import('naive-ui').FormRules | import('naive-ui').FormItemRule | import('naive-ui').FormItemRule[]>>>;
18
- };
19
- setValue: (_value: Partial<V>) => void;
20
- validate: () => Promise<{
21
- warnings?: import('async-validator').ValidateError[][];
22
- }>;
23
- resetValidation: () => void;
24
- resetForm: () => void;
25
- reset: () => void;
26
- clear: () => void;
27
- onValidated: import('@vueuse/core').EventHookOn<[V]>;
28
- }): any;
29
- default?(_: {
30
- formRef: FormInst | null;
31
- formValue: V;
32
- formRules: Partial<Record<keyof V, import('naive-ui').FormRules | import('naive-ui').FormItemRule | import('naive-ui').FormItemRule[]>>;
33
- formProps: {
34
- model: import('vue').Reactive<V>;
35
- rules: import('vue').Reactive<Partial<Record<keyof V, import('naive-ui').FormRules | import('naive-ui').FormItemRule | import('naive-ui').FormItemRule[]>>>;
36
- };
37
- setValue: (_value: Partial<V>) => void;
38
- validate: () => Promise<{
39
- warnings?: import('async-validator').ValidateError[][];
40
- }>;
41
- resetValidation: () => void;
42
- resetForm: () => void;
43
- reset: () => void;
44
- clear: () => void;
45
- onValidated: import('@vueuse/core').EventHookOn<[V]>;
46
- }): any;
47
- footer?(_: {
48
- formRef: FormInst | null;
49
- formValue: V;
50
- formRules: Partial<Record<keyof V, import('naive-ui').FormRules | import('naive-ui').FormItemRule | import('naive-ui').FormItemRule[]>>;
51
- formProps: {
52
- model: import('vue').Reactive<V>;
53
- rules: import('vue').Reactive<Partial<Record<keyof V, import('naive-ui').FormRules | import('naive-ui').FormItemRule | import('naive-ui').FormItemRule[]>>>;
54
- };
55
- setValue: (_value: Partial<V>) => void;
56
- validate: () => Promise<{
57
- warnings?: import('async-validator').ValidateError[][];
58
- }>;
59
- resetValidation: () => void;
60
- resetForm: () => void;
61
- reset: () => void;
62
- clear: () => void;
63
- onValidated: import('@vueuse/core').EventHookOn<[V]>;
64
- }): any;
65
- };
66
- emit: (e: "validated", val: V) => void;
67
- }>) => import('vue').VNode & {
68
- __ctx?: Awaited<typeof __VLS_setup>;
1
+ import { DataObject } from "../../composables/useDataRequest.js";
2
+ import { PresetFormExpose, PresetFormProps } from "./index.js";
3
+ import * as _vueuse_core6 from "@vueuse/core";
4
+ import * as vue39 from "vue";
5
+ import * as naive_ui21 from "naive-ui";
6
+ import { FormInst } from "naive-ui";
7
+ import * as async_validator0 from "async-validator";
8
+
9
+ //#region src/components/preset-form/PresetForm.vue.d.ts
10
+ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
+ props: __VLS_PrettifyLocal<PresetFormProps<V> & {
12
+ onValidated?: ((val: V) => any) | undefined;
13
+ }> & vue39.PublicProps & (typeof globalThis extends {
14
+ __VLS_PROPS_FALLBACK: infer P;
15
+ } ? P : {});
16
+ expose: (exposed: vue39.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
17
+ attrs: any;
18
+ slots: {
19
+ header?: (props: {
20
+ formRef: FormInst | null;
21
+ formValue: V;
22
+ formRules: Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>;
23
+ formProps: {
24
+ model: vue39.Reactive<V>;
25
+ rules: vue39.Reactive<Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>>;
26
+ };
27
+ setValue: (_value: Partial<V>) => void;
28
+ validate: () => Promise<{
29
+ warnings?: async_validator0.ValidateError[][];
30
+ }>;
31
+ resetValidation: () => void;
32
+ resetForm: () => void;
33
+ reset: () => void;
34
+ clear: () => void;
35
+ onValidated: _vueuse_core6.EventHookOn<[V]>;
36
+ }) => any;
37
+ } & {
38
+ default?: (props: {
39
+ formRef: FormInst | null;
40
+ formValue: V;
41
+ formRules: Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>;
42
+ formProps: {
43
+ model: vue39.Reactive<V>;
44
+ rules: vue39.Reactive<Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>>;
45
+ };
46
+ setValue: (_value: Partial<V>) => void;
47
+ validate: () => Promise<{
48
+ warnings?: async_validator0.ValidateError[][];
49
+ }>;
50
+ resetValidation: () => void;
51
+ resetForm: () => void;
52
+ reset: () => void;
53
+ clear: () => void;
54
+ onValidated: _vueuse_core6.EventHookOn<[V]>;
55
+ }) => any;
56
+ } & {
57
+ footer?: (props: {
58
+ formRef: FormInst | null;
59
+ formValue: V;
60
+ formRules: Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>;
61
+ formProps: {
62
+ model: vue39.Reactive<V>;
63
+ rules: vue39.Reactive<Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>>;
64
+ };
65
+ setValue: (_value: Partial<V>) => void;
66
+ validate: () => Promise<{
67
+ warnings?: async_validator0.ValidateError[][];
68
+ }>;
69
+ resetValidation: () => void;
70
+ resetForm: () => void;
71
+ reset: () => void;
72
+ clear: () => void;
73
+ onValidated: _vueuse_core6.EventHookOn<[V]>;
74
+ }) => any;
75
+ };
76
+ emit: (e: "validated", val: V) => void;
77
+ }>) => vue39.VNode & {
78
+ __ctx?: Awaited<typeof __VLS_setup>;
69
79
  };
70
- export default _default;
71
- type __VLS_PrettifyLocal<T> = {
72
- [K in keyof T]: T[K];
73
- } & {};
80
+ declare const _default: typeof __VLS_export;
81
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
82
+ //#endregion
83
+ export { _default };
@@ -0,0 +1,16 @@
1
+ //#region src/components/preset-form/_utils.ts
2
+ function mergeRule(option) {
3
+ const { key, label, required, rule } = option ?? {};
4
+ let _rule;
5
+ if (typeof required === "function" ? required() : required) _rule = {
6
+ required: true,
7
+ message: `${typeof label === "string" ? label : typeof label === "function" ? label() : typeof key === "string" ? key : "字段"}不能为空`,
8
+ trigger: ["input", "blur"]
9
+ };
10
+ if (rule) if (_rule) Object.assign(_rule, rule);
11
+ else _rule = rule;
12
+ return _rule;
13
+ }
14
+
15
+ //#endregion
16
+ export { mergeRule };
@@ -1,31 +1,36 @@
1
- import { FormItemProps, FormItemRule, FormProps, FormRules, GridItemProps, GridProps } from 'naive-ui';
2
- import { VNode } from 'vue';
3
- import { DataObject } from '../../composables/useDataRequest';
4
- import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from '../../composables/useNaiveForm';
5
- import { ClassStyle } from '../data-table-plus/index';
6
- import { PresetInputOptions } from '../preset-input/index';
7
- export type { NaiveFormRules } from '../../composables/useNaiveForm';
8
- export { default as NPresetForm } from './PresetForm.vue';
9
- export type PresetFormExpose<V extends DataObject = DataObject> = NaiveFormReturns<V>;
10
- export type PresetFormOptionItem<V extends DataObject = DataObject> = PresetInputOptions & {
11
- key?: keyof V;
12
- label?: string | (() => string);
13
- required?: boolean | (() => boolean);
14
- collapsed?: boolean | (() => boolean);
15
- span?: string | number | (() => string | number);
16
- hidden?: boolean | (() => boolean);
17
- rule?: FormRules | FormItemRule | FormItemRule[];
18
- itemProps?: FormItemProps & GridItemProps & ClassStyle;
19
- render?: (params: PresetFormExpose<V> & {
20
- overflow: boolean;
21
- }) => VNode | null;
1
+ import { DataObject } from "../../composables/useDataRequest.js";
2
+ import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/useNaiveForm.js";
3
+ import { ClassStyle } from "../data-table-plus/index.js";
4
+ import { PresetInputOptions } from "../preset-input/index.js";
5
+ import { _default } from "./PresetForm.vue.js";
6
+ import { VNode } from "vue";
7
+ import { FormItemProps, FormItemRule, FormProps, FormRules, GridItemProps, GridProps } from "naive-ui";
8
+ import { ComponentExposed } from "vue-component-type-helpers";
9
+
10
+ //#region src/components/preset-form/index.d.ts
11
+ type PresetFormExpose<V extends DataObject = DataObject> = NaiveFormReturns<V>;
12
+ type PresetFormOptionItem<V extends DataObject = DataObject> = PresetInputOptions & {
13
+ key?: keyof V;
14
+ label?: string | (() => string);
15
+ required?: boolean | (() => boolean);
16
+ collapsed?: boolean | (() => boolean);
17
+ span?: string | number | (() => string | number);
18
+ hidden?: boolean | (() => boolean);
19
+ rule?: FormRules | FormItemRule | FormItemRule[];
20
+ itemProps?: FormItemProps & GridItemProps & ClassStyle;
21
+ render?: (params: PresetFormExpose<V> & {
22
+ overflow: boolean;
23
+ }) => VNode | null;
22
24
  };
23
- export type PresetFormOptions<V extends DataObject = DataObject> = PresetFormOptionItem<V>[];
24
- export type PresetFormProps<V extends DataObject = DataObject> = {
25
- options?: PresetFormOptions<V>;
26
- values?: V;
27
- rules?: NaiveFormRules<V>;
28
- clearRules?: NaiveFormClearRules;
29
- formProps?: FormProps & ClassStyle;
30
- gridProps?: GridProps & ClassStyle;
25
+ type PresetFormOptions<V extends DataObject = DataObject> = PresetFormOptionItem<V>[];
26
+ type PresetFormProps<V extends DataObject = DataObject> = {
27
+ options?: PresetFormOptions<V>;
28
+ values?: V;
29
+ rules?: NaiveFormRules<V>;
30
+ clearRules?: NaiveFormClearRules;
31
+ formProps?: FormProps & ClassStyle;
32
+ gridProps?: GridProps & ClassStyle;
31
33
  };
34
+ type PresetFormInst = ComponentExposed<typeof _default>;
35
+ //#endregion
36
+ export { PresetFormExpose, PresetFormInst, PresetFormOptionItem, PresetFormOptions, PresetFormProps };
@@ -0,0 +1,87 @@
1
+ import SearchInput_default from "../search-input/SearchInput.js";
2
+ import { createBlock, defineComponent, h, openBlock, resolveDynamicComponent } from "vue";
3
+ import { NButton, NCheckbox, NCheckboxGroup, NColorPicker, NDatePicker, NDivider, NDynamicTags, NInput, NInputNumber, NRadio, NRadioGroup, NRate, NSelect, NSlider, NSwitch, NTimePicker } from "naive-ui";
4
+
5
+ //#region src/components/preset-input/PresetInput.vue
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "PresetInput",
8
+ props: {
9
+ value: {},
10
+ options: {}
11
+ },
12
+ emits: ["update:value"],
13
+ setup(__props, { emit: __emit }) {
14
+ const emit = __emit;
15
+ const components = {
16
+ "button": NButton,
17
+ "color-picker": NColorPicker,
18
+ "checkbox": NCheckboxGroup,
19
+ "divider": NDivider,
20
+ "date-picker": NDatePicker,
21
+ "dynamic-tags": NDynamicTags,
22
+ "input": NInput,
23
+ "input-number": NInputNumber,
24
+ "search": SearchInput_default,
25
+ "radio": NRadioGroup,
26
+ "rate": NRate,
27
+ "select": NSelect,
28
+ "slider": NSlider,
29
+ "switch": NSwitch,
30
+ "time-picker": NTimePicker
31
+ };
32
+ function packageComponent() {
33
+ const { type, props, slots } = __props.options ?? {};
34
+ if (type === "button") {
35
+ const { label, ..._props } = props ?? {};
36
+ return h(components[type], { ..._props }, {
37
+ default: () => label,
38
+ ...slots
39
+ });
40
+ }
41
+ if (type === "checkbox") {
42
+ const { options, ..._props } = props ?? {};
43
+ return h(components[type], {
44
+ "value": __props.value,
45
+ "onUpdate:value": (val) => {
46
+ emit("update:value", val);
47
+ },
48
+ ..._props
49
+ }, {
50
+ default: () => options?.map((m) => h(NCheckbox, { ...m })),
51
+ ...slots
52
+ });
53
+ }
54
+ if (type === "divider") {
55
+ const { ..._props } = props ?? {};
56
+ return h(components[type], { ..._props }, { ...slots });
57
+ }
58
+ if (type === "radio") {
59
+ const { options, ..._props } = props ?? {};
60
+ return h(components[type], {
61
+ "value": __props.value,
62
+ "onUpdate:value": (val) => {
63
+ emit("update:value", val);
64
+ },
65
+ ..._props
66
+ }, {
67
+ default: () => options?.map((m) => h(NRadio, { ...m })),
68
+ ...slots
69
+ });
70
+ }
71
+ if (type && components[type]) return h(components[type], {
72
+ "value": __props.value,
73
+ "onUpdate:value": (val) => {
74
+ emit("update:value", val);
75
+ },
76
+ ...props
77
+ }, { ...slots });
78
+ }
79
+ return (_ctx, _cache) => {
80
+ return openBlock(), createBlock(resolveDynamicComponent(packageComponent()));
81
+ };
82
+ }
83
+ });
84
+ var PresetInput_default = _sfc_main;
85
+
86
+ //#endregion
87
+ export { PresetInput_default as default };
@@ -1,16 +1,21 @@
1
- import { PresetInputProps } from './index';
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
- readonly "onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
5
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value"> & PresetInputProps<V> & Partial<{}>> & import('vue').PublicProps;
6
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
- attrs: any;
8
- slots: {};
9
- emit: (e: "update:value", val?: V) => void;
10
- }>) => import('vue').VNode & {
11
- __ctx?: Awaited<typeof __VLS_setup>;
1
+ import { PresetInputProps } from "./index.js";
2
+ import * as vue23 from "vue";
3
+
4
+ //#region src/components/preset-input/PresetInput.vue.d.ts
5
+ declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: __VLS_PrettifyLocal<PresetInputProps<V> & {
7
+ "onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
8
+ }> & vue23.PublicProps & (typeof globalThis extends {
9
+ __VLS_PROPS_FALLBACK: infer P;
10
+ } ? P : {});
11
+ expose: (exposed: {}) => void;
12
+ attrs: any;
13
+ slots: {};
14
+ emit: (e: "update:value", val?: V) => void;
15
+ }>) => vue23.VNode & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
12
17
  };
13
- export default _default;
14
- type __VLS_PrettifyLocal<T> = {
15
- [K in keyof T]: T[K];
16
- } & {};
18
+ declare const _default: typeof __VLS_export;
19
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
20
+ //#endregion
21
+ export { _default };