{
  "widgetName": "YearPicker",
  "title": "年选择器",
  "desc": "用于年选择,",
  "tag": "年选择器 年选择框 年份选择器 年份选择器 YearPicker 表单",
  "props": {
    "lugiaHidden": {
      "type": "boolean",
      "desc": "是否渲染当前组件",
      "defaultValue": false
    },
    "createPortal": {
      "type": "boolean",
      "desc": "是否全局弹出下拉框",
      "propsDefaultValue": true
    },
    "popupContainerId": {
      "type": "ContainerDomIdType",
      "desc": "配置弹出框的作用容器id"
    },
    "defaultValue": {
      "type": "string",
      "desc": "日期默认显示值"
    },
    "value": {
      "type": "string",
      "desc": "日期显示值"
    },
    "format": {
      "type": "string",
      "desc": "用于指定输入框日期显示的格式",
      "propsDefaultValue": "YYYY"
    },
    "placeholder": {
      "type": "string",
      "desc": "input输入提示信息"
    },
    "disabled": {
      "type": "boolean",
      "desc": "禁用状态,是否不可用",
      "propsDefaultValue": false
    },
    "readOnly": {
      "type": "boolean",
      "desc": "只读input",
      "propsDefaultValue": false
    },
    "extraFooter": {
      "type": "Object",
      "desc": "在面板中添加额外的页脚 extraFooter={message:'XXX',style:{...}}",
      "meta": [
        {
          "key": "message",
          "title": "额外的页脚信息",
          "type": "string"
        }
      ]
    },
    "step": {
      "type": "number",
      "desc": "设置年的展示步长"
    },
    "validateStatus": {
      "type": "ValidateStatus",
      "desc": "校验状态"
    },
    "validateType": {
      "type": "ValidateType",
      "desc": "校验信息显示类型",
      "propsDefaultValue": "top"
    },
    "help": {
      "type": "string",
      "desc": "校验提示信息"
    },
    "size": {
      "type": "InputSize",
      "desc": "可配置三种尺寸大小的input",
      "propsDefaultValue": "default"
    },
    "suffix": {
      "type": "icon",
      "desc": "后缀图标"
    },
    "prefix": {
      "type": "icon",
      "desc": "前缀图标"
    },
    "clearIcon": {
      "type": "icon",
      "desc": "清除图标"
    },
    "canClear": {
      "type": "boolean",
      "desc": "是否展示清除按钮",
      "propsDefaultValue": true
    },
    "alwaysOpen": {
      "type": "boolean",
      "desc": "控制面板是否始终展开",
      "propsDefaultValue": false
    },
    "liquidLayout": {
      "type": "boolean",
      "desc": "是否开启流式布局",
      "propsDefaultValue": false
    },
    "headSwitchIconLevelOne": {
      "type": "Object",
      "desc": "头部一级图标",
      "meta": [
        {
          "key": "left",
          "title": "左边图标",
          "type": "icon"
        },
        {
          "key": "right",
          "title": "右边图标",
          "type": "icon"
        }
      ]
    },
    "hiddenHelp": {
      "desc": "是否隐藏校验信息,只显示错误边框样式",
      "type": "boolean",
      "designOnly": false,
      "injectProps": false,
      "propsDefaultValue": false
    }
  },
  "events": {
    "onChange": {
      "desc": "时间值发生变化时的回调",
      "args": [
        {
          "name": "event",
          "desc": "时间值发生变化时的回调",
          "type": "ChangeType"
        }
      ]
    },
    "onFocus": {
      "desc": "输入框获取焦点",
      "args": []
    },
    "onBlur": {
      "desc": "输入框失去焦点",
      "args": []
    }
  },
  "type": {
    "InputSize": [
      {
        "value": "small",
        "text": "小"
      },
      {
        "value": "default",
        "text": "默认"
      },
      {
        "value": "large",
        "text": "大"
      }
    ],
    "ValidateType": [
      {
        "value": "top",
        "text": "上"
      },
      {
        "value": "bottom",
        "text": "下"
      },
      {
        "value": "inner",
        "text": "内部"
      }
    ],
    "ValidateStatus": [
      {
        "value": "default",
        "text": "默认"
      },
      {
        "value": "error",
        "text": "错误"
      }
    ],
    "ChangeType": {
      "newValue": "string",
      "oldValue": "string",
      "event": "SyntheticEvent"
    }
  },
  "category": ["数据录入"],
  "componentName": "YearPicker",
  "needExport": true,
  "theme": {
    "Container": {
      "name": "文本框",
      "desc": "文本框配置",
      "normal": [
        ["width"],
        ["height"],
        ["background"],
        ["fontSize"],
        ["borderRadius"],
        ["border"],
        ["boxShadow"],
        ["color"],
        ["font"],
        ["margin"],
        ["padding"],
        ["textAlign"]
      ],
      "hover": [["border"], ["borderRadius"], ["boxShadow"], ["background"]],
      "active": [],
      "focus": [["background"], ["borderRadius"], ["border"], ["boxShadow"]],
      "disabled": [["background"], ["borderRadius"], ["border"], ["boxShadow"]]
    },
    "Placeholder": {
      "name": "文本框提示信息",
      "desc": "文本框提示信息配置",
      "normal": [["color"], ["fontSize"], ["font"]]
    },
    "InputPrefix": {
      "name": "前缀图标",
      "desc": "前缀图标配置",
      "normal": [["color"], ["font"], ["padding"], ["margin"]],
      "hover": [["color"], ["font"]],
      "disabled": [["color"], ["font"]]
    },
    "InputSuffix": {
      "name": "后缀图标",
      "desc": "后缀图标配置",
      "normal": [["color"], ["font"], ["padding"], ["margin"]],
      "hover": [["color"], ["font"]],
      "disabled": [["color"], ["font"]]
    },
    "ClearButton": {
      "name": "清除图标",
      "desc": "清除图标配置",
      "normal": [["color"], ["font"]],
      "hover": [["color"], ["font"]],
      "disabled": [["color"], ["font"]]
    },
    "FacePanelContain": {
      "name": "日期面板",
      "desc": "日期面板配置",
      "normal": [["width"], ["height"], ["background"], ["border"], ["boxShadow"], ["borderRadius"]]
    },
    "GroupDate": {
      "name": "分类日期",
      "desc": "分类日期配置/年/月/周",
      "normal": [["color"], ["font"]],
      "hover": [["color"], ["font"]],
      "active": [["color"], ["font"], ["background"], ["borderRadius"], ["border"], ["boxShadow"]]
    },
    "HeadSingleArrow": {
      "name": "头部单箭头",
      "desc": "头部单箭头",
      "normal": [["color"], ["font"]],
      "hover": [["color"], ["font"]],
      "active": [["color"], ["font"]],
      "disabled": [["color"], ["font"]]
    },
    "HeadYearText": {
      "name": "头部年",
      "desc": "头部年的配置",
      "normal": [["color"], ["font"]],
      "hover": [["color"], ["font"]],
      "active": [["color"], ["font"]],
      "disabled": [["color"], ["font"]]
    },
    "ValidateErrorInput": {
      "name": "校验失败的输入框",
      "desc": "配置校验失败的输入框",
      "normal": [
        ["fontSize"],
        ["font"],
        ["color"],
        ["background"],
        ["border"],
        ["boxShadow"],
        ["opacity"]
      ],
      "hover": [["background"], ["border"], ["boxShadow"]],
      "active": [["background"], ["border"], ["boxShadow"]]
    },
    "ValidateErrorText": {
      "name": "校验失败提示信息",
      "desc": "配置校验失败的提示信息",
      "normal": [
        ["background"],
        ["boxShadow"],
        ["borderRadius"],
        ["border"],
        ["fontSize"],
        ["font"],
        ["color"]
      ],
      "hover": [],
      "active": []
    },
    "ExtraFooter": {
      "name": "额外页脚",
      "desc": "额外页脚配置",
      "normal": [["color"], ["font"]]
    },
    "FooterLine": {
      "name": "页脚分割线",
      "desc": "页脚分割线配置",
      "normal": [["background"]]
    }
  },
  "defaultTheme": {
    "Container": {
      "normal": {
        "width": 300
      }
    },
    "FacePanelContain": {
      "normal": {
        "width": 300,
        "height": 320
      }
    }
  }
}
