zoukankan      html  css  js  c++  java
  • Ant Design Vue Drawer组件 样式覆盖的问题

    覆盖Ant Design Vue Drawer组件的默认样式

     1,在组件的html中设置wrapClassName="drawer-style"

    <a-drawer
          :mask-style="{'background':'rgba(51, 51, 51, 0)'}"
          width="512px"
          placement="right"
          :closable="false"
          :visible="showRightBox"
          :get-container="false"
          :wrap-style="{ position: 'absolute' }"
          :destroyOnClose="true"
          wrapClassName="drawer-style"
          @close="
            showRightBox = false;
            chooseType = '';
            chooseComId = '';
            setComps = '';
          "
        >
    ...
    
    </a-drawer>
    

    2,输入less覆盖样式(:global是关键)

    :global(.drawer-style .ant-drawer-content) {
      background-color: rgba(255, 255, 255, 0);
    }
  • 相关阅读:
    python3第六天
    python3第五天
    python3第四天
    python3 第三天
    python3第二天
    python3(2)
    python3(1)
    网络通信 & 初识socket
    python中包的语法
    模块语法
  • 原文地址:https://www.cnblogs.com/Webzhoushifa/p/14978704.html
Copyright © 2011-2022 走看看