Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
猿小天
2023-06-08 13:17:18 +08:00
3 changed files with 14 additions and 3 deletions

3
web/.gitignore vendored
View File

@@ -1,7 +1,8 @@
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
package-lock.json
yarn.lock
# local env files # local env files
.env.local .env.local

View File

@@ -34,6 +34,16 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
}; };
return { return {
crudOptions: { crudOptions: {
search: {
container: {
action: {
//按钮栏配置
col: {
span: 8
}
}
},
},
rowHandle: { rowHandle: {
//固定右侧 //固定右侧
fixed: 'right', fixed: 'right',

View File

@@ -17,7 +17,7 @@ const alias: Record<string, string> = {
const viteConfig = defineConfig((mode: ConfigEnv) => { const viteConfig = defineConfig((mode: ConfigEnv) => {
const env = loadEnv(mode.mode, process.cwd()); const env = loadEnv(mode.mode, process.cwd());
return { return {
plugins: [vue(), vueJsx(),vueSetupExtend()], plugins: [vue(), vueJsx(), vueSetupExtend()],
root: process.cwd(), root: process.cwd(),
resolve: { alias }, resolve: { alias },
base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH, base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH,
@@ -27,7 +27,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
port: env.VITE_PORT as unknown as number, port: env.VITE_PORT as unknown as number,
open: env.VITE_OPEN, open: true,
hmr: true, hmr: true,
proxy: { proxy: {
'/gitee': { '/gitee': {