From 1e44b8735935ae7059c56dd4c918883086628a2a Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Mon, 18 May 2026 16:35:06 +0800 Subject: [PATCH] refactor: migrate playground deprecated antdv-next APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modal: destroyOnClose → destroyOnHidden - Card: body-style → styles.body - Alert: message prop/slot → title - Spin: tip → description, wrapper-class-name → classes.root --- playground/src/adapter/component/index.ts | 2 +- .../src/views/demos/features/json-bigint/index.vue | 2 +- .../src/views/demos/features/vue-query/index.vue | 2 +- playground/src/views/examples/layout/col-page.vue | 2 +- playground/src/views/examples/loading/index.vue | 10 ++++++---- playground/src/views/examples/motion/index.vue | 6 +++--- playground/src/views/system/role/modules/form.vue | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/playground/src/adapter/component/index.ts b/playground/src/adapter/component/index.ts index 41209a18f..9f4607dc7 100644 --- a/playground/src/adapter/component/index.ts +++ b/playground/src/adapter/component/index.ts @@ -386,7 +386,7 @@ function cropImage(file: File, aspectRatio: string | undefined) { closable: false, cancelText: $t('common.cancel'), okText: $t('ui.crop.confirm'), - destroyOnClose: true, + destroyOnHidden: true, onOk: async () => { const cropper = cropperRef.value; if (!cropper) { diff --git a/playground/src/views/demos/features/json-bigint/index.vue b/playground/src/views/demos/features/json-bigint/index.vue index c35ae1e34..f4b6bdf27 100644 --- a/playground/src/views/demos/features/json-bigint/index.vue +++ b/playground/src/views/demos/features/json-bigint/index.vue @@ -21,7 +21,7 @@ function fetchData() { > -