• 子组件(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:哈尔滨冬天的雪!!!
  • 相关阅读:
    final有什么用?
    数组的定义
    作业
    List 、Set数据结构
    报表工具实现单据套打
    动态格报表的制作
    图形钻取
    报表工具轻松搞定卡片式报表
    列表钻取
    报表中如何实现不规则布局
  • 原文地址:https://www.cnblogs.com/KoBe-bk/p/13781333.html
Copyright © 2020-2023  润新知