year.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { Config } from "@/types/config";
  2. const config: Config = {
  3. url: "https://element.eleme.cn/#/zh-CN/component/date-picker",
  4. attrs: {
  5. placeholder: {
  6. type: "input",
  7. label: "占位内容"
  8. },
  9. format: {
  10. type: "input",
  11. label: "显示在输入框中的格式"
  12. },
  13. clearable: {
  14. type: "switch",
  15. label: "是否显示清除按钮"
  16. },
  17. editable: {
  18. type: "switch",
  19. label: "文本框可输入"
  20. },
  21. size: {
  22. type: "select",
  23. label: "输入框尺寸",
  24. options: [{ text: "默认", value: null }, "medium", "small", "mini"]
  25. },
  26. popperClass: {
  27. type: "input",
  28. label: "DatePicker 下拉框的类名"
  29. },
  30. prefixIcon: {
  31. type: "input",
  32. label: "自定义头部图标的类名"
  33. },
  34. clearIcon: {
  35. type: "input",
  36. label: "自定义清空图标的类名"
  37. },
  38. readonly: {
  39. type: "switch",
  40. label: "完全只读"
  41. }
  42. },
  43. attrsData: {},
  44. attrsDefaultData: {
  45. readonly: false,
  46. editable: true,
  47. clearable: true,
  48. size: null,
  49. prefixIcon: "el-icon-date",
  50. clearIcon: "el-icon-circle-close"
  51. },
  52. common: {
  53. default: {
  54. type: "year",
  55. label: "默认值"
  56. }
  57. },
  58. commonData: {},
  59. commonDefaultData: {}
  60. };
  61. export default config;