子组件(components)的使用


子组件(.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:哈尔滨冬天的雪!!!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM