From d798be0e737969a60ac67e16e818a79b3ac8bdeb Mon Sep 17 00:00:00 2001
From: songjianet <1778651752@qq.com>
Date: Tue, 16 Aug 2022 13:52:36 +0800
Subject: [PATCH] [Refactor][UI] Refactor task definition version using NSpace
component. (#11495)
---
.../definition/components/version-modal.tsx | 34 ++++++++++---------
.../definition/components/version.module.scss | 22 ------------
2 files changed, 18 insertions(+), 38 deletions(-)
delete mode 100644 dolphinscheduler-ui/src/views/projects/task/definition/components/version.module.scss
diff --git a/dolphinscheduler-ui/src/views/projects/task/definition/components/version-modal.tsx b/dolphinscheduler-ui/src/views/projects/task/definition/components/version-modal.tsx
index 4040818eff..1d3cf41458 100644
--- a/dolphinscheduler-ui/src/views/projects/task/definition/components/version-modal.tsx
+++ b/dolphinscheduler-ui/src/views/projects/task/definition/components/version-modal.tsx
@@ -15,12 +15,12 @@
* limitations under the License.
*/
-import { defineComponent, PropType, toRefs, watch } from 'vue'
-import Modal from '@/components/modal'
-import { NDataTable, NPagination } from 'naive-ui'
+import { defineComponent, toRefs, watch } from 'vue'
+import { NDataTable, NPagination, NSpace } from 'naive-ui'
import { useI18n } from 'vue-i18n'
import { useVersion } from './use-version'
-import styles from './version.module.scss'
+import Modal from '@/components/modal'
+import type { PropType } from 'vue'
const props = {
show: {
@@ -86,19 +86,21 @@ const VersionModal = defineComponent({
cancelShow={false}
onConfirm={onConfirm}
>
-