zoukankan      html  css  js  c++  java
  • vue引入外部js数据

    import {
      inputComponents, selectComponents, layoutComponents, formConf
    } from '@/components/generator/config'
      data() {
        return {
          inputComponents,
         leftComponents: [
            {
              title: '输入型组件',
              list: inputComponents
            },
      }
    }
    // 输入型组件 【左面板】
    export const inputComponents = [
      {
        // 组件的自定义配置
        __config__: {
          label: '单行文本',
          labelWidth: null,
          showLabel: true,
          changeTag: true,
          tag: 'el-input',
          tagIcon: 'input',
          defaultValue: undefined,
          required: true,
          layout: 'colFormItem',
          span: 24,
          document: 'https://element.eleme.cn/#/zh-CN/component/input',
          // 正则校验规则
          regList: []
        },
        // 组件的插槽属性
        __slot__: {
          prepend: '',
          append: ''
        },
        // 其余的为可直接写在组件标签上的属性
        placeholder: '请输入',
        style: {  '100%' },
        clearable: true,
        'prefix-icon': '',
        'suffix-icon': '',
        maxlength: null,
        'show-word-limit': false,
        readonly: false,
        disabled: false
      },
      {
        __config__: {
          label: '多行文本',
          labelWidth: null,
          showLabel: true,
          tag: 'el-input',
          tagIcon: 'textarea',
          defaultValue: undefined,
          required: true,
          layout: 'colFormItem',
          span: 24,
          regList: [],
          changeTag: true,
          document: 'https://element.eleme.cn/#/zh-CN/component/input'
        },
        type: 'textarea',
        placeholder: '请输入',
        autosize: {
          minRows: 4,
          maxRows: 4
        },
        style: {  '100%' },
        maxlength: null,
        'show-word-limit': false,
        readonly: false,
        disabled: false
      },
      {
        __config__: {
          label: '密码',
          showLabel: true,
          labelWidth: null,
          changeTag: true,
          tag: 'el-input',
          tagIcon: 'password',
          defaultValue: undefined,
          layout: 'colFormItem',
          span: 24,
          required: true,
          regList: [],
          document: 'https://element.eleme.cn/#/zh-CN/component/input'
        },
        __slot__: {
          prepend: '',
          append: ''
        },
        placeholder: '请输入',
        'show-password': true,
        style: {  '100%' },
        clearable: true,
        'prefix-icon': '',
        'suffix-icon': '',
        maxlength: null,
        'show-word-limit': false,
        readonly: false,
        disabled: false
      },
      {
        __config__: {
          label: '计数器',
          showLabel: true,
          changeTag: true,
          labelWidth: null,
          tag: 'el-input-number',
          tagIcon: 'number',
          defaultValue: undefined,
          span: 24,
          layout: 'colFormItem',
          required: true,
          regList: [],
          document: 'https://element.eleme.cn/#/zh-CN/component/input-number'
        },
        placeholder: '',
        min: undefined,
        max: undefined,
        step: 1,
        'step-strictly': false,
        precision: undefined,
        'controls-position': '',
        disabled: false
      },
      {
        __config__: {
          label: '编辑器',
          showLabel: true,
          changeTag: true,
          labelWidth: null,
          tag: 'tinymce',
          tagIcon: 'rich-text',
          defaultValue: null,
          span: 24,
          layout: 'colFormItem',
          required: true,
          regList: [],
          document: 'http://tinymce.ax-z.cn'
        },
        placeholder: '请输入',
        height: 300, // 编辑器高度
        branding: false // 隐藏右下角品牌烙印
      }
    ]

  • 相关阅读:
    Linux 文件权限
    Linux 查看磁盘使用情况
    绑定到外部验证服务LDAP、配置 autofs
    创建逻辑卷
    查找一个字符串
    查找用户目录下的指定文件
    配置NTP时间服务器
    通过Roslyn构建自己的C#脚本(更新版)(转)
    Elon Musk
    可能改变世界的13个“终结”(上)
  • 原文地址:https://www.cnblogs.com/dianzan/p/13489572.html
Copyright © 2011-2022 走看看