This commit is contained in:
@@ -60,6 +60,7 @@
|
|||||||
<text class="dialog-title">{{ currentCategory.name }} - 属性配置</text>
|
<text class="dialog-title">{{ currentCategory.name }} - 属性配置</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="dialog-body">
|
<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">
|
<view v-for="(attr, index) in attributes" :key="index" class="attr-item">
|
||||||
<input class="input attr-name" v-model="attr.name" placeholder="属性名称" />
|
<input class="input attr-name" v-model="attr.name" placeholder="属性名称" />
|
||||||
<select class="input attr-type" v-model="attr.attrType">
|
<select class="input attr-type" v-model="attr.attrType">
|
||||||
@@ -465,6 +466,13 @@ export default {
|
|||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty-tip {
|
||||||
|
text-align: center;
|
||||||
|
color: #999;
|
||||||
|
padding: 40rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.add-attr-btn {
|
.add-attr-btn {
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user