update pay function
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
/* Hero UI 源码扫描(Tailwind v4 推荐方式) */
|
||||||
|
@source "../node_modules/@heroui/theme";
|
||||||
|
@source "../node_modules/@heroui/react";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
const { heroui } = require("@heroui/react");
|
const { heroui } = require("@heroui/react");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// 最小化扫描范围 - 只包含绝对必要的文件
|
// 只扫描项目源码,不包含 node_modules
|
||||||
|
// Hero UI 通过 @source 指令在 brainwave.css 中声明
|
||||||
content: [
|
content: [
|
||||||
"./src/views/AgentChat/**/*.{js,jsx}", // 只扫描 AgentChat(使用 Hero UI 的页面)
|
"./src/**/*.{js,jsx}",
|
||||||
"./src/index.js", // 入口文件
|
"./public/index.html",
|
||||||
"./public/index.html", // HTML 模板
|
|
||||||
],
|
],
|
||||||
|
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
@@ -42,22 +42,10 @@ module.exports = {
|
|||||||
|
|
||||||
plugins: [heroui()],
|
plugins: [heroui()],
|
||||||
|
|
||||||
// 预加载所有可能用到的 Hero UI 类名
|
|
||||||
safelist: [
|
safelist: [
|
||||||
// 布局
|
'bg-gradient-to-br',
|
||||||
'flex', 'flex-1', 'flex-col', 'grid', 'overflow-hidden',
|
'from-blue-500',
|
||||||
// 渐变
|
'to-purple-500',
|
||||||
'bg-gradient-to-br', 'from-blue-500', 'to-purple-500',
|
'backdrop-blur-xl',
|
||||||
'from-gray-900', 'to-gray-800', 'via-slate-900',
|
|
||||||
// 毛玻璃
|
|
||||||
'backdrop-blur-xl', 'bg-white/80', 'bg-gray-900/95', 'bg-gray-800/80',
|
|
||||||
// 边框
|
|
||||||
'border-gray-200', 'border-gray-700', 'border-gray-800',
|
|
||||||
// 文字颜色
|
|
||||||
'text-gray-100', 'text-gray-300', 'text-gray-400',
|
|
||||||
// 背景颜色
|
|
||||||
'bg-gray-800', 'bg-gray-900', 'bg-blue-500',
|
|
||||||
// 悬停状态
|
|
||||||
'hover:bg-gray-700', 'hover:border-blue-500',
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user