Ver Fonte

fix:新增履约模板 样式

huangbin há 4 anos atrás
pai
commit
ebfaeece5a

+ 5 - 1
src/common/components/permanceTemp/addPermanceTemp.vue

@@ -4,7 +4,7 @@
           :placement="'right'"
           :visible="visible"
           @cancel="cancel"
-          class="top600">
+          :class="[position === 'top' ? 'top600' : 'delistingBottom']">
     <a-spin :spinning="loading">
       <div class="listed">
         <a-form class="inlineForm dialogForm"
@@ -268,6 +268,10 @@ export default defineComponent({
             type: Object as PropType<QueryPermancePlanTmpRsp>,
             default: {},
         },
+        position: {
+            type: String,
+            default: 'top',
+        },
     },
     components: { Des, Drawer, PlusOutlined, MinusOutlined, SearchOutlined, PlusCircleOutlined },
     setup(props, context) {

+ 1 - 0
src/common/components/permanceTemp/choosePermancePlanTmp.vue

@@ -37,6 +37,7 @@
     </a-spin>
   </Drawer>
   <Add v-if="show"
+       :position="position"
        @cancel="closeAddTemp" />
 </template>