perf: 增加按钮disabled样式

This commit is contained in:
chenjinsong
2020-01-16 18:57:39 +08:00
parent b164ab1dac
commit b78b764dcb
2 changed files with 6 additions and 6 deletions

View File

@@ -144,10 +144,10 @@ html {
} }
.nz-btn.nz-btn-disabled { .nz-btn.nz-btn-disabled {
background-image: none; background-image: none;
background-color: #666; color: #e5e5e5;
color: white; background-color: #ffffff;
text-shadow: none; border-color: #e5e5e5 ;
border-color: #999; cursor: default;
} }
.nz-btn-group .nz-btn:first-child:not(:last-child) { .nz-btn-group .nz-btn:first-child:not(:last-child) {
border-bottom-right-radius: 0; border-bottom-right-radius: 0;

View File

@@ -88,11 +88,11 @@
</template> </template>
</module-list-pop> </module-list-pop>
</div> </div>
<button type="button" v-else class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-75">{{scope.row.moduleNum}}</button> <button type="button" v-else class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-75 nz-btn-disabled">{{scope.row.moduleNum}}</button>
</div> </div>
<div v-if="item.prop=='Alert'"> <div v-if="item.prop=='Alert'">
<button type="button" v-if="scope.row.alertNum > 0" id="'asset-alerts-'+scope.row.id" @click="jumpToAlertMsg(scope.row.id)" class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-75">{{scope.row.alertNum}}</button> <button type="button" v-if="scope.row.alertNum > 0" id="'asset-alerts-'+scope.row.id" @click="jumpToAlertMsg(scope.row.id)" class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-75">{{scope.row.alertNum}}</button>
<button type="button" v-else class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-75">{{scope.row.alertNum}}</button> <button type="button" v-else class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-75 nz-btn-disabled">{{scope.row.alertNum}}</button>
</div> </div>
<div v-if="item.prop=='dataCenter'"> <div v-if="item.prop=='dataCenter'">
<idc-config-box :post-idc="JSON.parse(JSON.stringify(scope.row.idc))" ref="idcConfigBox" :is-edit="false" placement="left" @after="getAssetData(null, true)" :button-class="'checkbox-edit'"> <idc-config-box :post-idc="JSON.parse(JSON.stringify(scope.row.idc))" ref="idcConfigBox" :is-edit="false" placement="left" @after="getAssetData(null, true)" :button-class="'checkbox-edit'">