configure.js 738 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { basicTwoInputConfigureOptions } from '../../input-configure-options'
  2. export default {
  3. ...basicTwoInputConfigureOptions(),
  4. min: {
  5. type: 'number',
  6. label: '最小值'
  7. },
  8. max: {
  9. type: 'number',
  10. label: '最大值'
  11. },
  12. step: {
  13. type: 'number',
  14. label: '步长',
  15. dependOn: ['precision'],
  16. changeConfig: ({ precision }, config) => {
  17. config.precision = precision
  18. return config
  19. }
  20. },
  21. precision: {
  22. type: 'number',
  23. label: '精度',
  24. min: 0
  25. },
  26. startPlaceholder: {
  27. label: '开始占位符',
  28. type: 'input',
  29. limit: 50
  30. },
  31. endPlaceholder: {
  32. label: '结束占位符',
  33. type: 'input',
  34. limit: 50
  35. },
  36. required: { },
  37. requiredErrorMessage: { }
  38. }