From 34bfed7b0edfbd0974d2caf4baa1cd55a69b92f1 Mon Sep 17 00:00:00 2001 From: cxymds Date: Tue, 1 Apr 2025 16:04:09 +0800 Subject: [PATCH] feat : bucket replication --- components/lifecycle/new-form.vue | 2 +- components/replication/new-form.vue | 173 ++++++++++++++++++++++++++++ package.json | 2 +- pages/replication/index.vue | 8 +- 4 files changed, 182 insertions(+), 3 deletions(-) create mode 100644 components/replication/new-form.vue diff --git a/components/lifecycle/new-form.vue b/components/lifecycle/new-form.vue index 67abb4c..5241c8d 100644 --- a/components/lifecycle/new-form.vue +++ b/components/lifecycle/new-form.vue @@ -66,7 +66,7 @@ - + diff --git a/components/replication/new-form.vue b/components/replication/new-form.vue new file mode 100644 index 0000000..ead7335 --- /dev/null +++ b/components/replication/new-form.vue @@ -0,0 +1,173 @@ + + + diff --git a/package.json b/package.json index 2ad7b0f..43349d4 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "scripts": { "build": "nuxt build", - "dev": "nuxt dev", + "dev": "nuxt dev --host", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" diff --git a/pages/replication/index.vue b/pages/replication/index.vue index 8da3f3c..b935bbc 100644 --- a/pages/replication/index.vue +++ b/pages/replication/index.vue @@ -14,7 +14,7 @@
- + 添加副本规则 @@ -29,6 +29,7 @@ +
@@ -136,4 +137,9 @@ const handleRowDelete = (row: RowData, e: Event) => { e.stopPropagation(); console.log(row); }; + +const addFromRef = ref(); +const openForm = () => { + addFromRef.value.open(); +}