idea配置eslint和prettier

This commit is contained in:
WindowBird 2025-11-26 16:52:52 +08:00
parent bcdfbb26f9
commit 7d91985bb2
4 changed files with 46 additions and 20 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

7
.idea/prettier.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
<option name="myRunOnSave" value="true" />
</component>
</project>

View File

@ -11,14 +11,14 @@
<view class="grid"> <view class="grid">
<view <view
class="grid-item"
v-for="item in items" v-for="item in items"
:key="item.key" :key="item.key"
@click="handleClick(item)"
v-permission="item.permission" v-permission="item.permission"
class="grid-item"
@click="handleClick(item)"
> >
<view class="icon-wrapper"> <view class="icon-wrapper">
<image class="icon-image" :src="item.icon" mode="aspectFit" /> <image :src="item.icon" class="icon-image" mode="aspectFit"/>
</view> </view>
<text class="item-text">{{ item.text }}</text> <text class="item-text">{{ item.text }}</text>
</view> </view>
@ -129,9 +129,11 @@ const goToAddTask = () => {
background: #f5f6f7; background: #f5f6f7;
border-radius: 16px; border-radius: 16px;
} }
.search-icon { .search-icon {
font-size: 14px; font-size: 14px;
} }
.placeholder { .placeholder {
font-size: 12px; font-size: 12px;
color: #aaa; color: #aaa;
@ -161,6 +163,7 @@ const goToAddTask = () => {
//justify-content: center; //justify-content: center;
//overflow: hidden; //overflow: hidden;
} }
.icon-image { .icon-image {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -13,6 +13,16 @@ const normalizePermissionList = (permissions) => {
.split(',') .split(',')
.map((perm) => perm.trim()) .map((perm) => perm.trim())
.filter(Boolean) .filter(Boolean)
} }
return [] return []
} }