index.js 764 B

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. var _link = require("../mixins/link");
  3. var _component = require("../common/component");
  4. (0, _component.VantComponent)({
  5. classes: ["title-class", "label-class", "value-class", "right-icon-class", "hover-class"],
  6. mixins: [_link.link],
  7. props: {
  8. title: null,
  9. value: null,
  10. icon: String,
  11. size: String,
  12. label: String,
  13. center: Boolean,
  14. isLink: Boolean,
  15. required: Boolean,
  16. clickable: Boolean,
  17. titleWidth: String,
  18. customStyle: String,
  19. arrowDirection: String,
  20. useLabelSlot: Boolean,
  21. border: {
  22. type: Boolean,
  23. value: true
  24. },
  25. titleStyle: String
  26. },
  27. methods: {
  28. onClick: function onClick(event) {
  29. this.$emit("click", event.detail);
  30. this.jumpLink();
  31. }
  32. }
  33. });