@oiij/naive-ui 0.0.80 → 0.0.81

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 (51) hide show
  1. package/dist/_virtual/_/plugin-vue/export-helper.js +1 -2
  2. package/dist/components/_utils/cssr-bem.js +1 -3
  3. package/dist/components/config-providers/ConfigProviders.js +3 -6
  4. package/dist/components/config-providers/ConfigProviders.vue.d.ts +2 -2
  5. package/dist/components/config-providers/index.d.ts +0 -1
  6. package/dist/components/copy-button/CopyButton.js +3 -6
  7. package/dist/components/copy-button/CopyButton.vue.d.ts +4 -4
  8. package/dist/components/data-table-plus/DataTablePlus.js +3 -6
  9. package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +37 -38
  10. package/dist/components/icons/MageCopyFill.js +1 -3
  11. package/dist/components/icons/MageMultiplyCircleFill.js +1 -3
  12. package/dist/components/icons/MageSearch.js +1 -3
  13. package/dist/components/index.d.ts +0 -1
  14. package/dist/components/loading-provider/LoadingProvider.js +3 -6
  15. package/dist/components/loading-provider/LoadingProvider.vue.d.ts +2 -2
  16. package/dist/components/loading-provider/index.js +2 -4
  17. package/dist/components/loading-provider/loading-provider.cssr.js +1 -3
  18. package/dist/components/preset-form/PresetForm.js +7 -9
  19. package/dist/components/preset-form/PresetForm.vue.d.ts +21 -18
  20. package/dist/components/preset-form/_utils.js +1 -2
  21. package/dist/components/preset-input/PresetInput.js +3 -6
  22. package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
  23. package/dist/components/preset-picker/PresetPicker.js +1 -4
  24. package/dist/components/preset-picker/PresetPicker.vue.d.ts +4 -4
  25. package/dist/components/preset-select/PresetSelect.js +1 -4
  26. package/dist/components/preset-select/PresetSelect.vue.d.ts +27 -27
  27. package/dist/components/remote-request/RemoteRequest.js +1 -4
  28. package/dist/components/remote-request/RemoteRequest.vue.d.ts +10 -10
  29. package/dist/components/search-input/SearchInput.js +1 -4
  30. package/dist/components/search-input/SearchInput.vue.d.ts +4 -4
  31. package/dist/components/toggle-input/ToggleInput.js +1 -4
  32. package/dist/components/toggle-input/ToggleInput.vue.d.ts +5 -5
  33. package/dist/components/tooltip-button/TooltipButton.js +1 -4
  34. package/dist/components/tooltip-button/TooltipButton.vue.d.ts +4 -4
  35. package/dist/components/transition/BaseTransition.js +1 -4
  36. package/dist/components/transition/BaseTransition.vue.d.ts +2 -2
  37. package/dist/components/transition/transition.cssr.js +1 -3
  38. package/dist/components.d.ts +0 -1
  39. package/dist/components.js +14 -15
  40. package/dist/composables/_helper.js +1 -3
  41. package/dist/composables/use-data-request.d.ts +7 -7
  42. package/dist/composables/use-data-request.js +1 -3
  43. package/dist/composables/use-loading.js +1 -3
  44. package/dist/composables/use-naive-form.d.ts +7 -6
  45. package/dist/composables/use-naive-form.js +15 -14
  46. package/dist/composables/use-naive-menu.d.ts +3 -3
  47. package/dist/composables/use-naive-menu.js +1 -3
  48. package/dist/composables/use-naive-theme.js +1 -3
  49. package/dist/index.d.ts +0 -1
  50. package/dist/index.js +1 -2
  51. package/package.json +20 -20
@@ -4,6 +4,5 @@ var export_helper_default = (sfc, props) => {
4
4
  for (const [key, val] of props) target[key] = val;
5
5
  return target;
6
6
  };
7
-
8
7
  //#endregion
9
- export { export_helper_default as default };
8
+ export { export_helper_default as default };
@@ -1,7 +1,5 @@
1
1
  import { useBem } from "@oiij/css-render";
2
-
3
2
  //#region src/components/_utils/cssr-bem.ts
4
3
  const { cssr, plugin, namespace } = useBem();
5
-
6
4
  //#endregion
7
- export { cssr, namespace, plugin };
5
+ export { cssr, namespace, plugin };
@@ -1,8 +1,7 @@
1
- import LoadingProvider_default from "../loading-provider/LoadingProvider.js";
1
+ import _sfc_main$1 from "../loading-provider/LoadingProvider.js";
2
2
  import { useLoading } from "../../composables/use-loading.js";
3
3
  import { createBlock, createCommentVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, onMounted, openBlock, renderSlot, unref, withCtx } from "vue";
4
4
  import { NConfigProvider, NDialogProvider, NGlobalStyle, NLoadingBarProvider, NMessageProvider, NModalProvider, NNotificationProvider, useDialog, useLoadingBar, useMessage, useModal, useNotification } from "naive-ui";
5
-
6
5
  //#region src/components/config-providers/ConfigProviders.vue
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  __name: "ConfigProviders",
@@ -41,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
40
  return (_ctx, _cache) => {
42
41
  return openBlock(), createBlock(unref(NConfigProvider), normalizeProps(guardReactiveProps(__props.configProviderProps)), {
43
42
  default: withCtx(() => [createVNode(unref(NLoadingBarProvider), normalizeProps(guardReactiveProps(__props.loadingBarProviderProps)), {
44
- default: withCtx(() => [createVNode(unref(LoadingProvider_default), normalizeProps(guardReactiveProps(__props.loadingProviderProps)), {
43
+ default: withCtx(() => [createVNode(unref(_sfc_main$1), normalizeProps(guardReactiveProps(__props.loadingProviderProps)), {
45
44
  default: withCtx(() => [createVNode(unref(NDialogProvider), normalizeProps(guardReactiveProps(__props.dialogProviderProps)), {
46
45
  default: withCtx(() => [createVNode(unref(NModalProvider), normalizeProps(guardReactiveProps(__props.modalProviderProps)), {
47
46
  default: withCtx(() => [createVNode(unref(NNotificationProvider), normalizeProps(guardReactiveProps(__props.notificationProviderProps)), {
@@ -64,7 +63,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
63
  };
65
64
  }
66
65
  });
67
- var ConfigProviders_default = _sfc_main;
68
-
69
66
  //#endregion
70
- export { ConfigProviders_default as default };
67
+ export { _sfc_main as default };
@@ -1,12 +1,12 @@
1
1
  import { ConfigProvidersProps } from "./index.js";
2
- import * as vue28 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/components/config-providers/ConfigProviders.vue.d.ts
5
5
  declare var __VLS_44: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_44) => any;
8
8
  };
9
- declare const __VLS_base: vue28.DefineComponent<ConfigProvidersProps, {}, {}, {}, {}, vue28.ComponentOptionsMixin, vue28.ComponentOptionsMixin, {}, string, vue28.PublicProps, Readonly<ConfigProvidersProps> & Readonly<{}>, {}, {}, {}, {}, string, vue28.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue.DefineComponent<ConfigProvidersProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ConfigProvidersProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,7 +1,6 @@
1
1
  import { ClassStyle } from "../data-table-plus/index.js";
2
2
  import { LoadingProviderProps } from "../loading-provider/index.js";
3
3
  import { useLoading } from "../../composables/use-loading.js";
4
- import "../../composables/index.js";
5
4
  import { _default } from "./ConfigProviders.vue.js";
6
5
  import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBarProviderInst, LoadingBarProviderProps, MessageProviderInst, MessageProviderProps, ModalProviderInst, ModalProviderProps, NotificationProviderInst, NotificationProviderProps } from "naive-ui";
7
6
 
@@ -1,8 +1,7 @@
1
1
  import MageCopyFill_default from "../icons/MageCopyFill.js";
2
- import TooltipButton_default from "../tooltip-button/TooltipButton.js";
2
+ import _sfc_main$1 from "../tooltip-button/TooltipButton.js";
3
3
  import { useClipboard } from "@vueuse/core";
4
4
  import { createBlock, createVNode, defineComponent, openBlock, renderSlot, unref, watch, withCtx } from "vue";
5
-
6
5
  //#region src/components/copy-button/CopyButton.vue
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  __name: "CopyButton",
@@ -27,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
26
  copy();
28
27
  }
29
28
  return (_ctx, _cache) => {
30
- return openBlock(), createBlock(unref(TooltipButton_default), {
29
+ return openBlock(), createBlock(unref(_sfc_main$1), {
31
30
  tooltip: unref(copied) ? "复制成功" : "复制",
32
31
  "tooltip-props": __props.tooltipProps,
33
32
  "button-props": {
@@ -47,7 +46,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
46
  };
48
47
  }
49
48
  });
50
- var CopyButton_default = _sfc_main;
51
-
52
49
  //#endregion
53
- export { CopyButton_default as default };
50
+ export { _sfc_main as default };
@@ -1,16 +1,16 @@
1
1
  import { CopyButtonProps } from "./index.js";
2
- import * as vue46 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/components/copy-button/CopyButton.vue.d.ts
5
5
  declare var __VLS_11: {};
6
6
  type __VLS_Slots = {} & {
7
7
  icon?: (props: typeof __VLS_11) => any;
8
8
  };
9
- declare const __VLS_base: vue46.DefineComponent<CopyButtonProps, {}, {}, {}, {}, vue46.ComponentOptionsMixin, vue46.ComponentOptionsMixin, {} & {
9
+ declare const __VLS_base: vue.DefineComponent<CopyButtonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
10
10
  copied: (v: string | undefined) => any;
11
- }, string, vue46.PublicProps, Readonly<CopyButtonProps> & Readonly<{
11
+ }, string, vue.PublicProps, Readonly<CopyButtonProps> & Readonly<{
12
12
  onCopied?: ((v: string | undefined) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, vue46.ComponentProvideOptions, false, {}, any>;
13
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,8 +1,7 @@
1
1
  import { useDataRequest } from "../../composables/use-data-request.js";
2
- import SearchInput_default from "../search-input/SearchInput.js";
2
+ import _sfc_main$1 from "../search-input/SearchInput.js";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, reactive, ref, renderSlot, toDisplayString, toRaw, unref, useTemplateRef, watchEffect, withCtx } from "vue";
4
4
  import { NDataTable, NFlex, NPagination } from "naive-ui";
5
-
6
5
  //#region src/components/data-table-plus/DataTablePlus.vue
7
6
  const _hoisted_1 = { style: {
8
7
  height: "100%",
@@ -244,7 +243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
244
243
  renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(templateBind.value)), () => [createVNode(unref(NFlex), null, {
245
244
  default: withCtx(() => [
246
245
  renderSlot(_ctx.$slots, "title", {}, () => [createElementVNode("div", _hoisted_1, [__props.title ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true)])]),
247
- __props.search ? (openBlock(), createBlock(unref(SearchInput_default), mergeProps({
246
+ __props.search ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({
248
247
  key: 0,
249
248
  style: {
250
249
  marginLeft: "auto",
@@ -317,7 +316,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
317
316
  };
318
317
  }
319
318
  });
320
- var DataTablePlus_default = _sfc_main;
321
-
322
319
  //#endregion
323
- export { DataTablePlus_default as default };
320
+ export { _sfc_main as default };
@@ -1,20 +1,15 @@
1
1
  import { DataObject } from "../../composables/use-data-request.js";
2
2
  import { DataTablePlusEmits, DataTablePlusExpose, DataTablePlusProps } from "./index.js";
3
- import "../../composables/index.js";
4
- import * as _vueuse_core28 from "@vueuse/core";
5
- import * as vue33 from "vue";
3
+ import * as _vueuse_core0 from "@vueuse/core";
4
+ import * as vue from "vue";
6
5
  import { DataTableBaseColumn, DataTableFilterState, DataTableInst, DataTableSortState } from "naive-ui";
7
6
  import { RowKey } from "naive-ui/es/data-table/src/interface";
8
7
 
9
8
  //#region src/components/data-table-plus/DataTablePlus.vue.d.ts
10
9
  declare const __VLS_export: <P extends DataObject, D extends DataObject, R 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: vue33.PublicProps & __VLS_PrettifyLocal<DataTablePlusProps<P, D, R> & {
10
+ props: vue.PublicProps & __VLS_PrettifyLocal<DataTablePlusProps<P, D, R> & {
12
11
  onError?: ((err: Error, params: P[]) => any) | undefined;
13
12
  onSuccess?: ((data: D, params: P[]) => any) | undefined;
14
- onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
15
- onBefore?: ((params: P[]) => any) | undefined;
16
- "onUpdate:page"?: ((page: number) => any) | undefined;
17
- "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
18
13
  onClickRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined;
19
14
  onContextMenuRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined;
20
15
  "onUpdate:checkedRowKeys"?: ((keys: RowKey[], rows: R[], meta: {
@@ -22,12 +17,16 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
22
17
  action: "check" | "uncheck" | "checkAll" | "uncheckAll";
23
18
  }, currentData: R[]) => any) | undefined;
24
19
  "onUpdate:filters"?: ((filterState: DataTableFilterState, sourceColumn: DataTableBaseColumn) => any) | undefined;
20
+ onBefore?: ((params: P[]) => any) | undefined;
25
21
  "onUpdate:sorter"?: ((options: DataTableSortState | DataTableSortState[] | null) => any) | undefined;
22
+ "onUpdate:page"?: ((page: number) => any) | undefined;
23
+ "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
26
24
  onLoadedRows?: ((data: R[]) => any) | undefined;
25
+ onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
27
26
  }> & (typeof globalThis extends {
28
27
  __VLS_PROPS_FALLBACK: infer P_1;
29
28
  } ? P_1 : {});
30
- expose: (exposed: vue33.ShallowUnwrapRef<DataTablePlusExpose<P, D, R>>) => void;
29
+ expose: (exposed: vue.ShallowUnwrapRef<DataTablePlusExpose<P, D, R>>) => void;
31
30
  attrs: any;
32
31
  slots: {
33
32
  header?: (props: {
@@ -53,10 +52,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
53
52
  setParams: (_params: Partial<P>) => void;
54
53
  runParams: (_params: Partial<P>) => void;
55
54
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
56
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
57
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
58
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
59
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
55
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
56
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
57
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
58
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
60
59
  }) => any;
61
60
  } & {
62
61
  title?: (props: {}) => any;
@@ -84,10 +83,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
84
83
  setParams: (_params: Partial<P>) => void;
85
84
  runParams: (_params: Partial<P>) => void;
86
85
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
87
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
88
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
89
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
90
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
86
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
87
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
88
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
89
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
91
90
  }) => any;
92
91
  } & {
93
92
  filter?: (props: {
@@ -113,10 +112,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
113
112
  setParams: (_params: Partial<P>) => void;
114
113
  runParams: (_params: Partial<P>) => void;
115
114
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
116
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
117
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
118
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
119
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
115
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
116
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
117
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
118
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
120
119
  }) => any;
121
120
  } & {
122
121
  empty?: (props: {
@@ -142,10 +141,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
142
141
  setParams: (_params: Partial<P>) => void;
143
142
  runParams: (_params: Partial<P>) => void;
144
143
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
145
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
146
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
147
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
148
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
144
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
145
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
146
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
147
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
149
148
  }) => any;
150
149
  } & {
151
150
  loading?: (props: {
@@ -171,10 +170,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
171
170
  setParams: (_params: Partial<P>) => void;
172
171
  runParams: (_params: Partial<P>) => void;
173
172
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
174
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
175
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
176
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
177
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
173
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
174
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
175
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
176
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
178
177
  }) => any;
179
178
  } & {
180
179
  footer?: (props: {
@@ -200,10 +199,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
200
199
  setParams: (_params: Partial<P>) => void;
201
200
  runParams: (_params: Partial<P>) => void;
202
201
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
203
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
204
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
205
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
206
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
202
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
203
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
204
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
205
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
207
206
  }) => any;
208
207
  } & {
209
208
  'footer-extra'?: (props: {
@@ -229,14 +228,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
229
228
  setParams: (_params: Partial<P>) => void;
230
229
  runParams: (_params: Partial<P>) => void;
231
230
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
232
- onBefore: _vueuse_core28.EventHookOn<[P[]]>;
233
- onSuccess: _vueuse_core28.EventHookOn<[D, P[]]>;
234
- onError: _vueuse_core28.EventHookOn<[Error, P[]]>;
235
- onFinally: _vueuse_core28.EventHookOn<[P[], D | undefined, Error | undefined]>;
231
+ onBefore: _vueuse_core0.EventHookOn<[P[]]>;
232
+ onSuccess: _vueuse_core0.EventHookOn<[D, P[]]>;
233
+ onError: _vueuse_core0.EventHookOn<[Error, P[]]>;
234
+ onFinally: _vueuse_core0.EventHookOn<[P[], D | undefined, Error | undefined]>;
236
235
  }) => any;
237
236
  };
238
237
  emit: DataTablePlusEmits<P, D, R>;
239
- }>) => vue33.VNode & {
238
+ }>) => vue.VNode & {
240
239
  __ctx?: Awaited<typeof __VLS_setup>;
241
240
  };
242
241
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/components/icons/MageCopyFill.vue
5
4
  const _sfc_main = { name: "MageCopyFill" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var MageCopyFill_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { MageCopyFill_default as default };
19
+ export { MageCopyFill_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/components/icons/MageMultiplyCircleFill.vue
5
4
  const _sfc_main = { name: "MageMultiplyCircleFill" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var MageMultiplyCircleFill_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { MageMultiplyCircleFill_default as default };
19
+ export { MageMultiplyCircleFill_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/components/icons/MageSearch.vue
5
4
  const _sfc_main = { name: "MageSearch" };
6
5
  const _hoisted_1 = {
@@ -20,6 +19,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
20
19
  }, null, -1))]);
21
20
  }
22
21
  var MageSearch_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
23
-
24
22
  //#endregion
25
- export { MageSearch_default as default };
23
+ export { MageSearch_default as default };
@@ -20,7 +20,6 @@ import { PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerPr
20
20
  import { _default as _default$9 } from "./preset-select/PresetSelect.vue.js";
21
21
  import { ArrayAwareType, OptionFormat, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue } from "./preset-select/index.js";
22
22
  import { _default as _default$10 } from "./toggle-input/ToggleInput.vue.js";
23
- import "./toggle-input/index.js";
24
23
  import { _default as _default$11 } from "./tooltip-button/TooltipButton.vue.js";
25
24
  import { TooltipButtonProps } from "./tooltip-button/index.js";
26
25
  import { _default as _default$12 } from "./transition/BaseTransition.vue.js";
@@ -1,10 +1,9 @@
1
- import BaseTransition_default from "../transition/BaseTransition.js";
1
+ import _sfc_main$1 from "../transition/BaseTransition.js";
2
2
  import { cName, loadingProviderCssr } from "./loading-provider.cssr.js";
3
3
  import { LOADING_PROVIDER_INJECTION_KEY } from "./index.js";
4
4
  import { Fragment, Teleport, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, unref, watchEffect, withCtx } from "vue";
5
5
  import { useStyle } from "@oiij/css-render";
6
6
  import { NEl, NSpin } from "naive-ui";
7
-
8
7
  //#region src/components/loading-provider/LoadingProvider.vue
9
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "LoadingProvider",
@@ -46,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
45
  hide: hideLoading
47
46
  });
48
47
  return (_ctx, _cache) => {
49
- return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(BaseTransition_default), null, {
48
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$1), null, {
50
49
  default: withCtx(() => [(openBlock(), createBlock(Teleport, { to: __props.appendTo }, [_show.value ? (openBlock(), createBlock(unref(NEl), {
51
50
  key: 0,
52
51
  class: normalizeClass([
@@ -72,7 +71,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
71
  };
73
72
  }
74
73
  });
75
- var LoadingProvider_default = _sfc_main;
76
-
77
74
  //#endregion
78
- export { LoadingProvider_default as default };
75
+ export { _sfc_main as default };
@@ -1,5 +1,5 @@
1
1
  import { LoadingProviderProps } from "./index.js";
2
- import * as vue54 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/components/loading-provider/LoadingProvider.vue.d.ts
5
5
  declare var __VLS_26: {}, __VLS_29: {}, __VLS_31: {};
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_31) => any;
12
12
  };
13
- declare const __VLS_base: vue54.DefineComponent<LoadingProviderProps, {}, {}, {}, {}, vue54.ComponentOptionsMixin, vue54.ComponentOptionsMixin, {}, string, vue54.PublicProps, Readonly<LoadingProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue54.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: vue.DefineComponent<LoadingProviderProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,8 @@
1
- import LoadingProvider_default from "./LoadingProvider.js";
2
-
1
+ import "./LoadingProvider.js";
3
2
  //#region src/components/loading-provider/index.ts
4
3
  /**
5
4
  * 加载提供者注入键
6
5
  */
7
6
  const LOADING_PROVIDER_INJECTION_KEY = Symbol("loading-provider-key");
8
-
9
7
  //#endregion
10
- export { LOADING_PROVIDER_INJECTION_KEY };
8
+ export { LOADING_PROVIDER_INJECTION_KEY };
@@ -1,6 +1,5 @@
1
1
  import { cssr, namespace, plugin } from "../_utils/cssr-bem.js";
2
2
  import { cM } from "naive-ui";
3
-
4
3
  //#region src/components/loading-provider/loading-provider.cssr.ts
5
4
  const { c, cB } = {
6
5
  ...cssr,
@@ -17,6 +16,5 @@ function loadingProviderCssr() {
17
16
  justifyContent: "center"
18
17
  }, [cM("mask", { background: "rgba(0,0,0,.3)" }), cM("blur", { backdropFilter: "blur(10px)" })])]);
19
18
  }
20
-
21
19
  //#endregion
22
- export { cName, loadingProviderCssr };
20
+ export { cName, loadingProviderCssr };
@@ -1,9 +1,8 @@
1
1
  import { useNaiveForm } from "../../composables/use-naive-form.js";
2
- import PresetInput_default from "../preset-input/PresetInput.js";
2
+ import _sfc_main$1 from "../preset-input/PresetInput.js";
3
3
  import { mergeRule } from "./_utils.js";
4
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toValue, unref, useTemplateRef, withCtx } from "vue";
5
5
  import { NButton, NCollapseTransition, NDivider, NForm, NFormItem, NGi, NGrid } from "naive-ui";
6
-
7
6
  //#region src/components/preset-form/PresetForm.vue
8
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
8
  __name: "PresetForm",
@@ -18,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
17
  emits: ["validated"],
19
18
  setup(__props, { expose: __expose, emit: __emit }) {
20
19
  const emit = __emit;
21
- const { formValues, formRules, formInst, formProps: _formProps, setValue, validate, resetValidation, resetForm, reset, clear, onValidated } = useNaiveForm(useTemplateRef("form-ref"), {
20
+ const { formValues, formRules, formInst, formProps: _formProps, setValue, validate, resetValidation, resetForm, reset, clear, onValidated, onUpdateValue } = useNaiveForm(useTemplateRef("form-ref"), {
22
21
  values: __props.values,
23
22
  rules: __props.rules,
24
23
  clearRules: __props.clearRules
@@ -68,7 +67,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
67
  resetForm,
69
68
  reset,
70
69
  clear,
71
- onValidated
70
+ onValidated,
71
+ onUpdateValue
72
72
  };
73
73
  const templateBind = computed(() => {
74
74
  return {
@@ -110,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
110
  default: withCtx(() => [render ? (openBlock(), createBlock(resolveDynamicComponent(render({
111
111
  ...expose,
112
112
  overflow
113
- })), { key: 0 })) : (openBlock(), createBlock(unref(PresetInput_default), {
113
+ })), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$1), {
114
114
  key: 1,
115
115
  options: inputOption,
116
116
  value: key ? unref(formValues)[key] : void 0,
@@ -162,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
162
162
  default: withCtx(() => [render ? (openBlock(), createBlock(resolveDynamicComponent(render({
163
163
  ...expose,
164
164
  overflow
165
- })), { key: 0 })) : (openBlock(), createBlock(unref(PresetInput_default), {
165
+ })), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$1), {
166
166
  key: 1,
167
167
  options: inputOption,
168
168
  value: key ? unref(formValues)[key] : void 0,
@@ -192,7 +192,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
192
  };
193
193
  }
194
194
  });
195
- var PresetForm_default = _sfc_main;
196
-
197
195
  //#endregion
198
- export { PresetForm_default as default };
196
+ export { _sfc_main as default };
@@ -1,28 +1,28 @@
1
1
  import { DataObject } from "../../composables/use-data-request.js";
2
2
  import { PresetFormExpose, PresetFormProps } from "./index.js";
3
- import * as _vueuse_core56 from "@vueuse/core";
4
- import * as vue59 from "vue";
5
- import * as naive_ui1 from "naive-ui";
3
+ import * as _vueuse_core0 from "@vueuse/core";
4
+ import * as vue from "vue";
5
+ import * as naive_ui0 from "naive-ui";
6
6
  import { FormInst, FormRules } from "naive-ui";
7
7
  import * as async_validator0 from "async-validator";
8
8
 
9
9
  //#region src/components/preset-form/PresetForm.vue.d.ts
10
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: vue59.PublicProps & __VLS_PrettifyLocal<PresetFormProps<V> & {
11
+ props: vue.PublicProps & __VLS_PrettifyLocal<PresetFormProps<V> & {
12
12
  onValidated?: ((val: V) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P;
15
15
  } ? P : {});
16
- expose: (exposed: vue59.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
16
+ expose: (exposed: vue.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
17
17
  attrs: any;
18
18
  slots: {
19
19
  header?: (props: {
20
20
  formInst: FormInst | null;
21
21
  formValues: V;
22
- formRules: Partial<Record<keyof V, FormRules | naive_ui1.FormItemRule | naive_ui1.FormItemRule[]>>;
22
+ formRules: Partial<Record<keyof V, FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
23
23
  formProps: {
24
- model: vue59.Reactive<V>;
25
- rules: vue59.Reactive<Partial<Record<keyof V, FormRules | naive_ui1.FormItemRule | naive_ui1.FormItemRule[]>>>;
24
+ model: vue.Reactive<V>;
25
+ rules: vue.Reactive<Partial<Record<keyof V, FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>>;
26
26
  };
27
27
  setValue: (value: Partial<V>) => void;
28
28
  validate: () => Promise<{
@@ -32,16 +32,17 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
32
32
  resetForm: () => void;
33
33
  reset: () => void;
34
34
  clear: () => void;
35
- onValidated: _vueuse_core56.EventHookOn<[V]>;
35
+ onValidated: _vueuse_core0.EventHookOn<[V]>;
36
+ onUpdateValue: _vueuse_core0.EventHookOn<[V]>;
36
37
  }) => any;
37
38
  } & {
38
39
  default?: (props: {
39
40
  formInst: FormInst | null;
40
41
  formValues: V;
41
- formRules: Partial<Record<keyof V, FormRules | naive_ui1.FormItemRule | naive_ui1.FormItemRule[]>>;
42
+ formRules: Partial<Record<keyof V, FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
42
43
  formProps: {
43
- model: vue59.Reactive<V>;
44
- rules: vue59.Reactive<Partial<Record<keyof V, FormRules | naive_ui1.FormItemRule | naive_ui1.FormItemRule[]>>>;
44
+ model: vue.Reactive<V>;
45
+ rules: vue.Reactive<Partial<Record<keyof V, FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>>;
45
46
  };
46
47
  setValue: (value: Partial<V>) => void;
47
48
  validate: () => Promise<{
@@ -51,16 +52,17 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
51
52
  resetForm: () => void;
52
53
  reset: () => void;
53
54
  clear: () => void;
54
- onValidated: _vueuse_core56.EventHookOn<[V]>;
55
+ onValidated: _vueuse_core0.EventHookOn<[V]>;
56
+ onUpdateValue: _vueuse_core0.EventHookOn<[V]>;
55
57
  }) => any;
56
58
  } & {
57
59
  footer?: (props: {
58
60
  formInst: FormInst | null;
59
61
  formValues: V;
60
- formRules: Partial<Record<keyof V, FormRules | naive_ui1.FormItemRule | naive_ui1.FormItemRule[]>>;
62
+ formRules: Partial<Record<keyof V, FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
61
63
  formProps: {
62
- model: vue59.Reactive<V>;
63
- rules: vue59.Reactive<Partial<Record<keyof V, FormRules | naive_ui1.FormItemRule | naive_ui1.FormItemRule[]>>>;
64
+ model: vue.Reactive<V>;
65
+ rules: vue.Reactive<Partial<Record<keyof V, FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>>;
64
66
  };
65
67
  setValue: (value: Partial<V>) => void;
66
68
  validate: () => Promise<{
@@ -70,11 +72,12 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
70
72
  resetForm: () => void;
71
73
  reset: () => void;
72
74
  clear: () => void;
73
- onValidated: _vueuse_core56.EventHookOn<[V]>;
75
+ onValidated: _vueuse_core0.EventHookOn<[V]>;
76
+ onUpdateValue: _vueuse_core0.EventHookOn<[V]>;
74
77
  }) => any;
75
78
  };
76
79
  emit: (e: "validated", val: V) => void;
77
- }>) => vue59.VNode & {
80
+ }>) => vue.VNode & {
78
81
  __ctx?: Awaited<typeof __VLS_setup>;
79
82
  };
80
83
  declare const _default: typeof __VLS_export;
@@ -26,6 +26,5 @@ function mergeRule(option) {
26
26
  }
27
27
  return rule;
28
28
  }
29
-
30
29
  //#endregion
31
- export { mergeRule };
30
+ export { mergeRule };
@@ -1,7 +1,6 @@
1
- import SearchInput_default from "../search-input/SearchInput.js";
1
+ import _sfc_main$1 from "../search-input/SearchInput.js";
2
2
  import { createBlock, defineComponent, h, openBlock, resolveDynamicComponent } from "vue";
3
3
  import { NButton, NCheckbox, NCheckboxGroup, NColorPicker, NDatePicker, NDivider, NDynamicTags, NInput, NInputNumber, NRadio, NRadioGroup, NRate, NSelect, NSlider, NSwitch, NTimePicker } from "naive-ui";
4
-
5
4
  //#region src/components/preset-input/PresetInput.vue
6
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
6
  __name: "PresetInput",
@@ -21,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
20
  "dynamic-tags": NDynamicTags,
22
21
  "input": NInput,
23
22
  "input-number": NInputNumber,
24
- "search": SearchInput_default,
23
+ "search": _sfc_main$1,
25
24
  "radio": NRadioGroup,
26
25
  "rate": NRate,
27
26
  "select": NSelect,
@@ -81,7 +80,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
80
  };
82
81
  }
83
82
  });
84
- var PresetInput_default = _sfc_main;
85
-
86
83
  //#endregion
87
- export { PresetInput_default as default };
84
+ export { _sfc_main as default };