d2483d1678be5ea813ad141c5eeed534806c7f08b27fb581c83c30b6fa7535a28c859c5aa321ce792f6f5c27ca6d8a8e3ef7fe504505baca9d6bd2ba8ba711 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var iconsVue = require('@element-plus/icons-vue');
  4. var runtime = require('../../../utils/vue/props/runtime.js');
  5. var index = require('../../../hooks/use-size/index.js');
  6. var icon = require('../../../utils/vue/icon.js');
  7. const buttonTypes = [
  8. "default",
  9. "primary",
  10. "success",
  11. "warning",
  12. "info",
  13. "danger",
  14. "text",
  15. ""
  16. ];
  17. const buttonNativeTypes = ["button", "submit", "reset"];
  18. const buttonProps = runtime.buildProps({
  19. size: index.useSizeProp,
  20. disabled: Boolean,
  21. type: {
  22. type: String,
  23. values: buttonTypes,
  24. default: ""
  25. },
  26. icon: {
  27. type: icon.iconPropType
  28. },
  29. nativeType: {
  30. type: String,
  31. values: buttonNativeTypes,
  32. default: "button"
  33. },
  34. loading: Boolean,
  35. loadingIcon: {
  36. type: icon.iconPropType,
  37. default: () => iconsVue.Loading
  38. },
  39. plain: {
  40. type: Boolean,
  41. default: void 0
  42. },
  43. text: {
  44. type: Boolean,
  45. default: void 0
  46. },
  47. link: Boolean,
  48. bg: Boolean,
  49. autofocus: Boolean,
  50. round: {
  51. type: Boolean,
  52. default: void 0
  53. },
  54. circle: Boolean,
  55. color: String,
  56. dark: Boolean,
  57. autoInsertSpace: {
  58. type: Boolean,
  59. default: void 0
  60. },
  61. tag: {
  62. type: runtime.definePropType([String, Object]),
  63. default: "button"
  64. }
  65. });
  66. const buttonEmits = {
  67. click: (evt) => evt instanceof MouseEvent
  68. };
  69. exports.buttonEmits = buttonEmits;
  70. exports.buttonNativeTypes = buttonNativeTypes;
  71. exports.buttonProps = buttonProps;
  72. exports.buttonTypes = buttonTypes;
  73. //# sourceMappingURL=button2.js.map