attributes.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "qm-button/disabled": {
  3. "type": "boolean",
  4. "description": "disabled state of button, Default: `false`"
  5. },
  6. "qm-button/ghost": {
  7. "type": "boolean",
  8. "description": "make background transparent and invert text and border colors, added in 2.7, Default: false"
  9. },
  10. "qm-button/htmlType": {
  11. "type": "string",
  12. "description": "set the original html `type` of `button`, see: [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type), Default: `button`"
  13. },
  14. "qm-button/icon": {
  15. "type": "v-slot",
  16. "description": "set the icon of button, see: Icon component, Default: -"
  17. },
  18. "qm-button/loading": {
  19. "type": "boolean | { delay: number }",
  20. "description": "set the loading status of button, Default: false"
  21. },
  22. "qm-button/shape": {
  23. "type": "string",
  24. "description": "can be set to `circle`, `round` or omitted, Default: -"
  25. },
  26. "qm-button/size": {
  27. "type": "string",
  28. "description": "can be set to `small` `large` or omitted, Default: `default`"
  29. },
  30. "qm-button/type": {
  31. "type": "string",
  32. "description": "can be set to `primary` `ghost` `dashed` `danger` `link` or omitted (meaning `default`), Default: `default`"
  33. },
  34. "qm-button/block": {
  35. "type": "boolean",
  36. "description": "option to fit button width to its parent width, Default: `false`"
  37. }
  38. }