qidian-vue-ui 2.0.55 → 2.0.56

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.
@@ -5,7 +5,7 @@ declare const _default: <FD extends Data = Data>(__VLS_props: NonNullable<Awaite
5
5
  readonly "onUpdate:visible"?: ((args_0: boolean | undefined) => any) | undefined;
6
6
  readonly "onUpdate:data"?: ((args_0: FD | undefined) => any) | undefined;
7
7
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:visible" | "onUpdate:data"> & QdDialogFormProps<FD> & Partial<{}>> & import("vue").PublicProps;
8
- expose(exposed: import("vue").ShallowUnwrapRef<QdDialogFormInstanceFunctions<Data>>): void;
8
+ expose(exposed: import("vue").ShallowUnwrapRef<QdDialogFormInstanceFunctions<FD>>): void;
9
9
  attrs: any;
10
10
  slots: {
11
11
  [x: string]: ((props: any) => any) | undefined;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, mergeDefaults, useTemplateRef, ref, computed, createBlock, openBlock, mergeProps, unref, isRef, createSlots, withCtx, createVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, createElementBlock, resolveDynamicComponent, Fragment } from "vue";
2
2
  import { useVModels } from "../../node_modules/.pnpm/@vueuse_core@14.2.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
3
- import { suspectedWrapperPromise, isEmpty, easyCopy, extractSlotsWithPrefix, extractSlotsWithoutPrefix } from "qidian-shared";
3
+ import { suspectedWrapperPromise, createExposeProxy, extractSlotsWithPrefix, extractSlotsWithoutPrefix, isEmpty, easyCopy } from "qidian-shared";
4
4
  import { Button } from "tdesign-vue-next";
5
5
  import { useConfig } from "../config-provider/useConfig.mjs";
6
6
  import _sfc_main$1 from "./index.vue.mjs";
@@ -110,7 +110,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
110
  wrapper.onBeforeOpen?.();
111
111
  },
112
112
  onOpened: () => {
113
- Object.assign(expose, formRef.value);
114
113
  formRef.value?.clearValidate();
115
114
  opened.value = true;
116
115
  wrapper.onOpened?.();
@@ -152,11 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
151
  function hide() {
153
152
  visible.value = false;
154
153
  }
155
- const expose = {
156
- show,
157
- hide
158
- };
159
- __expose(expose);
154
+ __expose(createExposeProxy({ show, hide }, formRef));
160
155
  return (_ctx, _cache) => {
161
156
  return openBlock(), createBlock(_sfc_main$1, mergeProps({
162
157
  visible: unref(visible),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "2.0.55",
3
+ "version": "2.0.56",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",