index.js 574B

123456789101112131415161718192021222324252627
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. classes: ['title-class'],
  4. props: {
  5. title: String,
  6. fixed: Boolean,
  7. leftText: String,
  8. rightText: String,
  9. leftArrow: Boolean,
  10. border: {
  11. type: Boolean,
  12. value: true
  13. },
  14. zIndex: {
  15. type: Number,
  16. value: 1
  17. }
  18. },
  19. methods: {
  20. onClickLeft() {
  21. this.$emit('click-left');
  22. },
  23. onClickRight() {
  24. this.$emit('click-right');
  25. }
  26. }
  27. });