"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _snippets = _interopRequireDefault(require("./snippets"));
var _default = {
  group: '原子组件',
  componentName: 'DatePicker',
  title: '日期选择框',
  docUrl: '',
  screenshot: '',
  npm: {
    "package": '@alilc/lowcode-materials',
    version: '{{version}}',
    exportName: 'DatePicker',
    main: '',
    destructuring: true,
    subName: ''
  },
  props: [{
    name: 'prefix',
    propType: 'string',
    defaultValue: 'next-'
  }, {
    name: 'rtl',
    propType: 'bool',
    defaultValue: false
  }, {
    name: 'name',
    title: {
      label: '名称',
      tip: 'name|表单相关'
    },
    propType: 'string',
    description: 'name|表单相关'
  }, {
    name: 'label',
    title: {
      label: '标签',
      tip: 'label|输入框内置标签'
    },
    propType: 'string',
    description: 'label|输入框内置标签'
  }, {
    name: 'state',
    title: {
      label: '状态',
      tip: 'state|输入框状态'
    },
    propType: {
      type: 'oneOf',
      value: ['success', 'loading', 'error']
    },
    description: 'state|输入框状态'
  }, {
    name: 'placeholder',
    title: {
      label: '占位提示',
      tip: 'placeholder|输入提示'
    },
    propType: 'string',
    description: '输入提示'
  }, {
    name: 'value',
    title: {
      label: 'value',
      tip: 'value|日期值（受控）'
    },
    propType: {
      type: 'instanceOf',
      value: 'custom'
    },
    description: '日期值（受控）moment 对象'
  }, {
    name: 'defaultValue',
    title: {
      label: '默认值',
      tip: 'defaultValue|初始日期值，moment 对象'
    },
    propType: 'date',
    description: 'defaultValue|初始日期值，moment 对象'
  }, {
    name: 'format',
    title: {
      label: '格式',
      tip: 'format|日期值的格式（用于限定用户输入和展示）'
    },
    propType: 'string',
    description: 'format|日期值的格式（用于限定用户输入和展示）',
    defaultValue: 'YYYY-MM-DD'
  }, {
    name: 'onChange',
    propType: 'func',
    description: '日期值改变时的回调\n@param {MomentObject|String} value 日期值'
  }, {
    name: 'onOk',
    propType: 'func',
    description: '点击确认按钮时的回调\n@return {MomentObject|String} 日期值'
  }, {
    name: 'size',
    title: {
      label: '尺寸',
      tip: 'size|输入框尺寸'
    },
    propType: {
      type: 'oneOf',
      value: ['small', 'medium', 'large']
    },
    description: 'size|输入框尺寸',
    defaultValue: 'medium'
  }, {
    name: 'disabled',
    title: {
      label: '是否禁用',
      tip: 'disabled|是否禁用'
    },
    propType: 'bool',
    description: '是否禁用'
  }, {
    name: 'hasClear',
    title: {
      label: '清除按钮',
      tip: 'hasClear|是否显示清空按钮'
    },
    propType: 'bool',
    description: 'hasClear|是否显示清空按钮',
    defaultValue: true
  }, {
    name: 'followTrigger',
    propType: 'bool',
    description: '跟随滚动'
  }, {
    name: 'defaultVisible',
    title: {
      label: '弹层显示',
      tip: 'defaultVisible|弹层默认是否显示'
    },
    propType: 'bool',
    description: 'defaultVisible|弹层默认是否显示',
    defaultValue: false
  }, {
    name: 'className',
    propType: 'string'
  }, {
    name: 'style',
    propType: 'object'
  }, {
    name: 'form',
    propType: 'object'
  }],
  configure: {
    props: {
      isExtends: true,
      override: [{
        name: 'prefix',
        condition: function condition() {
          return false;
        }
      }, {
        name: 'rtl',
        condition: function condition() {
          return false;
        }
      }, {
        name: 'value',
        condition: function condition() {
          return false;
        }
      }, {
        name: 'name',
        condition: function condition() {
          return false;
        }
      }, {
        name: 'defaultValue',
        title: {
          label: '默认值',
          tip: 'defaultValue|初始日期值，moment 对象'
        },
        setter: 'DateSetter',
        supportVariable: true
      }, {
        name: 'form',
        type: 'group',
        title: '高级',
        display: 'block',
        items: [{
          name: 'id',
          title: {
            label: {
              type: 'i18n',
              zh_CN: '唯一标识',
              en_US: 'ID'
            },
            tip: {
              type: 'i18n',
              zh_CN: '属性: id | 说明: 唯一标识',
              en_US: 'prop: id | description: switch id'
            }
          },
          setter: 'StringSetter',
          supportVariable: true
        }, {
          name: 'name',
          title: {
            label: {
              type: 'i18n',
              zh_CN: '表单标识',
              en_US: 'Name'
            },
            tip: {
              type: 'i18n',
              zh_CN: '属性: name | 说明: 表单标识',
              en_US: 'prop: name | description: switch name'
            }
          },
          setter: 'StringSetter',
          supportVariable: true
        }]
      }]
    }
  },
  icon: '',
  category: '信息输入',
  snippets: _snippets["default"]
};
exports["default"] = _default;