fix: 添加空状态提示,方便调试
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-30 14:31:18 +00:00
parent 84d58af08c
commit 1d779dcfbe

View File

@@ -60,6 +60,7 @@
<text class="dialog-title">{{ currentCategory.name }} - 属性配置</text>
</view>
<view class="dialog-body">
<view v-if="attributes.length === 0" class="empty-tip">暂无属性点击下方按钮添加</view>
<view v-for="(attr, index) in attributes" :key="index" class="attr-item">
<input class="input attr-name" v-model="attr.name" placeholder="属性名称" />
<select class="input attr-type" v-model="attr.attrType">
@@ -465,6 +466,13 @@ export default {
border-radius: 8rpx;
}
.empty-tip {
text-align: center;
color: #999;
padding: 40rpx 0;
font-size: 28rpx;
}
.add-attr-btn {
padding: 20rpx;
text-align: center;