button.js 182 B

12345678910111213141516
  1. Component({
  2. props: {
  3. className: '',
  4. txt: ''
  5. },
  6. data: {},
  7. methods: {
  8. /**
  9. * 点击事件
  10. */
  11. clickBtn() {
  12. this.props.onClickBtn();
  13. }
  14. }
  15. });