index.js 261 B

123456789101112131415161718192021
  1. Component({
  2. props: {
  3. componentData: {}
  4. },
  5. data: {
  6. navHeight: '100vh'
  7. },
  8. didMount() {},
  9. methods: {
  10. onCallback({
  11. height
  12. }) {
  13. this.setData({
  14. navHeight: `calc(100vh - ${height}px - 0.12rem)`
  15. });
  16. }
  17. }
  18. });