子组件(.vue文件)的使用:

  1.在common(公共组件文件夹)下新建selectCode.vue(组件)

    selectCode.vue :是 下拉框公共组件(是对a-select的二次封装)

  2.在需要用到组件的页面导入

    import selectCode from "../../common/selectCode";
  3. 在 components 里面注册
    components: {
        selectCode
      },
  4. 在<tmplate></template> 中使用即可,蓝色字体为组件具体封装的内容,无需理会
    <select-code
              :value.sync="infoForm.MASSG_DD"
              @call="text => (infoForm.MASSG_DD_T = text)"
              :code="$sc.MASSN_DD"
              :disabled="isDisabled"
              @mouseenter="open"
            />
    
 
 
 
 
TO:哈尔滨冬天的雪!!!

相关文章:

  • 2023-01-22
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-04-01
  • 2021-05-06
猜你喜欢
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-01-29
  • 2022-12-23
  • 2023-02-06
相关资源
相似解决方案