build(web): 移除 Tailwind CSS 依赖
- 移除了 @tailwindcss/vite 和 tailwindcss 依赖 - 在 index.html 中添加了 tailwindcss.js 脚本引用 - 调整了 Prettier 配置,增加了打印宽度
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
"$schema": "https://json.schemastore.org/prettierrc",
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"printWidth": 100
|
||||
"printWidth": 300
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="/tailwindcss.js"></script>
|
||||
<title>飘渺儒仙GM后台</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -10,9 +10,7 @@
|
||||
"format": "prettier --write src/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "^4.1.4",
|
||||
"element-plus": "^2.9.8",
|
||||
"tailwindcss": "^4.1.4",
|
||||
"vue": "^3.5.13",
|
||||
"vue-router": "^4.5.0"
|
||||
},
|
||||
|
||||
8
web/public/tailwindcss.js
Normal file
8
web/public/tailwindcss.js
Normal file
File diff suppressed because one or more lines are too long
@@ -7,4 +7,5 @@ import { RouterView } from 'vue-router';
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@import './base.css';
|
||||
@import 'tailwindcss';
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
|
||||
@@ -91,10 +91,10 @@ const submitForm = () => {
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>角色列表</span>
|
||||
<el-input class="w-60" v-model="roleSearch" placeholder="请输入角色名称或ID" @input="fetchRoleList"></el-input>
|
||||
<el-input style="width: 240px;" v-model="roleSearch" placeholder="请输入角色名称或ID" @input="fetchRoleList"></el-input>
|
||||
</div>
|
||||
</template>
|
||||
<el-table :data="roleList" style="width: 100%">
|
||||
<el-table :data="roleList" style="width: 100%" border>
|
||||
<el-table-column prop="id" label="ID" width="180"></el-table-column>
|
||||
<el-table-column prop="name" label="角色名称" width="180"></el-table-column>
|
||||
<el-table-column prop="level" label="等级"></el-table-column>
|
||||
@@ -106,10 +106,10 @@ const submitForm = () => {
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>充值流水</span>
|
||||
<el-input class="w-60" v-model="rechargeSearch" placeholder="请输入角色名称或流水单号" @input="fetchRechargeList"></el-input>
|
||||
<el-input style="width: 240px;" v-model="rechargeSearch" placeholder="请输入角色名称或流水单号" @input="fetchRechargeList"></el-input>
|
||||
</div>
|
||||
</template>
|
||||
<el-table :data="rechargeList" style="width: 100%">
|
||||
<el-table :data="rechargeList" style="width: 100%" border>
|
||||
<el-table-column prop="id" label="流水单号" width="180"></el-table-column>
|
||||
<el-table-column prop="roleName" label="角色名称" width="180"></el-table-column>
|
||||
<el-table-column prop="amount" label="充值金额"></el-table-column>
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||
import { defineConfig } from 'vite'
|
||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
// https://vite.dev/config/
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue(), vueJsx(), vueDevTools(), tailwindcss()],
|
||||
plugins: [vue(), vueJsx(), vueDevTools()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
||||
Reference in New Issue
Block a user