+
{{ [ scheme.groupVersionKind.group, @@ -153,26 +149,23 @@ const { open } = useDataImport(selectedScheme);
+
+
{{ data }}
diff --git a/ui/src/views/components/DataUpdateSection.vue b/ui/src/views/components/DataUpdateSection.vue
index 3457593..7155cf6 100644
--- a/ui/src/views/components/DataUpdateSection.vue
+++ b/ui/src/views/components/DataUpdateSection.vue
@@ -48,10 +48,8 @@ async function handleSave() {
-
- {{ data?.metadata?.name }}
+
+ {{ data?.metadata?.name }}
返回
@@ -59,7 +57,7 @@ async function handleSave() {
-
+
diff --git a/ui/tailwind.config.cjs b/ui/tailwind.config.cjs
deleted file mode 100644
index b312d80..0000000
--- a/ui/tailwind.config.cjs
+++ /dev/null
@@ -1,9 +0,0 @@
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- content: ['./src/**/*.vue'],
- prefix: 'ds-',
- theme: {
- extend: {},
- },
- plugins: [],
-};
diff --git a/ui/uno.config.ts b/ui/uno.config.ts
new file mode 100644
index 0000000..c07dc3f
--- /dev/null
+++ b/ui/uno.config.ts
@@ -0,0 +1,6 @@
+import { defineConfig, presetUno, transformerDirectives } from 'unocss';
+
+export default defineConfig({
+ presets: [presetUno()],
+ transformers: [transformerDirectives()],
+});
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index 5e58d43..d1e89a5 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -1,12 +1,20 @@
-import { fileURLToPath, URL } from 'url';
-
import { HaloUIPluginBundlerKit } from '@halo-dev/ui-plugin-bundler-kit';
import Vue from '@vitejs/plugin-vue';
+import UnoCSS from 'unocss/vite';
import Icons from 'unplugin-icons/vite';
+import { fileURLToPath, URL } from 'url';
import { defineConfig } from 'vite';
export default defineConfig({
- plugins: [Vue(), Icons({ compiler: 'vue3' }), HaloUIPluginBundlerKit()],
+ plugins: [
+ Vue(),
+ Icons({ compiler: 'vue3' }),
+ UnoCSS({
+ mode: 'vue-scoped',
+ configFile: './uno.config.ts',
+ }),
+ HaloUIPluginBundlerKit(),
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),