drawingDefault.js 911 B

12345678910111213141516171819202122232425262728293031323334353637
  1. export const drawingDefaultValue = []
  2. export function initDrawingDefaultValue() {
  3. if (drawingDefaultValue.length === 0) {
  4. drawingDefaultValue.push({
  5. layout: 'colFormItem',
  6. tagIcon: 'input',
  7. label: '手机号',
  8. vModel: 'mobile',
  9. formId: 6,
  10. tag: 'el-input',
  11. placeholder: '请输入手机号',
  12. defaultValue: '',
  13. span: 24,
  14. style: {width: '100%'},
  15. clearable: true,
  16. prepend: '',
  17. append: '',
  18. 'prefix-icon': 'el-icon-mobile',
  19. 'suffix-icon': '',
  20. maxlength: 11,
  21. 'show-word-limit': true,
  22. readonly: false,
  23. disabled: false,
  24. required: true,
  25. changeTag: true,
  26. regList: [{
  27. pattern: '/^1(3|4|5|7|8|9)\\d{9}$/',
  28. message: '手机号格式错误'
  29. }]
  30. })
  31. }
  32. }
  33. export function cleanDrawingDefaultValue() {
  34. drawingDefaultValue.splice(0, drawingDefaultValue.length)
  35. }