安装tailwind

This commit is contained in:
GUjiYN 2024-03-03 15:16:25 +08:00
parent ff8d80d6d6
commit 84d0bfe9f9
5 changed files with 1072 additions and 4 deletions

1067
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,12 +12,16 @@
"@ant-design/icons-vue": "^7.0.1",
"ant-design-vue": "^4.1.1",
"axios": "^1.6.7",
"flowbite": "^2.3.0",
"vue": "^3.3.11",
"vue-request": "^2.0.4",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.2",
"autoprefixer": "^10.4.18",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1",
"unplugin-vue-components": "^0.26.0",
"vite": "^5.0.10"
}

View File

@ -6,7 +6,6 @@
<a-button style="color: white" type="text" @click="$router.push('/login')">登录</a-button>
<a-button style="color: white" type="text" @click="$router.push('/register')">注册</a-button>
</div>
</div>
</template>
<script setup>

3
src/index.css Normal file
View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -3,6 +3,7 @@ import Antd from 'ant-design-vue';
import App from './App.vue'
import router from './router'
import 'ant-design-vue/dist/reset.css';
import './index.css'
const app = createApp(App)