Commit ed45d580 by zhangquan

样式隔离

1 parent 2cbe7ae1
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-form :ref="formRef" :disabled="formDisable" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :disabled="formDisable" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block tooltip-wrap" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
<span class="tips-icon"></span> <span class="tips-icon"></span>
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
} }
} }
</script> </script>
<style> <style scoped>
/* .glsx-combi-form { /* .glsx-combi-form {
min-width: 922px; min-width: 922px;
} */ } */
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
.glsx-combi-form .tips-label { .glsx-combi-form .tips-label {
margin-right: 20px; margin-right: 20px;
} }
.glsx-combi-form .tips-icon { .glsx-combi-form .tips-icon {
position: absolute; position: absolute;
display: inline-block; display: inline-block;
width: 12px; width: 12px;
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
border: 1px dotted #7f7f7f; border: 1px dotted #7f7f7f;
border-radius: 50%; border-radius: 50%;
} }
.glsx-combi-form .tips-icon::before { .glsx-combi-form .tips-icon::before {
content: '?'; content: '?';
position: absolute; position: absolute;
width: 8px; width: 8px;
......
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div> </div>
<div slot="shelvesStatusSlot" slot-scope="scope"> <div slot="shelvesStatusSlot" slot-scope="scope">
<span class="circle" :style="{color: scope.scope== 1001 ? '#2CCA74' : '#999999'}"></span> <span class="circle" :style="{backgroundColor: scope.scope.shelvesStatus== 1001 ? '#2CCA74' : '#999999'}"></span>
<span>{{scope.scope== 1001 ? '可上架': '已下架'}}</span> <span>{{scope.scope.shelvesStatus== 1001 ? '可上架': '已下架'}}</span>
</div> </div>
</GLTable> </GLTable>
<setPriceDialog v-if="isVisible" :visible="isVisible" @handleClose="handleClose" @confirm="confirmPriceChange"> <setPriceDialog v-if="isVisible" :visible="isVisible" @handleClose="handleClose" @confirm="confirmPriceChange">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!